/* Meck — UI-polish
 * Layouten (Bootstrap 3 + befintliga klasser) är oförändrad; denna fil ger
 * bättre kontrast, fästelement och tillgänglighet utan att ändra struktur.
 */

/* ---------- Grund ---------- */
body {
    background: #f4f6f8;
    font-size: 14px;
    color: #2c3e50;
}
a { transition: color .12s ease; }
h1, h2, h3 { font-weight: 600; }

/* ---------- Toppmeny (fäst när man scrollar) ---------- */
.navbar-meck {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #fff;
    border-bottom: 1px solid #dde3e9;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    margin-bottom: 16px;
    padding: 8px 0;
}
.navbar-meck .panel { margin: 0; border: 0; background: transparent; box-shadow: none; }
.navbar-meck .btn-default { border-color: #cfd6dd; }
.navbar-meck .btn-default:hover,
.navbar-meck .btn-default:focus { background: #eef2f6; }

/* Aktiv menyknapp markeras av site.js (matchar location.pathname) */
.navbar-meck .btn-default.active {
    background: #337ab7;
    color: #fff;
    border-color: #2e6da4;
}
.navbar-meck .btn-default.active:hover { background: #2e6da4; }

/* ---------- Paneler/tabeller ---------- */
.panel { box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.panel-default > .panel-heading {
    background: #fff;
    border-bottom: 2px solid #eef1f4;
    font-weight: 600;
    color: #54677a;
}
.table > thead > tr > th {
    font-weight: 600;
    color: #54677a;
    border-bottom: 2px solid #dde3e9 !important;
    background: #fafbfc;
}
.table > tbody > tr:hover > td { background: #f4f8fc; }
.results td, .results th { padding: 8px 10px; }

/* Länkade namn i listor */
.table td a { color: #337ab7; text-decoration: none; }
.table td a:hover { text-decoration: underline; }

/* ---------- Status-badges (färg på text istället för tout) ---------- */
.label-status { font-size: 85%; padding: .25em .6em; border-radius: 3px; }
.label-status.Ny-kund        { background: #eaf4fd; color: #2470a8; }
.label-status.Bokad          { background: #e6f4ea; color: #2e7d43; }
.label-status.Avbokat-möte   { background: #fdeaea; color: #b23b3b; }
.label-status.Uppföljning    { background: #fff4e0; color: #a86824; }
.label-status.Sälj--FU       { background: #f1eafd; color: #6a44c2; }
.label-status.Nej--inget-FU  { background: #eef0f2; color: #6a7681; }

/* ---------- Formulär ---------- */
.form-control:focus {
    border-color: #66afe9;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.05), 0 0 6px rgba(102,175,233,.45);
}
.has-error .form-control { border-color: #b23b3b; }
.help-block-error { color: #b23b3b; margin-top: 4px; font-size: 12px; }

/* ---------- Kalendern (fullcalendar) ---------- */
.fc-toolbar.fc-header-toolbar { margin-bottom: 10px; }

/* ---------- Buttons: hovereffekt ---------- */
.btn { transition: background .12s ease, border-color .12s ease; }
.btn-primary { background: #337ab7; border-color: #2e6da4; }
.btn-primary:hover { background: #2e6da4; }

/* ---------- Footer ---------- */
.meck-footer {
    text-align: center;
    color: #9aa7b2;
    font-size: 12px;
    margin: 24px 0 12px;
}

/* ---------- Sök (typeahead) ---------- */
#search { min-width: 220px; }

/* ---------- småskärm: menyn radbryter snyggt ---------- */
@media (max-width: 991px) {
    .navbar-meck .pull-right { float: none !important; margin-top: 8px; }
    .navbar-meck .btn { margin-bottom: 4px; }
}
span.twitter-typeahead .tt-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  display: none;
  float: left;
  min-width: 160px;
  padding: 5px 0;
  margin: 2px 0 0;
  list-style: none;
  font-size: 14px;
  text-align: left;
  background-color: #ffffff;
  border: 1px solid #cccccc;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  background-clip: padding-box;
}
span.twitter-typeahead .tt-suggestion {
  display: block;
  padding: 3px 20px;
  clear: both;
  font-weight: normal;
  line-height: 1.42857143;
  color: #333333;
  white-space: nowrap;
}
span.twitter-typeahead .tt-suggestion.tt-cursor,
span.twitter-typeahead .tt-suggestion:hover,
span.twitter-typeahead .tt-suggestion:focus {
  color: #ffffff;
  text-decoration: none;
  outline: 0;
  background-color: #337ab7;
}
.input-group.input-group-lg span.twitter-typeahead .form-control {
  height: 46px;
  padding: 10px 16px;
  font-size: 18px;
  line-height: 1.3333333;
  border-radius: 6px;
}
.input-group.input-group-sm span.twitter-typeahead .form-control {
  height: 30px;
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1.5;
  border-radius: 3px;
}
span.twitter-typeahead {
  width: 100%;
}
.input-group span.twitter-typeahead {
  display: block !important;
  height: 34px;
}
.input-group span.twitter-typeahead .tt-menu,
.input-group span.twitter-typeahead .tt-dropdown-menu {
  top: 32px !important;
}
.input-group span.twitter-typeahead:not(:first-child):not(:last-child) .form-control {
  border-radius: 0;
}
.input-group span.twitter-typeahead:first-child .form-control {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.input-group span.twitter-typeahead:last-child .form-control {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}
.input-group.input-group-sm span.twitter-typeahead {
  height: 30px;
}
.input-group.input-group-sm span.twitter-typeahead .tt-menu,
.input-group.input-group-sm span.twitter-typeahead .tt-dropdown-menu {
  top: 30px !important;
}
.input-group.input-group-lg span.twitter-typeahead {
  height: 46px;
}
.input-group.input-group-lg span.twitter-typeahead .tt-menu,
.input-group.input-group-lg span.twitter-typeahead .tt-dropdown-menu {
  top: 46px !important;
}


/* ---------- Typeahead: modern match mot övrig UI ---------- */
.tt-menu {
    background: #fff;
    border: 1px solid #cfd6dd;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,.12);
    min-width: 260px;
    max-height: 320px;
    overflow-y: auto;
}
.tt-suggestion { padding: 8px 14px; cursor: pointer; }
.tt-suggestion:hover, .tt-suggestion.tt-cursor { background: #eef2f6; color: #2c3e50; }
.tt-suggestion .tt-highlight { color: #2470a8; font-weight: 600; }
.tt-empty, .tt-dataset-empty { padding: 8px 14px; color: #9aa7b2; font-style: italic; }
