/* Indiqator brand for the Microsoft RD Web Client (Cloudlogic).
   Drop-in: copy next to index.html and add <link rel="stylesheet" href="./brand.css"> after main.*.css.
   Palette from indiqator.com.au. Targets the client's own CSS variables plus its stable semantic classes;
   never the generated Fluent hashes (root-102 etc.), which change per build. Re-apply after each
   Install-RDWebClientPackage. */

@import url("https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Open+Sans:wght@400;600;700&display=swap");

html:root {
  --iq-navy: #002742;
  --iq-blue: #0a85c7;
  --iq-blue-dark: #0a6ea6;
  --iq-magenta: #ec008c;
  --iq-plum: #6b1f6a;
  --iq-ink: #17324a;
  --iq-muted: #5f6d78;
  --iq-line: #d3ddeb;
  --iq-paper: #f7f9fc;
  --iq-tint: #e9eef7;
  --iq-ok: #1f8a5b;
  --iq-bad: #b3261e;
  --iq-grad: linear-gradient(90deg, #0a85c7 0%, #6b1f6a 55%, #ec008c 100%);
  --iq-ease: cubic-bezier(.2, .8, .2, 1);
  --iq-font: "Open Sans", "Segoe UI", system-ui, sans-serif;
  --iq-font-head: "Lato", "Segoe UI", sans-serif;
  /* sign-in card, matched to the Indiqator login (LeadDriver) */
  --iq-primary: #00528a;
  --iq-primary-hover: #00446f;
  --iq-field: #d1d5db;
  --iq-label: #707278;
  --iq-sub: #54565b;
  --iq-sys: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* accessible action blue and hint grey (AA 4.5:1), approved 30 Sep */
  --iq-action: #0a6ea6;
  --iq-action-hover: #085a88;

  /* ---- Microsoft's own variables, re-pointed at the brand ---- */
  --primary-background-color: var(--iq-paper);
  --default-font-color: var(--iq-ink);
  --navbar-primary-background-color: var(--iq-navy);
  --navbar-icon-color: #ffffff;
  --navbar-icon-hover-color: #ffffff;
  --navbar-icon-hover-background-color: rgba(255, 255, 255, .14);
  --navbar-icon-selected-bg-color: rgba(255, 255, 255, .22);
  --navbar-persona-hover-background-color: rgba(255, 255, 255, .14);
  --navbar-account-card-background-color: #ffffff;
  --navbar-account-card-hover-color: var(--iq-tint);
  --navbar-account-card-font-color: var(--iq-ink);
  --navbar-tab-active-border: var(--iq-magenta);
  --navbar-tab-active-background-color: rgba(255, 255, 255, .16);
  --navbar-tab-hover-background-color: rgba(255, 255, 255, .10);
  --navbar-tab-font-color: #ffffff;
  --navbar-tab-dismiss-button-color: #ffffff;
  --navbar-tab-dismiss-button-hover: var(--iq-magenta);
  --navbar-separator-color: rgba(255, 255, 255, .35);
  --navbar-remoteapps-multiapps-sm-bottom-border: var(--iq-magenta);
  --navbar-remoteapps-multiapps-lg-bottom-border: var(--iq-magenta);
  --collapsed-navbar-border-color: var(--iq-blue);
  --tenant-header-background-color: transparent;
  --tenant-header-color-expand: var(--iq-tint);
  --tenant-header-font-color: var(--iq-navy);
  --allresources-primary-color: #ffffff;
  --allresources-hover-color: var(--iq-tint);
  --allresources-resource-font-color: var(--iq-ink);
  --allresources-list-divider-color: var(--iq-line);
  --allresources-controls-icon-color-selected: var(--iq-blue);
  --links-color: var(--iq-action);
  --links-color-hover: var(--iq-action-hover);
  --dialog-color: #ffffff;
  --dialog-font-color: var(--iq-ink);
  --dialog-textfield-font-color: var(--iq-ink);
  --dialog-button-disabled-color: #e3ebf5;
  --dialog-button-disabled-font-color: #8fa1af;
  --settings-pane-dropdown-text-hover: var(--iq-blue);
  --message-banner-link-color: var(--iq-blue);
}

/* ---- page ---- */
body, .ms-Fabric, .ms-Dialog, .ms-Button, .ms-TextField-field, .ms-Label, .ms-Link {
  font-family: var(--iq-font) !important;
}
body#body {
  background-color: var(--iq-paper) !important;
  background-image:
    radial-gradient(900px 420px at 85% 110%, rgba(10, 133, 199, .14), transparent 60%),
    radial-gradient(700px 360px at 5% 0%, rgba(236, 0, 140, .06), transparent 60%) !important;
  background-repeat: no-repeat !important; background-attachment: fixed !important; background-size: 100% 100% !important;
}
/* the client paints its own panels; let the page background show through */
.webclient, .tenants, .tenants-container, .ms-Fabric.ms-Layer-content .resources-controls-container { background: transparent !important; }

