/* SPLUS UI — left-menu era (no top-bar layout) */

.splus-ui-hide-spacer {
  display: none !important;
  flex: 0 0 0 !important;
  width: 0 !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Headers left */
body.splus-ui #layout > div > .header.splus-ui-header,
body.task-mail #layout-content > .header,
body.task-mail #layout-list > .header,
body.task-mail #messagelist-header,
body.task-mail #layout-sidebar > .header,
body.task-addressbook #layout-list > .header,
body.task-addressbook #layout-content > .header,
body.task-addressbook #layout-sidebar > .header,
body.task-settings #layout-list > .header,
body.task-settings #layout-content > .header,
body.task-settings #layout-sidebar > .header {
  justify-content: flex-start !important;
}

body.task-mail #layout-content > .header > .header-title {
  flex: 0 1 auto !important;
  margin-right: 0.5rem !important;
  text-align: left !important;
}
body.task-mail #mailtoolbar.toolbar.menu,
body.task-mail #layout-content > .header > ul.menu.toolbar,
body.task-mail #composetoolbar.toolbar.menu,
body.splus-ui-compose #layout-content > .header > ul.menu.toolbar {
  justify-content: flex-start !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}
body.task-mail #mailtoolbar .spacer,
body.task-mail #composetoolbar .spacer,
body.task-mail #layout-content > .header .menu .spacer {
  display: none !important;
  flex: 0 !important;
  width: 0 !important;
}

body.task-mail #layout-list > .header > .header-title,
body.task-mail #messagelist-header > .header-title {
  flex: 0 0 auto !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  opacity: 0;
  pointer-events: none;
}
body.task-mail #layout-list > .header > .toolbar.menu,
body.task-mail #layout-list > .header > ul.menu:not(.popupmenu),
body.task-mail #messagelist-header > .toolbar.menu,
body.task-mail #messagelist-header > ul.menu:not(.popupmenu) {
  display: flex !important;
  justify-content: flex-start !important;
  margin-left: 0 !important;
}

/* Sidebar: email + quota */
body.task-mail #layout-sidebar > .header.splus-mail-sidebar-header {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0.15rem;
  min-height: 58px;
}
body.task-mail #layout-sidebar > .header.splus-mail-sidebar-header > a.sidebar-menu,
body.task-mail #layout-sidebar > .header.splus-mail-sidebar-header > a.button.sidebar-menu,
body.task-mail #layout-sidebar > .header.splus-mail-sidebar-header > a[data-popup="mailboxoptions-menu"] {
  align-self: center !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 0.25rem 0 0 !important;
  padding: 0 !important;
  height: auto !important;
  min-height: 2.75rem !important;
  line-height: 1 !important;
}
body.task-mail #layout-sidebar .splus-sidebar-user {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.35rem;
  flex: 1 1 auto;
  min-width: 0;
  margin-left: 0.25rem;
  margin-right: 0.25rem;
  line-height: 1.2;
  padding: 0.35rem 0;
}
body.task-mail #layout-sidebar .splus-sidebar-user > .header-title.username {
  flex: 0 1 auto !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  line-height: 1.25 !important;
}
body.task-mail #layout-sidebar #quotadisplay.splus-quota-header {
  display: block !important;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  height: auto !important;
  min-height: 0 !important;
  line-height: 1.25;
  cursor: default;
  color: #5a6570 !important;
}
/* hide Elastic disk icon + percent bar */
body.task-mail #layout-sidebar #quotadisplay.splus-quota-header:before,
body.task-mail #layout-sidebar #quotadisplay.splus-quota-header .bar {
  display: none !important;
  content: none !important;
}
body.task-mail #layout-sidebar #quotadisplay.splus-quota-header .count,
body.task-mail #layout-sidebar #quotadisplay.splus-quota-header .splus-quota-text {
  display: block !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  color: #5a6570 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.25;
  order: unset !important;
}
body.task-mail #layout-sidebar #quotadisplay.splus-quota-header.splus-quota-warn .count,
body.task-mail #layout-sidebar #quotadisplay.splus-quota-header.splus-quota-warn .splus-quota-text,
body.task-mail #layout-sidebar #quotadisplay.splus-quota-header.splus-quota-warn {
  color: #b45309 !important;
}
body.task-mail #layout-sidebar #quotadisplay.splus-quota-header.splus-quota-crit .count,
body.task-mail #layout-sidebar #quotadisplay.splus-quota-header.splus-quota-crit .splus-quota-text,
body.task-mail #layout-sidebar #quotadisplay.splus-quota-header.splus-quota-crit {
  color: #b91c1c !important;
}


/* SPLUS: clear-folder — same toolbar layout as neighbors, red accent */
#messagelist-header > a.button.clear-folder,
#layout-list > .header > a.button.clear-folder {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0;
  width: auto !important;
  min-width: 3.2rem !important;
  max-width: 6rem !important;
  height: 58px !important;
  padding: 0.45rem !important;
  margin: 0 0.25rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #b42318 !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  text-align: center !important;
  text-decoration: none !important;
}
#messagelist-header > a.button.clear-folder:before,
#layout-list > .header > a.button.clear-folder:before {
  font-family: "Icons" !important;
  font-weight: 900 !important;
  font-style: normal !important;
  content: "\f12d" !important;
  display: block !important;
  float: none !important;
  width: auto !important;
  height: 1.75rem !important;
  line-height: 1.75rem !important;
  margin: 0 !important;
  font-size: 1.25rem !important;
  color: #b42318 !important;
  -webkit-font-smoothing: antialiased;
}
#messagelist-header > a.button.clear-folder > .inner,
#layout-list > .header > a.button.clear-folder > .inner {
  display: block !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: inherit !important;
  line-height: 1.2 !important;
  color: #b42318 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
#messagelist-header > a.button.clear-folder:hover,
#messagelist-header > a.button.clear-folder:focus,
#layout-list > .header > a.button.clear-folder:hover,
#layout-list > .header > a.button.clear-folder:focus {
  background-color: rgba(180, 35, 24, 0.08) !important;
  color: #912018 !important;
}
#messagelist-header > a.button.clear-folder:hover:before,
#messagelist-header > a.button.clear-folder:focus:before,
#layout-list > .header > a.button.clear-folder:hover:before,
#layout-list > .header > a.button.clear-folder:focus:before,
#messagelist-header > a.button.clear-folder:hover > .inner,
#messagelist-header > a.button.clear-folder:focus > .inner {
  color: #912018 !important;
}
#messagelist-header > a.button.clear-folder.disabled,
#layout-list > .header > a.button.clear-folder.disabled {
  opacity: 0.45 !important;
  color: #b42318 !important;
  background: transparent !important;
  border: 0 !important;
}
@media screen and (max-width: 768px) {
  #messagelist-header > a.button.clear-folder > .inner,
  #layout-list > .header > a.button.clear-folder > .inner {
    display: none !important;
  }
  #messagelist-header > a.button.clear-folder,
  #layout-list > .header > a.button.clear-folder {
    min-width: 2.5rem !important;
    width: 2.5rem !important;
    padding: 0 !important;
  }
}
