/* Design asset: setting-pages(04-11-2026)/assets/css/settings-connected-apps.css (WEB-97). Rules on shared classes are scoped to .ca-scope (16). */
/* ==========================================================================
   SETTINGS CONNECTED APPS  (assets/css/settings-connected-apps.css)
   --------------------------------------------------------------------------
   Complementary styles for Connected Apps settings.
   Reuses CRM system variables, cards, tables, badges, and utility classes.
   ========================================================================== */

/* Subtabs row for Needs attention */
.set-card .ut-views {
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}

.ca-scope .settings-nav__search.su-search {
  height: 37.1px;
}

/* Needs attention box */
.set-attention-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: var(--sp-6);
  box-shadow: var(--shadow-sm);
}

.set-attention-body {
  padding: var(--sp-4) var(--sp-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

/* Table Enhancements consistent with .set-table and .crm-table */
.set-table th[data-sort-key] {
  cursor: pointer;
  user-select: none;
  transition: color var(--fast) var(--ease), background var(--fast) var(--ease);
}

.ca-scope .set-table th[data-sort-key]:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.ca-scope .set-table .th-content {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ca-scope .set-table .sort-icon-wrap {
  display: inline-flex;
  color: var(--text-subtle);
  transition: color var(--fast) var(--ease);
}

.ca-scope .set-table th.is-sorted .sort-icon-wrap {
  color: var(--brand);
}

/* App branding inside table rows */
.su-app-row-logo {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  flex: none;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   STATUS FILTER DROPDOWN (Reusing CRM custom-select component)
   ========================================================================== */
.ca-status-select-wrap {
  min-width: 175px;
}

/* ==========================================================================
   PAGINATION (Standard CRM .wf-pager / .os-pager centered pager)
   ========================================================================== */
.wf-pager.ca-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2, 8px);
  margin-top: var(--sp-4, 16px);
  padding: 14px 16px;
  flex-wrap: wrap;
}

.ca-scope .wf-pager__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  padding: 6px 10px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text, #1e293b);
  cursor: pointer;
  border-radius: var(--radius-sm, 6px);
  transition: background 0.15s ease, color 0.15s ease;
}

.ca-scope .wf-pager__btn:not(:disabled):hover {
  background: var(--surface-hover, #f1f5f9);
}

.ca-scope .wf-pager__btn:disabled {
  color: var(--text-subtle, #94a3b8);
  cursor: default;
  pointer-events: none;
}

.ca-scope .wf-pager__nums {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ca-scope .wf-pager__num {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  padding: 0 4px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm, 6px);
  background: none;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text, #1e293b);
  cursor: pointer;
  transition: all 0.15s ease;
}

.ca-scope .wf-pager__num:not(.is-active):hover {
  background: var(--surface-hover, #f1f5f9);
}

.ca-scope .wf-pager__num.is-active,
.ca-scope .wf-pager__num[aria-current="page"] {
  border-color: var(--border-strong, #cbd5e1);
  background: var(--surface, #ffffff);
  color: var(--text, #0f172a);
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ca-scope .wf-pager__size {
  margin-left: var(--sp-3, 12px);
  border: 1px solid var(--border, #e2e8f0);
  background: var(--surface, #ffffff);
  border-radius: var(--radius-sm, 6px);
  padding: 5px 12px;
  font-size: 13px;
  box-shadow: var(--shadow-xs, 0 1px 2px rgba(0, 0, 0, 0.04));
}

.ca-scope .wf-pager__size:hover {
  border-color: var(--border-strong, #cbd5e1);
  background: var(--surface-hover, #f8fafc);
}

.ca-page-size-dropdown .dropdown__menu {
  bottom: 100%;
  top: auto;
  margin-bottom: 6px;
  min-width: 130px;
}

/* ==========================================================================
   RECOMMENDATIONS SECTION & CARDS (Matching Reference Screenshot)
   ========================================================================== */
.ca-rec-card-section {
  margin-top: 28px;
  padding: 24px;
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius-lg, 12px);
}

.ca-rec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.ca-rec-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text, #111827);
  margin: 0;
  letter-spacing: -0.01em;
}

.ca-see-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted, #4b5563);
  background: #ffffff;
  border: 1px solid var(--border-strong, #d1d5db);
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ca-see-more-btn:hover {
  background: var(--surface-hover, #f9fafb);
  color: var(--text, #111827);
  border-color: #9ca3af;
}

.su-rec-carousel-wrap {
  position: relative;
  padding: 6px 0;
}

/* Owl Stage & items layout */
.ca-owl-carousel .owl-stage {
  display: flex;
  align-items: stretch;
}

.ca-owl-carousel .owl-item {
  display: flex;
  height: auto;
}

.ca-owl-carousel .item {
  width: 100%;
  display: flex;
}

/* Recommendation Card */
.rec-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 250px;
  background: #ffffff;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 16px;
  padding: 24px;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.rec-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: var(--border-strong, #cbd5e1);
  background-color: var(--surface-hover);
}

.rec-card__icon {
  display: flex;
  align-items: center;
  height: 42px;
  margin-bottom: 18px;
}

.rec-card__icon svg {
  display: block;
}

.rec-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text, #111827);
  margin: 0 0 6px 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}

.rec-card__meta {
  font-size: 12.5px;
  color: var(--text-muted, #6b7280);
  margin: 0 0 12px 0;
  font-weight: 400;
}

.rec-card__desc {
  font-size: 13.5px;
  color: #4b5563;
  line-height: 1.45;
  margin: 0 0 20px 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 58px;
}

.rec-card__foot {
  margin-top: auto;
}

.rec-card__badge {
  display: inline-block;
  padding: 3px 9px;
  background: var(--surface-2, #f3f4f6);
  color: var(--text, #1f2937);
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 6px;
}

/* Floating Navigation Next/Prev Circular Buttons */
.ca-owl-carousel .owl-nav {
  margin: 0;
}

.ca-owl-carousel .owl-nav button.owl-prev,
.ca-owl-carousel .owl-nav button.owl-next {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  border: 1px solid var(--border, #e5e7eb) !important;
  color: #374151 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12) !important;
  z-index: 10 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.ca-owl-carousel .owl-nav button.owl-prev {
  left: -18px !important;
}

.ca-owl-carousel .owl-nav button.owl-next {
  right: -18px !important;
}

.ca-owl-carousel .owl-nav button.owl-prev:hover:not(.disabled),
.ca-owl-carousel .owl-nav button.owl-next:hover:not(.disabled) {
  background: #ffffff !important;
  color: var(--brand, #2563eb) !important;
  transform: translateY(-50%) scale(1.08) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18) !important;
  border-color: #cbd5e1 !important;
}

.ca-owl-carousel .owl-nav button.disabled {
  opacity: 0 !important;
  pointer-events: none !important;
}

.ca-owl-carousel .owl-nav button svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.ca-owl-carousel .owl-dots {
  display: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .set-attention-body {
    flex-direction: column;
    align-items: flex-start;
  }

  .ca-scope .wf-pager.ca-pager {
    padding: 10px;
    gap: 4px;
  }
}

/* Contact and Review Modals (matching reference screenshots) */
.ca-contact-modal {
  max-width: 480px;
  width: 100%;
}

.ca-review-modal {
  max-width: 520px;
  width: 100%;
}

.ca-modal-done-btn {
  min-width: 110px;
  background-color: #007a87 !important;
  border-color: #007a87 !important;
}

.ca-modal-done-btn:hover {
  background-color: #0e656e !important;
}

/* Star Rating (Review Modal) */
.ca-star-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ca-star-btn {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.15s ease;
}

.ca-star-btn:hover {
  transform: scale(1.15);
}

.ca-star-icon {
  width: 20px;
  height: 20px;
  stroke: var(--text-muted);
  fill: transparent;
  transition: all 0.15s ease;
}

.ca-star-btn.is-active .ca-star-icon,
.ca-star-btn.is-hover .ca-star-icon {
  stroke: #ffb800;
  fill: #ffb800;
}

.ca-review-guidelines-link svg,
.ca-review-modal .check svg,
.ca-contact-modal .set-link-inline svg {
  width: 13px !important;
  height: 13px !important;
  max-width: 13px !important;
  max-height: 13px !important;
  flex: none !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

/* ==========================================================================
   CONNECTIONS INSIGHTS TAB (Matching Reference Screenshot)
   ========================================================================== */
.ca-insights-container {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 8px 0 36px;
}

/* Left Subnav Sidebar */
.ca-insights-sidebar {
  width: 200px;
  flex: none;
  position: sticky;
  top: 100px;
}

.ca-insights-sidebar__heading {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text, #111827);
  margin: 0 0 10px 0;
  padding: 4px 8px;
  letter-spacing: -0.01em;
}

.ca-insights-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ca-insights-nav__item {
  display: block;
  width: 100%;
  padding: 8px 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted, #4b5563);
  background: transparent;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 0 var(--radius-sm, 6px) var(--radius-sm, 6px) 0;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.35;
}

.ca-insights-nav__item:hover {
  color: var(--text, #111827);
  background: var(--surface-hover, #f8fafc);
}

.ca-insights-nav__item.is-active,
.ca-insights-nav__item[aria-selected="true"] {
  color: var(--text, #111827);
  font-weight: 700;
  background: var(--surface, #ffffff);
  border-left-color: var(--brand, #2563eb);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Right Main Content */
.ca-insights-main {
  flex: 1;
  min-width: 0;
  width: 100%;
}

.ca-insights-panel[hidden] {
  display: none !important;
}

.ca-insights-head {
  margin-bottom: 22px;
}

.ca-insights-head__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text, #111827);
  margin: 0 0 4px 0;
  letter-spacing: -0.01em;
}

.ca-insights-head__desc {
  font-size: 13.5px;
  color: var(--text-muted, #64748b);
  margin: 0;
}

/* KPI Metric Stat Cards */
.ca-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(226px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.ca-stat-card {
  position: relative;
  padding: 20px 16px 18px;
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius-lg, 10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
}

.ca-stat-card__val {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text, #0f172a);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.ca-stat-card__title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text, #1e293b);
  margin-bottom: 2px;
}

.ca-stat-card__meta {
  font-size: 12px;
  color: var(--text-muted, #64748b);
}

.ca-stat-card__info {
  position: absolute;
  right: 14px;
  bottom: 14px;
  color: var(--text-subtle, #94a3b8);
  cursor: pointer;
  padding: 2px;
  display: inline-flex;
  border: 0;
  background: none;
  border-radius: 50%;
  transition: color 0.15s ease;
}

.ca-stat-card__info:hover {
  color: var(--brand, #2563eb);
}

/* App Log Section */
.ca-app-log-card {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius-lg, 10px);
  padding: 22px 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.ca-app-log-card__head {
  margin-bottom: 18px;
}

.ca-app-log-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text, #111827);
  margin: 0 0 5px 0;
}

.ca-app-log-card__desc {
  font-size: 13px;
  color: var(--text-muted, #64748b);
  line-height: 1.45;
  margin: 0;
}

/* Filter Toolbar */
.ca-log-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.ca-log-filter-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted, #4b5563);
  margin-right: 4px;
}

.ca-log-dropdown .ca-filter-btn {
  font-size: 13px;
  height: 28px;
  padding: 2px 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: var(--radius-sm, 6px);
  font-weight: 600;
  color: var(--text, #111827);
  box-shadow: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ca-log-dropdown .ca-filter-btn:hover,
.ca-log-dropdown .ca-filter-btn[aria-expanded="true"] {
  background: var(--surface-hover, #f1f5f9);
  border-color: var(--border, #e2e8f0);
}

.ca-log-dropdown .ca-filter-btn svg,
.ca-filter-btn svg {
  width: 10px !important;
  height: 10px !important;
  max-width: 10px !important;
  max-height: 10px !important;
  flex: none !important;
  stroke-width: 2.2 !important;
  color: var(--text-muted, #64748b) !important;
  margin-left: 2px !important;
  display: inline-block !important;
  vertical-align: middle !important;
  transition: transform 0.15s ease !important;
}

.ca-log-dropdown .ca-filter-btn[aria-expanded="true"] svg,
.ca-filter-btn[aria-expanded="true"] svg {
  transform: rotate(180deg) !important;
}

/* Log Rows List */
.ca-log-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border, #f1f5f9);
}

.ca-log-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 4px;
  border-bottom: 1px solid var(--border, #f1f5f9);
  gap: 16px;
  transition: background-color 0.15s ease;
}

.ca-log-row:hover {
  background-color: var(--surface-hover, #f8fafc);
  border-radius: 4px;
}

.ca-log-row[hidden] {
  display: none !important;
}

.ca-log-row__main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.ca-log-app-icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
}

.ca-log-row__text {
  font-size: 13.5px;
  color: var(--text, #1e293b);
  line-height: 1.4;
}

.ca-log-row__user {
  color: #007a87;
  font-weight: 700;
}

.ca-log-row__meta {
  flex: none;
}

.ca-log-row__time {
  font-size: 12px;
  color: var(--text-muted, #64748b);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Analytics Row (2 columns) */
.ca-analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.ca-analytics-card {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius-lg, 10px);
  padding: 22px 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
}

.ca-analytics-card__head {
  margin-bottom: 12px;
}

.ca-analytics-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text, #111827);
  margin: 0 0 4px 0;
}

.ca-analytics-card__desc {
  font-size: 12.5px;
  color: var(--text-muted, #64748b);
  margin: 0;
}

/* Reused Date Range Picker matching settings-connected-app-detail.php */
.cad-date-picker-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 16px;
}

.cad-date-picker-wrap .seq-dp {
  position: relative;
}

.cad-date-picker-wrap .seq-dp__inputs {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.cad-date-picker-wrap .seq-dp__input {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 10px;
  background: var(--surface, #ffffff);
  border: 1px solid var(--border-strong, #cbd5e1);
  border-radius: var(--radius-sm, 6px);
  cursor: pointer;
  color: var(--text-muted, #64748b);
  transition: border-color var(--fast, 0.15s) var(--ease, ease), box-shadow var(--fast, 0.15s) var(--ease, ease);
}

.cad-date-picker-wrap .seq-dp__input.is-active,
.cad-date-picker-wrap .seq-dp__input:focus-within {
  border-color: var(--brand, #2563eb);
  box-shadow: 0 0 0 1px var(--brand, #2563eb);
}

.cad-date-picker-wrap .seq-dp__input svg,
.cad-date-picker-wrap .seq-dp__input .icon {
  width: 14px;
  height: 14px;
  color: var(--text-muted, #64748b);
  flex: none;
}

.cad-date-picker-wrap .seq-dp__input input {
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text, #111827);
  width: 86px;
  padding: 0;
  outline: none;
  cursor: pointer;
}

.cad-date-picker-wrap .cad-date-sep {
  font-size: 0.8125rem;
  color: var(--text-muted, #64748b);
  font-weight: 500;
}

.cad-date-picker-wrap .seq-dp__body {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 1050;
  display: grid;
  grid-template-columns: 180px 280px;
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--radius-lg, 8px);
  box-shadow: var(--shadow-lg, 0 10px 25px -5px rgba(0, 0, 0, 0.12));
  overflow: hidden;
  width: 460px;
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
}

/* Align right if card is on the right column */
.ca-analytics-card:last-child .cad-date-picker-wrap .seq-dp__body {
  left: auto;
  right: 0;
}

.cad-date-picker-wrap .seq-dp__body[hidden] {
  display: none !important;
}

.cad-date-picker-wrap .seq-dp__presets {
  display: flex;
  flex-direction: column;
  max-height: 330px;
  overflow-y: auto;
  padding: 6px 0;
  border-right: 1px solid var(--border, #e5e7eb);
}

.cad-date-picker-wrap .seq-dp__preset {
  text-align: left;
  background: none;
  border: 0;
  font: inherit;
  font-size: 13.5px;
  color: var(--text, #111827);
  padding: 8px 16px;
  cursor: pointer;
  transition: background var(--fast, 0.15s) var(--ease, ease);
}

.cad-date-picker-wrap .seq-dp__preset:hover,
.cad-date-picker-wrap .seq-dp__preset:focus-visible,
.cad-date-picker-wrap .seq-dp__preset.is-active {
  background: var(--surface-hover, #f3f4f6);
  outline: none;
}

.cad-date-picker-wrap .seq-dp__preset.is-active {
  color: var(--brand, #2563eb);
  font-weight: 600;
}

.cad-date-picker-wrap .seq-dp__cal {
  padding: var(--sp-3, 12px);
  box-sizing: border-box;
  min-width: 0;
}

.cad-date-picker-wrap .seq-dp__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-2, 8px);
  font-size: 14.5px;
  color: var(--text, #111827);
  font-weight: 700;
}

.cad-date-picker-wrap .seq-dp__nav {
  width: 28px;
  height: 28px;
  border: 0;
  background: none;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  color: var(--text, #111827);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cad-date-picker-wrap .seq-dp__nav:hover,
.cad-date-picker-wrap .seq-dp__nav:focus-visible {
  background: var(--surface-hover, #f3f4f6);
  outline: none;
}

.cad-date-picker-wrap .seq-dp__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}

.cad-date-picker-wrap .seq-dp__wd {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted, #64748b);
  padding: 4px 0;
}

.cad-date-picker-wrap .seq-dp__day {
  position: relative;
  height: 30px;
  border: 0;
  background: none;
  border-radius: var(--radius-sm, 4px);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text, #111827);
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  padding: 0;
}

.cad-date-picker-wrap .seq-dp__day:hover,
.cad-date-picker-wrap .seq-dp__day:focus-visible {
  background: var(--surface-hover, #f3f4f6);
  outline: none;
  box-shadow: inset 0 0 0 1px var(--border-strong, #cbd5e1);
}

.cad-date-picker-wrap .seq-dp__day.is-out {
  color: var(--text-subtle, #9ca3af);
  font-weight: 500;
}

.cad-date-picker-wrap .seq-dp__day.is-range {
  background: var(--brand-soft, rgba(37, 99, 235, 0.12));
  border-radius: 0;
}

.cad-date-picker-wrap .seq-dp__day.is-sel {
  background: var(--text, #111827);
  color: var(--surface, #ffffff);
}

.cad-date-picker-wrap .seq-dp__day.is-today:not(.is-sel) {
  color: var(--danger, #dc2626);
}

.cad-date-picker-wrap .seq-dp__day.is-today::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--accent, #f97316);
}

.cad-date-picker-wrap .seq-dp__clear {
  display: block;
  width: 100%;
  margin-top: var(--sp-2, 8px);
  padding: 6px;
  border: 1px solid var(--border-strong, #cbd5e1);
  border-radius: var(--radius-pill, 999px);
  background: var(--surface, #ffffff);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: var(--text, #111827);
  box-sizing: border-box;
}

.cad-date-picker-wrap .seq-dp__clear:hover {
  background: var(--surface-hover, #f3f4f6);
}

@media (max-width: 600px) {
  .cad-date-picker-wrap .seq-dp__body {
    position: fixed;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    transform: translate(-50%, -50%);
    width: calc(100vw - 24px);
    max-width: 360px;
    z-index: 1060;
    grid-template-columns: minmax(0, 1fr);
  }
  .cad-date-picker-wrap .seq-dp__presets {
    max-height: 140px;
    border-right: 0;
    border-bottom: 1px solid var(--border, #e5e7eb);
  }
}

/* Adoption Rate Table */
.ca-adoption-wrap {
  margin-top: 6px;
  overflow-x: auto;
}

.ca-adoption-table {
  width: 100%;
  border-collapse: collapse;
}

.ca-adoption-table th {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted, #64748b);
  text-transform: none;
  padding: 8px 4px 12px;
  border-bottom: 1px solid var(--border, #e2e8f0);
}

.ca-adopt-th-app {
  text-align: left;
  width: 45%;
}

.ca-adopt-th-rate {
  text-align: left;
  width: 55%;
}

.ca-adoption-table td {
  padding: 13px 4px;
  border-bottom: 1px solid var(--border, #f1f5f9);
  vertical-align: middle;
}

.ca-adopt-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text, #1e293b);
  padding-right: 12px;
}

.ca-adopt-track {
  width: 100%;
  height: 16px;
  background: var(--surface-2, #edf2f7);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
}

.ca-adopt-fill {
  height: 100%;
  background: #006b52;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  transition: width 0.4s ease;
}

.ca-adopt-pct {
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
}

/* Top App Users Chart */
.ca-chart-wrap {
  width: 100%;
  position: relative;
  height: 260px;
  margin-top: 6px;
}

.ca-chart-wrap canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.ca-bar-rect {
  transition: opacity 0.15s ease, filter 0.15s ease;
  cursor: pointer;
}

.ca-bar-rect:hover {
  opacity: 0.88;
  filter: brightness(1.06);
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .ca-insights-container {
    flex-direction: column;
    gap: 20px;
  }

  .ca-insights-sidebar {
    width: 100%;
    position: static;
  }

  .ca-insights-nav {
    flex-direction: row;
    overflow-x: auto;
    border-bottom: 1px solid var(--border, #e2e8f0);
    padding-bottom: 4px;
  }

  .ca-insights-nav__item {
    border-left: 0;
    border-bottom: 3px solid transparent;
    border-radius: var(--radius-sm, 6px) var(--radius-sm, 6px) 0 0;
    white-space: nowrap;
    width: auto;
  }

  .ca-insights-nav__item.is-active,
  .ca-insights-nav__item[aria-selected="true"] {
    border-left-color: transparent;
    border-bottom-color: var(--brand, #2563eb);
  }

  .ca-analytics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ca-stat-grid {
    grid-template-columns: 1fr;
  }

  .ca-log-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .ca-log-row__meta {
    padding-left: 38px;
  }
}

/* Recommendation details dialog — mirrors the CRM Notifications app popup */
.ca-rec-modal {
  width: min(1000px, calc(100vw - 32px));
  max-width: none;
  max-height: min(88vh, 900px);
  padding: 0;
  border: 1px solid var(--border, #d0d5dd);
  border-radius: 16px;
  background: var(--surface, #fff);
  color: var(--text, #101828);
  box-shadow: 0 24px 70px rgba(16, 24, 40, .28);
  overflow: hidden;
}
.ca-rec-modal::backdrop { background: rgba(16, 24, 40, .62); backdrop-filter: blur(3px); }
.ca-rec-modal[open] { display: flex; flex-direction: column; }
.ca-rec-modal__head {
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:17px 24px; border-bottom:1px solid var(--border, #e4e7ec); flex:none;
}
.ca-rec-modal__head h2 { margin:0; font-size:18px; font-weight:700; color:var(--text, #101828); }
.ca-rec-modal__close {
  width:34px;height:34px;display:grid;place-items:center;flex:none;
  border:1px solid var(--border, #d0d5dd);border-radius:8px;
  background:var(--surface, #fff);color:var(--text-muted, #475467);cursor:pointer;
}
.ca-rec-modal__close:hover,.ca-rec-modal__gallery-arrow:hover { background:var(--surface-hover, #f2f4f7); }
.ca-rec-modal__body {
  display:grid; grid-template-columns:minmax(245px, 290px) minmax(0,1fr);
  gap:22px; padding:20px 24px 24px; overflow:auto; min-height:0;
}
.ca-rec-modal__side,.ca-rec-modal__content { min-width:0; }
.ca-rec-modal__requirements,.ca-rec-modal__app,.ca-rec-modal__content {
  border:1px solid var(--border, #d0d5dd);border-radius:16px;background:var(--surface, #fff);
}
.ca-rec-modal__requirements { padding:25px 26px; margin-bottom:22px; }
.ca-rec-modal__requirements h3,.ca-rec-modal__review h3 { margin:0 0 12px;font-size:16px;font-weight:700; }
.ca-rec-modal__requirements p,.ca-rec-modal__review p { margin:0;color:var(--text, #344054);font-size:14px;line-height:1.65; }
.ca-rec-modal__app { position:relative;padding:24px 26px; }
.ca-rec-modal__app > .rec-card__badge { position:absolute;top:14px;right:14px; }
.ca-rec-modal__logo { display:flex;align-items:center;justify-content:flex-start;min-height:46px;margin-bottom:12px; }
.ca-rec-modal__logo svg { max-width:54px;max-height:52px; }
.ca-rec-modal__app h3 { margin:0 0 8px;font-size:20px;line-height:1.35;font-weight:700; }
.ca-rec-modal__certified { display:flex;align-items:center;gap:6px;margin:0 0 18px!important;font-size:11px;font-weight:800;letter-spacing:.025em; }
.ca-rec-modal__app > p:not(.ca-rec-modal__certified) { margin:0 0 18px;color:var(--text-muted, #475467);font-size:14px;line-height:1.65; }
.ca-rec-modal__stats { display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px; }
.ca-rec-modal__stats span,.ca-rec-modal__rating span { display:block;margin-bottom:3px;color:var(--text-muted, #475467);font-size:12px; }
.ca-rec-modal__stats strong,.ca-rec-modal__rating strong { display:block;font-size:14px;font-weight:700;overflow-wrap:anywhere; }
.ca-rec-modal__rating { margin-top:14px; }
.ca-rec-modal__content { padding:24px; }
.ca-rec-modal__review { padding:24px;border:1px solid var(--border, #e4e7ec);border-radius:10px;margin-bottom:20px; }
.ca-rec-modal__review h3 { margin-bottom:6px; }
.ca-rec-modal__review .pp-btn { margin-top:16px; }
.ca-rec-modal__overview-title { margin:0 0 18px;font-size:20px;font-weight:700; }
.ca-rec-modal__gallery { display:grid;grid-template-columns:38px minmax(0,1fr) 38px;align-items:center;gap:12px; }
.ca-rec-modal__gallery-arrow { width:38px;height:38px;display:grid;place-items:center;border:1px solid var(--border-strong, #d0d5dd);border-radius:9px;background:var(--surface, #fff);color:var(--text, #344054);cursor:pointer; }
.ca-rec-modal__gallery-frame { min-width:0;height:230px;display:grid;place-items:center;border-radius:10px;background:var(--surface-3, #eef1f5);overflow:hidden; }
.ca-rec-modal__gallery-art { width:100%;height:100%;display:grid;place-items:center;position:relative;background:var(--surface-3, #eef1f5); }
.ca-rec-modal__gallery-mark { display:grid;place-items:center;width:116px;height:116px;border-radius:24px;background:var(--brand-soft, #edf2ff);color:var(--brand-ink, #1f4bd0);font-size:22px;font-weight:800;letter-spacing:.06em; }
.ca-rec-modal__gallery-caption { margin:18px 0 20px;text-align:center;font-size:13px;color:var(--text-muted, #475467); }
.ca-rec-modal__long-desc { margin:0;font-size:14px;line-height:1.7;color:var(--text, #344054); }
.rec-card[data-rec-card] { cursor:pointer; }
.rec-card[data-rec-card]:focus-visible { outline:3px solid var(--focus-ring-color, rgba(36,86,230,.35));outline-offset:3px; }
@media (max-width:760px) {
  .ca-rec-modal { width:calc(100vw - 20px);max-height:92vh;border-radius:13px; }
  .ca-rec-modal__head { padding:14px 16px; }
  .ca-rec-modal__body { grid-template-columns:minmax(0,1fr);gap:14px;padding:14px; }
  .ca-rec-modal__requirements { padding:18px;margin-bottom:14px; }
  .ca-rec-modal__app,.ca-rec-modal__content { padding:18px; }
  .ca-rec-modal__gallery-frame { height:180px; }
  .ca-rec-modal__gallery { grid-template-columns:32px minmax(0,1fr) 32px;gap:7px; }
  .ca-rec-modal__gallery-arrow { width:32px;height:32px; }
}

/* Action dialogs shown by Needs attention and Recommendations controls */
.ca-action-modal,.ca-all-rec-modal {
  width:min(800px,calc(100vw - 32px));max-width:none;max-height:88vh;padding:0;
  border:1px solid var(--border,#d0d5dd);border-radius:16px;background:var(--surface,#fff);
  color:var(--text,#101828);box-shadow:0 24px 70px rgba(16,24,40,.28);overflow:hidden;
}
.ca-action-modal::backdrop,.ca-all-rec-modal::backdrop {background:rgba(16,24,40,.48);backdrop-filter:blur(4px)}
.ca-action-modal[open],.ca-all-rec-modal[open] {display:flex;flex-direction:column}
.ca-action-modal__head {display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;border-bottom:1px solid var(--border,#e4e7ec);flex:none}
.ca-action-modal__head h2 {margin:0;font-size:20px;font-weight:700;color:var(--text,#101828)}
.ca-action-modal__close {display:grid;place-items:center;width:34px;height:34px;border:0;border-radius:7px;background:transparent;color:var(--text,#344054);cursor:pointer}
.ca-action-modal__close:hover {background:var(--surface-hover,#f2f4f7)}
.ca-action-modal__body {padding:16px 24px;overflow:auto}
.ca-expired-list {border:1px solid var(--border-strong,#d0d5dd);border-radius:16px;overflow:hidden}
.ca-expired-row {display:flex;align-items:center;gap:14px;padding:12px 16px;min-height:64px}
.ca-expired-row+.ca-expired-row {border-top:1px solid var(--border,#e4e7ec)}
.ca-expired-icon {display:grid;place-items:center;flex:none;width:44px;height:44px;border:1px solid var(--danger-border,#ffd5d5);border-radius:8px;background:var(--danger-bg,#fff0f0);color:var(--danger,#e11d48)}
.ca-expired-copy {flex:1;min-width:0}.ca-expired-copy>span {display:block;color:var(--text-muted,#667085);font-size:13px;margin-bottom:4px}
.ca-expired-copy p {margin:0;font-size:14px;line-height:1.5}.ca-expired-copy strong {color:var(--brand-ink,var(--brand,#1f4bd0))}
.ca-expired-row .btn-crm {white-space:nowrap;border-radius:999px}
.ca-permission-modal {width:min(550px,calc(100vw - 32px));min-height:395px}
.ca-permission-error {margin:24px 40px;padding:16px 20px;border:1px solid var(--danger,#f04438);border-radius:16px;background:var(--danger-bg,#fff0ed);color:var(--text,#101828);font-size:14px;line-height:1.6}
.ca-permission-error strong {display:block;font-size:16px;margin-bottom:2px}.ca-permission-error p {margin:0 0 14px}
.ca-permission-error details summary {cursor:pointer;font-weight:700}.ca-permission-error details p {margin:10px 0 0}
.ca-all-rec-modal {width:min(1000px,calc(100vw - 32px));max-height:88vh;background:var(--surface-2,#f9fafb)}
.ca-all-rec-toolbar {display:flex;align-items:center;gap:16px;padding:20px 24px 12px;flex:none;color:var(--text-muted,#475467);font-size:13px}
.ca-all-rec-search {width:min(400px,65%);height:42px;display:flex;align-items:center;gap:10px;padding:0 14px;border:1px solid var(--border-strong,#d0d5dd);border-radius:999px;background:var(--surface,#fff);color:var(--text-muted,#475467)}
.ca-all-rec-search input {min-width:0;flex:1;border:0;outline:0;background:transparent;color:var(--text,#101828);font:inherit}.ca-all-rec-search svg {flex:none}
.ca-all-rec-grid {padding:10px 24px 24px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;overflow:auto}
.ca-all-rec-card {position:relative;display:flex;flex-direction:column;align-items:flex-start;min-width:0;min-height:250px;padding:22px 24px;border:1px solid var(--border-strong,#d0d5dd);border-radius:16px;background:var(--surface,#fff);box-shadow:var(--shadow-sm,0 2px 6px rgba(16,24,40,.06));cursor:pointer}
.ca-all-rec-card:hover {border-color:var(--brand-ink,var(--brand,#2456e6));box-shadow:var(--shadow-md,0 4px 12px rgba(16,24,40,.1))}.ca-all-rec-card[hidden] {display:none}
.ca-all-rec-logo {display:flex;align-items:center;justify-content:flex-start;height:48px;margin-bottom:14px}.ca-all-rec-logo svg {max-width:42px;max-height:42px}
.ca-all-rec-card h3 {margin:0 0 4px;font-size:15px;line-height:1.35;font-weight:700;color:var(--text,#101828)}.ca-all-rec-meta {margin:0 0 12px;font-size:13px;color:var(--text-muted,#475467)}.ca-all-rec-desc {margin:0 0 18px;font-size:14px;line-height:1.55;color:var(--text,#344054);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.ca-all-rec-card .rec-card__badge {margin-top:auto}
@media(max-width:700px){.ca-action-modal__head{padding:16px}.ca-action-modal__body{padding:12px}.ca-expired-row{align-items:flex-start;flex-wrap:wrap;padding:12px}.ca-expired-copy{flex-basis:calc(100% - 60px)}.ca-expired-row .btn-crm{margin-left:58px}.ca-permission-error{margin:16px;padding:14px}.ca-all-rec-toolbar{padding:14px;align-items:flex-start;flex-direction:column}.ca-all-rec-search{width:100%}.ca-all-rec-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:8px 14px 16px;gap:12px}.ca-all-rec-card{padding:16px;min-height:220px}}
@media(max-width:460px){.ca-all-rec-grid{grid-template-columns:minmax(0,1fr)}}
.ca-see-more-btn {font:inherit;line-height:1.4;appearance:none}


/* ==========================================================================
   RECORD INSIGHTS DASHBOARD — additive styles only
   ========================================================================== */
.ca-record-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0 0 24px}
.ca-record-kpi{min-width:0;min-height:148px;padding:24px;background:var(--surface,#fff);border:1px solid var(--border,#e2e8f0);border-radius:var(--radius-lg,12px);display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:5px;box-shadow:var(--shadow-sm,0 1px 3px rgba(16,24,40,.06))}
.ca-record-kpi__value{font-size:22px;line-height:1.25;font-weight:700;letter-spacing:-.02em;color:var(--text,#101828)}
.ca-record-kpi__value--app{font-size:19px;max-width:100%;min-height:52px}
.ca-record-kpi__label{font-size:13.5px;font-weight:600;color:var(--text,#101828)}
.ca-record-kpi__meta{font-size:13px;color:var(--text-muted,#475467)}
.ca-record-kpi__up{font-size:14px;color:var(--brand-ink,var(--brand,#2456e6));margin-right:4px}
.ca-record-card{padding:24px;margin:0 0 24px;min-width:0;overflow:visible}
.ca-record-card__head{margin-bottom:20px}
.ca-record-card__head h3{font-size:16px;font-weight:700;line-height:1.35;margin:0 0 5px;color:var(--text,#101828)}
.ca-record-card__head p{font-size:13.5px;line-height:1.5;margin:0;color:var(--text-muted,#475467)}
.ca-record-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:20px;position:relative;z-index:4}
.ca-record-toolbar--simple{margin-bottom:16px}
.ca-record-filter-label{font-size:13px;color:var(--text,#101828);white-space:nowrap}
.ca-record-toolbar .ca-date-picker-wrap{margin:0;flex:none}
.ca-record-toolbar .seq-dp__inputs{display:flex;align-items:center;gap:10px}
.ca-record-toolbar .seq-dp__input{min-width:138px;height:29px;padding:0 8px;gap:6px;border:1px solid var(--border-strong,#d0d5dd);border-radius:6px;background:var(--surface,#fff);color:var(--text,#101828)}
.ca-record-toolbar .seq-dp__input svg{width:14px;height:14px;color:var(--text-muted,#667085);flex:none}
.ca-record-toolbar .seq-dp__input input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--text,#101828);font:inherit;font-size:12.5px;padding:0}
.ca-record-toolbar .cad-date-sep{font-size:13px;color:var(--text,#101828)}
.ca-record-multiselect,.ca-record-action-single{position:relative;display:inline-flex;flex:none}
.ca-record-select-trigger{display:inline-flex;align-items:center;gap:5px;border:0;background:transparent;color:var(--text,#101828);font:inherit;font-size:13px;font-weight:500;padding:5px 2px;cursor:pointer;white-space:nowrap}
.ca-record-select-trigger:hover{color:var(--brand-ink,var(--brand,#2456e6))}
.ca-record-caret{width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:5px solid currentColor;display:inline-block}
.ca-record-select-menu,.ca-record-single-menu{position:absolute;top:calc(100% + 10px);left:0;z-index:30;width:202px;max-height:320px;overflow:hidden;border:1px solid var(--border-strong,#d0d5dd);border-radius:16px;background:var(--surface,#fff);box-shadow:0 12px 32px rgba(16,24,40,.16);padding:8px;color:var(--text,#101828)}
.ca-record-select-menu:before,.ca-record-single-menu:before{content:"";position:absolute;top:-6px;left:22px;width:10px;height:10px;background:var(--surface,#fff);border-left:1px solid var(--border-strong,#d0d5dd);border-top:1px solid var(--border-strong,#d0d5dd);transform:rotate(45deg)}
.ca-record-select-menu[hidden],.ca-record-single-menu[hidden]{display:none!important}
.ca-record-search{display:flex;align-items:center;gap:8px;height:38px;border:2px solid var(--brand-ink,var(--brand,#2456e6));border-radius:24px;padding:0 11px;margin:4px 4px 8px;position:relative;z-index:1;background:var(--surface,#fff)}
.ca-record-search input{min-width:0;width:100%;border:0;outline:0;background:transparent;color:var(--text,#101828);font:inherit;font-size:13px}
.ca-record-search span{font-size:21px;line-height:1;color:var(--text-muted,#667085)}
.ca-record-options{max-height:202px;overflow:auto;scrollbar-width:thin}
.ca-record-check{display:flex;align-items:center;gap:10px;min-height:35px;padding:7px 9px;border-radius:5px;font-size:13px;color:var(--text,#101828);cursor:pointer;white-space:nowrap}
.ca-record-check:hover{background:var(--surface-hover,#f2f4f7)}
.ca-record-check span{overflow:hidden;text-overflow:ellipsis}
.ca-record-check input{appearance:none;-webkit-appearance:none;flex:none;width:20px;height:20px;margin:0;border:1px solid var(--border-strong,#98a2b3);border-radius:6px;background:var(--surface,#fff);display:grid;place-content:center;cursor:pointer}
.ca-record-check input:checked{background:var(--surface,#fff);border-color:var(--text-muted,#667085)}
.ca-record-check input:checked:after{content:"";width:10px;height:6px;border-left:2px solid var(--text,#101828);border-bottom:2px solid var(--text,#101828);transform:rotate(-45deg) translate(1px,-1px)}
.ca-record-check--all{font-weight:700;border-bottom:1px solid var(--border,#e4e7ec);margin-bottom:4px;position:relative;z-index:1;background:var(--surface,#fff)}
.ca-record-select-menu--compact{width:202px}
.ca-record-single-menu{width:146px;max-height:none;padding:6px}
.ca-record-single-menu button{display:block;width:100%;border:0;background:transparent;color:var(--text,#101828);text-align:left;padding:10px;border-radius:5px;font:inherit;font-size:13px;cursor:pointer}
.ca-record-single-menu button:hover,.ca-record-single-menu button.is-selected{background:var(--surface-hover,#f2f4f7)}
.ca-record-chart-wrap{position:relative;width:100%;min-width:0}
.ca-record-line-wrap{height:360px;padding:0 2px 0 0}
.ca-record-axis-title{font-size:12px;font-weight:600;color:var(--text,#101828);margin:0 0 4px 24px}
.ca-record-trend-table{padding-bottom:24px}
.ca-record-table-scroll{width:100%;overflow-x:auto}
.ca-record-table{width:100%;border-collapse:collapse;font-size:13px;color:var(--text,#101828);min-width:700px}
.ca-record-table th{padding:12px 14px;text-align:left;font-size:13px;font-weight:500;color:var(--text-muted,#475467);border-bottom:1px solid var(--border-strong,#d0d5dd);white-space:nowrap}
.ca-record-table td{padding:13px 14px;border-bottom:1px solid var(--border,#e4e7ec);white-space:nowrap}
.ca-record-table tbody tr:last-child td{border-bottom:0}
.ca-record-table td:first-child{min-width:270px}
.ca-record-table td:first-child strong{color:var(--text,#101828);font-weight:600}
.ca-record-app-icon{display:inline-grid;place-items:center;width:22px;height:22px;margin-right:10px;color:var(--text-muted,#667085);font-size:21px;vertical-align:middle}
.ca-record-trend-pill{display:inline-block;padding:4px 8px;border:1px solid currentColor;border-radius:6px;font-size:11px;line-height:1.2}
.ca-record-trend-pill.is-up{color:var(--brand-ink,#2456e6);background:var(--brand-soft,#edf2ff)}
.ca-record-trend-pill.is-down{color:var(--danger,#d92d20);background:var(--surface-2,#fff)}
.ca-record-link{border:0;padding:3px 0;background:transparent;color:var(--brand-ink,var(--brand,#2456e6));font:inherit;font-weight:600;cursor:pointer}
.ca-record-link:hover{text-decoration:underline}
.ca-record-bottom-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}
.ca-record-bottom-grid .ca-record-card{margin-bottom:0}
.ca-record-bar-wrap{height:300px;padding-top:2px}
.ca-record-pie-wrap{height:290px;max-width:390px;margin:4px auto 0}
.ca-record-legend{display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap;font-size:11.5px;color:var(--text,#101828);margin:0 0 4px}
.ca-record-legend span{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.ca-record-legend i{display:inline-block;width:10px;height:10px;border-radius:50%;background:#006b6b}
.ca-record-legend span:nth-child(2) i{background:#82cdd0}
.ca-record-legend span:nth-child(3) i{background:#cc4295}
@media(max-width:1199px){.ca-record-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.ca-record-bottom-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:767px){.ca-record-kpis{grid-template-columns:minmax(0,1fr);gap:12px}.ca-record-kpi{min-height:120px;padding:18px}.ca-record-card{padding:16px}.ca-record-toolbar{align-items:flex-start;gap:8px}.ca-record-toolbar .seq-dp__inputs{gap:6px;flex-wrap:wrap}.ca-record-toolbar .seq-dp__input{min-width:118px}.ca-record-line-wrap{height:300px}.ca-record-bottom-grid{gap:16px}.ca-record-pie-wrap{height:250px}.ca-record-select-menu{max-width:min(202px,calc(100vw - 32px))}}

/* =====================================================================
   AUTOMATION INSIGHTS — screenshot-matched dashboard and action details
   Additive styles only; existing date-range picker styles remain unchanged.
   ===================================================================== */
.ca-automation-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;margin:0 0 24px}
.ca-automation-kpi{min-width:0;min-height:120px;padding:22px 24px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;background:var(--surface,#fff);border:1px solid var(--border-strong,#d0d5dd);border-radius:16px;box-shadow:0 2px 7px rgba(16,24,40,.07)}
.ca-automation-kpi strong{font-size:22px;line-height:1.1;font-weight:700;color:var(--text,#101828)}
.ca-automation-kpi b{font-size:13.5px;line-height:1.4;font-weight:700;color:var(--text,#101828)}
.ca-automation-kpi span{font-size:13px;line-height:1.4;color:var(--text-muted,#475467)}
.ca-automation-card{min-width:0;margin:0 0 24px;padding:24px;border:1px solid var(--border-strong,#d0d5dd);border-radius:16px;background:var(--surface,#fff);box-shadow:0 2px 7px rgba(16,24,40,.06);overflow:visible}
.ca-automation-card__head{margin-bottom:24px}
.ca-automation-card__head h3{margin:0 0 5px;color:var(--text,#101828);font-size:16px;line-height:1.4;font-weight:700}
.ca-automation-card__head p{margin:0;color:var(--text-muted,#475467);font-size:13.5px;line-height:1.5}
.ca-automation-toolbar{position:relative;z-index:5;display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 12px}
.ca-automation-toolbar .ca-date-picker-wrap{margin:0;flex:none}
.ca-automation-toolbar .seq-dp__inputs{display:flex;align-items:center;gap:10px}
.ca-automation-toolbar .seq-dp__input{display:flex;align-items:center;gap:6px;min-width:138px;height:27px;padding:0 7px;border:1px solid var(--border-strong,#d0d5dd);border-radius:6px;background:var(--surface,#fff);color:var(--text,#101828)}
.ca-automation-toolbar .seq-dp__input input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:inherit;font:inherit;font-size:12.5px;padding:0}
.ca-automation-toolbar .seq-dp__input svg{width:14px;height:14px;flex:none;color:var(--text-muted,#667085)}
.ca-automation-filter-label{font-size:13px;color:var(--text,#101828);white-space:nowrap}
.ca-automation-filter .ca-record-select-trigger{font-size:13px;padding:5px 1px}
.ca-automation-empty{min-height:245px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:6px 12px 0;text-align:center}
.ca-automation-empty[hidden]{display:none!important}
.ca-automation-empty__art{display:block;width:240px;max-width:100%;height:190px;overflow:visible}
.ca-automation-empty p{margin:0;color:var(--text,#101828);font-size:13.5px;line-height:1.5}
.ca-automation-table-card{padding:24px;margin-bottom:24px}
.ca-automation-table-card .ca-automation-card__head{margin-bottom:24px}
.ca-automation-search{display:flex;align-items:center;justify-content:space-between;gap:10px;width:300px;max-width:100%;height:40px;padding:0 14px 0 16px;margin:0 0 20px;border:1px solid var(--border-strong,#d0d5dd);border-radius:24px;background:var(--surface,#fff);color:var(--text-muted,#667085)}
.ca-automation-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--text,#101828);font:inherit;font-size:13px}
.ca-automation-search input::placeholder{color:var(--text-muted,#667085);opacity:1}
.ca-automation-search span{display:inline-flex;flex:none}
.ca-automation-search svg{width:16px;height:16px}
.ca-automation-table-scroll{width:100%;overflow-x:auto}
.ca-automation-table{width:100%;min-width:660px;border-collapse:collapse;color:var(--text,#101828);font-size:13.5px}
.ca-automation-table thead th{height:40px;padding:8px 24px;text-align:left;white-space:nowrap;border-bottom:1px solid var(--border-strong,#d0d5dd);font-size:13.5px;font-weight:500;color:var(--text-muted,#475467)}
.ca-automation-table thead th:first-child{padding-left:24px}
.ca-automation-table thead th button{padding:0;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer;white-space:nowrap}
.ca-automation-table thead th button:hover{color:var(--text,#101828)}
.ca-automation-table tbody td{height:55px;padding:9px 24px;border-bottom:1px solid var(--border,#e4e7ec);vertical-align:middle;white-space:nowrap}
.ca-automation-table tbody tr:last-child td{border-bottom:0}
.ca-automation-table tbody tr[hidden]{display:none}
.ca-automation-table tbody td:first-child{min-width:230px}
.ca-automation-table tbody td strong{font-size:13.5px;font-weight:700;color:#006b75}
.ca-automation-app-logo{display:inline-grid;place-items:center;vertical-align:middle;width:24px;height:24px;margin-right:14px;font-weight:800;line-height:1}
.ca-automation-app-logo--docu{position:relative;color:#fff;font-size:0}
.ca-automation-app-logo--docu:before{content:"";position:absolute;width:16px;height:16px;left:4px;top:4px;background:linear-gradient(135deg,#ff5c65 0 48%,#4f12d8 49% 100%);border-radius:1px 7px 1px 1px}
.ca-automation-app-logo--docu:after{content:"";position:absolute;width:8px;height:8px;left:4px;top:12px;background:#180044}
.ca-automation-app-logo--slack{font-size:27px;color:#20b9a7}
.ca-automation-count{font-weight:700;color:#006b75}
.ca-automation-view-btn{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:37px;padding:7px 16px;border:1px solid var(--border-strong,#98a2b3);border-radius:999px;background:var(--surface,#fff);color:var(--text,#101828);font:inherit;font-size:13.5px;text-decoration:none;white-space:nowrap;cursor:pointer}
.ca-automation-view-btn:hover{background:var(--surface-hover,#f2f4f7);border-color:var(--text-subtle,#98a2b3);color:var(--text,#101828)}
.ca-automation-no-results{margin:12px 0 0;color:var(--text-muted,#475467);font-size:13px}
.ca-automation-no-results[hidden]{display:none!important}
.ca-automation-modal{width:min(1000px,calc(100vw - 32px));height:min(850px,calc(100vh - 32px));max-width:none;max-height:none;padding:0;border:1px solid var(--border-strong,#d0d5dd);border-radius:16px;background:var(--surface,#fff);color:var(--text,#101828);box-shadow:0 24px 70px rgba(16,24,40,.25);overflow:hidden}
.ca-automation-modal::backdrop{background:rgba(0,0,0,.42);backdrop-filter:blur(3px)}
.ca-automation-modal[open]{display:flex;flex-direction:column}
.ca-automation-modal__head{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:68px;padding:18px 40px;border-bottom:1px solid var(--border,#e4e7ec);flex:none}
.ca-automation-modal__head h2{margin:0;font-size:20px;line-height:1.35;font-weight:700;color:var(--text,#101828)}
.ca-automation-modal__close{display:grid;place-items:center;flex:none;width:32px;height:32px;border:0;border-radius:6px;background:transparent;color:var(--text,#344054);cursor:pointer}
.ca-automation-modal__close:hover{background:var(--surface-hover,#f2f4f7)}
.ca-automation-modal__body{padding:20px 40px 28px;overflow:auto;flex:1}
.ca-automation-modal__intro{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:22px}
.ca-automation-modal__intro h3{margin:0 0 5px;font-size:15.5px;font-weight:700;line-height:1.4;color:var(--text,#101828)}
.ca-automation-modal__intro p{max-width:740px;margin:0;font-size:13.5px;line-height:1.65;color:var(--text-muted,#667085)}
.ca-automation-modal__intro .ca-automation-external-link{margin-top:4px;flex:none}
.ca-automation-modal__body h4{margin:0 0 12px;font-size:13.5px;font-weight:700;color:var(--text,#101828)}
.ca-automation-modal-table{min-width:760px}
.ca-automation-modal-table thead th{height:42px;padding:8px 24px}
.ca-automation-modal-table tbody td{height:56px;padding:9px 24px}
.ca-automation-modal-table tbody td:nth-child(2){max-width:250px;overflow:hidden;text-overflow:ellipsis}
.ca-automation-modal-table tbody td:first-child{min-width:250px}
.ca-automation-modal-table .ca-automation-view-btn{min-height:36px;padding:6px 12px}
@media(max-width:1199px){.ca-automation-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}}
@media(max-width:767px){.ca-automation-kpis{grid-template-columns:minmax(0,1fr);gap:12px}.ca-automation-kpi{min-height:100px;padding:18px}.ca-automation-card,.ca-automation-table-card{padding:16px}.ca-automation-toolbar{align-items:flex-start;gap:8px}.ca-automation-toolbar .seq-dp__inputs{gap:6px;flex-wrap:wrap}.ca-automation-toolbar .seq-dp__input{min-width:118px}.ca-automation-empty{min-height:220px}.ca-automation-modal{width:calc(100vw - 16px);height:calc(100vh - 16px);border-radius:12px}.ca-automation-modal__head{padding:14px 16px}.ca-automation-modal__head h2{font-size:17px}.ca-automation-modal__body{padding:16px}.ca-automation-modal__intro{flex-direction:column;gap:12px}.ca-automation-modal__intro .ca-automation-external-link{margin-top:0}}

/* ==========================================================================
   API CALL USAGE — additive styles; existing Connected Apps styles preserved
   ========================================================================== */
.ca-api-usage-panel{display:flex;flex-direction:column;gap:28px}
.ca-api-current-card,.ca-api-history-card{padding:24px;background:var(--surface,#fff);border:1px solid var(--border,#d0d5dd);border-radius:var(--radius-lg,16px);box-shadow:var(--shadow-sm,0 2px 7px rgba(16,24,40,.06))}
.ca-api-card-heading,.ca-api-history-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.ca-api-card-heading h3,.ca-api-history-head h3{font-size:16px;font-weight:650;color:var(--text,#101828);margin:0 0 8px}
.ca-api-card-heading p,.ca-api-history-desc{font-size:14px;line-height:1.5;color:var(--text-muted,#475467);margin:0}
.ca-api-learn-more{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;color:var(--brand-ink,var(--brand,#2456e6));font-size:13px;font-weight:600;text-decoration:none}
.ca-api-learn-more svg{width:14px;height:14px}
.ca-api-usage-line{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:28px 0 10px;color:var(--text,#101828);font-size:15px}
.ca-api-usage-line strong{font-weight:700}
.ca-api-progress{height:16px;width:100%;overflow:hidden;background:var(--surface-3,#e9eaec);border-radius:999px}
.ca-api-progress span{display:block;height:100%;background:var(--brand-ink,var(--brand,#2456e6));border-radius:inherit}
.ca-api-reset-note{font-size:13.5px;color:var(--text-muted,#667085);margin:18px 0 0}
.ca-api-history-head{align-items:center;margin-bottom:24px}
.ca-api-history-head h3{margin:0}
.ca-api-refresh{border:1px solid var(--border-strong,#98a2b3);background:var(--surface,#fff);color:var(--text,#101828);border-radius:999px;padding:8px 18px;font:inherit;font-size:13px;cursor:pointer;min-height:36px}
.ca-api-refresh:hover{background:var(--surface-hover,#f2f4f7)}
.ca-api-app-switch{display:inline-flex;border:1px solid var(--border-strong,#98a2b3);border-radius:999px;overflow:hidden;margin-bottom:18px}
.ca-api-app-switch button{min-width:104px;border:0;border-right:1px solid var(--border-strong,#98a2b3);padding:10px 18px;background:var(--surface,#fff);color:var(--text,#101828);font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.ca-api-app-switch button:last-child{border-right:0}
.ca-api-app-switch button.is-active{background:var(--surface-3,#eef0f2);box-shadow:inset 0 0 0 1px var(--border-strong,#98a2b3)}
.ca-api-history-desc{margin-bottom:18px}
.ca-api-date-picker{margin:0 0 24px!important;max-width:max-content;position:relative;z-index:5}
.ca-api-date-picker .seq-dp__inputs{display:flex;align-items:center;gap:10px}
.ca-api-date-picker .seq-dp__input{min-width:138px}
.ca-api-legend-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 14px;min-height:22px}
.ca-api-legend{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-width:0}
.ca-api-legend-item{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;color:var(--text,#101828);font-size:12px;line-height:1.4}
.ca-api-legend-item i{display:inline-block;flex:none;width:10px;height:10px;border-radius:50%;background:var(--legend-color)}
.ca-api-legend-page{flex:none;border:0;background:transparent;color:var(--text-muted,#475467);padding:3px 0;font:inherit;font-size:12px;cursor:pointer;white-space:nowrap}
.ca-api-chart-label{font-size:12.5px;color:var(--text,#101828);margin:0 0 6px 2px}
.ca-api-chart-wrap{height:330px;width:100%;position:relative}
.ca-api-chart-wrap canvas{display:block;width:100%!important;height:100%!important}
.ca-api-chart-x-label{text-align:center;color:var(--text,#101828);font-size:12px;margin-top:8px}
@media(max-width:767px){.ca-api-current-card,.ca-api-history-card{padding:16px}.ca-api-card-heading{gap:10px}.ca-api-card-heading p{max-width:100%}.ca-api-history-head{margin-bottom:18px}.ca-api-legend-row{align-items:flex-start}.ca-api-legend{gap:8px}.ca-api-chart-wrap{height:260px}.ca-api-date-picker{max-width:100%}.ca-api-date-picker .seq-dp__inputs{flex-wrap:wrap}.ca-api-date-picker .seq-dp__input{min-width:130px}.ca-api-usage-line{margin-top:22px}}


/* ==========================================================================
   APPROVED APPS + NOTIFICATIONS — additive; preserve existing styles
   ========================================================================== */
.ca-approved-panel,.ca-notifications-panel{color:var(--text,#101828)}
.ca-approved-heading{margin:0 0 18px}
.ca-approved-heading h2,.ca-notifications-heading h2{margin:0 0 3px;font-size:21px;line-height:1.35;font-weight:650;color:var(--text,#101828)}
.ca-approved-heading p,.ca-notifications-heading p{margin:0;font-size:13.5px;line-height:1.5;color:var(--text,#101828)}
.ca-approved-table-wrap{width:100%;background:var(--surface,#fff);overflow-x:auto}
.ca-approved-table{width:100%;min-width:650px;border-collapse:collapse;background:var(--surface,#fff);color:var(--text,#101828);font-size:13.5px}
.ca-approved-table th{height:48px;padding:12px 24px;text-align:left;font-weight:400;color:var(--text-muted,#475467);white-space:nowrap}
.ca-approved-table th:nth-child(1){width:38%}.ca-approved-table th:nth-child(2){width:25%}.ca-approved-table th:nth-child(3){width:25%}.ca-approved-table th:nth-child(4){width:12%}
.ca-approved-info{display:inline-grid;place-items:center;margin-left:5px;font-size:15px;color:var(--text,#344054);cursor:help}
.ca-approved-empty-cell{height:176px;padding:0!important;text-align:center;vertical-align:middle}
.ca-approved-empty{padding:24px 16px}
.ca-approved-empty h3{margin:0 0 8px;font-size:19px;line-height:1.4;font-weight:700;color:var(--text,#101828)}
.ca-approved-empty p{margin:0 auto;max-width:600px;font-size:14px;line-height:1.65;color:var(--text,#101828)}
.ca-notifications-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 18px}
.ca-notifications-heading>div{min-width:0}
.ca-notifications-heading p{max-width:1050px}
.ca-notifications-create{flex:none;border-radius:999px!important;min-height:38px;padding:8px 18px!important}
.ca-notifications-create:disabled{opacity:.58;cursor:not-allowed}
.ca-notifications-table-wrap{overflow:hidden;background:var(--surface,#fff);border:1px solid var(--border,#d0d5dd);border-radius:var(--radius-lg,16px);box-shadow:var(--shadow-sm,0 2px 7px rgba(16,24,40,.06))}
.ca-notifications-table{width:100%;border-collapse:collapse;table-layout:fixed;color:var(--text,#101828);font-size:13.5px}
.ca-notifications-table thead th{height:44px;padding:10px 24px;text-align:left;font-weight:400;white-space:nowrap;color:var(--text-muted,#475467);border-bottom:1px solid var(--border-strong,#d0d5dd)}
.ca-notifications-table th:nth-child(1){width:44%}.ca-notifications-table th:nth-child(2){width:13%}.ca-notifications-table th:nth-child(3){width:13%}.ca-notifications-table th:nth-child(4){width:13%}.ca-notifications-table th:nth-child(5){width:17%}
.ca-notifications-error{min-height:315px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:22px 16px 28px;text-align:center}
.ca-notifications-error-art{display:block;width:210px;height:170px;max-width:100%;margin:0 auto 12px}
.ca-notifications-error p{margin:0;color:var(--text,#101828);font-size:13.5px;line-height:1.6}
@media(max-width:767px){.ca-approved-heading h2,.ca-notifications-heading h2{font-size:19px}.ca-approved-heading p,.ca-notifications-heading p{font-size:13px}.ca-approved-empty-cell{height:160px}.ca-approved-empty p{font-size:13px}.ca-approved-desktop-break{display:none}.ca-notifications-heading{align-items:flex-start;flex-direction:column;gap:12px}.ca-notifications-table{min-width:760px}.ca-notifications-table-wrap{overflow-x:auto}.ca-notifications-error{min-height:260px}.ca-notifications-error-art{width:180px;height:145px}}


/* ==========================================================================
   Design 24 Nov (design-check-24-nov/assets/css/settings-connected-apps.css): users' apps,
   approved apps, admin drawer, notifications wizard, app owner. Copied as is, except the
   page-wide scroll lock (it would apply to every drawer of the app) and shared utility
   classes, scoped to .ca-scope.
   ========================================================================== */
/* User Installed Apps Table Column Widths */
#user-installed-apps-table .col-app { width: 50%; }
#user-installed-apps-table .col-connections { width: 30%; }
#user-installed-apps-table .col-actions { width: 20%; }

/* Approved Apps Table Column Widths */
#approved-apps-table .col-name { width: 30%; }
#approved-apps-table .col-access { width: 14%; }
#approved-apps-table .col-installed { width: 14%; }
#approved-apps-table .col-perms { width: 22%; }
#approved-apps-table .col-approved { width: 15%; }
#approved-apps-table .col-actions { width: 15%; }

/* Notifications Table Column Widths */
.ca-notifications-table .col-notif { width: 28%; }
.ca-notifications-table .col-type { width: 18%; }
.ca-notifications-table .col-apps { width: 18%; }
.ca-notifications-table .col-assigned { width: 22%; }
.ca-notifications-table .col-freq { width: 14%; }
.ca-notifications-table .col-actions { width: 10%; }

/* Drawer Table Column Widths */
.ca-connections-table .col-user { width: 55%; }
.ca-connections-table .col-user-50 { width: 50%; }
.ca-connections-table .col-date { width: 30%; }
.ca-connections-table .col-date-32 { width: 32%; }
.ca-connections-table .col-action { width: 15%; }
.ca-connections-table .col-action-18 { width: 18%; }


/* User-installed Apps Section */
.ca-user-apps-section {
  margin-top: 24px;
}
#user-installed-apps-table th {
  background: var(--surface-2);
  font-weight: 500;
  font-size: 13px;
  color: var(--text-muted, #475467);
  padding: 12px 18px;
}
#user-installed-apps-table td {
  padding: 12px 18px;
  vertical-align: middle;
}

/* Manage App Owner Modal */
.ca-manage-owner-modal {
  width: 480px;
  max-width: 95vw;
  border-radius: var(--radius-md, 12px);
  padding: 0;
  border: none;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  overflow: visible;
}

.ca-manage-owner-modal form,
.ca-manage-owner-modal .set-modal__body {
  overflow: visible;
}

.ca-manage-owner-modal .custom-select__dropdown {
  max-height: 220px;
  overflow-y: auto;
  z-index: 1050;
}

/* Drawer container normalization to ensure full height and smooth scroll */
.ca-drawer-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  min-height: 0;
  overflow: hidden;
}
.ca-drawer-wrap .set-modal__head {
  flex-shrink: 0;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border, #e2e8f0);
}
.ca-drawer-wrap .set-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 24px;
}
.ca-drawer-wrap .set-modal__foot {
  flex-shrink: 0;
  padding: 16px 24px;
  border-top: 1px solid var(--border, #e2e8f0);
}

/* Connections Drawer */
.ca-connections-drawer {
  width: 560px;
  max-width: 100vw;
}
.ca-connections-table-card {
  border: 1px solid var(--border, #d0d5dd);
  border-radius: 8px;
  overflow: hidden;
}

/* Marketplace Quick View Modal */
.ca-marketplace-modal {
  width: 820px;
  max-width: 95vw;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  border: none;
}
.ca-marketplace-modal__banner {
  background: #ecfdf5;
  border-bottom: 1px solid #a7f3d0;
  padding: 10px 20px;
  color: #065f46;
  font-size: 13px;
}
.ca-mp-overview-card {
  border: 1px solid var(--border, #e2e8f0);
  background: #f8fafc;
  border-radius: 8px;
}

/* Approved Apps Section */
.ca-approved-panel {
  color: var(--text, #101828);
}
.ca-approved-table-card {
  border: 1px solid var(--border, #d0d5dd);
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
}
.ca-approved-table {
  width: 100%;
  border-collapse: collapse;
}
.ca-approved-table th {
  padding: 12px 18px;
  font-weight: 500;
  font-size: 13px;
  color: var(--text-muted, #475467);
  border-bottom: 1px solid var(--border, #d0d5dd);
}
.ca-approved-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border, #e2e8f0);
  vertical-align: middle;
}
.ca-approved-info {
  display: inline-grid;
  place-items: center;
  margin-left: 4px;
  font-size: 14px;
  color: var(--text-muted, #64748b);
  cursor: help;
}

/* Approve Apps Modal */
.ca-approve-modal {
  width: min(880px, calc(100vw - 32px));
  max-width: 95vw;
  border-radius: var(--radius-lg, 12px);
  padding: 0;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: var(--surface);
}

.ca-approve-modal .ca-all-rec-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

/* Card sizes and utilities matching data-integration.php */
.ca-scope .iconSize-48 {
  width: 48px !important;
  height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  object-fit: contain;
  flex-shrink: 0;
}
.ca-scope .iconSize-40 {
  width: 40px !important;
  height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  object-fit: contain;
  flex-shrink: 0;
}
.ca-scope .iconSize-36 {
  width: 36px !important;
  height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  object-fit: contain;
  flex-shrink: 0;
}

.ca-rec-certified-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand, #2456e6);
  z-index: 2;
}

.ca-all-rec-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 48px;
  width: 48px;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.ca-all-rec-logo img {
  width: 48px !important;
  height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  object-fit: contain;
  display: block;
}

/* Explore / Approve modal grid matching screenshot & data-integration.php (3 columns) */
.ca-all-rec-modal {
  width: min(1000px, calc(100vw - 32px)) !important;
  max-height: 88vh !important;
  background: var(--surface, #ffffff) !important;
  border-radius: 16px !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 24px 70px rgba(16, 24, 40, 0.28) !important;
  overflow: hidden !important;
}
.ca-all-rec-modal .ca-all-rec-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
  padding: 16px 24px 24px !important;
  overflow-y: auto !important;
  max-height: calc(88vh - 140px) !important;
}
.ca-all-rec-modal .ca-all-rec-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  min-height: 250px;
  padding: 22px 24px;
  border: 1px solid var(--border-strong, #d0d5dd);
  border-radius: 16px;
  background: var(--surface, #fff);
  box-shadow: var(--shadow-sm, 0 2px 6px rgba(16, 24, 40, .06));
  cursor: pointer;
  box-sizing: border-box;
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ca-all-rec-modal .ca-all-rec-card:hover {
  border-color: var(--brand, #2456e6);
  box-shadow: var(--shadow-md, 0 4px 12px rgba(16, 24, 40, .1));
}
.ca-confirm-modal {
  width: min(540px, calc(100vw - 32px)) !important;
}
.ca-scope .di-reviews-search-wrap {
  max-width: 320px;
  height: 36px;
}
.ca-techstack-carousel .ca-all-rec-card {
  height: 100%;
  min-height: 260px;
}
@media (max-width: 900px) {
  .ca-all-rec-modal .ca-all-rec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 600px) {
  .ca-all-rec-modal .ca-all-rec-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

.ca-approve-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  max-height: 480px;
  overflow-y: auto;
  padding: 16px 20px;
}

.ca-approve-card {
  position: relative;
  padding: 18px 20px;
  border: 1px solid var(--border-strong, #cbd5e1);
  border-radius: var(--radius-md, 10px);
  display: flex;
  flex-direction: column;
  background: var(--surface, #ffffff);
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(16, 24, 40, 0.05));
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ca-approve-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md, 0 6px 16px rgba(16, 24, 40, 0.08));
  border-color: var(--brand, #2456e6);
}

.ca-approve-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.ca-approve-card__logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm, 8px);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.ca-approve-card__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text, #101828);
  line-height: 1.3;
}

.ca-approve-card__meta {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--text-muted, #475467);
}

.ca-approve-card .ca-rec-certified-badge {
  position: absolute;
  top: 14px;
  right: 14px;
}

.ca-approve-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted, #475467);
  margin-bottom: 14px;
  min-height: 38px;
}

.ca-marketplace-banner {
  background: var(--surface-2, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius-md, 10px);
}


/* Admin Settings Drawer */
dialog.set-modal--drawer.ca-admin-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(720px, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  padding: 0;
  border: none;
  background: var(--surface, #ffffff);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
}
.ca-admin-drawer .ca-drawer-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.ca-admin-drawer .set-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}
.ca-admin-tabs {
  border-bottom: 1px solid var(--border, #e2e8f0);
  padding: 10px 20px 0;
  display: flex;
  align-items: center;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.ca-admin-tabs::-webkit-scrollbar {
  display: none;
}
.ca-admin-tabs .set-tab {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Data Permissions Panel */
.ca-data-perms-box {
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius-lg, 8px);
  background: var(--surface, #ffffff);
  overflow: hidden;
}
.ca-data-perm-row {
  border-bottom: 1px solid var(--border, #e2e8f0);
  transition: background-color 0.15s ease;
}
.ca-data-perm-row:last-child {
  border-bottom: none;
}
.ca-data-perm-row:hover {
  background-color: var(--surface-2, #f8fafc);
}
.ca-data-perm-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2, #f1f5f9);
  border-radius: 6px;
  color: var(--text-subtle, #64748b);
}
.ca-perm-badge {
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
}
.ca-perm-scope-code {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  color: var(--text-subtle, #64748b);
  background: transparent;
}

@media (max-width: 768px) {
  dialog.set-modal--drawer.ca-admin-drawer {
    width: 100vw;
  }
  .ca-admin-drawer .set-modal__body {
    padding: 16px;
  }
  .ca-admin-tabs {
    padding: 10px 16px 0;
  }
}
.ca-perm-radios {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ca-perm-radios-box {
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius-lg, 8px);
  background: var(--surface, #ffffff);
}
.ca-perm-radio-row {
  cursor: pointer;
  user-select: none;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background-color .15s ease;
}
.ca-perm-radio-row:hover {
  background-color: var(--surface-2, #f8fafc);
}
.ca-perm-radio-row input[type="radio"] {
  cursor: pointer;
  accent-color: var(--brand, #2456e6);
}
.ca-perm-radio-row .ca-info-icon {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 4px;
  cursor: help;
}

/* Default Users Section (Shown when 'Admins' is selected, matching screenshot) */
.ca-default-users-search-wrap {
  position: relative;
  width: 250px;
  max-width: 100%;
}
.ca-default-users-search-input {
  width: 100%;
  height: 32px;
  font-size: 13px;
  padding-left: 10px;
  padding-right: 32px;
  border: 1px solid var(--border, #d0d5dd);
  border-radius: 6px;
  background: var(--surface, #ffffff);
  color: var(--text, #101828);
}
.ca-default-users-search-input:focus {
  border-color: var(--brand, #2456e6);
  outline: none;
}
.ca-default-users-search-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-subtle, #94a3b8);
  display: inline-flex;
  align-items: center;
}
.ca-default-users-card {
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius-lg, 8px);
  background: var(--surface, #ffffff);
  max-height: 250px;
  overflow-y: auto;
  padding: 0;
}
.ca-default-user-row {
  border-bottom: 1px solid var(--border, #e2e8f0);
  transition: background-color 0.15s ease;
}
.ca-default-user-row:last-child {
  border-bottom: none;
}
.ca-default-user-row:hover {
  background-color: var(--surface-2, #f8fafc);
}
.ca-default-user-edit-btn {
  text-decoration: none;
  line-height: 1.2;
}

.ca-perm-radio-card {
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.ca-perm-radio-card.is-selected {
  border-color: var(--brand, #2456e6);
  background: var(--brand-soft, #edf2ff);
}
.ca-perm-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border, #d0d5dd);
  border-radius: 6px;
  padding: 6px 10px;
  background: #fff;
  width: 260px;
}
.ca-perm-search input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 13px;
}
.ca-perm-user-list, .ca-perm-teams-list {
  max-height: 280px;
  overflow-y: auto;
}
.ca-perm-user-row, .ca-perm-team-row {
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 6px;
  background: #fff;
}
.ca-advanced-revoke-box {
  border: 1px solid var(--danger-border, #fecaca);
  background: var(--danger-bg, #fef2f2);
  border-radius: 8px;
}

/* Unsaved Changes Confirmation Modal */
.ca-unsaved-modal {
  width: 440px;
  border-radius: 12px;
  padding: 0;
  border: none;
}

/* Notifications Section & Wizard */
.ca-notifications-panel {
  color: var(--text, #101828);
}
.ca-notifications-create {
  flex: none;
  border-radius: 6px !important;
  min-height: 36px;
  padding: 7px 16px !important;
  font-weight: 600;
}
.ca-notifications-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border, #d0d5dd);
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
}
.ca-notifications-table th {
  background: var(--surface-2);
  padding: 12px 18px;
  font-weight: 500;
  font-size: 13px;
  color: var(--text-muted, #475467);
  border-bottom: 1px solid var(--border, #d0d5dd);
}
.ca-notifications-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border, #e2e8f0);
  vertical-align: middle;
}
.ca-notifications-empty {
  text-align: center;
  padding: 48px 24px;
}
.ca-notifications-empty-art {
  margin-bottom: 8px;
  display: inline-grid;
  place-items: center;
}

/* Notification Wizard Drawer (Sidedrawer layout) */
dialog.set-modal--drawer.ca-notification-drawer,
.ca-notification-modal {
  width: min(640px, 100vw);
  max-width: 100vw;
  padding: 0;
  border: none;
}
.ca-notification-drawer .ca-drawer-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.ca-notification-drawer .custom-select__dropdown {
  max-height: 220px;
  overflow-y: auto;
  z-index: 1050;
}
/* Wizard Stepper (matching Screenshots 1 & 2) */
.ca-wizard-stepper-wrap {
  position: relative;
  padding: 16px 24px 20px;
  border-bottom: 1px solid var(--border, #e2e8f0);
  background: var(--surface, #ffffff);
  flex-shrink: 0;
}
.ca-wizard-stepper-track {
  position: absolute;
  top: 27px;
  left: 60px;
  right: 60px;
  height: 2px;
  background: var(--border-strong, #333333);
  z-index: 0;
}
.ca-wizard-stepper-progress {
  height: 100%;
  width: 0%;
  background: var(--brand, #2456e6);
  transition: width 0.25s ease;
}
.ca-wizard-steps {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 0;
  padding: 0;
  z-index: 1;
}
.ca-wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted, #475569);
  font-size: 13px;
  font-weight: 500;
  min-width: 80px;
}
.ca-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface, #ffffff);
  border: 2px solid var(--border-strong, #333333);
  color: transparent;
  transition: all 0.2s ease;
}
.ca-step-check-icon {
  display: none;
  width: 12px;
  height: 12px;
}
.ca-wizard-step.is-active {
  color: var(--text, #0f172a);
  font-weight: 700;
}
.ca-wizard-step.is-active .ca-step-num {
  border-color: var(--brand, #2456e6);
  background: var(--surface, #ffffff);
}
.ca-wizard-step.is-complete {
  color: var(--text, #0f172a);
}
.ca-wizard-step.is-complete .ca-step-num {
  background: var(--brand, #2456e6);
  border-color: var(--brand, #2456e6);
  color: #ffffff;
}
.ca-wizard-step.is-complete .ca-step-check-icon {
  display: block;
}

/* Choose Apps Table (matching Screenshot 2) */
.ca-choose-apps-wrap {
  display: flex;
  flex-direction: column;
}
.ca-choose-apps-desc {
  font-size: 13.5px;
  color: var(--text, #0f172a);
  margin-bottom: 14px;
}
.ca-choose-apps-table {
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface, #ffffff);
}
.ca-choose-apps-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--surface, #ffffff);
  border-bottom: 2px solid var(--border-strong, #333333);
  font-size: 13px;
  font-weight: 600;
  color: var(--text, #0f172a);
  position: sticky;
  top: 0;
  z-index: 2;
}
.ca-choose-apps-list {
  max-height: 400px;
  overflow-y: auto;
}
.ca-choose-app-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border, #e2e8f0);
  cursor: pointer;
  transition: background-color 0.15s ease;
  user-select: none;
  margin: 0;
}
.ca-choose-app-row:last-child {
  border-bottom: none;
}
.ca-choose-app-row:hover {
  background-color: var(--surface-hover, #f8fafc);
}
.ca-choose-app-row.is-selected {
  background-color: var(--surface-hover, #f1f5f9);
}
.ca-choose-app-logo {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: inline-grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.ca-choose-app-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text, #0f172a);
}
.ca-app-logo--teal {
  background: var(--teal, #0e7c86);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
}

/* Segmented tab toggle matching Screenshot 2 */
.ca-notif-segmented-group {
  display: inline-flex;
  align-items: center;
  background: var(--surface-2, #f1f5f9);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-md, 8px);
  padding: 3px;
  gap: 2px;
}
.ca-notif-segment-btn {
  border: 1px solid transparent;
  background: transparent;
  padding: 6px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted, #64748b);
  border-radius: calc(var(--radius-md, 8px) - 2px);
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.3;
}
.ca-notif-segment-btn:hover {
  color: var(--text-color, #1e293b);
}
.ca-notif-segment-btn.active,
.ca-notif-segment-btn.is-active {
  background: var(--surface, #ffffff);
  color: var(--text-color, #0f172a);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border-color: var(--border-color, #e2e8f0);
}

/* Search input matching Screenshot 2 */
.ca-notif-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.ca-notif-search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted, #64748b);
  display: flex;
  align-items: center;
  pointer-events: none;
}
.ca-notif-search-input {
  width: 100%;
  padding-left: 36px !important;
  border-radius: 6px;
  border: 1px solid var(--border-color, #d0d5dd);
  background: var(--surface, #ffffff);
  font-size: 13px;
  height: 38px;
}
.ca-notif-search-input:focus {
  border-color: var(--brand, #2456e6);
  outline: none;
  box-shadow: 0 0 0 2px var(--brand-focus, rgba(36, 86, 230, 0.15));
}

/* Header and checklist matching Screenshot 2 */
.ca-notif-header-row {
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-color, #1e293b);
  border-bottom: 1px solid var(--border-color, #e2e8f0);
}
.ca-notif-checklist {
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 6px;
  padding: 4px 0;
  background: var(--surface, #ffffff);
}
.ca-notif-check-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  margin-bottom: 0;
  cursor: pointer;
  transition: background 0.12s ease;
}
.ca-notif-check-row:hover {
  background: var(--surface-2, #f8fafc);
}
.ca-notif-user-info {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
  line-height: 1.4;
}
.ca-notif-user-name {
  font-weight: 600;
  color: var(--text-color, #0f172a);
}
.ca-notif-user-email {
  color: var(--text-muted, #64748b);
  font-size: 12px;
}

/* Notification Drawer footer matching Screenshot 2 */
.ca-notif-drawer-foot {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 16px 24px;
  background: var(--surface, #ffffff);
  border-top: 1px solid var(--border-color, #e2e8f0);
}

/* Notification Table Action Button & Dropdown matching user reference */
.ca-notif-actions-dropdown {
  position: relative;
  display: inline-block;
}


.ca-notif-actions-dropdown .dropdown__menu {
  min-width: 175px;
  padding: 6px 0;
  border-radius: 10px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  background: var(--surface, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  right: 0 !important;
  left: auto !important;
  top: calc(100% + 4px);
}

.ca-notif-actions-dropdown .dropdown__item {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-color, #1e293b);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.12s ease;
}

.ca-notif-actions-dropdown .dropdown__item:hover {
  background-color: var(--surface-2, #f8fafc);
}

.ca-notif-actions-dropdown .dropdown__item.text-danger,
.ca-notif-actions-dropdown .dropdown__item.ca-notif-delete-item {
  color: #df1c41 !important;
}

.ca-notif-actions-dropdown .dropdown__item.text-danger:hover,
.ca-notif-actions-dropdown .dropdown__item.ca-notif-delete-item:hover {
  background-color: #fff1f2 !important;
  color: #be123c !important;
}

.ca-link-btn {
  color: var(--teal) !important;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.ca-link-btn:hover {
  text-decoration: underline;
  color: #005a51 !important;
}

/* Delete App Notification Modal (matching Screenshot 2) */
dialog.set-modal.ca-delete-notif-modal {
  width: min(520px, 92vw);
  max-width: 520px;
  border-radius: 16px;
  border: none;
  background: var(--surface, #ffffff);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  padding: 32px 36px 36px;
  margin: auto;
  box-sizing: border-box;
}

dialog.set-modal.ca-delete-notif-modal::backdrop {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}

.ca-delete-notif-modal-content {
  display: flex;
  flex-direction: column;
}

.ca-delete-notif-title {
  font-size: 26px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--text-color, #1e293b);
  margin: 0 0 20px 0;
}

.ca-delete-notif-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted, #475569);
  margin: 0 0 28px 0;
}

.ca-delete-notif-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}


/* Admin User Uninstall Modal (matching user reference screenshot) */
dialog.set-modal.ca-admin-user-uninstall-modal {
  width: min(480px, 92vw);
  max-width: 480px;
  border-radius: 16px;
  border: none;
  background: var(--surface, #ffffff);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.08);
  padding: 0;
  margin: auto;
  box-sizing: border-box;
  overflow: hidden;
}

dialog.set-modal.ca-admin-user-uninstall-modal::backdrop {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}

.ca-admin-user-uninstall-modal .set-modal__head {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.ca-admin-user-uninstall-modal .set-modal__title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-color, #1e293b);
  margin: 0;
}

.ca-admin-user-uninstall-modal .set-modal__body {
  padding: 24px;
}

@media(max-width:767px) {
  .ca-approved-heading h2, .ca-notifications-heading h2 { font-size: 19px; }
  .ca-notifications-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .ca-marketplace-modal__body { flex-direction: column; }
  .ca-mp-col-left { width: 100% !important; border-right: none !important; border-bottom: 1px solid var(--border); }
  .ca-wizard-steps { gap: 16px; }
}

/* Back button of the app details modal (design data-integration.css). */
.ca-scope .ca-rec-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--border, #d0d5dd);
  border-radius: 8px;
  background: var(--surface, #fff);
  color: var(--text, #101828);
  cursor: pointer;
  transition: all 0.15s ease;
}

.ca-scope .ca-rec-back-btn:hover {
  background: var(--surface-hover, #f2f4f7);
  border-color: var(--border-hover, #98a2b3);
}