/* ---- header: navy bar, gradient rule, logo lockup ---- */
/* every wrapper inside the nav carries the light background variable, so paint them all */
.webclient > nav, .webclient > nav > div, .navbar-resize-group, .navbar-resize-group > div, .navbar-resize-group > div > div, .navbar-container {
  background: var(--iq-navy) !important; border: 0 !important; box-shadow: none !important;
}
.webclient > nav { position: relative; z-index: 2; }
/* the painted bar is .navbar-container (the <nav> itself has no height), so the gradient rule hangs off it */
.navbar-container { min-height: 56px; align-items: center; position: relative; overflow: visible !important; }
.navbar-container::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px; background: var(--iq-grad); pointer-events: none; z-index: 3;
}
.navbar-home-container {
  display: flex; align-items: center; gap: 16px; padding-left: 6px;
}
/* logo + sub-brand, injected as CSS so the client's markup is untouched */
.navbar-home-container::after {
  content: "";
  width: 138px; height: 28px; flex: none;
  background: url("./brand-logo-reverse.png") left center / contain no-repeat;
}
.navbar-home-container::before {
  content: "Cloudlogic";
  order: 3;
  font-family: var(--iq-font-head); font-weight: 300; font-size: 15px; color: #fff; letter-spacing: .02em;
  padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .25); white-space: nowrap;
}
.navbar-icon .ms-Icon, .navbar-icon svg { color: #fff; fill: #fff; }
.persona-button .ms-Persona-initials { background: var(--iq-blue) !important; color: #fff !important; }
/* support line in the header, before the icons */
.navbar-extras-container::before {
  content: "Call us on 1300 66 11 33";
  color: #fff; font-size: 12.5px; opacity: .92; margin-right: 12px; white-space: nowrap; align-self: center;
}
@media (max-width: 760px) { .navbar-extras-container::before, .navbar-home-container::before { display: none; } }

/* ---- sign-in, aligned to the Indiqator login (LeadDriver/Auth0), approved 1 Oct: white page, 400 px card,
   Indiqator logo, "Welcome", #00528A actions, 52 px fields with the label on the border. Values read from the
   live LeadDriver page. The white page is ours (brand.js), not Fluent's overlay, so it can fade after sign-in. ---- */
.ms-Overlay.ms-Overlay--dark { background: transparent !important; backdrop-filter: none !important; }
.iq-stage {
  position: fixed; inset: 0; z-index: 900; pointer-events: none; background: #fff;
  opacity: 0; visibility: hidden; transition: opacity .5s var(--iq-ease), visibility 0s linear .5s;
}
.iq-signin .iq-stage { opacity: 1; visibility: visible; transition: opacity .35s var(--iq-ease), visibility 0s; }
.iq-stage__ok {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.96);
  display: flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px;
  background: var(--iq-ok); color: #fff; font-family: var(--iq-sys); font-weight: 600; font-size: 15px;
  opacity: 0; transition: opacity .25s, transform .35s var(--iq-ease); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .35);
}
.iq-stage__ok svg { width: 20px; height: 20px; }
.iq-approved .iq-stage__ok { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* the card */
.rdweb-credentials-modal-container {
  width: 400px !important; max-width: calc(100vw - 32px) !important; margin: 0 !important;
  background: #fff !important; border: 0 !important; border-radius: 8px !important; overflow: hidden !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .12) !important; color: #000;
  animation: iq-card-in .45s var(--iq-ease);
}
.rdweb-credentials-modal-container, .rdweb-credentials-modal-container :not(i) { font-family: var(--iq-sys) !important; }
@keyframes iq-card-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.rdweb-credentials-modal-container .ms-Dialog-lgHeader { border-top: 0 !important; background: #fff !important; }
/* Microsoft's "Sign in" heading stays in the DOM for screen readers; the lockup replaces it visually */
.rdweb-credentials-modal-container .ms-Dialog-header { height: 0 !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; overflow: hidden !important; }
.iq-lockup { text-align: center; padding: 40px 40px 0; }
/* CloudLogic endorsed lockup: navy medallion | "CloudLogic" over "INDIQATOR". The website only publishes the
   wordmark in white (385x157), so it is used as a mask at 0.6 scale and cropped into its two parts. */
.iq-endorsed { display: inline-flex; align-items: center; gap: 16px; margin: 0 auto 24px; color: var(--iq-navy); }
.iq-endorsed__mark, .iq-endorsed__name {
  display: block; flex: none; background: currentColor;
  -webkit-mask: url("./brand-cloudlogic-wordmark.png") no-repeat; mask: url("./brand-cloudlogic-wordmark.png") no-repeat;
  -webkit-mask-size: 231px 94.2px; mask-size: 231px 94.2px;
}
.iq-endorsed__mark { width: 69px; height: 69px; -webkit-mask-position: 0 -12.6px; mask-position: 0 -12.6px; }
.iq-endorsed__name { width: 146px; height: 31px; -webkit-mask-position: -85.2px -33.6px; mask-position: -85.2px -33.6px; }
.iq-endorsed__words { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.iq-endorsed__by { display: block; width: 88px; height: 12px; }
.iq-endorsed__by path, .iq-endorsed__by circle, .iq-endorsed__by polygon { fill: currentColor; }
.iq-lockup__h { margin: 0 0 12px; font-size: 22.4px; font-weight: 400; line-height: 1.5; color: #000; }
.iq-lockup__sub { margin: 0 0 24px; font-size: 14px; line-height: 1.5; color: var(--iq-sub); }
.rdweb-credentials-modal-container .ms-Dialog-inner { padding: 0 40px 36px !important; }
.rdweb-credentials-modal-container .ms-Dialog-content { margin: 0 !important; padding: 0 !important; }

/* fields: 52 px, 8 px radius, label sitting on the top border */
.rdweb-credentials-modal-container .ms-TextField { margin: 0 0 16px !important; }
.rdweb-credentials-modal-container .ms-TextField-wrapper { position: relative; }
.rdweb-credentials-modal-container .ms-Label {
  position: absolute !important; left: 10px; top: -9px; z-index: 2; margin: 0 !important; padding: 1px 6px !important;
  background: #fff; font-size: 13px !important; font-weight: 400 !important; line-height: 16px !important; color: var(--iq-label) !important;
  transition: color .15s;
}
.rdweb-credentials-modal-container .ms-Label::after { content: none !important; }
.rdweb-credentials-modal-container .ms-TextField-wrapper:focus-within .ms-Label { color: var(--iq-primary) !important; }
.rdweb-credentials-modal-container .ms-TextField-fieldGroup {
  display: flex !important; align-items: stretch !important; height: 52px !important; overflow: hidden;
  background: #fff !important; border: 1px solid var(--iq-field) !important; border-radius: 8px !important;
  transition: border-color .15s, box-shadow .15s;
}
.rdweb-credentials-modal-container .ms-TextField-fieldGroup::after { display: none !important; }   /* Fluent's own focus border */
.rdweb-credentials-modal-container .ms-TextField-fieldGroup:hover { border-color: #9ca3af !important; }
.rdweb-credentials-modal-container .ms-TextField-fieldGroup:focus-within { border-color: var(--iq-primary) !important; box-shadow: 0 0 0 1px var(--iq-primary) !important; }
.rdweb-credentials-modal-container .ms-TextField-field {
  height: 100% !important; padding: 0 16px !important; background: transparent !important; font-size: 16px !important; color: #000 !important;
}
.rdweb-credentials-modal-container .ms-TextField-field::placeholder { color: var(--iq-label) !important; opacity: 1; }
/* password reveal (eye) button centred and flush with the field */
.rdweb-credentials-modal-container .ms-TextField-reveal {
  width: auto !important; height: auto !important; min-height: 0 !important; align-self: stretch !important; margin: 0 !important; padding: 0 14px !important;
  display: flex !important; align-items: center !important; justify-content: center !important; background: transparent !important; color: var(--iq-label) !important;
}
.rdweb-credentials-modal-container .ms-TextField-reveal:hover { background: #f3f4f6 !important; color: #000 !important; }
.rdweb-credentials-modal-container .ms-TextField-reveal > span, .rdweb-credentials-modal-container .ms-TextField-reveal i {
  display: flex !important; align-items: center !important; justify-content: center !important; height: auto !important; line-height: 1 !important; margin: 0 !important; color: inherit !important;
}
/* Chrome tints autofilled inputs blue but not the eye button beside them; keep the whole field white */
.rdweb-credentials-modal-container .ms-TextField-field:-webkit-autofill,
.rdweb-credentials-modal-container .ms-TextField-field:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 40px #fff inset !important; -webkit-text-fill-color: #000 !important; caret-color: #000;
}
.rdweb-credentials-modal-container__error-log:not(.visually-hidden) { margin: 0 0 16px; }
.rdweb-credentials-modal-container__error-log .message-container__header-message { color: var(--iq-bad); font-size: 13px; }

/* help line, button, note, privacy: one column, in reading and tab order */
.iq-cant { margin: -4px 0 20px; padding: 4px; font-size: 14px; line-height: 1.5; color: var(--iq-sub); }
.iq-cant b { font-weight: 700; color: #000; }
.rdweb-credentials-modal-container .ms-Dialog-actions { margin: 0 !important; min-height: 0 !important; line-height: normal !important; text-align: center; }
.rdweb-credentials-modal-container .ms-Dialog-actionsRight { display: block !important; margin: 0 !important; text-align: center !important; }
.rdweb-credentials-modal-container .ms-Dialog-actionsRight > .action-item:first-child { display: none !important; }
.rdweb-credentials-modal-container .ms-Dialog-actionsRight > .action-item:last-child { display: block !important; margin: 0 !important; }
.rdweb-credentials-modal-container .action-item__submit-button {
  position: relative; width: 100% !important; min-width: 0 !important; height: 52px !important; padding: 0 16px !important; overflow: hidden;
  border: 0 !important; border-radius: 7px !important; background: var(--iq-primary) !important; color: #fff !important;
  transition: background-color .2s var(--iq-ease), opacity .2s;
}
.rdweb-credentials-modal-container .action-item__submit-button .ms-Button-label { margin: 0 !important; font-size: 16px !important; font-weight: 400 !important; }
.rdweb-credentials-modal-container .action-item__submit-button:hover:not(.is-disabled) { background: var(--iq-primary-hover) !important; }
.rdweb-credentials-modal-container .action-item__submit-button:focus-visible { outline: 2px solid var(--iq-primary) !important; outline-offset: 2px; }
.rdweb-credentials-modal-container .action-item__submit-button.is-disabled { background: var(--iq-primary) !important; color: #fff !important; opacity: .45; }
.iq-privacy { display: inline-block; margin-top: 20px; font-size: 12px; color: var(--iq-label); text-decoration: underline; }
.iq-privacy:hover { color: var(--iq-primary); }

/* waiting for Duo, driven by brand.js: the button becomes the status, no countdown text */
.iq-waiting .rdweb-credentials-modal-container .ms-TextField { opacity: .55; pointer-events: none; transition: opacity .3s var(--iq-ease); }
html.iq-waiting .rdweb-credentials-modal-container .action-item__submit-button,
html.iq-bad .rdweb-credentials-modal-container .action-item__submit-button { opacity: 1 !important; cursor: default !important; pointer-events: none; }
html.iq-waiting .rdweb-credentials-modal-container .action-item__submit-button { background: var(--iq-primary) !important; }
html.iq-bad .rdweb-credentials-modal-container .action-item__submit-button { background: var(--iq-bad) !important; animation: iq-shake .45s var(--iq-ease); }
.iq-waiting .action-item__submit-button .ms-Button-flexContainer, .iq-bad .action-item__submit-button .ms-Button-flexContainer { opacity: 0; transition: opacity .2s; }
.iq-duo {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 12px;
  color: #fff; font-size: 14px; font-weight: 400; line-height: 1.25; white-space: nowrap; pointer-events: none;
  opacity: 0; transform: translateY(6px); transition: opacity .25s .1s, transform .3s .1s var(--iq-ease);
}
.iq-waiting .iq-duo, .iq-bad .iq-duo { opacity: 1; transform: none; }
.iq-duo__ic { position: relative; width: 18px; height: 18px; flex: none; }
.iq-duo__sp { position: absolute; inset: 0; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: iq-spin .9s linear infinite; }
.iq-duo__cross { position: absolute; inset: 0; opacity: 0; transform: scale(.4); stroke: #fff; transition: opacity .25s, transform .35s var(--iq-ease); }
.iq-duo__tx { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.iq-duo__bar { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--iq-magenta); transform-origin: left; opacity: 0; }
.iq-waiting .iq-duo__bar { opacity: 1; animation: iq-drain var(--iq-timeout, 60s) linear forwards; }
.iq-bad .iq-duo__sp { opacity: 0; }
.iq-bad .iq-duo__cross { opacity: 1; transform: none; }
.iq-note { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--iq-label); opacity: 0; transition: opacity .3s, margin .3s; }
.iq-note:not(:empty) { margin-top: 10px; }
.iq-waiting .iq-note, .iq-bad .iq-note { opacity: 1; }
.iq-bad .iq-note { color: var(--iq-bad); }

/* phones: full-width card, as LeadDriver does */
@media (max-width: 480px) {
  .rdweb-credentials-modal-container { max-width: 100vw !important; border-radius: 0 !important; box-shadow: none !important; }
  .iq-lockup { padding: 32px 24px 0; }
  .rdweb-credentials-modal-container .ms-Dialog-inner { padding: 0 24px 28px !important; }
  .iq-duo { white-space: normal; font-size: 13px; text-align: left; }
}

@keyframes iq-spin { to { transform: rotate(360deg); } }
@keyframes iq-drain { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes iq-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }

/* ---- all resources (post sign-in): structure from the live client is
   .tenants > .tenants-container > .tenant-header (.tenant-display-name) + .ms-List.tenant-resources > .ms-List-cell ---- */
.tenants { padding: 28px 36px 60px !important; }
.tenant-header { background: transparent !important; border: 0 !important; padding: 0 0 14px !important; }
.tenant-header .tenant-display-name {
  font-family: var(--iq-font-head) !important; font-weight: 700 !important; font-size: 17px !important; color: var(--iq-navy) !important;
}
.tenant-header .tenant-header-expand-button-icon { color: var(--iq-navy) !important; }
.resources-controls-container { background: transparent !important; }
.resources-controls-divider { background: var(--iq-line) !important; }
/* each tile: white card, thin line, brand-blue lift on hover; icon and label are whatever the client renders inside */
.tenant-resources .ms-List-cell > * {
  background: #fff; border: 1px solid var(--iq-line); border-radius: 6px;
  transition: border-color .2s, box-shadow .2s;
}
/* No translateY lift: the client's list clips the tile's top border when it moves up (seen 17 Nov). */
.tenant-resources .ms-List-cell > *:hover, .tenant-resources .ms-List-cell > *:focus-within {
  border-color: var(--iq-blue); box-shadow: 0 6px 18px -10px rgba(10, 133, 199, .6);
}
.tenant-resources .ms-List-cell { font-family: var(--iq-font) !important; color: var(--iq-ink) !important; }
/* the client draws one tile per published app; the "D" icons come from the RemoteApp itself and are left alone */

/* ---- footer support line ---- */
.webclient::after {
  content: "Indiqator Solutions  ·  Cloudlogic hosted Dealerlogic  ·  Support 1300 66 11 33";
  position: fixed; left: 0; right: 0; bottom: 0; padding: 8px 18px; font-size: 12px; color: var(--iq-muted);
  background: rgba(255, 255, 255, .7); border-top: 1px solid var(--iq-line); backdrop-filter: blur(6px); pointer-events: none; z-index: 5;
}

/* ---- v3 fixes ---- */
/* 1. the home container is fixed-width in the client, so our "Cloudlogic" text spilled under the session tab */
.navbar-home-container { width: auto !important; min-width: 0 !important; max-width: none !important; padding-right: 18px; }
.navbar-session-container { margin-left: 6px; }
/* when an app is open (a session tab exists) drop the sub-brand so the tab has room */
.navbar-container:has(.navbar-session-container .ms-OverflowSet > *) .navbar-home-container::before { display: none; }
/* 2. Fluent's icon-button hover paints its own light grey; keep it a soft white wash on navy */
.navbar-icon:hover, .navbar-icon:active, .navbar-icon.is-expanded, .navbar-icon[aria-expanded="true"],
.persona-button:hover, .persona-button:active, .persona-button[aria-expanded="true"] {
  background: rgba(255, 255, 255, .14) !important; color: #fff !important; border-radius: 4px;
}
.navbar-icon:hover .ms-Icon, .navbar-icon:hover svg, .navbar-icon:active .ms-Icon, .navbar-icon.is-expanded .ms-Icon { color: #fff !important; fill: #fff !important; }
.navbar-icon:focus-visible, .persona-button:focus-visible { outline: 2px solid rgba(255, 255, 255, .6) !important; outline-offset: -2px; }
/* the open-session tab: navy pill with the magenta active rule the client already draws */
.navbar-session-container .ms-OverflowSet [role="menuitem"], .navbar-session-container .ms-OverflowSet button {
  color: #fff !important; font-family: var(--iq-font) !important;
}

/* ---- v4: the client positions the session tab over the left of the bar, so the brand lockup moves to the right ---- */
.navbar-home-container::before, .navbar-home-container::after { display: none !important; content: none !important; }
.navbar-home-container { width: auto !important; padding-right: 0; }
.navbar-extras-container::before {
  content: "Cloudlogic  ·  1300 66 11 33";
  display: inline-block; height: 28px; line-height: 28px; padding-left: 152px; margin-right: 16px;
  background: url("./brand-logo-reverse.png") left center / 138px 28px no-repeat;
  color: #fff; font-family: var(--iq-font-head); font-weight: 300; font-size: 14px; letter-spacing: .02em; white-space: nowrap; opacity: 1;
}
@media (max-width: 900px) { .navbar-extras-container::before { content: ""; padding-left: 138px; margin-right: 8px; } }

/* ---- v5: the session canvas is laid out for the client's own bar height, so don't make the bar taller
   and keep the gradient rule inside the bar instead of hanging 4px below it ---- */
.navbar-container { min-height: 0 !important; height: auto !important; }
.navbar-container::after { bottom: 0 !important; }
.navbar-extras-container::before { height: 24px; line-height: 24px; background-size: 118px 24px; padding-left: 130px; }

/* ---- v6: lock the bar geometry so the icons don't move by a pixel when a session tab opens ---- */
.navbar-container { height: 56px !important; align-items: center !important; }
.navbar-home-container, .navbar-session-container, .navbar-extras-container { height: 56px !important; display: flex !important; align-items: center !important; }
.navbar-session-container *, .navbar-extras-container * { box-sizing: border-box; }
.navbar-session-container .ms-OverflowSet, .navbar-session-container .ms-OverflowSet > * { height: 56px !important; display: flex !important; align-items: center !important; }
/* active-tab marker as an inset shadow, not a border, so it never changes the tab's height */
.navbar-session-container .ms-OverflowSet > * { border-bottom: 0 !important; }
.navbar-session-container .ms-OverflowSet > *:has([aria-selected="true"]), .navbar-session-container [aria-selected="true"], .navbar-session-container .is-selected, .navbar-session-container .is-checked {
  box-shadow: inset 0 -3px 0 var(--iq-magenta) !important; border-bottom: 0 !important;
}

/* ---- v7: one hover/selected look for every button in the bar, and room between Home and the app tabs.
   The client's chunk CSS loads after this file and re-declares :root, which is why the tab kept Microsoft's
   grey and orange; the variable block above is now html:root so it always wins. ---- */
.navbar-home-container {
  flex: 0 0 auto !important; padding: 0 10px 0 6px !important; margin-right: 10px !important;
  border-right: 1px solid rgba(255, 255, 255, .18);
}
.navbar-session-container { margin-left: 0 !important; padding-left: 0 !important; }
.navbar-session-container .ms-OverflowSet { gap: 4px; }
.navbar-session-container button, .navbar-session-container [role="menuitem"], .navbar-session-container [role="tab"] {
  background: transparent !important; border: 0 !important; border-radius: 4px !important; color: #fff !important;
  transition: background-color .15s var(--iq-ease), box-shadow .15s var(--iq-ease);
}
/* hover: identical everywhere in the bar */
#navbar-home-btn:hover, .navbar-icon:hover, .persona-button:hover,
.navbar-session-container button:hover, .navbar-session-container [role="menuitem"]:hover, .navbar-session-container [role="tab"]:hover {
  background: rgba(255, 255, 255, .14) !important;
}
/* selected: the app on screen, or Home while you're on the app list */
.navbar-session-container [aria-selected="true"], .navbar-session-container [aria-checked="true"],
.navbar-session-container .is-selected, .navbar-session-container .is-checked,
#navbar-home-btn.is-checked, #navbar-home-btn[aria-pressed="true"], #navbar-home-btn[aria-selected="true"] {
  background: rgba(255, 255, 255, .20) !important; box-shadow: inset 0 -3px 0 var(--iq-magenta) !important;
}

/* app list arrives after the stage fades: tiles rise in one after another */
.iq-fresh .tenant-resources .ms-List-cell { animation: iq-tile-in .45s var(--iq-ease) .75s both; }
.iq-fresh .tenant-resources .ms-List-cell:nth-child(2)  { animation-delay: .79s; }
.iq-fresh .tenant-resources .ms-List-cell:nth-child(3)  { animation-delay: .83s; }
.iq-fresh .tenant-resources .ms-List-cell:nth-child(4)  { animation-delay: .87s; }
.iq-fresh .tenant-resources .ms-List-cell:nth-child(5)  { animation-delay: .91s; }
.iq-fresh .tenant-resources .ms-List-cell:nth-child(6)  { animation-delay: .95s; }
.iq-fresh .tenant-resources .ms-List-cell:nth-child(7)  { animation-delay: .99s; }
.iq-fresh .tenant-resources .ms-List-cell:nth-child(n+8) { animation-delay: 1.03s; }
@keyframes iq-tile-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---- Duo note on the app-launch dialog, same colour as the Duo state on the sign-in button ---- */
.iq-launch {
  position: relative; display: flex; align-items: center; gap: 12px; margin: 14px 0 2px; padding: 12px 16px 14px;
  background: var(--iq-primary); color: #fff; border-radius: 7px; overflow: hidden; font-family: var(--iq-font);
  animation: iq-launch-in .35s var(--iq-ease) both;
}
.iq-launch__sp { width: 20px; height: 20px; flex: none; border: 2.5px solid rgba(255, 255, 255, .3); border-top-color: #fff; border-radius: 50%; animation: iq-spin .9s linear infinite; }
.iq-launch__tx { font-weight: 600; font-size: 14px; line-height: 1.2; }
.iq-launch__tx small { display: block; font-weight: 400; font-size: 12px; opacity: .8; margin-top: 2px; }
.iq-launch__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--iq-magenta); transform-origin: left; animation: iq-drain 60s linear forwards; }
@keyframes iq-launch-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---- v11: app list = option A plus the welcome band (30 Sep). Grid rules only apply in grid view (html.iq-grid,
   set by brand.js); utility apps (Logoff, User Session Logoff) are tagged .iq-util and grouped after a "Session" label ---- */
.tenants { padding: 56px 0 70px !important; }   /* the navigation bar is fixed over the page, so content starts below it */
.iq-welcome { border-bottom: 1px solid var(--iq-line); background: linear-gradient(180deg, rgba(0, 39, 66, .04), transparent); animation: iq-tile-in .45s var(--iq-ease) both; }
.iq-welcome__in { max-width: 1040px; margin: 0 auto; padding: 26px 28px; display: flex; align-items: center; gap: 24px; }
.iq-welcome__h { font-family: var(--iq-font-head); font-weight: 700; font-size: 24px; color: var(--iq-navy); margin: 0; }
.iq-welcome__n { font-family: var(--iq-font); font-weight: 400; font-size: 13px; color: var(--iq-muted); margin-left: 10px; }
.iq-welcome__p { margin: 2px 0 0; color: var(--iq-muted); font-size: 14px; }
.iq-help {
  margin-left: auto; display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--iq-line); border-radius: 8px;
  padding: 12px 16px; font-size: 12.5px; color: var(--iq-muted); text-decoration: none; transition: border-color .2s, box-shadow .2s;
}
.iq-help:hover { border-color: var(--iq-blue); box-shadow: 0 6px 18px -10px rgba(10, 133, 199, .6); }
.iq-help b { display: block; color: var(--iq-navy); font-size: 15px; }
.iq-help__ic { width: 34px; height: 34px; border-radius: 50%; background: var(--iq-tint); display: flex; align-items: center; justify-content: center; }
.iq-help svg { width: 16px; height: 16px; stroke: var(--iq-action); fill: none; stroke-width: 2; }
@media (max-width: 700px) { .iq-help { display: none; } }
.tenants-container { max-width: 1040px; margin: 0 auto !important; padding: 20px 28px 0 !important; }
/* a single workspace: its collapsible "Cloudlogic" header repeats what the band already says */
.tenant-header { display: none !important; }

/* ---- v15: app tiles are left exactly as the client draws them (v11-v14 layout changes broke them);
   restyle only once the tile markup has been seen ---- */
/* ---- v16: app tiles, written against the real markup (read live 30 Sep):
   .ms-List-cell (0 px tall) > .tile-view (float:left, inline % width) > .tenant-resources-sizer (padding-bottom square)
   > button.tenant-resources-btn (absolute) > .tenant-resources-btn-container (75 px) > .tile-view-thumbnail + .tile-view-label.
   Everything is scoped to .tile-view, which only exists in tile view, so list view is untouched. ---- */
.tenant-resources .tile-view { width: 176px !important; margin: 0 12px 12px 0 !important; box-sizing: border-box; border-radius: 8px !important; }
.tenant-resources .tile-view .tenant-resources-sizer { padding: 0 !important; height: 148px !important; }
.tenant-resources .tile-view .tenant-resources-btn { padding: 0 12px !important; border-radius: 8px !important; }
.tenant-resources .tile-view .tenant-resources-btn-container { width: 100% !important; gap: 10px; }
.tenant-resources .tile-view .tile-view-label-container { width: 100% !important; height: auto !important; }
.tenant-resources .tile-view .tile-view-label {
  width: 100% !important; margin: 0 !important; -webkit-line-clamp: 3 !important; text-align: center !important; overflow-wrap: anywhere;
  font-size: 12.5px !important; font-weight: 600 !important; line-height: 1.35 !important; color: var(--iq-ink) !important;
}
/* Logoff and User Session Logoff: a compact "Session" row after the dealer's apps */
.tenant-resources .ms-List-cell:not(.iq-util) + .ms-List-cell.iq-util:has(> .tile-view)::before {
  content: "Session"; display: block; clear: both; padding: 10px 0 8px;
  font-family: var(--iq-font-head); font-weight: 700; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--iq-muted);
}
.tenant-resources .ms-List-cell.iq-util .tile-view .tenant-resources-sizer { height: 52px !important; }
.tenant-resources .ms-List-cell.iq-util .tile-view .tenant-resources-btn-container { flex-direction: row !important; justify-content: flex-start !important; }
.tenant-resources .ms-List-cell.iq-util .tile-view .tile-view-thumbnail,
.tenant-resources .ms-List-cell.iq-util .tile-view .tile-view-thumbnail img { width: 26px !important; height: 26px !important; flex: none; }
.tenant-resources .ms-List-cell.iq-util .tile-view .tile-view-label-container { width: auto !important; flex: 1; min-width: 0; }
.tenant-resources .ms-List-cell.iq-util .tile-view .tile-view-label { text-align: left !important; -webkit-line-clamp: 1 !important; font-weight: 400 !important; }
.tenant-resources .tile-view .tile-view-label { height: auto !important; max-height: none !important; }
.tenant-resources .ms-List-cell.iq-util .tile-view { width: 210px !important; }
.tenant-resources .ms-List-cell.iq-util .tile-view .tile-view-label-container { display: flex !important; align-items: center !important; height: 100% !important; }
.tenant-resources .ms-List-cell.iq-util .tile-view .tile-view-label { display: block !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; }
/* Microsoft's GDPR "Privacy settings ... preset by your organization" bar, tagged by brand.js */
.warning-messages-root.iq-hidden { display: none !important; }
