/* Xbrook dashboard theme, shared with src/live/themes.css.
 * Presentation only. Keep native Elastic commands, plugins and editor content.
 */
.xb-compose-slot,
.xb-apps-heading {
  display: none;
}
@font-face {
  font-family: Poppins;
  src: url('./fonts/poppins-latin-400-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url('./fonts/poppins-latin-500-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url('./fonts/poppins-latin-600-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url('./fonts/poppins-latin-700-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url('./fonts/poppins-latin-800-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}
:root,
body.xb-shell {
  --xb-font: Poppins, system-ui, sans-serif;
  --xb-bg: #e8eef5;
  --xb-surface: #f8fafc;
  --xb-soft: #edf2f7;
  --xb-line: #aebfd2;
  --xb-text: #172b45;
  --xb-muted: #52647a;
  /* 2.3.0: finding #13, the legacy text accent now meets AA (was #0288d1, 3.86:1 on #fff) */
  --xb-blue: #0b6cb8;
  --xb-accent: #0288d1;
  --xb-on-accent: #fff;
  --xb-hover: #e1ecf5;
  --xb-selected: #dcecf8;
  --xb-rail: #153a59;
  --xb-nav-gradient: linear-gradient(170deg, #153a59 0%, #102944 48%, #0d1c32 100%);
  --xb-shadow: 0 4px 22px #243c4b05;
  /* 2.3.0: finding #13 #15 #14 #22, design tokens; see restyle-work/PLAN.md */
  --xb-accent-strong: #0b6cb8;
  --xb-accent-strong-hover: #0d63a5;
  --xb-on-accent-strong: #ffffff;
  --xb-text-2: #52647a;
  --xb-text-disabled: #64748b;
  --xb-border: #dde5ee;
  --xb-border-strong: #7b8a9c;
  --xb-segment-active: #ffffff;
  --xb-hover-ink: rgba(16, 35, 58, 0.06);
  --xb-nav-ink: #c5d2e2;
  --xb-nav-icon: #94a3b8;
  --xb-nav-active: #72dbbc;
  --xb-nav-section: #9dbbd8;
  --xb-control-sm: 32px;
  --xb-control: 36px;
  --xb-control-lg: 40px;
  --xb-header-h: 64px;
  --xb-gutter: 16px;
  --xb-radius-pane: 12px;
  --xb-radius-control: 8px;
  --xb-fs-caption: 12px;
  --xb-fs-control: 13px;
  --xb-fs-body: 14px;
  --xb-fs-heading: 18px;
  --xb-fs-title: 22px;
}
html.dark-mode,
html.dark-mode body.xb-shell {
  --xb-bg: #0f172a;
  --xb-surface: #0f172a;
  --xb-soft: #1e293b;
  --xb-line: #334155;
  --xb-text: #f1f5f9;
  --xb-muted: #a6b5c9;
  --xb-blue: #14b8a6;
  --xb-accent: #14b8a6;
  --xb-on-accent: #062b29;
  --xb-hover: #213249;
  --xb-selected: #183d43;
  --xb-rail: #111d31;
  --xb-nav-gradient: linear-gradient(170deg, #111d31, #0b1425);
  --xb-shadow: 0 4px 22px #00000014;
  /* 2.3.0: finding #13 #15 #14 #22, design tokens (dark values); see restyle-work/PLAN.md */
  --xb-accent-strong: #14b8a6;
  --xb-accent-strong-hover: #2dd4bf;
  --xb-on-accent-strong: #062b29;
  --xb-text-2: #a6b5c9;
  --xb-text-disabled: #8a9ab0;
  --xb-border: #334155;
  --xb-border-strong: #7a8ba3;
  --xb-segment-active: #334155;
  --xb-hover-ink: rgba(255, 255, 255, 0.08);
}
/* Only UI text: don't change the fonts chosen inside messages or the editor. */
body,
body button,
body input,
body select,
body textarea,
body .ui-widget,
body .xb-brand,
body .xb-inbox-tabs button,
body #taskmenu a,
body #taskmenu #xbp-tools,
body #messagelist td.subject:before,
body .xbw-view-button,
body .xbw-primary,
body .xbw-secondary,
body .xbw-sender-avatar,
body .xbw-quick-reply,
body .xbw-dialog,
body .xbw-field input,
body .xbw-field select,
body .xbw-field textarea,
body .xbw-search-filters,
body .xbw-signatures-button,
body .xbw-settings-link,
body .tox .tox-tbtn {
  font-family: var(--xb-font);
}
body,
html.dark-mode body {
  background-color: var(--xb-bg);
  color: var(--xb-text);
}
.xb-topbar {
  background: var(--xb-soft);
  border-bottom: 1px solid var(--xb-line);
}
.xb-wordmark {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.1;
  font-weight: 800;
}
.xb-brand .xb-brand-light {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  line-height: 1.3;
}
.xb-mark {
  background: linear-gradient(135deg, #168ab0, #0c7569);
  border: 1px solid #ffffff25;
  box-shadow: 0 4px 14px #071b2a26;
}
.xb-avatar {
  background: var(--xb-accent);
  color: var(--xb-on-accent);
}
body .btn-primary,
html.dark-mode body .btn-primary,
body button.xbw-primary,
html.dark-mode body button.xbw-primary {
  background: var(--xb-accent) !important;
  color: var(--xb-on-accent) !important;
  border-color: var(--xb-accent) !important;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: none;
}
body .btn-primary:hover,
body button.xbw-primary:hover {
  filter: brightness(0.94);
}
body .form-control,
body .custom-select,
body input:not([type='checkbox']):not([type='radio']):not([type='submit']):not([type='button']),
body textarea {
  background-color: var(--xb-bg);
  border-color: var(--xb-line);
  color: var(--xb-text);
}
body input::placeholder,
body textarea::placeholder {
  color: var(--xb-muted);
  opacity: 1;
}
body .ui-dialog,
body .popover,
body .xbw-quick-reply {
  border-color: var(--xb-line);
  border-radius: 16px;
  background: var(--xb-surface);
  box-shadow: var(--xb-shadow);
}
body .ui-dialog-titlebar {
  border-top: 3px solid var(--xb-accent);
  border-radius: 16px 16px 0 0;
  background: var(--xb-soft);
  color: var(--xb-text);
}
body #messagelist .subject span {
  letter-spacing: -0.1px;
}
body .xb-inbox-heading h2,
body .xb-compose-title h1,
body #xb-empty-inbox h3 {
  font-weight: 800;
  letter-spacing: -0.6px;
}
body .xb-inbox-tabs span:before {
  margin-right: 6px;
}
body .xb-empty-icon {
  color: var(--xb-accent);
  border-color: color-mix(in srgb, var(--xb-accent) 35%, var(--xb-line));
}
body #layout-menu {
  background: var(--xb-nav-gradient) !important;
}
/* Match the panel's navigation colours. The native icon font is preserved. */
body #taskmenu a,
body #taskmenu #xbp-tools {
  --xb-nav-colour: #6bc9f4;
}
body #taskmenu a.contacts {
  --xb-nav-colour: #72dbbc;
}
body #taskmenu a.settings,
body #taskmenu #xbp-tools {
  --xb-nav-colour: #c3acfa;
}
body #taskmenu .special-buttons a {
  --xb-nav-colour: #f0ca81;
}
body #taskmenu a:before,
body.xb-shell #taskmenu a:before,
body.xb-shell #taskmenu #xbp-tools:before {
  color: var(--xb-nav-colour) !important;
}
body #taskmenu a.selected,
body.xb-shell #taskmenu a.selected,
html.dark-mode body.xb-shell #taskmenu a.selected {
  background: color-mix(in srgb, var(--xb-nav-colour) 15%, transparent) !important;
  color: #fff !important;
  box-shadow: inset 3px 0 var(--xb-nav-colour);
}
body #taskmenu a:hover,
html.dark-mode body #taskmenu a:hover,
body #taskmenu #xbp-tools:hover {
  background: #ffffff0c !important;
  color: #fff !important;
}
/* Reserve the same narrow scrollbar space; show its thumb on interaction. */
body #layout-menu,
body #layout-menu :is(#folderlist-content, .xb-folder-shortcuts) {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  scrollbar-gutter: stable;
}
body #layout-menu:hover,
body #layout-menu:focus-within,
body #layout-menu :is(#folderlist-content, .xb-folder-shortcuts):hover,
body #layout-menu :is(#folderlist-content, .xb-folder-shortcuts):focus-within {
  scrollbar-color: #587089 transparent;
}
body #layout-menu::-webkit-scrollbar,
body #layout-menu :is(#folderlist-content, .xb-folder-shortcuts)::-webkit-scrollbar {
  width: 3px;
  height: 3px;
}
body #layout-menu::-webkit-scrollbar-thumb,
body #layout-menu :is(#folderlist-content, .xb-folder-shortcuts)::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 8px;
}
body #layout-menu:hover::-webkit-scrollbar-thumb,
body #layout-menu:focus-within::-webkit-scrollbar-thumb,
body #layout-menu :is(#folderlist-content, .xb-folder-shortcuts):hover::-webkit-scrollbar-thumb,
body #layout-menu :is(#folderlist-content, .xb-folder-shortcuts):focus-within::-webkit-scrollbar-thumb {
  background: #587089;
}
body #layout-menu::-webkit-scrollbar-button,
body #layout-menu :is(#folderlist-content, .xb-folder-shortcuts)::-webkit-scrollbar-button {
  display: none;
  height: 0;
}
@supports selector(::-webkit-scrollbar) {
  /* Keep native scrollbar colours disabled in every state: a non-auto colour
     overrides the 3px WebKit scrollbar and changes the reserved gutter. */
  body #layout-menu,
  body #layout-menu:hover,
  body #layout-menu:focus-within,
  body #layout-menu :is(#folderlist-content, .xb-folder-shortcuts),
  body #layout-menu :is(#folderlist-content, .xb-folder-shortcuts):hover,
  body #layout-menu :is(#folderlist-content, .xb-folder-shortcuts):focus-within {
    scrollbar-width: auto;
    scrollbar-color: auto;
  }
}
@media (min-width: 1025px) {
  body.xb-shell {
    --xb-nav-width: 248px;
  }
  .xb-shell.xb-nav-collapsed {
    --xb-nav-width: 74px;
  }
  body.xb-shell .xb-topbar {
    position: relative;
    gap: 14px;
    padding-left: calc(var(--xb-nav-width) + 18px);
  }
  html.dark-mode body.xb-shell .xb-topbar .xb-desktop-control {
    background: transparent !important;
    color: var(--xb-muted) !important;
  }
  .xb-shell .xb-topbar:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: -1px;
    width: var(--xb-nav-width);
    background: var(--xb-rail);
  }
  body.xb-shell .xb-brand {
    position: absolute;
    top: 0;
    left: 0;
    height: 72px;
    width: var(--xb-nav-width);
    min-width: 0;
    padding: 0 24px;
    color: #f1f5f9 !important;
    gap: 12px;
    font-size: 23px;
  }
  .xb-shell .xb-brand-light {
    color: #a9c4d7;
  }
  .xb-shell .xb-mark {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }
  .xb-shell .xb-mark:before,
  .xb-shell .xb-mark:after {
    top: 18px;
    left: 8px;
  }
  .xb-nav-collapsed .xb-wordmark {
    display: none;
  }
  body.xb-nav-collapsed .xb-brand {
    padding: 0 16px;
  }
  body.xb-shell .xb-topbar + #layout {
    padding-top: 18px;
    padding-right: 20px;
    padding-bottom: 20px;
    gap: 18px;
  }
  body.xb-shell.xb-mail-workspace #layout {
    gap: 0;
  }
  body.xb-shell #layout-menu {
    margin: -18px 0 -20px;
    padding: 20px 17px 14px;
    height: auto;
    border-radius: 0;
    background: var(--xb-nav-gradient) !important;
    overflow: hidden;
  }
  /* Mailbox navigation comes first. Keep the utility commands at the bottom. */
  body.xb-shell .xb-compose-slot {
    display: block;
    flex: 0 0 auto;
    margin-bottom: 14px;
  }
  body.xb-shell .xb-compose-slot .action-buttons {
    display: block !important;
    margin: 0;
  }
  body.xb-shell .xb-compose-slot a.compose {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    min-height: 47px;
    padding: 10px 12px;
    margin: 0;
    border: 1px solid var(--xb-accent);
    border-radius: 10px;
    color: var(--xb-on-accent) !important;
    background: var(--xb-accent) !important;
    box-shadow: 0 4px 14px #00000014;
    font: 600 12px/20px var(--xb-font);
    text-decoration: none;
  }
  body.xb-shell .xb-compose-slot a.compose:hover {
    filter: brightness(1.08);
  }
  body.xb-shell .xb-compose-slot a.compose:before {
    content: '\f044';
    font: 900 18px/20px Icons;
    width: 20px;
    margin: 0;
    color: inherit;
  }
  body.xb-shell .xb-compose-slot a.compose .inner {
    display: inline;
    position: static;
    width: auto;
    height: auto;
    clip: auto;
    font-size: 12px;
  }
  body.xb-shell #layout-menu > #layout-sidebar {
    position: relative;
    flex: 1 1 0 !important;
    min-height: 90px;
    margin: 0;
  }
  body.xb-shell #layout-menu #layout-sidebar > .header {
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    padding: 0;
    z-index: 1;
  }
  body.xb-shell #layout-menu #layout-sidebar > .header .sidebar-menu {
    margin: 0 0 0 auto;
  }
  body.xb-shell #layout-menu .xb-section-label {
    margin: 0;
    padding: 6px 12px 12px;
    line-height: 18px;
    flex-shrink: 0;
  }
  body.xb-shell #folderlist-content {
    min-height: 0;
    flex: 1 1 auto;
  }
  body.xb-shell .xb-folder-shortcuts {
    flex: 1 1 0;
    min-height: 90px;
    margin: 0;
    border: 0;
    overflow: auto;
  }
  body.xb-shell .xb-folder-shortcuts h2 {
    padding: 6px 12px 12px;
    font-size: 9px;
    line-height: 18px;
  }
  body.xb-shell #taskmenu {
    flex: 0 0 auto;
    margin-top: 10px;
    gap: 2px;
    border-top: 1px solid #ffffff16;
  }
  body.xb-shell #taskmenu > a.mail {
    display: none !important;
  }
  body.xb-shell #taskmenu > .xb-apps-heading {
    display: block;
    color: #c3acfa;
    padding: 16px 12px 8px;
    font: 700 9px/18px var(--xb-font);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-align: left;
  }
  body.xb-shell #taskmenu .special-buttons {
    margin-top: 12px;
    padding: 10px 0 0;
    gap: 2px;
  }
  body.xb-shell #taskmenu .special-buttons a {
    flex: 1;
    flex-direction: column;
    gap: 5px;
    padding: 8px 2px !important;
    min-height: 53px;
  }
  body.xb-shell #taskmenu .special-buttons a span.inner {
    display: block !important;
    font-size: 9px;
    line-height: 14px;
    font-weight: 500;
  }
  body.xb-shell #taskmenu .special-buttons a:before {
    font-size: 15px;
  }
  body.xb-nav-collapsed .xb-compose-slot a.compose {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
  }
  body.xb-nav-collapsed .xb-compose-slot a.compose .inner,
  body.xb-nav-collapsed #taskmenu > .xb-apps-heading,
  body.xb-nav-collapsed #taskmenu .special-buttons a span.inner {
    display: none !important;
  }
  body.xb-nav-collapsed #taskmenu {
    flex: 1 1 auto;
    border: 0;
    margin-top: 0;
    overflow: auto;
    min-height: 0;
  }
  body.xb-nav-collapsed #taskmenu > a.mail {
    display: flex !important;
  }
  body.xb-nav-collapsed #taskmenu .special-buttons {
    margin-top: auto;
  }
  body.xb-nav-collapsed #layout-menu {
    padding-left: 10px;
    padding-right: 10px;
  }
  body.xb-shell #taskmenu a,
  body.xb-shell #taskmenu #xbp-tools {
    color: #c5d2e2 !important;
    border: 1px solid transparent !important;
    border-radius: 10px;
    font-family: var(--xb-font);
    font-weight: 600;
    font-size: 12px;
  }
  body.xb-nav-collapsed #taskmenu #xbp-tools {
    font-size: 0;
  }
  body.xb-shell #taskmenu a.selected {
    border-color: color-mix(in srgb, var(--xb-nav-colour) 48%, transparent) !important;
    color: #fff !important;
  }
  body.xb-shell #taskmenu a.compose,
  html.dark-mode body.xb-shell #taskmenu a.compose {
    background: var(--xb-accent) !important;
    border-color: var(--xb-accent) !important;
    color: var(--xb-on-accent) !important;
    box-shadow: 0 4px 14px #00000014;
    border-radius: 10px;
  }
  body.xb-shell #taskmenu a.compose:before {
    color: inherit !important;
  }
  body.xb-shell #taskmenu .special-buttons,
  body.xb-shell .xb-folder-shortcuts {
    border-color: #ffffff16;
  }
  body.xb-shell .xb-folder-shortcuts h2,
  body.xb-shell #layout-menu .xb-section-label {
    color: #72dbbc;
    font-weight: 700;
    letter-spacing: 1.5px;
  }
  body.xb-shell .folderlist li a,
  body.xb-shell .xb-folder-shortcuts a,
  body.xb-shell #layout-menu #layout-sidebar > .footer {
    color: #c5d2e2 !important;
  }
  body.xb-shell .folderlist li a:before,
  body.xb-shell .xb-folder-shortcuts a:before {
    color: #72dbbc !important;
  }
  body.xb-shell .folderlist li.selected > a {
    background: #72dbbc20 !important;
    color: #fff !important;
    box-shadow: inset 3px 0 #72dbbc;
    border: 1px solid #72dbbc66;
    font-weight: 600;
  }
  body.xb-shell .folderlist li a:hover,
  body.xb-shell .xb-folder-shortcuts a:hover {
    background: #ffffff0c !important;
    color: white !important;
  }
  body.xb-shell #layout-menu #layout-sidebar > .header a {
    color: #adbed3 !important;
  }
  body.xb-shell #xb-desktop-search .searchbar {
    border: 1px solid var(--xb-line);
    background: var(--xb-bg);
    box-shadow: none;
    border-radius: 10px;
  }
  body.xb-shell #xb-desktop-search input {
    background: transparent;
    font-size: 12px;
  }
  body.xb-shell #layout-list,
  body.xb-shell #layout-content {
    border-color: var(--xb-line);
    border-top: 3px solid var(--xb-accent) !important;
    border-radius: 18px;
    box-shadow: var(--xb-shadow);
  }
  body.xb-shell.task-mail.action-compose #layout-content {
    border-top: 3px solid var(--xb-accent) !important;
  }
  body.xb-mail-workspace #layout-list {
    margin-left: 18px;
    border-radius: 18px 0 0 18px;
  }
  body.xb-mail-workspace #layout-content {
    border-radius: 0 18px 18px 0;
  }
  body.xb-pane-bottom #layout-list {
    border-radius: 18px 18px 0 0;
  }
  body.xb-pane-bottom #layout-content {
    margin-left: 18px;
    border-radius: 0 0 18px 18px;
    border-top: 1px solid var(--xb-line) !important;
  }
  body.xb-pane-off #layout-list,
  body.xb-pane-off #layout-content {
    margin-left: 18px;
    border-radius: 18px;
  }
  body.xb-shell #layout-list > .header,
  body.xb-shell #layout-content > .header {
    background: var(--xb-soft);
  }
  body.xb-shell .xb-inbox-heading {
    background: linear-gradient(115deg, color-mix(in srgb, var(--xb-accent) 6%, var(--xb-surface)), var(--xb-surface));
  }
  body.xb-shell .xb-inbox-tabs {
    background: var(--xb-soft);
  }
  body.xb-shell .xb-inbox-tabs button {
    border-radius: 0;
    font-family: var(--xb-font);
  }
  body.xb-shell #messagelist tr {
    border-bottom-color: color-mix(in srgb, var(--xb-line) 60%, var(--xb-surface));
  }
  body.xb-shell #messagelist .fromto {
    font-weight: 500;
  }
  body.xb-shell #messagelist tr.unread .fromto,
  body.xb-shell #messagelist tr.unread span.subject {
    font-weight: 700;
  }
}
@media (max-width: 1024px) {
  .xb-topbar {
    background: var(--xb-soft);
  }
  .xb-brand {
    font-size: 20px;
  }
  body #taskmenu a,
  html.dark-mode body #taskmenu a {
    width: 58px !important;
    max-width: 58px;
  }
  body #layout-list > .header,
  body #layout-content > .header {
    background: var(--xb-soft) !important;
    border-color: var(--xb-line);
  }
  body .xb-inbox-heading {
    border-top: 3px solid var(--xb-accent);
  }
  body #layout-sidebar:not(#layout-menu #layout-sidebar) {
    background: var(--xb-surface) !important;
  }
}
/* Elastic opens a full-width drawer on phones; don't use tablet icon-rail widths. */
@media (max-width: 480px) {
  body #layout-menu {
    width: 230px !important;
    min-width: 230px !important;
    max-width: calc(100vw - 48px) !important;
  }
  body #layout-menu #taskmenu a,
  html.dark-mode body #layout-menu #taskmenu a,
  body #layout-menu #taskmenu #xbp-tools {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    gap: 12px;
    width: calc(100% - 24px) !important;
    max-width: none;
    min-height: 43px;
    margin: 4px 12px;
    padding: 10px 12px !important;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #c5d2e2;
    font: 600 12px/20px var(--xb-font);
    text-align: left;
  }
  body #layout-menu #taskmenu a span.inner {
    display: block !important;
    position: static !important;
    clip: auto;
    width: auto;
    height: auto;
    font-size: 12px;
    line-height: 20px;
    white-space: nowrap;
  }
  body #layout-menu #taskmenu a:before,
  body #layout-menu #taskmenu #xbp-tools:before {
    font: 900 17px/20px Icons;
    width: 20px;
    min-width: 20px;
    margin: 0 !important;
    text-align: center;
  }
  body #layout-menu #taskmenu #xbp-tools:before {
    content: '\f0ad';
  }
}
