
.text-muted,
.text-muted a,
a.text-muted {
  color: #677890;
}
.text-muted a:hover,
.text-muted a:focus,
a.text-muted:hover,
a.text-muted:focus {
  color: #4a5568;
}
.text-primary,
.text-primary a,
a.text-primary {
  color: #725794;
}
.text-primary a:hover,
.text-primary a:focus,
a.text-primary:hover,
a.text-primary:focus {
  color: #50386e;
}
.text-success,
.text-success a,
a.text-success {
  color: #6c7e31;
}
.text-success a:hover,
.text-success a:focus,
a.text-success:hover,
a.text-success:focus {
  color: #556727;
}
.text-info,
.text-info a,
a.text-info {
  color: #2c6a82;
}
.text-info a:hover,
.text-info a:focus,
a.text-info:hover,
a.text-info:focus {
  color: #2a5265;
}
.text-warning,
.text-warning a,
a.text-warning {
  color: #cc4e13;
}
.text-warning a:hover,
.text-warning a:focus,
a.text-warning:hover,
a.text-warning:focus {
  color: #9c3c1c;
}
.text-danger,
.text-danger a,
a.text-danger {
  color: #c42719;
}
.text-danger a:hover,
.text-danger a:focus,
a.text-danger:hover,
a.text-danger:focus {
  color: #9c221c;
}
.bg-primary,
.bg-primary a:not(.btn),
a.bg-primary:focus:not(.btn),
a.bg-primary:hover:not(.btn) {
  color: #fff;
  background-color: #725794;
}
.bg-success, a.bg-success:hover:not(.btn) {
  background-color: #dde69a;
}
.bg-info, a.bg-info:hover:not(.btn) {
  background-color: #b4e8fa;
}
.bg-warning, a.bg-warning:hover:not(.btn) {
  background-color: #fee7c8;
}
.bg-danger, a.bg-danger:hover:not(.btn) {
  background-color: #febbb2;
}
.alert-success a:not(.btn),
.alert-success a:hover:not(.btn),
.alert-success {
  color: #465422;
  background-color: #dde69a;
  border-color: #c5d368;
}
.alert-info a:not(.btn),
.alert-info a:hover:not(.btn),
.alert-info {
  color: #2a5265;
  background-color: #b4e8fa;
  border-color: #7ddbf0;
}
.alert-warning a:not(.btn),
.alert-danger a:hover:not(.btn),
.alert-warning {
  color: #9c3c1c;
  background-color: #fee7c8;
  border-color: #fbc98d;
}
.alert-danger a:not(.btn),
.alert-danger a:hover:not(.btn),
.alert-danger {
  color: #c42719;
  background-color: #fedcd7;
  border-color: #febbb2;
}
.btn-default {
  color: #677890;
  background-color: #fff;
  border-color: #a0aec0;
}
.btn-default:hover,
.btn-default:focus,
.btn-default:active,
.btn-default.active,
.open > .dropdown-toggle.btn-default {
  color: #4a5568;
  background-color: #f7fafc;
  border-color: #677890;
}
.btn-default.disabled,
.btn-default[disabled],
fieldset[disabled] .btn-default,
.btn-default.disabled:hover,
.btn-default[disabled]:hover,
fieldset[disabled] .btn-default:hover,
.btn-default.disabled:focus,
.btn-default[disabled]:focus,
fieldset[disabled] .btn-default:focus,
.btn-default.disabled:active,
.btn-default[disabled]:active,
fieldset[disabled] .btn-default:active,
.btn-default.disabled.active,
.btn-default[disabled].active,
fieldset[disabled] .btn-default.active {
  background-color: #fff;
  border-color: #bdbdbd;
}
.btn-default .badge {
  color: #fff;
  background-color: #677890;
}
.btn-primary {
  color: #fff;
  background-color: #725794;
  border-color: #725794;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.open > .dropdown-toggle.btn-primary {
  color: #fff;
  background-color: #5f497c;
  border-color: #5f497c;
}
.btn-primary.disabled,
.btn-primary[disabled],
fieldset[disabled] .btn-primary,
.btn-primary.disabled:hover,
.btn-primary[disabled]:hover,
fieldset[disabled] .btn-primary:hover,
.btn-primary.disabled:focus,
.btn-primary[disabled]:focus,
fieldset[disabled] .btn-primary:focus,
.btn-primary.disabled:active,
.btn-primary[disabled]:active,
fieldset[disabled] .btn-primary:active,
.btn-primary.disabled.active,
.btn-primary[disabled].active,
fieldset[disabled] .btn-primary.active {
  background-color: #725794;
  border-color: #725794;
}
.btn-primary .badge {
  color: #725794;
  text-shadow: none;
  background-color: #fff;
}
.btn-success {
  color: #fff;
  background-color: #6c7e31;
  border-color: #6c7e31;
}
.btn-success:hover,
.btn-success:focus,
.btn-success:active,
.btn-success.active,
.open > .dropdown-toggle.btn-success {
  color: #fff;
  background-color: #546226;
  border-color: #546226;
}
.btn-success.disabled,
.btn-success[disabled],
fieldset[disabled] .btn-success,
.btn-success.disabled:hover,
.btn-success[disabled]:hover,
fieldset[disabled] .btn-success:hover,
.btn-success.disabled:focus,
.btn-success[disabled]:focus,
fieldset[disabled] .btn-success:focus,
.btn-success.disabled:active,
.btn-success[disabled]:active,
fieldset[disabled] .btn-success:active,
.btn-success.disabled.active,
.btn-success[disabled].active,
fieldset[disabled] .btn-success.active {
  background-color: #6c7e31;
  border-color: #6c7e31;
}
.btn-success .badge {
  color: #6c7e31;
  text-shadow: none;
  background-color: #fff;
}
.btn-info {
  color: #fff;
  background-color: #2c6a82;
  border-color: #2c6a82;
}
.btn-info:hover,
.btn-info:focus,
.btn-info:active,
.btn-info.active,
.open > .dropdown-toggle.btn-info {
  color: #fff;
  background-color: #225365;
  border-color: #225365;
}
.btn-info.disabled,
.btn-info[disabled],
fieldset[disabled] .btn-info,
.btn-info.disabled:hover,
.btn-info[disabled]:hover,
fieldset[disabled] .btn-info:hover,
.btn-info.disabled:focus,
.btn-info[disabled]:focus,
fieldset[disabled] .btn-info:focus,
.btn-info.disabled:active,
.btn-info[disabled]:active,
fieldset[disabled] .btn-info:active,
.btn-info.disabled.active,
.btn-info[disabled].active,
fieldset[disabled] .btn-info.active {
  background-color: #2c6a82;
  border-color: #2c6a82;
}
.btn-info .badge {
  color: #225365;
  text-shadow: none;
  background-color: #fff;
}
.btn-warning {
  color: #fff;
  background-color: #cc4e13;
  border-color: #cc4e13;
}
.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active,
.btn-warning.active,
.open > .dropdown-toggle.btn-warning {
  color: #fff;
  background-color: #a94110;
  border-color: #a94110;
}
.btn-warning.disabled,
.btn-warning[disabled],
fieldset[disabled] .btn-warning,
.btn-warning.disabled:hover,
.btn-warning[disabled]:hover,
fieldset[disabled] .btn-warning:hover,
.btn-warning.disabled:focus,
.btn-warning[disabled]:focus,
fieldset[disabled] .btn-warning:focus,
.btn-warning.disabled:active,
.btn-warning[disabled]:active,
fieldset[disabled] .btn-warning:active,
.btn-warning.disabled.active,
.btn-warning[disabled].active,
fieldset[disabled] .btn-warning.active {
  background-color: #cc4e13;
  border-color: #cc4e13;
}
.btn-warning .badge {
  color: #cc4e13;
  text-shadow: none;
  background-color: #fff;
}
.btn-danger {
  color: #fff;
  background-color: #c42719;
  border-color: #c42719;
}
.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active,
.btn-danger.active,
.open > .dropdown-toggle.btn-danger {
  color: #fff;
  background-color: #a22015;
  border-color: #a22015;
}
.btn-danger.disabled,
.btn-danger[disabled],
fieldset[disabled] .btn-danger,
.btn-danger.disabled:hover,
.btn-danger[disabled]:hover,
fieldset[disabled] .btn-danger:hover,
.btn-danger.disabled:focus,
.btn-danger[disabled]:focus,
fieldset[disabled] .btn-danger:focus,
.btn-danger.disabled:active,
.btn-danger[disabled]:active,
fieldset[disabled] .btn-danger:active,
.btn-danger.disabled.active,
.btn-danger[disabled].active,
fieldset[disabled] .btn-danger.active {
  background-color: #c42719;
  border-color: #c42719;
}
.btn-danger .badge {
  color: #c42719;
  text-shadow: none;
  background-color: #fff;
}
.navbar-default .navbar-nav > li > a.btn-soutenir,
.btn-soutenir {
  color: #fff !important;
  background: #a3551d linear-gradient(30deg, #c47123, #d4820c);
  border-color: #c47123;
}
.navbar-default .navbar-nav > li > a.btn-soutenir:hover,
.navbar-default .navbar-nav > li > a.btn-soutenir:focus,
.navbar-default .navbar-nav > li > a.btn-soutenir:active,
.btn-soutenir:hover,
.btn-soutenir:focus,
.btn-soutenir:active,
.btn-soutenir.active,
.open > .dropdown-toggle.btn-soutenir {
  color: #fff;
  background: #834417 linear-gradient(30deg, #a45e1d, #b06c0a);
  border-color: #99581b;
}
.btn-link {
  font-weight: normal;
  cursor: pointer;
  border-radius: 0;
  color: #1f1f1f;
  text-decoration: none;
}
.btn-link:hover, .btn-link:focus {
  color: #1a202c;
  text-decoration: underline;
  background-color: transparent;
}
.btn-link .badge {
  color: #fff;
  text-shadow: none;
  background-color: #4a5568;
}

