/* DLP fidelity fixes per tenant capture 2026-08-08 (all new classes prefixed dlp-) */

/* Shared Fluent control treatment for every wizard and dialog. */
.purview-wizard .wizard-footer button,
.purview-wizard .rule-editor > footer button,
.sit-pattern-dialog > footer button,
.ip-picker-actions button,
.dialog-footer button,
.primary-button,
.secondary-button,
.protection-choice-dialog footer button {
  border-radius: 4px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}
.purview-wizard .wizard-footer button.primary,
.purview-wizard .rule-editor > footer button.primary,
.sit-pattern-dialog > footer button.primary,
.ip-picker-actions button.primary,
.dialog-footer .primary-button,
.primary-button { font-weight: 600; }
.purview-wizard .wizard-footer .wizard-cancel { margin-left: auto; }
.purview-wizard .wizard-footer button:not(.primary):not(:disabled):hover,
.purview-wizard .rule-editor > footer button:not(.primary):not(:disabled):hover,
.sit-pattern-dialog > footer button:not(.primary):not(:disabled):hover,
.ip-picker-actions button:not(.primary):not(:disabled):hover,
.dialog-footer button:not(.primary-button):not(:disabled):hover,
.secondary-button:not(:disabled):hover {
  border-color: #8a8886;
  background: #f5f5f5;
}
.purview-wizard .wizard-footer button.primary:hover,
.purview-wizard .rule-editor > footer button.primary:hover,
.sit-pattern-dialog > footer button.primary:hover,
.ip-picker-actions button.primary:hover,
.dialog-footer .primary-button:hover,
.primary-button:hover {
  border-color: #115ea3;
  background: #115ea3;
}
.purview-wizard button:focus-visible,
.template-dialog button:focus-visible,
.protection-choice-dialog button:focus-visible,
.primary-button:focus-visible,
.secondary-button:focus-visible {
  outline: 2px solid #242424;
  outline-offset: 2px;
}
.wizard-field input,
.wizard-field textarea,
.wizard-field select,
.condition-builder input,
.condition-builder select,
.dlp-region-picker select,
.ip-validator-search,
.ip-function-picker-open input[type="search"] {
  border-color: #8a8886;
  border-radius: 2px;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.wizard-field input:hover,
.wizard-field textarea:hover,
.wizard-field select:hover,
.condition-builder input:hover,
.condition-builder select:hover {
  border-color: #323130;
}
.wizard-field input:focus,
.wizard-field textarea:focus,
.wizard-field select:focus,
.condition-builder input:focus,
.condition-builder select:focus {
  border-color: #0f6cbd;
  box-shadow: inset 0 -2px 0 #0f6cbd;
}
.radio-card,
.mode-card,
.dlp-template-card,
.template-card,
.template-catalogue-card,
.dsi-template-card,
.dlm-admin-units-row,
.ip-auto-condition,
.condition-builder,
.selected-action {
  border-radius: 4px;
}
.radio-card:hover,
.mode-card:hover,
.dlp-template-card:hover,
.template-catalogue-card:hover,
.dsi-template-card:hover {
  border-color: #0f6cbd;
  background: #f8fbff;
}
.wizard-rail { font-size: 14px; }
.wizard-rail > div { font-size: 14px; }
.wizard-rail > div.nested { font-size: 13px; }
.wizard-content > p { font-size: 14px; }
.wizard-field { font-size: 14px; }

/* Portal wizard canvas: the current Purview editor uses a 450px rail and a
   44px action bar. Create/edit flows share geometry but not their steps. */
.purview-wizard .wizard-layout,
.wizard-layout.label-layout,
.wizard-layout.sit-layout,
.wizard-layout.rule-mode { grid-template-columns: 450px minmax(0, 1fr); }
.purview-wizard .wizard-rail { padding: 42px 48px; }
.purview-wizard .wizard-rail > div { min-height: 60px; grid-template-columns: 20px 1fr; gap: 8px; }
.purview-wizard .wizard-rail > div:not(:last-child)::after { height: 37px; }
.purview-wizard .wizard-main { padding-bottom: 44px; }
.purview-wizard .wizard-content,
.label-wizard-content,
.sit-wizard-content {
  width: min(996px, calc(100% - 96px));
  max-width: none;
  margin-left: 48px;
  padding-top: 42px;
}
.purview-wizard .wizard-footer,
.label-wizard .wizard-footer,
.sit-wizard .wizard-footer,
.purview-wizard .rule-editor > footer {
  left: 450px;
  min-height: 44px;
  padding: 6px 43px;
}
.purview-wizard .wizard-footer button,
.purview-wizard .rule-editor > footer button {
  min-height: 32px;
  padding: 0 12px;
}
.purview-wizard .wizard-footer span { margin-left: 0; }
.purview-wizard .wizard-layout.rule-mode .wizard-rail { padding: 42px 48px; }
.purview-wizard .wizard-layout.rule-mode .rule-editor > footer { left: 450px; }
.purview-wizard .wizard-layout.rule-mode .rule-editor {
  width: calc(100% - 96px);
  margin: 0 48px;
  padding-top: 34px;
}
.purview-wizard .wizard-layout.rule-mode .rule-editor > header h1 { font-size: 24px; }
.purview-wizard .wizard-layout.rule-mode .rule-editor > header p { font-size: 14px; }
.dlp-wizard .wizard-content > h1 { font-size: 32px; line-height: 1.2; }
.dlp-wizard .wizard-content > p { font-size: 16px; line-height: 1.45; }
.label-wizard .wizard-content > h1 { font-size: 24px; }
.label-wizard .wizard-content > p { font-size: 14px; }
.label-wizard .wizard-field input:disabled {
  color: #a19f9d;
  border-color: #d2d0ce;
  background: #faf9f8;
  opacity: 1;
}
.label-wizard .wizard-field > span svg { width: 15px; height: 15px; vertical-align: text-bottom; }

/* DLP protection-choice dialog: two-column tenant layout. */
.dlp-protection-choice-dialog {
  width: min(870px, calc(100vw - 64px));
  padding: 22px 24px 24px;
  border-radius: 6px;
}
.dlp-protection-choice-dialog h1 { font-size: 20px; }
.dlp-protection-choice-dialog > p { margin: 0 0 22px; line-height: 1.45; }
.dlp-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dlp-protection-choice-dialog .choice-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-color: #d1d1d1;
  border-radius: 6px;
}
.dlp-protection-choice-dialog .choice-card > svg {
  width: 64px;
  height: 64px;
  margin: 48px auto 42px;
}
.dlp-protection-choice-dialog .choice-card > span {
  flex: 1;
  width: 100%;
  gap: 10px;
  padding: 18px 24px 22px;
  border-top: 1px solid #f0f0f0;
}
.dlp-protection-choice-dialog .choice-card strong { font-size: 14px; }
.dlp-protection-choice-dialog .choice-card small { font-size: 12px; }
.dlp-choice-baseline {
  align-self: flex-start;
  margin-top: auto;
  padding: 3px 8px;
  border-radius: 10px;
  color: #0f548c;
  background: #eef6fc;
  font-size: 10px;
  font-weight: 600;
}
.dlp-choice-notice { margin-bottom: 0; }

