﻿/* Buttons ***************************************************************************************************************************

   All button CSS for Svenskalag.Web: the site, the control panel and the administration (siteCss and administrationSplitCss
   in combres.xml), and every page that links libs/bootstrap/bootstrap.css on its own. Buttons do not depend on Bootstrap: its
   button rules were moved here from bootstrap.css (part 1), and our own look follows (part 2). Rules for a button inside a component (.popup-box .btn and the
   like) stay with that component.

   Heights: .btn 34px, .btn-lg 40px, .btn-sm 30px (as the svelte-web button), .btn-xs 26px, whatever icon a button holds (Font Awesome or Lucide).

   Colours, shadows and heights come from button-tokens.css, which svelte-web's button uses too: load it before this file,
   and change a value there, not here.

   ***********************************************************************************************************************************/


/* Part 1: Bootstrap 3.3.1, moved from libs/bootstrap/bootstrap.css unchanged ******************************************************************/

/* What Bootstrap's reset gave a button element (* { box-sizing } and normalize's button rules). :where() keeps it
   as weak as those element selectors, so any class on the button still wins. */
:where(.btn) {
  box-sizing: border-box;
  margin: 0;
  font-family: inherit;
  text-transform: none;
  overflow: visible;
}

.btn {
  display: inline-block;
  padding: 6px 15px;
  margin-bottom: 0;
  font-size: 14px;
  font-weight: normal;
  line-height: 1.42857143;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  -ms-touch-action: manipulation;
      touch-action: manipulation;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  background-image: none;
  border: 1px solid transparent;
  border-radius: 3px;
}
.btn:focus,
.btn:active:focus,
.btn.active:focus,
.btn.focus,
.btn:active.focus,
.btn.active.focus {
  outline: thin dotted;
  outline: 5px auto -webkit-focus-ring-color;
  outline-offset: -2px;
}
.btn:hover,
.btn:focus,
.btn.focus {
  color: #333;
  text-decoration: none;
}
.btn:active,
.btn.active {
  background-image: none;
  outline: 0;
  -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
          box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
}
.btn.disabled,
.btn[disabled],
fieldset[disabled] .btn {
  pointer-events: none;
  cursor: not-allowed;
  filter: alpha(opacity=65);
  -webkit-box-shadow: none;
          box-shadow: none;
  opacity: .65;
}
.btn-default {
  color: #333;
  background-color: #fff;
  border-color: #ccc;
}
.btn-default:hover,
.btn-default:focus,
.btn-default.focus,
.btn-default:active,
.btn-default.active,
.open > .dropdown-toggle.btn-default {
  color: #333;
  background-color: #e6e6e6;
  border-color: #adadad;
}
.btn-default:active,
.btn-default.active,
.open > .dropdown-toggle.btn-default {
  background-image: none;
}
/* (Bootstrap's white background and #ccc border on a disabled default button: removed, it keeps its own; see part 2.) */
.btn-default .badge {
  color: #fff;
  background-color: #333;
}
.btn-primary {
  color: #fff;
  background-color: #337ab7;
  border-color: #2e6da4;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary.focus,
.btn-primary:active,
.btn-primary.active,
.open > .dropdown-toggle.btn-primary {
  color: #fff;
  background-color: #286090;
  border-color: #204d74;
}
.btn-primary:active,
.btn-primary.active,
.open > .dropdown-toggle.btn-primary {
  background-image: none;
}
.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.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: #337ab7;
  border-color: #2e6da4;
}
.btn-primary .badge {
  color: #337ab7;
  background-color: #fff;
}
.btn-success {
  color: #fff;
  background-color: #5cb85c;
  border-color: #4cae4c;
}
.btn-success:hover,
.btn-success:focus,
.btn-success.focus,
.btn-success:active,
.btn-success.active,
.open > .dropdown-toggle.btn-success {
  color: #fff;
  background-color: #449d44;
  border-color: #398439;
}
.btn-success:active,
.btn-success.active,
.open > .dropdown-toggle.btn-success {
  background-image: none;
}
.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.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: #5cb85c;
  border-color: #4cae4c;
}
.btn-success .badge {
  color: #5cb85c;
  background-color: #fff;
}
.btn-info {
  color: #fff;
  background-color: #5bc0de;
  border-color: #46b8da;
}
.btn-info:hover,
.btn-info:focus,
.btn-info.focus,
.btn-info:active,
.btn-info.active,
.open > .dropdown-toggle.btn-info {
  color: #fff;
  background-color: #31b0d5;
  border-color: #269abc;
}
.btn-info:active,
.btn-info.active,
.open > .dropdown-toggle.btn-info {
  background-image: none;
}
.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.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: #5bc0de;
  border-color: #46b8da;
}
.btn-info .badge {
  color: #5bc0de;
  background-color: #fff;
}
.btn-warning {
  color: #fff;
  background-color: #f0ad4e;
  border-color: #eea236;
}
.btn-warning:hover,
.btn-warning:focus,
.btn-warning.focus,
.btn-warning:active,
.btn-warning.active,
.open > .dropdown-toggle.btn-warning {
  color: #fff;
  background-color: #ec971f;
  border-color: #d58512;
}
.btn-warning:active,
.btn-warning.active,
.open > .dropdown-toggle.btn-warning {
  background-image: none;
}
.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.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: #f0ad4e;
  border-color: #eea236;
}
.btn-warning .badge {
  color: #f0ad4e;
  background-color: #fff;
}
.btn-danger {
  color: #fff;
  background-color: #d9534f;
  border-color: #d43f3a;
}
.btn-danger:hover,
.btn-danger:focus,
.btn-danger.focus,
.btn-danger:active,
.btn-danger.active,
.open > .dropdown-toggle.btn-danger {
  color: #fff;
  background-color: #c9302c;
  border-color: #ac2925;
}
.btn-danger:active,
.btn-danger.active,
.open > .dropdown-toggle.btn-danger {
  background-image: none;
}
.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.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: #d9534f;
  border-color: #d43f3a;
}
.btn-danger .badge {
  color: #d9534f;
  background-color: #fff;
}
.btn-link {
  font-weight: normal;
  color: #337ab7;
  border-radius: 0;
}
.btn-link,
.btn-link:active,
.btn-link.active,
.btn-link[disabled],
fieldset[disabled] .btn-link {
  background-color: transparent;
  -webkit-box-shadow: none;
          box-shadow: none;
}
.btn-link,
.btn-link:hover,
.btn-link:focus,
.btn-link:active {
  border-color: transparent;
}
.btn-link:hover,
.btn-link:focus {
  color: #23527c;
  text-decoration: underline;
  background-color: transparent;
}
.btn-link[disabled]:hover,
fieldset[disabled] .btn-link:hover,
.btn-link[disabled]:focus,
fieldset[disabled] .btn-link:focus {
  color: #777;
  text-decoration: none;
}
.btn-lg,
.btn-group-lg > .btn {
  padding: 10px 16px;
  font-size: 18px;
  line-height: 1.33;
  border-radius: 6px;
}
.btn-sm,
.btn-group-sm > .btn {
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1.5;
  border-radius: 3px;
}
.btn-xs,
.btn-group-xs > .btn {
  padding: 1px 5px;
  font-size: 12px;
  line-height: 1.5;
  border-radius: 3px;
}
.btn-block {
  display: block;
  width: 100%;
}
.btn-block + .btn-block {
  margin-top: 5px;
}
input[type="submit"].btn-block,
input[type="reset"].btn-block,
input[type="button"].btn-block {
  width: 100%;
}