/* Modal header title */
.modal-header h1,.modal-header h2,.modal-header h3,
.modal-header h4,.modal-header h5,.modal-header h6 {
    font-size: 24px;
}

/* Admin > Polls */
.table-polls .cell-format {
    vertical-align: middle
}

/* Patch https://framagit.org/josephk/scratchjs/ */
@media screen {
    /*.results thead, .results tfoot {
      display:block;
      overflow-y: scroll;
      overflow-x: hidden;
    }

    .results tbody {
      display:block;
      overflow-y: scroll;
      overflow-x: hidden;
    }*/

    #tableContainer {
      overflow-x: auto;
      /* contain: layout; */
    }

    table.results {
      border-collapse: initial;
    }

    table.results th.bg-primary.month, table.results th.day, table.results th.bg-info {
      border-right: 1px solid white;
      border-left: 1px solid white;
    }

    #vote-form th {
      max-width: initial;
    }

    #addition td {
      text-align:center;
      padding:1px 1px;
      border: 0;
    }

    #vote-form td {
      background: transparent;
    }

    #vote-form .bg-info:first-child {
      padding: 5px 5px 0 0 !important;
    }

    #vote-form .glyphicon-user {
      font-size: 150%;
    }

    #vote-form {
      background: linear-gradient(to right, #CAC9CC, transparent);
      border-left: 1px solid #bbb;
    }

    #vote-form td {
      border-top: 0;
    }

    #vote-form .btn-success {
      margin-left: 15px;
    }

    #vote-form input,
    #vote-form .input-group-addon {
      border-color: transparent;
      border-radius: 0;
      box-shadow: none;
    }

    #vote-form .input-group-addon {
      background: transparent;
    }

    table.results tfoot tr > :first-child,
    table.results thead tr > :first-child,
    table.results tbody tr > :first-child {
      width: 180px;
      min-width: 180px;
      max-width: 180px;
    }

    .results tbody tr td:last-of-type { border-color: transparent; }

    .results tbody tr th {
      background: #fff;
      padding: 5px;
      text-align: right !important;
    }

    .results tbody tr th .btn,
    span.edit-username-left {
      float: left;
      margin-right: 5px;
    }

    .results thead tr:nth-of-type(n+1):not(.hidden-print) {
      background: linear-gradient(to right, #EBE9F0, transparent);
      border-bottom: 0;
    }

    .results thead tr:nth-of-type(n+1) th.bg-info {
      background: transparent;
      border-bottom: 0;
    }

    .results thead tr th[role="presentation"] {
      border-color: transparent;
      max-width: initial;
      background: #fff;
    }

    .results tbody tr:nth-child(even) {
      background: #f6f5f9;
    }

    .results tbody tr:nth-child(odd) {
      background: #f6f5f9;
      filter: contrast(0.95);
    }

    .results tbody tr td {
      filter: contrast(0.95);
    }

    .results tbody tr td.bg-info {
      background-color: transparent;
    }

    .results tbody th.bg-info,
    table.results tbody td {
      border-color: transparent;
    }

    .results tbody tr:hover {
      background: #EDEBF1;
      background: repeating-linear-gradient( -45deg, #fbfbfb, #fbfbfb 10px, #EBE9F0 10px, #EBE9F0 20px );
    }

    table.results tbody tr:hover td {
      filter: contrast(1.05);
    }

    .results tbody tr:first-child td {
      border-top: none;
    }
    .results tbody tr:last-child td {
      border-bottom: none;
    }

    .results tbody tr td:last-child {
      filter: contrast(1.05);
    }

    #tableContainer #vote-form td:not(:last-child) {
      border-bottom: 1px solid #bbb;
    }

    #tableContainer tfoot a {
      border-top: 1px solid #bbb;
    }
  }

/* Patch admin btn-edit always visible */
.jumbotron.bg-danger .btn-edit {
  position: relative !important;
  left: initial !important;
  float: right;
  padding: 0px 10px !important;
}

.jumbotron.bg-danger #title-form  .btn-edit {
  float: none;
}

/* Recap + Save button under #name input */
#vote-form .glyphicon-user {
  font-size: 120% !important;
}

#name {
  height: 25px;
  padding: 2px 4px;
  margin-top: 2px;
}

#yinCount {
  margin: 2px 0 2px 5px;
  padding: 3px 0;
  font-size: smaller;
  width: 42%;
  float: left;
}

#yinCount > span:first-of-type {
  padding-right: 6px;
}

#saveAlt {
  margin: 2px 0 5px !important;
  padding: 2px 4px;
  font-size: smaller;
  width: 54%;
  float: right;
  white-space: normal;
}

#choicesCount {
  font-size: smaller;
}

/* Visibility of popovers (when you click on vote edit link; should be placed on the left but it doesn't work) */
.clipboard-url + .popover {
    margin-left: -306px;
    margin-top: -2rem;
}

.clipboard-url + .popover .arrow {
    display: none;
}