@media (max-width: 820px) {
  .dlp-choice-grid { grid-template-columns: 1fr; }
  .dlp-protection-choice-dialog .choice-card { min-height: 190px; }
  .dlp-protection-choice-dialog .choice-card > svg { margin: 24px auto; }
}

/* Merged analytics + role banner on the DLP overview */
.dlp-overview-banner { flex-wrap: wrap; margin: 0 0 14px; }
.dlp-overview-banner > span { flex: 1; min-width: 240px; }
.dlp-overview-banner > a { margin-left: auto; }
.dlp-overview-banner .dlp-view-role-groups { min-height: 26px; margin-left: auto; padding: 0 10px; border: 1px solid #0f6cbd; color: #0f6cbd; background: #fff; cursor: pointer; }
.dlp-overview-banner .dlp-view-role-groups + button { border: 0; background: transparent; cursor: pointer; }

/* Task 2 button on "Explore DLP analytics" (long label wraps) */
.dlp-task-button { padding: 6px 10px; max-width: 420px; white-space: normal; text-align: left; line-height: 1.3; }

/* DLP resources action buttons */
.dlp-resource-card > svg:first-child { align-self: flex-start; }
.dlp-resource-actions { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.dlp-resource-actions button { min-height: 32px; display: inline-flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid #ccc; background: #fff; cursor: pointer; text-align: left; }
.dlp-resource-actions button svg { color: #176bb4; }

/* "Limited" triage chip in the policies grid */
.dlp-triage-chip { display: inline-block; border: 1px solid #0f6cbd; border-radius: 10px; padding: 1px 9px; color: #0f6cbd; background: #eef6fc; font-size: 10px; }

/* Wizard rail header label above steps */
.dlp-rail-header { display: block; margin-bottom: 10px; font-size: 11px; font-weight: 600; color: #242424; }

/* Protection choice dialog footer link */
.dlp-choice-link { margin-left: auto; color: #0f6cbd; font-size: 11px; }

/* Template catalogue step */
.dlp-template-guidance {
  min-height: 48px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 22px;
  padding: 10px 12px;
  background: #f5f5f5;
  font-size: 12px;
  line-height: 1.4;
}
.dlp-template-guidance > svg { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 1px; }
.dlp-template-guidance a { margin-left: 4px; }
.dlp-template-toolbar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 8px; }
.dlp-template-search { margin-bottom: 0; }
.dlp-region-picker select { width: 100%; height: 32px; border: 1px solid #555; padding: 0 7px; background: #fff; }
.dlp-template-catalogue {
  min-height: 326px;
  display: grid;
  grid-template-columns: 298px minmax(0, 1fr);
  margin-top: 20px;
  border-top: 1px solid #d2d0ce;
}
.dlp-template-categories { padding: 30px 24px 24px; border-right: 1px solid #d2d0ce; }
.dlp-template-categories h2 { margin: 0 0 22px; font-size: 16px; }
.dlp-template-categories button {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-bottom: 1px solid #e1dfdd;
  border-radius: 0;
  color: #605e5c;
  background: transparent;
  cursor: pointer;
  text-align: center;
  font-size: 14px;
  font-weight: 400;
}
.dlp-template-categories button:hover,
.dlp-template-categories button.active { color: #242424; background: #f5f5f5; }
.dlp-template-results { display: grid; align-content: start; gap: 10px; padding: 30px 24px; }
.dlp-template-results:empty::after { content: ''; min-height: 180px; }
.dlp-template-results .dlp-template-card {
  width: 100%;
  min-height: 82px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 42px 14px 14px;
  border: 1px solid #d2d0ce;
  border-radius: 2px;
  background: #fff;
  text-align: left;
}
.dlp-template-results .dlp-template-card > svg:last-child { top: 14px; right: 14px; }
.dlp-template-links { display: flex; flex-wrap: wrap; gap: 18px; margin: 4px 0 0; font-size: 11px; }
.dlp-template-links a { color: #0f6cbd; }
.dlp-template-tabs { display: flex; gap: 4px; margin: 16px 0; border-bottom: 1px solid #ddd; }
.dlp-template-tab { min-height: 34px; padding: 0 12px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #333; cursor: pointer; }
.dlp-template-tab.active { border-bottom-color: #0f6cbd; color: #0f6cbd; font-weight: 600; }
.dlp-template-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dlp-template-card { position: relative; min-height: 104px; display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid #ccc; background: #fff; cursor: pointer; text-align: left; }
.dlp-template-card:hover { border-color: #0f6cbd; }
.dlp-template-card.selected { border: 2px solid #0f6cbd; padding: 13px; }
.dlp-template-card > svg:first-child { flex-shrink: 0; margin-top: 2px; color: #176bb4; }
.dlp-template-card > svg:last-child { position: absolute; top: 9px; right: 9px; color: #0f6cbd; }
.dlp-template-card span { display: flex; flex-direction: column; gap: 7px; }
.dlp-template-card small { color: #555; line-height: 1.45; }
.dlp-custom-card { border-style: dashed; }

/* Admin units step link */
.dlp-inline-link { display: inline-block; margin-top: 10px; color: #0f6cbd; font-size: 11px; }

/* Locations step actions */
.dlp-locations-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 16px; font-size: 11px; }
.dlp-locations-actions button { min-height: 30px; padding: 0 10px; border: 1px solid #0f6cbd; color: #0f6cbd; background: #fff; cursor: pointer; }
.dlp-locations-actions a { color: #0f6cbd; }

/* Advanced DLP rules Name/Status list */
.dlp-rule-count { margin-left: 10px; color: #666; font-size: 10px; }
.dlp-rule-table { margin-top: 16px; border-top: 1px solid #ddd; font-size: 11px; }
.dlp-rule-row { min-height: 46px; display: grid; grid-template-columns: minmax(0, 1fr) 90px auto; align-items: center; gap: 12px; padding: 8px 6px; border-bottom: 1px solid #ddd; }
.dlp-rule-header { color: #666; font-weight: 600; }
.dlp-rule-name { color: #242424; }
.dlp-rule-status { color: #555; }
.dlp-rule-status.enabled { color: #237b2c; }
.dlp-rule-actions { display: flex; align-items: center; gap: 12px; }
.dlp-rule-actions button { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; color: #0f6cbd; background: transparent; cursor: pointer; }
.dlp-rule-actions button svg { width: 14px; }
/* North7 fixes for Information Protection surfaces (tenant DOM evidence 2026-08-06..08).
   All new class names are prefixed ip-. */

/* -- Sensitivity labels tree grid ---------------------------------------- */

.ip-no-subitems { font-size: 11px; color: #8a8a8a; white-space: nowrap; }

/* -- Sensitivity label / group detail panel ------------------------------ */

.ip-detail-panel { width: min(820px, 94vw); }
.ip-detail-panel-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ip-detail-panel-header h2 { margin: 0; font-size: 24px; font-weight: 600; }
.ip-detail-panel-header .dialog-close { position: static; margin-left: auto; }
.ip-detail-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 18px; padding: 8px 0; border-top: 1px solid #e3e3e3; border-bottom: 1px solid #e3e3e3; }
.ip-detail-toolbar button { min-height: 30px; display: inline-flex; align-items: center; gap: 4px; padding: 0 10px; border: 0; background: transparent; color: #0f6cbd; cursor: pointer; font-size: 11px; }
.ip-detail-toolbar button:hover { background: #eef4fb; }
.ip-detail-toolbar .ip-detail-counter { margin-left: auto; color: #555; font-size: 11px; }
.ip-detail-body { font-size: 11px; }
.ip-detail-section { margin-bottom: 18px; }
.ip-detail-section h3 { margin: 0 0 8px; font-size: 13px; font-weight: 600; }
.ip-detail-field { display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 14px; padding: 9px 0; border-bottom: 1px solid #f0f0f0; }
.ip-detail-field dt { font-weight: 600; color: #333; }
.ip-detail-field dd { margin: 0; color: #444; }
.ip-detail-sub-labels { margin: 0; padding: 0; list-style: none; border: 1px solid #e3e3e3; }
.ip-detail-sub-label { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 10px; border-bottom: 1px solid #e3e3e3; }
.ip-detail-sub-label:last-child { border-bottom: 0; }
.ip-detail-sub-label-actions { display: flex; gap: 4px; }
.ip-detail-sub-label-actions button { min-height: 28px; padding: 0 8px; border: 0; background: transparent; color: #0f6cbd; cursor: pointer; }
.ip-detail-sub-label-actions button:hover { background: #eef4fb; }

/* -- Label wizard access control ---------------------------------------- */

.ip-access-toggles { margin: 18px 0 0; }
.ip-access-toggles .toggle-row { display: flex; align-items: center; gap: 8px; margin: 10px 0; }
.ip-access-toggles .toggle-row span { min-width: 230px; }

/* -- Label wizard auto-labeling rule builder ----------------------------- */

.ip-condition-toolbar { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.ip-condition-toolbar > button { display: inline-flex; align-items: center; gap: 4px; min-height: 30px; border: 0; background: transparent; cursor: pointer; }
.ip-condition-menu-right { left: auto; }
.ip-auto-condition { margin: 12px 0; padding: 12px; border: 1px solid #d9d9d9; background: #fff; }
.ip-auto-condition > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ip-auto-condition > header button { border: 0; background: transparent; color: #8a8a8a; cursor: pointer; }
.ip-auto-condition.nested { margin-left: 26px; background: #fafafa; }

/* -- Sensitive info type pattern editor ---------------------------------- */

.ip-section-label { display: block; margin: 0 0 8px; font-weight: 600; font-size: 11px; }
.ip-keyword-group { margin: 14px 0; padding: 14px; border: 1px solid #e3e3e3; background: #fafafa; }
.ip-chosen-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; padding: 0; list-style: none; }
.ip-chosen-chip { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 10px; border: 1px solid #c7d7e8; background: #eef4fb; color: #0f5483; font-size: 11px; border-radius: 12px; }
.ip-validator-picker, .ip-function-picker-open { margin: 10px 0 0; padding: 12px; border: 1px solid #ccc; background: #fafafa; }
.ip-validator-search, .ip-function-picker-open input[type="search"] { width: 100%; min-height: 32px; padding: 5px 8px; border: 1px solid #777; }
.ip-validator-list, .ip-function-list { max-height: 220px; margin: 10px 0; overflow-y: auto; border: 1px solid #e3e3e3; background: #fff; }
.ip-validator-row { min-height: 30px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border-bottom: 1px solid #f0f0f0; }
.ip-validator-row:last-child { border-bottom: 0; }
.ip-function-row { min-height: 40px; display: flex; align-items: center; gap: 10px; padding: 4px 10px; border-bottom: 1px solid #f0f0f0; }
.ip-function-row:last-child { border-bottom: 0; }
.ip-function-row span { display: flex; flex-direction: column; gap: 2px; }
.ip-function-row small { color: #666; }
.ip-picker-actions { display: flex; justify-content: flex-end; gap: 8px; }
.ip-picker-actions button { min-height: 30px; padding: 0 14px; border: 1px solid #aaa; background: #fff; cursor: pointer; }
.ip-picker-actions button.primary { color: #fff; border-color: #0f6cbd; background: #0f6cbd; }
.ip-pattern-check-radios { display: flex; gap: 18px; margin: 8px 0; padding: 0; border: 0; }
.ip-pattern-check-radios label { display: inline-flex; align-items: center; gap: 6px; }

/* -- Sensitive info types list ------------------------------------------- */

.ip-actions-cell { white-space: nowrap; }
.ip-actions-cell button { min-height: 28px; padding: 0 8px; border: 0; background: transparent; color: #0f6cbd; cursor: pointer; font-size: 11px; }
.ip-actions-cell button:hover { background: #eef4fb; }

/* -- Label publishing policies grid --------------------------------------- */

.ip-row-actions { display: inline-flex; gap: 4px; }
.ip-row-actions button { min-height: 28px; padding: 0 8px; border: 0; background: transparent; color: #0f6cbd; cursor: pointer; font-size: 11px; }
.ip-row-actions button:hover { background: #eef4fb; }
/* DLM fidelity fixes per tenant capture 2026-08-07 (all new classes prefixed dlm-) */

/* Overview: "Most used retention labels" cards with View details */
.dlm-label-card { align-items: flex-start; }
.dlm-view-details { min-height: 26px; align-self: flex-end; margin-left: auto; padding: 0 10px; border: 1px solid #0f6cbd; color: #0f6cbd; background: #fff; cursor: pointer; font-size: 10px; }

/* Overview: resources card with stacked action buttons */
.dlm-resource-card > svg:first-child { align-self: flex-start; }
.dlm-resource-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }
.dlm-resource-actions button { min-height: 30px; padding: 0 10px; border: 1px solid #ccc; background: #fff; cursor: pointer; text-align: left; }

/* Overview: adaptive scopes recommendation card */
.dlm-recommend-card { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding: 18px; border: 1px solid #ddd; }
.dlm-recommend-card svg { color: #176bb4; }
.dlm-recommend-card div { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.dlm-recommend-card div span { color: #555; font-size: 11px; }
.dlm-recommend-card button { flex: none; }

/* List grids: row action menus */
.dlm-row-actions { border: 0; background: transparent; color: #555; cursor: pointer; }
.dlm-row-actions svg { width: 17px; }

/* Policies / label policies role-group permissions banner */
.dlm-permissions-banner { flex-wrap: wrap; margin: 0 0 14px; }
.dlm-permissions-banner > div { flex: 1; min-width: 260px; }
.dlm-permissions-banner > a { color: #0f6cbd; margin-left: auto; }
.role-banner .dlm-banner-close { min-height: 24px; width: 24px; margin-left: 4px; padding: 0; display: grid; place-items: center; color: #555; }

/* Policies billing banner */
.dlm-billing-banner { margin: 0 0 14px; }
.dlm-billing-banner .dlm-banner-action { min-height: 26px; margin-left: 4px; padding: 0 10px; border: 1px solid #a54800; color: #a54800; background: #fff; cursor: pointer; }
.dlm-billing-banner .dlm-banner-close { min-height: 24px; width: 24px; margin-left: 4px; padding: 0; border: 0; background: transparent; cursor: pointer; color: #555; }

/* Wizard: Policy Scope / Admin Units step */
.dlm-sub-heading { margin: 2px 0 12px; font-size: 13px; font-weight: 600; color: #444; }
.dlm-admin-units { display: flex; flex-direction: column; gap: 10px; }
.dlm-admin-units-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #ccc; font-size: 11px; }
.dlm-add-admin-units { align-self: flex-start; }

/* Wizard: adaptive scopes empty state with Add scopes action */
.dlm-scopes-empty { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 6px 14px; }
.dlm-scopes-empty span { color: #555; font-size: 11px; }
/* ---- Insider Risk Management fixes (captured 2026-08-07) ---- */

.irm-overview-section { margin: 24px 0 0; }
.irm-overview-section h2 { margin: 0 0 12px; font-size: 14px; color: #242424; }

.irm-action-list { display: grid; gap: 10px; }

.irm-action-card,
.irm-video-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 14px 16px;
  border: 1px solid #ddd;
  background: #fff;
  text-align: left;
}
.irm-video-card { cursor: pointer; }
.irm-video-card:hover { border-color: #0f6cbd; }
.irm-action-card > svg,
.irm-video-card > svg { flex: 0 0 auto; color: #0f6cbd; }
.irm-action-card div,
.irm-video-card span { display: flex; flex-direction: column; gap: 4px; }
.irm-action-card strong,
.irm-video-card strong { font-size: 12px; }
.irm-action-card p,
.irm-video-card small { margin: 0; color: #666; font-size: 10.5px; line-height: 1.4; }

.irm-section-link { display: inline-block; margin-top: 12px; color: #0f6cbd; font-size: 11px; }

.irm-related-links { display: flex; flex-wrap: wrap; gap: 18px; margin: 0; padding: 0; list-style: none; }
.irm-related-links a { color: #0f6cbd; font-size: 11.5px; }

.irm-guided-setup { display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 14px 16px; border: 1px solid #ddd; }
.irm-guided-setup > svg { flex: 0 0 auto; color: #0f6cbd; }
.irm-guided-setup div { display: flex; flex: 1; flex-direction: column; gap: 4px; }
.irm-guided-setup strong { font-size: 12px; }
.irm-guided-setup p { margin: 0; color: #666; font-size: 10.5px; }

.irm-toggle-row { min-height: 38px; display: flex; align-items: center; margin: 10px 0 0; }
.irm-toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 11px; }
.irm-toggle input { width: 15px; height: 15px; accent-color: #0f6cbd; cursor: pointer; }

.irm-reports-table { margin-top: 18px; }

.irm-dialog-link { margin-top: -16px; color: #0f6cbd; font-size: 11px; }
.irm-dialog-link a { color: #0f6cbd; }

.policy-commandbar:empty { display: none; }
/* DSPM capture fixes (2026-08-07) — dspm- prefixed classes only */

.dspm-insights-carousel { margin-bottom: 20px; border: 1px solid #ddd; background: #fff; }
.dspm-insights-carousel-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #eee; }
.dspm-more-pill { padding: 3px 10px; border-radius: 12px; background: #eef2f6; color: #333; font-size: 10px; }
.dspm-carousel-action { border: 0; background: transparent; color: #0f6cbd; cursor: pointer; font-size: 11px; }
.dspm-carousel-action:hover { text-decoration: underline; }
.dspm-carousel-arrows { display: flex; gap: 4px; margin-left: auto; }
.dspm-carousel-arrows button { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid #ccc; border-radius: 2px; background: #fff; cursor: pointer; }
.dspm-carousel-arrows button:hover { color: #0f6cbd; border-color: #0f6cbd; }
.dspm-insights-slides { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px; }
.dspm-carousel-nav { display: flex; justify-content: center; gap: 6px; padding: 0 0 12px; }
.dspm-carousel-nav button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #ccc; cursor: pointer; }
.dspm-carousel-nav button[aria-selected="true"] { background: #0f6cbd; }

.dspm-agent-insights { margin-bottom: 20px; }
.dspm-agent-insight-card { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid #ddd; }
.dspm-agent-insight-card > svg { flex: 0 0 auto; color: #176bb4; }
.dspm-agent-insight-card strong { flex: 1; font-size: 12px; }

.dspm-learn-more { color: #0f6cbd; font-size: 11px; text-decoration: none; }
.dspm-learn-more:hover { text-decoration: underline; }

.dspm-info-button { margin-left: 6px; padding: 0; border: 0; background: transparent; color: #0f6cbd; cursor: pointer; vertical-align: middle; }

.dspm-group-row td { background: #fafafa; }
.dspm-group-row strong { color: #333; }
.dspm-group-count { margin-left: 8px; padding: 2px 8px; border-radius: 10px; background: #eef2f6; font-size: 10px; }
.dspm-expand-button { width: 22px; height: 22px; display: inline-grid; place-items: center; border: 0; background: transparent; color: #8a8a8a; cursor: pointer; }
.dspm-expand-button:hover { color: #0f6cbd; }

.dspm-trend-controls { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.dspm-trend-chip { min-height: 28px; padding: 0 12px; border: 1px solid #ccc; border-radius: 14px; background: #fff; cursor: pointer; font-size: 10.5px; }
.dspm-trend-chip.active { color: #fff; border-color: #0f6cbd; background: #0f6cbd; }

.dspm-dlp-link { margin-left: 12px; color: #0f6cbd; font-size: 11px; text-decoration: none; }
.dspm-dlp-link:hover { text-decoration: underline; }
.purview-solution-icon { display: block; object-fit: contain; }
.global-rail .purview-solution-icon { width: 24px; height: 24px; }
.solution-title .purview-solution-icon { width: 32px; height: 32px; flex: 0 0 auto; }
.solution-rail nav .purview-solution-icon,
.related-solutions .purview-solution-icon { width: 20px; height: 20px; }
.home-solution-grid .purview-solution-icon,
.solution-list > button > .purview-solution-icon { width: 32px; height: 32px; }

/* Audit — aligned to the current three-column tenant canvas. */
.app-body:has(.audit-search-page, .audit-policies-page) .solution-rail { width: 250px; }
.app-body.solution-mode:has(.audit-search-page, .audit-policies-page) .app-main { margin-left: calc(var(--rail) + 250px); }
.audit-search-page,
.audit-policies-page { padding: 38px 48px 72px; }
.audit-page-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.audit-page-header h1 { margin-bottom: 0; font-size: 32px; }
.audit-learn-button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
}
.audit-learn-button:hover { background: #f5f5f5; }
.audit-learn-button svg { width: 17px; height: 17px; }
.audit-search-summary { display: flex; gap: 24px; margin: 44px 0 20px; }
.audit-search-summary > div {
  min-width: 128px;
  display: grid;
  gap: 1px;
  padding-left: 9px;
  border-left: 4px solid #242424;
  font-size: 12px;
}
.audit-search-summary > div:nth-child(2) { border-left-color: #4f6bed; }
.audit-search-summary > div:nth-child(3) { border-left-color: #2899f5; }
.audit-search-summary strong { font-size: 16px; line-height: 1.1; }

.audit-search-page .audit-search-form {
  max-width: none;
  margin: 0 0 72px;
  padding: 0;
  border: 0;
  background: transparent;
}
.audit-search-page .audit-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(250px, 1fr));
  gap: 42px;
}
.audit-form-column { min-width: 0; display: grid; align-content: start; gap: 25px; }
.audit-search-page .wizard-field,
.audit-date-field { min-width: 0; display: grid; gap: 6px; margin: 0; font-size: 14px; }
.audit-search-page .wizard-field > span { min-height: 19px; display: flex; align-items: center; gap: 6px; }
.audit-search-page .wizard-field input,
.audit-search-page .wizard-field select,
.audit-date-row input,
.audit-date-row select {
  width: 100%;
  min-width: 0;
  height: 32px;
  padding: 0 9px;
  border: 1px solid #8a8886;
  border-radius: 2px;
  color: #242424;
  background-color: #fff;
  font-size: 14px;
}
.audit-search-page .wizard-field select,
.audit-date-row select { padding-right: 28px; }
.audit-search-page .wizard-field input::placeholder { color: #707070; opacity: 1; }
.audit-search-page .wizard-field select:disabled { color: #a19f9d; border-color: #d2d0ce; background: #fafafa; opacity: 1; }
.audit-date-field { padding: 0; border: 0; }
.audit-date-field legend { padding: 0; font-weight: 400; }
.audit-date-field legend span { color: #a4262c; }
.audit-date-row { min-width: 0; display: grid; grid-template-columns: minmax(120px, .82fr) minmax(140px, 1.18fr); gap: 8px; }
.audit-date-control { position: relative; min-width: 0; }
.audit-date-control input { padding-right: 34px; }
.audit-date-control svg { position: absolute; top: 8px; right: 9px; width: 16px; height: 16px; pointer-events: none; }
.audit-field-info { display: inline-flex; align-items: center; padding: 0; border: 0; background: transparent; color: #605e5c; cursor: pointer; }
.audit-field-info:hover { color: #0f6cbd; }
.audit-field-info svg { width: 15px; height: 15px; }
.audit-search-page .lookup-actions { margin-top: 6px; }
.audit-search-page .lookup-actions button { min-height: 32px; padding: 0 18px; font-size: 14px; }
.audit-field-guidance { display: flex; align-items: flex-start; gap: 6px; margin-top: 2px; color: #555; font-size: 10.5px; line-height: 1.45; }
.audit-field-guidance svg { flex: 0 0 auto; margin-top: 1px; color: #0f6cbd; }
.audit-licensing-link { margin: 4px 0 0; font-size: 11px; }
.audit-licensing-link a { color: #0f6cbd; }

.audit-results-commandbar {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid #d2d0ce;
}
.audit-results-commandbar button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
}
.audit-results-commandbar button:hover:not(:disabled) { background: #f5f5f5; }
.audit-results-commandbar button:disabled { color: #b3b0ad; cursor: default; }
.audit-results-commandbar button svg { width: 17px; height: 17px; }
.audit-results-commandbar > span { margin-left: auto; padding-right: 10px; font-size: 14px; }
.audit-results-table-wrap { width: 100%; overflow: auto; }
.audit-results-table { min-width: 980px; width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 12px; }
.audit-results-table th,
.audit-results-table td { height: 44px; padding: 0 9px; border-bottom: 1px solid #e1dfdd; text-align: left; font-weight: 400; }
.audit-results-table th:first-child,
.audit-results-table td:first-child { width: 54px; text-align: center; }
.audit-results-table th:nth-child(2) { width: 25%; }
.audit-results-table th svg { width: 12px; height: 12px; margin-left: 6px; vertical-align: middle; }
.audit-results-table input[type='checkbox'] { width: 16px; height: 16px; accent-color: #0f6cbd; }
.audit-empty-state { min-height: 150px; display: grid; place-items: center; font-size: 16px; }
.audit-policy-table { min-width: 1060px; }
.audit-policy-table th:nth-child(2) { width: 19%; }
.audit-policy-table td { font-size: 13px; }
.audit-policies-page .audit-page-header { margin-bottom: 42px; }

@media (max-width: 1120px) {
  .audit-search-page .audit-form-grid { grid-template-columns: repeat(2, minmax(250px, 1fr)); }
}

@media (max-width: 760px) {
  .audit-search-page,
  .audit-policies-page { padding: 24px 18px 80px; }
  .audit-page-header { align-items: flex-start; }
  .audit-page-header h1 { font-size: 26px; }
  .audit-search-summary { flex-wrap: wrap; margin-top: 30px; }
  .audit-search-page .audit-form-grid { grid-template-columns: 1fr; }
  .audit-date-row { grid-template-columns: 1fr; }
}

/* DLP rule builder — the live portal uses a narrower editor rail and a dense,
   full-height condition builder that is distinct from policy/label wizards. */
.purview-wizard .wizard-layout.rule-mode { grid-template-columns: 308px minmax(0, 1fr); }
.purview-wizard .wizard-layout.rule-mode .wizard-rail {
  padding: 18px 34px;
  font-size: 12px;
}
.purview-wizard .wizard-layout.rule-mode .wizard-rail > div {
  min-height: 48px;
  font-size: 12px;
}
.purview-wizard .wizard-layout.rule-mode .wizard-rail > div:not(:last-child)::after { height: 25px; }
.purview-wizard .wizard-layout.rule-mode .wizard-rail > div.nested {
  min-height: 48px;
  margin-left: 0;
  font-size: 12px;
}
.purview-wizard .wizard-layout.rule-mode .wizard-rail > div.nested::after { left: 9px; }
.purview-wizard .wizard-layout.rule-mode .rule-editor {
  width: calc(100% - 48px);
  margin: 0 24px;
  padding: 10px 0 22px;
  color: #323130;
  font-size: 12px;
}
.purview-wizard .wizard-layout.rule-mode .rule-editor > header {
  gap: 20px;
  margin-bottom: 12px;
  padding: 0;
}
.purview-wizard .wizard-layout.rule-mode .rule-editor > header h1 {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 600;
}
.purview-wizard .wizard-layout.rule-mode .rule-editor > header p {
  max-width: 1120px;
  margin: 0;
  color: #605e5c;
  font-size: 12px;
  line-height: 1.45;
}
.purview-wizard .wizard-layout.rule-mode .rule-editor > header > button {
  width: 32px;
  height: 32px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  margin: -4px -4px 0 0;
}
.purview-wizard .wizard-layout.rule-mode .rule-editor > header > button svg { width: 18px; height: 18px; }
.purview-wizard .wizard-layout.rule-mode .rule-editor > .wizard-field {
  gap: 5px;
  margin: 0 0 12px;
  font-size: 12px;
}
.purview-wizard .wizard-layout.rule-mode .rule-editor > .wizard-field span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.purview-wizard .wizard-layout.rule-mode .rule-editor > .wizard-field svg { width: 14px; height: 14px; }
.purview-wizard .wizard-layout.rule-mode .rule-editor input,
.purview-wizard .wizard-layout.rule-mode .rule-editor select,
.purview-wizard .wizard-layout.rule-mode .rule-editor textarea {
  border: 1px solid #8a8886;
  border-radius: 2px;
  background: #fff;
  font-size: 12px;
}
.purview-wizard .wizard-layout.rule-mode .rule-editor input,
.purview-wizard .wizard-layout.rule-mode .rule-editor select { min-height: 30px; padding: 0 8px; }
.purview-wizard .wizard-layout.rule-mode .rule-editor textarea { width: 100%; padding: 8px; line-height: 1.45; resize: vertical; }

.dlp-wizard .rule-editor .rule-section {
  padding: 0;
  border-top: 1px solid #d2d0ce;
  font-size: 12px;
}
.dlp-rule-section-heading {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-size: 12px;
}
.dlp-rule-section-heading:hover { background: #fafafa; }
.dlp-rule-section-heading svg { width: 14px; height: 14px; }
.dlp-rule-section-body { padding: 0 4px 20px; }
.dlp-rule-section-body > p { margin: 0 0 9px; line-height: 1.45; }
.dlp-rule-section-body > p a { margin-left: 2px; }
.dlp-rule-section-body > label,
.dlp-notification-options > label { margin: 8px 0; }

.dlp-rule-toggle {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}
.dlp-rule-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.dlp-rule-toggle > span {
  position: relative;
  width: 30px;
  height: 16px;
  flex: 0 0 auto;
  border: 1px solid #8a8886;
  border-radius: 10px;
  background: #fff;
}
.dlp-rule-toggle > span::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #605e5c;
}
.dlp-rule-toggle input:checked + span { border-color: #0f6cbd; background: #0f6cbd; }
.dlp-rule-toggle input:checked + span::after { left: 16px; background: #fff; }
.dlp-rule-toggle input:focus-visible + span { outline: 2px solid #0f6cbd; outline-offset: 2px; }
.dlp-rule-toggle em { font-style: normal; }

.dlp-builder-card {
  margin-top: 10px;
  border: 1px solid #c8c6c4;
  background: #fff;
}
.dlp-builder-card > header {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 9px;
  border-bottom: 1px solid #d2d0ce;
  background: #fafafa;
}
.dlp-builder-card > header > span { display: flex; align-items: center; gap: 7px; }
.dlp-builder-card > header svg { width: 14px; height: 14px; }
.dlp-builder-card > header button,
.dlp-label-condition-row button,
.dlp-sit-row button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.dlp-builder-card > header button svg,
.dlp-label-condition-row button svg,
.dlp-sit-row button svg { width: 14px; height: 14px; }
.dlp-builder-card-body { padding: 12px 28px; }
.dlp-builder-card-body p { margin: 0 0 12px; line-height: 1.45; }
.dlp-builder-card-body > select { min-width: 240px; }
.dlp-builder-card-body > small { display: block; margin-top: 10px; color: #605e5c; }
.dlp-condition-operator {
  min-width: 72px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 0 28px;
  padding: 0 10px;
  border: 1px solid #79a96b;
  border-radius: 2px;
  background: #eef8ea;
  cursor: pointer;
  font-weight: 600;
}
.dlp-condition-operator svg { width: 12px; height: 12px; }
.dlp-condition-group-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px 28px;
  align-items: end;
  gap: 16px;
  padding: 11px 28px;
  border-bottom: 1px solid #d2d0ce;
  background: #fafafa;
}
.dlp-condition-group-head label { display: grid; gap: 5px; }
.dlp-condition-group-head button { margin-bottom: 1px; }
.dlp-condition-list-heading { min-height: 34px; display: flex; align-items: center; padding: 0 28px; border-bottom: 1px solid #d2d0ce; }
.dlp-sit-row {
  min-height: 44px;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) 132px 16px auto 46px auto 58px 16px 28px;
  align-items: center;
  gap: 8px;
  padding: 5px 8px 5px 28px;
  border-bottom: 1px solid #e1dfdd;
}
.dlp-sit-row > svg { width: 14px; height: 14px; color: #605e5c; }
.dlp-sit-row .dlp-sit-name { min-width: 0; border-color: transparent !important; padding-left: 0 !important; }
.dlp-sit-row input[type='number'] { width: 46px; }
.dlp-label-condition-row {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 8px 5px 28px;
  border-bottom: 1px solid #e1dfdd;
}
.dlp-builder-link,
.dlp-builder-actions button {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border: 0;
  color: #323130;
  background: transparent;
  cursor: pointer;
}
.dlp-builder-link:hover,
.dlp-builder-actions button:hover { color: #0f6cbd; background: #f5f5f5; }
.dlp-builder-link svg,
.dlp-builder-actions svg { width: 15px; height: 15px; }
.dlp-content-card > .dlp-builder-link { margin-left: 20px; }
.dlp-evaluate-predicate { margin: 0; padding: 10px 28px; border: 0; border-bottom: 1px solid #d2d0ce; }
.dlp-evaluate-predicate legend { padding: 0 0 7px; color: #605e5c; }
.dlp-evaluate-predicate label { margin-right: 20px; }
.dlp-builder-actions { display: flex; align-items: center; gap: 4px; margin-top: 8px; }

.dlp-action-options > label { display: flex; align-items: flex-start; gap: 7px; margin: 0 0 8px; }
.dlp-action-options > label > span { display: grid; gap: 3px; }
.dlp-action-options small { color: #605e5c; line-height: 1.45; }
.dlp-action-options label.nested,
.dlp-notification-options label.nested,
.dlp-rule-section-body label.nested { margin-left: 22px; color: #605e5c; }
.dlp-action-options label svg { width: 14px; height: 14px; vertical-align: middle; }
.dlp-notification-options { display: grid; align-items: start; }
.dlp-notification-options.disabled { opacity: .55; pointer-events: none; }
.dlp-notification-options > a { width: max-content; margin: 2px 0 6px 22px; }
.dlp-notification-options > textarea { width: calc(100% - 40px) !important; margin: 0 0 4px 40px; }
.dlp-strong-check { display: flex; align-items: flex-start; gap: 7px; font-weight: 600; }
.dlp-rule-section-body input[type='checkbox'],
.dlp-rule-section-body input[type='radio'] { min-height: 0 !important; accent-color: #0f6cbd; }
.dlp-rule-info {
  min-height: 28px;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 5px 0 7px;
  padding: 6px 9px;
  background: #f3f2f1;
  color: #605e5c;
  font-size: 11px;
  line-height: 1.4;
}
.dlp-rule-info > svg { width: 14px; height: 14px; flex: 0 0 auto; }
.dlp-rule-info.muted { color: #8a8886; }
.dlp-inline-setting { display: flex; align-items: center; gap: 10px; }
.dlp-inline-setting select { min-width: 110px; }
.dlp-switch-setting { display: grid; align-items: start; gap: 4px; margin: 10px 0; }
.dlp-switch-setting strong span { font-weight: 400; }
.dlp-incident-inbox { max-width: 520px; }
.dlp-priority-setting { display: grid; justify-items: start; gap: 7px; margin-top: 12px !important; }
.dlp-priority-setting select { min-width: 62px; }
.dlp-wizard .rule-editor .override-preview { max-height: 220px; }

.purview-wizard .wizard-layout.rule-mode .rule-editor > footer {
  position: static;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 -24px -22px;
  padding: 8px 24px;
  border-top: 1px solid #d2d0ce;
  background: #fff;
}
.purview-wizard .wizard-layout.rule-mode .rule-editor > footer button { min-width: 54px; }
#app:has(.dlp-wizard.editing-rule) > .simulator-dock { display: none; }

@media (max-width: 1100px) {
  .purview-wizard .wizard-layout.rule-mode { grid-template-columns: 240px minmax(0, 1fr); }
  .purview-wizard .wizard-layout.rule-mode .wizard-rail { padding-inline: 24px; }
  .dlp-sit-row { grid-template-columns: minmax(180px, 1fr) 120px 16px 42px 50px 28px; }
  .dlp-sit-row > span { display: none; }
  .dlp-sit-row > select:nth-of-type(2),
  .dlp-sit-row > svg:nth-of-type(2) { display: none; }
}

@media (max-width: 760px) {
  .purview-wizard .wizard-layout.rule-mode { grid-template-columns: 1fr; }
  .purview-wizard .wizard-layout.rule-mode .wizard-rail { display: flex; padding: 10px; }
  .purview-wizard .wizard-layout.rule-mode .rule-editor { width: calc(100% - 28px); margin: 0 14px; }
  .dlp-condition-group-head { grid-template-columns: 1fr; }
  .dlp-sit-row { grid-template-columns: 1fr 120px 28px; padding-left: 12px; }
  .dlp-sit-row > span,
  .dlp-sit-row > svg,
  .dlp-sit-row input[type='number'],
  .dlp-sit-row > select:nth-of-type(2) { display: none; }
}
