/* ============================================================
   Microsoft Intune admin center — fidelity styles (DARK THEME)
   Intune shares the Azure-portal shell and admins commonly run
   it dark, so dark is the default here.
   Every selector is scoped under .px-intune (hard rule) — the
   page roots carry the class, and portal-intune.js also tags
   the .portal shell element (decorateShell) so the centrally
   rendered nav/content chrome picks up the skin. Body-level
   overlays opened BY THIS PORTAL get .px-intune-dark.
   Azure dark palette:
     shell/content #111 · nav #141414 · cards/tiles #242424
     borders #383838 (subtle #2a2a2a) · hover #2a2a2a
     text #f5f5f5 / #adadad · link #4db2ff (hover #6cc1ff)
     ok #6ccb5f · bad #e8636a · warn #ffaa44
   ============================================================ */

.px-intune,
.px-intune button,
.px-intune input,
.px-intune select,
.px-intune textarea {
  font-family: var(--font-fluent);
}

.px-intune { color: #f5f5f5; }

.px-intune h1 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: #f5f5f5;
  margin-bottom: 2px;
}

.px-intune .page-desc { color: #adadad; font-size: 13px; }

.px-intune .in-ico { display: inline-flex; align-items: center; }
.px-intune .in-ico svg { display: block; }

/* ---------- Azure shell (nav + content chrome, tagged on .portal) ---------- */
.portal.px-intune { background: #111; }
.portal.px-intune .portal-body { background: #111; }
.portal.px-intune .portal-content { background: #111; color: #f5f5f5; }
.portal.px-intune .portal-content h1 { color: #f5f5f5; }
.portal.px-intune .portal-nav {
  background: #141414; border-right: 1px solid #383838;
}
.portal.px-intune .nav-item { color: #d6d6d6; }
.portal.px-intune .nav-item:hover { background: #2a2a2a; color: #f5f5f5; }
.portal.px-intune .nav-item.active {
  background: #333333; color: #f5f5f5; border-left-color: #4db2ff;
}
.portal.px-intune .nav-group-label { color: #adadad; }

/* suite search inside the dark top bar */
.portal.px-intune .portal-search-input {
  background: rgba(255, 255, 255, .08); color: #f5f5f5;
}
.portal.px-intune .portal-search-input::placeholder { color: #adadad; }
.portal.px-intune .portal-search-input:focus {
  background: #1b1a19; outline: 2px solid rgba(255, 255, 255, .35);
}
.portal.px-intune .search-drop {
  background: #292929; box-shadow: 0 10px 26px rgba(0, 0, 0, .6);
}
.portal.px-intune .search-item:hover { background: #3a3a3a; }
.portal.px-intune .search-label { color: #f5f5f5; }
.portal.px-intune .search-sub,
.portal.px-intune .search-empty { color: #adadad; }

/* route-change skeleton shimmer on dark */
.portal.px-intune .skel {
  background: linear-gradient(90deg, #242424 25%, #2f2f2f 37%, #242424 63%);
  background-size: 800px 100%;
}

/* busy-button spinner needs a light arc on dark */
.px-intune button.is-busy::after,
.px-intune-dark button.is-busy::after {
  border-color: rgba(255, 255, 255, .3); border-top-color: #f5f5f5;
}

/* ---------- breadcrumbs ---------- */
.px-intune .in-crumbs {
  display: flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: #adadad; margin: -6px 0 10px;
}
.px-intune .in-crumb {
  background: none; border: none; padding: 0; cursor: default;
  font-size: 12.5px; color: #adadad;
}
.px-intune button.in-crumb { color: #4db2ff; cursor: pointer; }
.px-intune button.in-crumb:hover { text-decoration: underline; color: #6cc1ff; }
.px-intune .in-crumb-sep { color: #767676; font-size: 11px; }
.px-intune .in-crumb-cur { color: #f5f5f5; }

/* ---------- command bar (Fluent) ---------- */
.px-intune .in-cmdbar,
.px-intune .in-toolbar {
  display: flex; align-items: center; gap: 0;
  border-bottom: 1px solid #383838;
  margin: 6px 0 12px; padding: 0 0 1px;
  flex-wrap: wrap;
}
.px-intune .cmd-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent; border: none; border-radius: 2px;
  padding: 8px 11px; margin: 0;
  font-size: 13px; color: #f5f5f5; cursor: pointer;
  line-height: 1;
}
.px-intune .cmd-btn:hover:not(:disabled) { background: #2a2a2a; color: #fff; }
.px-intune .cmd-btn:active { background: #333333; }
.px-intune .cmd-btn:disabled { color: #6b6b6b; }
.px-intune .cmd-btn .ci {
  display: inline-flex; color: #4db2ff; font-size: 0;
}
.px-intune .in-cmdsep {
  width: 1px; height: 20px; background: #383838; margin: 0 6px; flex: 0 0 auto;
}
.px-intune .in-tbtn-more { padding: 8px 9px; color: #adadad; }

/* ---------- search + filter chips ---------- */
.px-intune .in-searchrow { display: flex; align-items: center; gap: 12px; margin: 2px 0 8px; }
.px-intune .in-search {
  display: flex; align-items: center; gap: 8px;
  width: 340px; max-width: 100%;
  border: 1px solid #767676; border-radius: 2px;
  padding: 0 10px; background: #1b1a19; color: #adadad;
}
.px-intune .in-search:focus-within { border-color: #4db2ff; box-shadow: inset 0 -1px 0 #4db2ff; }
.px-intune .in-search-input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 13px; padding: 7px 0; color: #f5f5f5;
}
.px-intune .in-search-input::placeholder { color: #8a8886; }

.px-intune .in-chiprow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 4px; }
.px-intune .in-chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid #605e5c; border-radius: 14px;
  background: #242424; color: #f5f5f5;
  padding: 4px 12px; font-size: 12.5px; cursor: pointer;
}
.px-intune .in-chip:hover { background: #2f2f2f; border-color: #767676; }
.px-intune .in-chip .in-chip-k { color: #adadad; }
.px-intune .in-chip .in-chip-k::after { content: ' =='; color: #767676; }
.px-intune .in-chip b { font-weight: 600; color: #f5f5f5; }
.px-intune .in-chip .in-ico { color: #adadad; }
.px-intune .in-chip-add { border-style: dashed; color: #4db2ff; }
.px-intune .in-chip-add .in-ico { color: #4db2ff; }

/* ---------- data table (Fluent grid) ---------- */
.px-intune .data-table { margin-top: 4px; }
.px-intune .data-table th {
  font-size: 12.5px; font-weight: 600; color: #f5f5f5;
  text-transform: none; letter-spacing: 0;
  background: #111; border-bottom: 1px solid #484848;
  padding: 9px 12px;
}
.px-intune .th-sortable:hover { color: #6cc1ff; }
.px-intune .data-table td {
  padding: 9px 12px; font-size: 13px; color: #f5f5f5;
  border-bottom: 1px solid #2a2a2a;
}
.px-intune .data-table .cell-sub { color: #adadad; }
.px-intune .data-table tbody tr:hover { background: #2a2a2a; }
.px-intune .data-table .cell-link { color: #4db2ff; font-weight: 400; }
.px-intune .data-table tbody tr:hover .cell-link { text-decoration: underline; }

.px-intune .in-namecell { display: inline-flex; align-items: center; gap: 8px; }
.px-intune .in-devico-sm { color: #adadad; }

.px-intune .in-tablefoot {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: #adadad; padding: 10px 2px;
  border-top: 1px solid #383838; margin-top: -1px;
}
.px-intune .in-pageno { color: #767676; }

/* pills → Fluent status text with a colored dot (brighter dots on dark) */
.px-intune .pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0; border-radius: 0; font-size: 13px; font-weight: 400;
}
.px-intune .pill::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto;
}
.px-intune .pill-green { background: transparent; color: #f5f5f5; }
.px-intune .pill-green::before { background: #6ccb5f; }
.px-intune .pill-red { background: transparent; color: #f5f5f5; }
.px-intune .pill-red::before { background: #e8636a; }
.px-intune .pill-amber { background: transparent; color: #f5f5f5; font-weight: 600; }
.px-intune .pill-amber::before { background: #ffaa44; }
.px-intune .pill-blue { background: transparent; color: #f5f5f5; }
.px-intune .pill-blue::before { background: #4db2ff; }
.px-intune .pill-gray { background: transparent; color: #adadad; }
.px-intune .pill-gray::before { background: #8a8886; }
.px-intune .in-pills { display: inline-flex; align-items: center; gap: 14px; }

/* ---------- home ---------- */
.px-intune .in-tenantline {
  display: flex; flex-wrap: wrap; gap: 4px 26px;
  font-size: 12.5px; color: #f5f5f5; margin: 6px 0 4px;
  padding-bottom: 12px; border-bottom: 1px solid #383838;
}
.px-intune .in-tenantline b { font-weight: 400; color: #adadad; }

.px-intune .in-sect-h {
  font-size: 16px; font-weight: 600; color: #f5f5f5; margin: 22px 0 10px;
}

.px-intune .in-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 14px; align-items: stretch;
}
.px-intune .in-card {
  background: #242424; border: 1px solid #383838; border-radius: 2px;
  box-shadow: 0 1.6px 3.6px rgba(0, 0, 0, .35), 0 0.3px 0.9px rgba(0, 0, 0, .3);
  padding: 16px 18px; min-height: 150px;
}
.px-intune .in-card h3 { font-size: 13.5px; font-weight: 600; margin: 0 0 12px; color: #f5f5f5; }
.px-intune .in-card p { font-size: 12.5px; color: #adadad; line-height: 1.5; }
.px-intune .in-card-click { cursor: pointer; transition: box-shadow .12s, border-color .12s; }
.px-intune .in-card-click:hover {
  border-color: #4a4a4a;
  box-shadow: 0 3.2px 7.2px rgba(0, 0, 0, .55), 0 0.6px 1.8px rgba(0, 0, 0, .5);
}

.px-intune .in-donut-wrap { display: flex; align-items: center; gap: 18px; }
.px-intune .in-donut {
  width: 108px; height: 108px; border-radius: 50%;
  position: relative; flex: 0 0 auto;
}
.px-intune .in-donut-hole {
  position: absolute; inset: 15px; border-radius: 50%; background: #242424;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.px-intune .in-donut-hole b { font-size: 20px; font-weight: 600; line-height: 1.1; color: #f5f5f5; }
.px-intune .in-donut-hole span { font-size: 10.5px; color: #adadad; }

.px-intune .in-legend { flex: 1; min-width: 0; }
.px-intune .in-legend-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: #f5f5f5; padding: 3px 0;
}
.px-intune .in-legend-lbl { flex: 1; color: #adadad; }
.px-intune .in-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }

.px-intune .in-bars { padding-top: 2px; }
.px-intune .in-bar-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; margin: 9px 0; }
.px-intune .in-bar-lbl { width: 62px; flex: 0 0 auto; color: #adadad; }
.px-intune .in-bar-track { flex: 1; height: 9px; background: #383838; border-radius: 1px; overflow: hidden; }
.px-intune .in-bar { height: 100%; background: #4db2ff; border-radius: 1px; }
.px-intune .in-bar-row b { width: 18px; text-align: right; font-weight: 600; color: #f5f5f5; }

.px-intune .in-bignum { font-size: 32px; font-weight: 600; line-height: 1; color: #f5f5f5; }
.px-intune .in-subtle { font-size: 12.5px; color: #adadad; margin: 4px 0 12px; }
.px-intune .in-kv {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 12.5px; color: #adadad; padding: 5px 0; border-top: 1px solid #2a2a2a;
}
.px-intune .in-kv b { color: #f5f5f5; font-weight: 600; }

.px-intune .in-connectors { padding-top: 2px; }
.px-intune .in-conn-row {
  display: flex; align-items: center; gap: 9px;
  font-size: 12.5px; color: #f5f5f5; padding: 6px 0;
  border-bottom: 1px solid #2a2a2a;
}
.px-intune .in-conn-row:last-child { border-bottom: none; }
.px-intune .in-conn-row span:nth-child(2) { flex: 1; }
.px-intune .in-ok { color: #6ccb5f; }
.px-intune .in-conn-ok { color: #6ccb5f; font-size: 12px; }

.px-intune .in-cards-links .in-card { min-height: 0; }
.px-intune .in-link-ico { color: #4db2ff; margin-bottom: 8px; }

/* ---------- device blade ---------- */
.px-intune .in-devtitle { display: flex; align-items: center; gap: 13px; margin: 2px 0 8px; }
.px-intune .in-devtitle-ico {
  width: 44px; height: 44px; border-radius: 3px;
  background: rgba(77, 178, 255, .12); color: #4db2ff;
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.px-intune .in-devsub { font-size: 12.5px; color: #adadad; margin-top: 1px; }

.px-intune .in-blade {
  display: flex; align-items: stretch;
  border-top: 1px solid #383838; margin-top: 10px;
  min-height: 420px;
}
.px-intune .in-bladenav {
  width: 205px; flex: 0 0 auto;
  border-right: 1px solid #383838;
  padding: 10px 8px 10px 0;
}
.px-intune .in-bnav-group {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px;
  color: #adadad; padding: 14px 10px 4px;
}
.px-intune .in-bnav-item {
  display: flex; align-items: center; gap: 9px; width: 100%;
  background: none; border: none; border-radius: 2px;
  text-align: left; padding: 7px 10px;
  font-size: 13px; color: #e0e0e0; cursor: pointer;
}
.px-intune .in-bnav-item .in-ico { color: #adadad; }
.px-intune .in-bnav-item:hover { background: #2a2a2a; color: #f5f5f5; }
.px-intune .in-bnav-item.active { background: #333333; color: #f5f5f5; font-weight: 600; }
.px-intune .in-bnav-item.active .in-ico { color: #4db2ff; }

.px-intune .in-blade-main { flex: 1; min-width: 0; padding: 12px 0 30px 22px; }
.px-intune .in-blade-main .in-cmdbar,
.px-intune .in-blade-main .in-toolbar { margin-top: 0; }

.px-intune .in-ess-title {
  font-size: 13px; font-weight: 600; color: #f5f5f5;
  margin: 18px 0 4px; padding-bottom: 5px; border-bottom: 1px solid #383838;
}
.px-intune .in-ess {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px; padding: 6px 0 2px;
}
.px-intune .in-ess-1col { grid-template-columns: 1fr; }
.px-intune .in-ess-item { display: flex; gap: 12px; font-size: 12.5px; padding: 4px 0; min-width: 0; }
.px-intune .in-ess-k { width: 150px; flex: 0 0 auto; color: #adadad; }
.px-intune .in-ess-v {
  color: #f5f5f5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* banners — translucent status tints on dark */
.px-intune .in-banner {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 12.5px; line-height: 1.45; color: #f5f5f5;
  background: rgba(77, 178, 255, .1); border: 1px solid #2f4b63; border-radius: 2px;
  padding: 9px 12px; margin: 4px 0 10px;
}
.px-intune .in-banner .in-ico { margin-top: 1px; color: #4db2ff; flex: 0 0 auto; }
.px-intune .in-banner-warn { background: rgba(255, 170, 68, .1); border-color: #6a5523; }
.px-intune .in-banner-warn .in-ico { color: #ffc83d; }

/* mini tables (device actions status, discovered apps) */
.px-intune .in-mini-table { margin-top: 4px; font-size: 12.5px; }
.px-intune .in-mini-head,
.px-intune .in-mini-row {
  display: grid; grid-template-columns: 2.2fr 1.3fr 1.3fr;
  gap: 12px; padding: 8px 4px;
  border-bottom: 1px solid #2a2a2a;
}
.px-intune .in-mini-head {
  font-weight: 600; color: #f5f5f5; border-bottom: 1px solid #484848;
}
.px-intune .in-mini-table-note { font-size: 12.5px; color: #adadad; margin-top: 12px; }
.px-intune .in-mini-table-note b { color: #f5f5f5; }

/* ---------- placeholders ---------- */
.px-intune .placeholder-page { color: #adadad; }
.px-intune .placeholder-page .ph-ico { font-size: 0; position: relative; height: 44px; }
.px-intune .placeholder-page .ph-ico::after {
  content: 'i';
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid #4db2ff; color: #4db2ff;
  font-size: 20px; font-weight: 600; font-style: italic;
  font-family: Georgia, 'Times New Roman', serif;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- dialogs & flyouts ----------
   Overlay bodies carry .px-intune; the overlay roots (.flyout/.modal on
   document.body) are tagged .px-intune-dark by portal-intune.js so ONLY
   Intune-opened overlays go dark — other portals' overlays stay light. */
.flyout.px-intune-dark,
.modal.px-intune-dark {
  background: #292929; color: #f5f5f5;
}
.flyout.px-intune-dark .flyout-head h3,
.modal.px-intune-dark .modal-head h3 { color: #f5f5f5; }
.flyout.px-intune-dark .flyout-close,
.modal.px-intune-dark .flyout-close { color: #adadad; }
.flyout.px-intune-dark .flyout-close:hover,
.modal.px-intune-dark .flyout-close:hover { background: #3a3a3a; color: #f5f5f5; }
.flyout.px-intune-dark .flyout-foot,
.modal.px-intune-dark .modal-foot { border-top-color: #444; }
.px-intune-dark .btn-ghost {
  background: transparent; border-color: #767676; color: #f5f5f5;
}
.px-intune-dark .btn-ghost:hover { background: #3a3a3a; color: #f5f5f5; }
.px-intune-dark .btn-primary:disabled { background: #4a4a4a; border-color: #4a4a4a; color: #8a8886; }

.px-intune.in-dialog { font-size: 13px; }
.px-intune .in-dialog-lede { margin-bottom: 12px; line-height: 1.5; }
.px-intune.in-dialog .f-check { color: #f5f5f5; }
.px-intune.in-dialog .in-subtle { margin-top: 10px; }

.px-intune .f-label,
.px-intune-dark .f-label { font-size: 13px; font-weight: 600; color: #f5f5f5; }
.px-intune .f-input,
.px-intune .f-select,
.px-intune .f-textarea,
.px-intune-dark .f-input,
.px-intune-dark .f-select,
.px-intune-dark .f-textarea {
  border: 1px solid #767676; border-radius: 2px;
  font-size: 13px; color: #f5f5f5; background: #1b1a19;
}
.px-intune .f-input::placeholder,
.px-intune-dark .f-input::placeholder { color: #8a8886; }
.px-intune .f-input:focus,
.px-intune .f-select:focus,
.px-intune-dark .f-input:focus,
.px-intune-dark .f-select:focus {
  outline: none; border-color: #4db2ff; box-shadow: inset 0 -1.5px 0 #4db2ff;
}
.px-intune .f-select option,
.px-intune-dark .f-select option { background: #1b1a19; color: #f5f5f5; }
.px-intune .f-hint,
.px-intune-dark .f-hint { font-size: 11.5px; color: #adadad; }
.px-intune .f-check,
.px-intune-dark .f-check { font-size: 13px; color: #f5f5f5; }
.px-intune .f-check input,
.px-intune-dark .f-check input { accent-color: #4db2ff; }

/* context menus (filter chips, More actions) — dark only when Intune opens them */
.ctx-menu.px-intune-dark {
  background: #292929; border-color: #484848;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .6);
}
.ctx-menu.px-intune-dark .ctx-item { color: #f5f5f5; }
.ctx-menu.px-intune-dark .ctx-item:hover:not(:disabled) { background: #3a3a3a; }
.ctx-menu.px-intune-dark .ctx-item:disabled { color: #767676; }
.ctx-menu.px-intune-dark .ctx-sep { background: #484848; }

/* create-policy wizard */
.px-intune .in-ptype {
  display: flex; gap: 12px; align-items: center;
  font-size: 12.5px; color: #f5f5f5;
  background: #333333; border-radius: 2px; padding: 8px 12px; margin-top: 10px;
}
.px-intune .in-ptype-k { color: #adadad; }
.px-intune .in-step {
  display: flex; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 600; color: #f5f5f5;
  margin: 24px 0 2px; padding-top: 16px; border-top: 1px solid #444;
}
.px-intune .in-step-n {
  width: 20px; height: 20px; border-radius: 50%; flex: 0 0 auto;
  background: #0078d4; color: #fff;
  font-size: 11.5px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}
.px-intune .in-setgroup {
  font-size: 12px; font-weight: 600; color: #adadad;
  text-transform: uppercase; letter-spacing: .4px;
  margin: 14px 0 2px;
}

/* policy view flyout */
.px-intune.in-polview .in-ess-title:first-child { margin-top: 4px; }

/* ---------- recovery keys (BitLocker) ---------- */
.px-intune .in-key-entry {
  border: 1px solid #383838; border-radius: 2px;
  background: #242424; padding: 10px 14px 14px; margin-top: 8px;
  max-width: 720px;
}
.px-intune .in-keyrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 12.5px; padding-top: 10px; margin-top: 6px;
  border-top: 1px solid #2f2f2f;
}
.px-intune .in-keyrow .in-ess-k { width: 150px; flex: 0 0 auto; color: #adadad; }
.px-intune .in-keyfield { flex: 1; min-width: 0; display: flex; align-items: center; }
.px-intune .in-key-mask { color: #8a8886; letter-spacing: 1px; user-select: none; }
.px-intune .in-key-value {
  width: 100%; padding: 6px 9px;
  font-family: 'Consolas', 'SFMono-Regular', Menlo, monospace;
  font-size: 12.5px; letter-spacing: .3px;
  background: #1b1a19; color: #f5f5f5; user-select: all;
}
.px-intune .in-showkey {
  flex: 0 0 auto;
  border: 1px solid #767676; border-radius: 2px;
  background: transparent; color: #f5f5f5;
  font-size: 13px; padding: 6px 14px; cursor: pointer;
}
.px-intune .in-showkey:hover:not(:disabled) { background: #2f2f2f; }
.px-intune .in-showkey:disabled { color: #767676; border-color: #484848; cursor: default; }

/* ---------- enrollment + Windows Autopilot ---------- */
.px-intune.in-enroll .in-sect-h { margin-top: 18px; }
.px-intune .in-empty {
  font-size: 13px; color: #adadad; line-height: 1.5;
  border: 1px dashed #484848; border-radius: 2px;
  background: #1b1a19; padding: 22px 18px; margin-top: 8px;
  text-align: center;
}
.px-intune .in-empty b { color: #f5f5f5; font-weight: 600; }
