/* TimeBook Mail: bug fixes over Elastic (2026-11-10). */

/* 1. Dark mode: Elastic forces fixed widths on menu items (41px / 77px). */
@media (min-width: 1025px) {
  html.dark-mode #taskmenu a { width: calc(100% - 20px); }
}

/* 2. Dark mode: bottom menu buttons got Elastic's grey boxes. */
html.dark-mode #layout-menu .special-buttons a:not(:focus) { background: transparent; }
html.dark-mode #layout-menu .special-buttons a:hover { background: var(--tb-blue-soft); color: var(--tb-blue); }
html.dark-mode #taskmenu a.logout:hover { color: #ff6b6b; background: var(--tb-surface); }

/* 3. Phone: floating compose button in brand blue. */
.floating-action-buttons a.button,
html.dark-mode .floating-action-buttons a.button {
  background: #0066cc; opacity: 1;
  box-shadow: 0 6px 18px rgba(0, 102, 204, .32);
}
html.dark-mode .floating-action-buttons a.button { box-shadow: 0 6px 18px rgba(0, 0, 0, .45); }

/* 4. Search bar: the input kept a white rounded background from the global input style. */
.searchbar input,
.searchbar input[type="text"],
html.dark-mode .searchbar input[type="text"] {
  background: transparent !important; border: 0 !important; border-radius: 0; box-shadow: none !important;
}
.searchbar input:focus-visible { outline: 0 !important; }
.searchbar:focus-within { box-shadow: inset 0 -2px 0 var(--tb-blue); }

/* 5. Header toolbars: icons only (labels stay for screen readers, tooltip via title). */
@media (min-width: 481px) {
  #layout > div > .header .menu.toolbar a .inner,
  #layout > div > .header a.toolbar-button .inner {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  #layout > div > .header .menu.toolbar a:not(.dropdown),
  #layout > div > .header a.toolbar-button { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; }
  html body #layout > div > .header .menu.toolbar a:not(.dropdown)::before,
  html body #layout > div > .header a.toolbar-button::before { float: none; margin: 0; font-size: 1.15rem; width: 24px; height: 24px; line-height: 24px; }
  #layout > div > .header .menu.toolbar { display: flex; align-items: center; gap: 2px; }
  #layout > div > .header .menu.toolbar > li { display: flex; align-items: center; }
  #layout > div > .header a.toolbar-button { align-self: center; }
  #layout > div > .header .menu.toolbar .dropbutton { display: inline-flex; align-items: center; }
  #layout > div > .header .menu.toolbar a.dropdown { position: static; display: inline-flex; align-items: center; width: 14px; height: 40px; margin: 0; }
  html body #layout > div > .header .menu.toolbar a.dropdown::before { float: none; margin: 0; position: static; font-size: .7rem; width: 12px; height: 24px; line-height: 24px; }
}

/* 6. Small brand icon on the login screen had square black corners. */
.timebook-story-brand img { border-radius: 23%; }

/* 7. Login button: sentence case instead of ALL CAPS. */
#login-form .formbuttons button.text-uppercase { text-transform: none !important; letter-spacing: 0; }
