/* Sam CRM look for Mautic (worker J, Nov 29, 2026). Added to every Mautic page by nginx (sub_filter, see
 * sso-setup.sh); no Mautic file is changed, so Mautic updates keep working. Mautic's GPL notices are untouched.
 * Goal: Newsletter opened inside Sam CRM looks like part of Sam CRM, not a second app. */
body, .btn, input, select, textarea { font-family: "Inter", "Segoe UI", system-ui, Arial, sans-serif !important; }
/* Sam CRM already shows its name and logo on the left; Mautic's own logo goes */
.brand-logo--desktop.mautic-brand, .brand-logo--mobile.mautic-brand { visibility: hidden; }
#app-header.navbar { background: #fff; border-bottom: 1px solid #e5e9ee; box-shadow: none; }
/* Mautic's menu in Sam CRM's quiet style: light, blue for the open page */
.app-sidebar.sidebar-left { background: #f7f9fb !important; border-right: 1px solid #e5e9ee; }
.app-sidebar .nav-sidebar a { color: #4b5b6b !important; }
.app-sidebar .nav-sidebar li.active > a, .app-sidebar .nav-sidebar li > a:hover {
  background: rgba(42, 110, 181, .12) !important; color: #2a6eb5 !important; }
.app-sidebar .nav-sidebar li.active > a { box-shadow: inset 3px 0 0 #2a6eb5; }
/* buttons and links in Sam CRM blue */
.btn-primary, .btn-primary:focus { background-color: #2a6eb5 !important; border-color: #2a6eb5 !important; }
.btn-primary:hover { background-color: #235d99 !important; border-color: #235d99 !important; }
a { color: #2a6eb5; }
.page-header { border-bottom: 1px solid #e5e9ee; }

/* phones (worker L, Nov 29): the From / To date boxes on the dashboard and report pages were squeezed to
 * nothing (Bootstrap input-group table cells). Below 600 px they take one full row each, Save under them. */
@media (max-width: 600px) {
  form.form-filter { max-width: none !important; width: 100%; }
  form.form-filter .input-group { display: flex !important; flex-wrap: wrap; width: 100%; }
  form.form-filter .input-group > .input-group-addon { display: flex; align-items: center; flex: 0 0 56px; width: 56px;
    border: 1px solid #ccc !important; border-right: 0 !important; border-radius: 4px 0 0 4px; margin-bottom: 6px; }
  form.form-filter .input-group > .form-control { display: block; flex: 1 1 calc(100% - 56px); width: auto !important;
    min-width: 0; float: none; border-radius: 0 4px 4px 0 !important; margin-bottom: 6px; }
  form.form-filter .input-group > .input-group-btn { display: block; width: 100%; }
  form.form-filter .input-group > .input-group-btn .btn,
  form.form-filter .input-group > .input-group-btn button { width: 100%; border-radius: 4px !important; }
  form.form-filter .input-group > .input-group-btn .form-group { margin: 0; }
}