.btn-group,
.btn-group-vertical {
  position: relative;
  display: inline-block;
  vertical-align: middle;
}
.btn-group > .btn,
.btn-group-vertical > .btn {
  position: relative;
  float: left;
}
.btn-group > .btn:hover,
.btn-group-vertical > .btn:hover,
.btn-group > .btn:focus,
.btn-group-vertical > .btn:focus,
.btn-group > .btn:active,
.btn-group-vertical > .btn:active,
.btn-group > .btn.active,
.btn-group-vertical > .btn.active {
  z-index: 2;
}
.btn-group .btn + .btn,
.btn-group .btn + .btn-group,
.btn-group .btn-group + .btn,
.btn-group .btn-group + .btn-group {
  margin-left: -1px;
}
.btn-toolbar {
  margin-left: -5px;
}
.btn-toolbar .btn-group,
.btn-toolbar .input-group {
  float: left;
}
.btn-toolbar > .btn,
.btn-toolbar > .btn-group,
.btn-toolbar > .input-group {
  margin-left: 5px;
}
.btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) {
  border-radius: 0;
}
.btn-group > .btn:first-child {
  margin-left: 0;
}
.btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.btn-group > .btn:last-child:not(:first-child),
.btn-group > .dropdown-toggle:not(:first-child) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.btn-group > .btn-group {
  float: left;
}
.btn-group > .btn-group:not(:first-child):not(:last-child) > .btn {
  border-radius: 0;
}
.btn-group > .btn-group:first-child > .btn:last-child,
.btn-group > .btn-group:first-child > .dropdown-toggle {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.btn-group > .btn-group:last-child > .btn:first-child {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.btn-group .dropdown-toggle:active,
.btn-group.open .dropdown-toggle {
  outline: 0;
}
.btn-group > .btn + .dropdown-toggle {
  padding-right: 8px;
  padding-left: 8px;
}
.btn-group > .btn-lg + .dropdown-toggle {
  padding-right: 12px;
  padding-left: 12px;
}
.btn-group.open .dropdown-toggle {
  -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
          box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
}
.btn-group.open .dropdown-toggle.btn-link {
  -webkit-box-shadow: none;
          box-shadow: none;
}
.btn .caret {
  margin-left: 0;
}
.btn-lg .caret {
  border-width: 5px 5px 0;
  border-bottom-width: 0;
}
.dropup .btn-lg .caret {
  border-width: 0 5px 5px;
}
.btn-group-vertical > .btn,
.btn-group-vertical > .btn-group,
.btn-group-vertical > .btn-group > .btn {
  display: block;
  float: none;
  width: 100%;
  max-width: 100%;
}
.btn-group-vertical > .btn-group > .btn {
  float: none;
}
.btn-group-vertical > .btn + .btn,
.btn-group-vertical > .btn + .btn-group,
.btn-group-vertical > .btn-group + .btn,
.btn-group-vertical > .btn-group + .btn-group {
  margin-top: -1px;
  margin-left: 0;
}
.btn-group-vertical > .btn:not(:first-child):not(:last-child) {
  border-radius: 0;
}
.btn-group-vertical > .btn:first-child:not(:last-child) {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}
.btn-group-vertical > .btn:last-child:not(:first-child) {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 4px;
}
.btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn {
  border-radius: 0;
}
.btn-group-vertical > .btn-group:first-child:not(:last-child) > .btn:last-child,
.btn-group-vertical > .btn-group:first-child:not(:last-child) > .dropdown-toggle {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}
.btn-group-vertical > .btn-group:last-child:not(:first-child) > .btn:first-child {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.btn-group-justified {
  display: table;
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
}
.btn-group-justified > .btn,
.btn-group-justified > .btn-group {
  display: table-cell;
  float: none;
  width: 1%;
}
.btn-group-justified > .btn-group .btn {
  width: 100%;
}
.btn-group-justified > .btn-group .dropdown-menu {
  left: auto;
}
[data-toggle="buttons"] > .btn input[type="radio"],
[data-toggle="buttons"] > .btn-group > .btn input[type="radio"],
[data-toggle="buttons"] > .btn input[type="checkbox"],
[data-toggle="buttons"] > .btn-group > .btn input[type="checkbox"] {
  position: absolute;
  clip: rect(0, 0, 0, 0);
  pointer-events: none;
}

/* Labels and badges in a button. */
.btn .label {
  position: relative;
  top: -1px;
}
.btn .badge {
  position: relative;
  top: -1px;
}
.btn-xs .badge {
  top: 0;
  padding: 1px 5px;
}

/* Clearfix for the toolbar and the groups in a vertical group. */
.btn-toolbar:before,
.btn-toolbar:after,
.btn-group-vertical > .btn-group:before,
.btn-group-vertical > .btn-group:after {
  display: table;
  content: " ";
}
.btn-toolbar:after,
.btn-group-vertical > .btn-group:after {
  clear: both;
}

@media print {
  .btn > .caret,
  .dropup > .btn > .caret {
    border-top-color: #000 !important;
  }
}


/* Part 2: Svenskalag ************************************************************************************************************/

/* Standard button: 34px high, whatever icon it holds: an icon font with taller metrics (Lucide) cannot push it higher.
   No padding at the top or bottom: the line is as high as the inside of the button (height minus the 2 x 1px border),
   so the text and icons sit in its middle. A button given another height needs the matching line-height too.
   (Not flexbox: in a flex box the space between an icon and its text, or around a <strong>, disappears.) */
.btn {
    height: var(--button-height);
    padding: 0 13px;
    line-height: calc(var(--button-height) - 2px);
    border-radius: 4px;
    text-decoration: none;
}

/* Pressed in, as the svelte-web button (Bootstrap's in part 1 is deeper). */
.btn:active,
.btn.active {
    box-shadow: var(--button-active-shadow);
}


    .btn .btn-icon {
        margin-top: -2px;
    }

    .btn .mail-icon {
        margin-top: 4px;
    }

    .btn .label {
        top: -1px;
        padding: 3px 6px;
    }

.btn.disabled,
.btn[disabled],
fieldset[disabled] .btn {
    opacity: var(--button-disabled-opacity);
}

/* A disabled default (white) button fades as the others, and its text and icons, a coloured icon too, turn light
   grey. As the svelte-web button. */
.btn-default.disabled,
.btn-default[disabled],
fieldset[disabled] .btn-default {
    color: var(--button-default-disabled-color);
}

    .btn-default:is(.disabled, [disabled]) i,
    fieldset[disabled] .btn-default i {
        color: inherit;
    }

/* White text on a disabled colored link button; a default or link button keeps its own. */
a.btn.disabled:not(.btn-default):not(.btn-link) {
    color: #fff !important;
}

.btn-ico-text img {
    margin: 0px 5px -3px 0px;
}

.btn-ico img {
    margin: 0px 0px -3px 0px;
}

.btn-top {
    margin-top: -8px;
}

.btn-wide {
    min-width: 120px;
}

.btn-full {
    width: 100%;
}


/* Sizes ****************************************************************************************************************/

/* 40px. */
.btn-lg, .btn-group-lg > .btn {
    height: var(--button-height-lg);
    padding: 0 20px;
    font-size: 16px;
    line-height: calc(var(--button-height-lg) - 2px);
    border-radius: 4px;
}

    .btn-lg.btn-wide {
        min-width: 200px;
    }

/* 30px, as the svelte-web button. */
.btn-sm, .btn-group-sm > .btn {
    height: var(--button-height-sm);
    padding: 0 13px;
    line-height: calc(var(--button-height-sm) - 2px);
}

/* 26px. */
.btn-xs, .btn-group-xs > .btn {
    height: var(--button-height-xs);
    padding: 0 5px;
    line-height: calc(var(--button-height-xs) - 2px);
}


/* Default ****************************************************************************************************************/

.btn-default,
.btn-default:link,
.btn-default:focus {
    background-color: var(--button-default-bg);
    border-color: var(--color-border-default);
    box-shadow: 0px 1px 0px rgba(0,0,0,0.01);
    color: var(--button-default-color);
}

    .btn-default:hover {
        background: var(--button-default-hover-bg);
        border-color: var(--color-border-default);
        box-shadow: var(--button-hover-shadow);
        color: var(--button-default-hover-color);
    }

    .btn-default:active,
    .btn-default.active,
    .btn-default[data-toggle][aria-expanded='true'] {
        border-color: var(--color-border-default);
        background: var(--button-default-active-bg);
        box-shadow: var(--button-active-shadow);
    }

    .btn-default .badge {
        background: #888;
    }

/* A default button that opens a select-like menu. */
.btn-select,
.btn-select:link,
.btn-select:focus {
    background: #fff;
}


/* Primary ****************************************************************************************************************/

.btn-primary,
.btn-primary:link,
.btn-primary:focus {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

    .btn-primary:hover {
        background: var(--color-primary-hover);
        border-color: var(--color-primary-hover);
    }

    .btn-primary:active {
        background-color: var(--color-primary-active);
        border-color: var(--color-primary-active);
    }


/* Success ****************************************************************************************************************/

.btn-success,
.btn-success:link,
.btn-success:focus {
    background-color: var(--color-success);
    border-color: var(--color-success);
}

    .btn-success:hover {
        background-color: var(--color-success-hover);
        border-color: var(--color-success-hover);
    }

    .btn-success:active {
        background-color: var(--color-success-active);
        border-color: var(--color-success-active);
    }

    .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.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: var(--color-success);
        border-color: var(--color-success);
    }


/* Danger / Delete ********************************************************************************************************/

.btn-danger,
.btn-danger:focus {
    background: var(--color-danger);
    border-color: var(--color-danger);
}

    .btn-danger:hover {
        background: var(--color-danger-hover);
        border-color: var(--color-danger-hover);
    }

    .btn-danger:active,
    .btn-danger.active,
    .btn-danger[data-toggle][aria-expanded='true'] {
        border-color: var(--color-danger-active);
        background: var(--color-danger-active);
        box-shadow: var(--button-active-shadow);
    }


/* Warning ****************************************************************************************************************/

.btn-warning,
.btn-warning:focus {
    background: var(--color-warning);
    border-color: var(--color-warning);
}

    .btn-warning:hover {
        background: var(--color-warning-hover);
        border-color: var(--color-warning-hover);
    }

    .btn-warning:active,
    .btn-warning.active,
    .btn-warning[data-toggle][aria-expanded='true'] {
        border-color: var(--color-warning-active);
        background: var(--color-warning-active);
    }


/* Disabled: a disabled button keeps its own colour, also on hover (part 1 would give it Bootstrap's). */
.btn-primary:is(.disabled, [disabled]),
.btn-primary:is(.disabled, [disabled]):is(:hover, :focus, :active, .focus, .active),
fieldset[disabled] .btn-primary,
fieldset[disabled] .btn-primary:is(:hover, :focus, :active, .focus, .active) {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-danger:is(.disabled, [disabled]),
.btn-danger:is(.disabled, [disabled]):is(:hover, :focus, :active, .focus, .active),
fieldset[disabled] .btn-danger,
fieldset[disabled] .btn-danger:is(:hover, :focus, :active, .focus, .active) {
    background-color: var(--color-danger);
    border-color: var(--color-danger);
}

.btn-warning:is(.disabled, [disabled]),
.btn-warning:is(.disabled, [disabled]):is(:hover, :focus, :active, .focus, .active),
fieldset[disabled] .btn-warning,
fieldset[disabled] .btn-warning:is(:hover, :focus, :active, .focus, .active) {
    background-color: var(--color-warning);
    border-color: var(--color-warning);
}


/* Button groups **********************************************************************************************************/

/* Full width: the buttons share the row. */
.btn-group-fw {
    width: 100%;
    display: table;
}

    .btn-group-fw .btn {
        display: table-cell;
        float: none;
        width: 1%;
        border-right-width: 0px;
        padding-left: 8px;
        padding-right: 8px;
    }

        .btn-group-fw .btn:last-child {
            border-right-width: 1px;
        }

.btn-group .first {
    border-radius: 3px 0px 0px 3px;
}

.btn-group .last {
    border-right: 1px solid var(--color-border-default);
    border-radius: 0px 3px 3px 0px;
}

.btn-group input[type=radio] {
    display: none;
}

    .btn-group input[type=radio]:checked + label {
        background: #eee;
        box-shadow: inset 0px 1px 5px rgba(0,0,0,0.1);
    }

.btn-group-justified .btn {
    border-left-width: 0px;
}

    .btn-group-justified .btn:first-child {
        border-left-width: 1px;
    }

.btn-group-sizing .btn {
    padding-top: 0px;
    padding-bottom: 0px;
    line-height: 32px;
}

    .btn-group-sizing .btn .fa {
        line-height: 1;
    }

    .btn-group-sizing .btn:first-child {
        font-size: 80%;
    }

    .btn-group-sizing .btn:last-child {
        font-size: 130%;
    }

/* On a phone, a stacked group puts its buttons under each other (responsive.css is only loaded there, hence .device-mobile). */
@media (max-width: 888px) {
    .device-mobile .btn-group.btn-group-stacked > .btn {
        display: block;
        float: none;
        width: 100%;
        max-width: 100%;
        border-left-width: 1px;
    }

    .device-mobile .btn-group.btn-group-stacked > .btn:first-child:not(:last-child) {
        border-radius: 3px 3px 0px 0px;
    }

    .device-mobile .btn-group.btn-group-stacked > .btn:last-child:not(:first-child) {
        border-radius: 0px 0px 3px 3px;
    }

    .device-mobile .btn-group.btn-group-stacked > .btn + .btn {
        margin-top: -1px;
        margin-left: 0;
    }
}

/* A line between buttons or groups in a filter row. */
.btn-divider {
    background: #eee;
    width: 1px;
    height: 34px;
    margin: 0px 16px;
    float: left;
}

.btn-divider-sm {
    background: #eee;
    width: 1px;
    height: 34px;
    margin: 0px 10px;
    float: left;
}

/* A small caret button, e.g. beside a name to open its menu. */
.caret-btn {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 1px 7px;
    border-radius: 2px;
    color: #444;
}

    .caret-btn:focus {
        color: #444;
    }

    .caret-btn:hover {
        background-color: rgba(41, 140, 205, 0.15);
        color: #298ccd;
    }
