/* Visual only: the search can still be triggered by hand or by shortcuts.
   The bar also holds the "unread" filter button and the search options. */

/* Temporarily hide message search in the mail view (remove to bring it back).
   Elastic: action-none limits this to the message list, excluding compose.
   Larry: messagesearchtools exists only in the mail template and contains both
   the search box and filter. Do not hide quicksearchbar: contacts use it too. */
body.task-mail.action-none .searchbar,
#messagesearchtools {
    display: none !important;
}

/* "O programie" shows the Roundcube version and the plugin list; users get the
   "Pomoc" button of this plugin instead (support_url in config/instance.php). */
#taskmenu a.about {
    display: none !important;
}

/* List options: with sorting locked and no threads the popup would be empty
   (see imap_disabled_caps in config/settings.php). */
body.task-mail.action-none a.options {
    display: none !important;
}

/* "Utwórz" also in the top toolbar, before "Odpowiedz". Elastic ships this
   button in includes/mail-menu.html with the class "hidden"; it is shown only
   on desktop widths (above 768 px), where the toolbar is not folded into a menu.
   At page load Elastic's ui.js rebuilds <div id="mailtoolbar"> into
   <ul id="toolbar-menu">, so the selector goes by the header that holds both.
   If a Roundcube release drops the button, this rule simply matches nothing. */
html.layout-normal #layout-content > .header a.compose.hidden,
html.layout-large #layout-content > .header a.compose.hidden {
    display: block !important;
}

/* Larry header and print logo: keep the SVG inside its 46px header. */
#toplogo {
    height: 42px;
    width: auto;
}

/* Larry login panel; Elastic's logo is outside the form and uses its rule below. */
#login-form .box-inner #logo {
    height: 100px;
    width: auto;
    max-width: 100%;
}

/* Login screen: the NSS logo is small by itself (16.84 mm), so give it the
   height Elastic allows for the login logo. */
body.task-login #logo {
    height: 100px;
}

/* Login screen: selectors to start from.
   body.task-login #layout-content, #logo, #login-form, #login-footer */
