.container-small {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

.sidebar-brand-icon {
  background-image: url("../img/logo-white.svg");
  background-size: 50px;
  background-repeat: no-repeat;
  background-position: center;
  padding: 35px;
  background-color: #3b5837;
  border-radius: 50%;
}

.sidebar-brand-text {
  font-size: 14px;
}

.sidebar {
  background-color: #486744;
}

.sidebar .sidebar-brand {
  height: 6.375rem;
}

.popover-body {
  font-size: 16px !important;
}

.popover-body:first-letter {
  text-transform: capitalize;
}

/* Popovers - Dölj ifall data-content är tom */
[data-toggle="popover"][data-content=""],
.bil [data-content=""] {
  display: none !important;
}

#tableKorningar td.bil button {
  display: block;
  margin: 0 auto;
}

/*#tableKorningar tbody tr:not([kund="sveaskog"]) {
    display: none!important;
}*/

#loading {
  position: fixed;
  z-index: 999;
  background-color: rgba(0, 0, 0, 0.2);
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(../img/loading.svg);
  background-repeat: no-repeat;
  background-size: 25%;
  background-position: center;
  font-size: 6vw;
  display: flex;
  align-items: center;
  justify-content: center;
}

#bigloader {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #486744;
  display: flex;
  align-items: center;
  justify-content: center;
}

#bigloaderContainer {
  margin: 20px;
  max-width: 400px;
  max-height: 400px;
  width: 100%;
  height: 100%;
  position: relative;
}

.menu-content {
  display: none;
}

.datepickerCalendar {
  position: relative;
  display: flex;
  align-items: center;
}

.datepickerCalendar i {
  position: absolute;
  right: 10px;
  pointer-events: none;
}

.flatpickr-input {
  padding-right: 2rem;
}

.flatpickr-day.selected,
.flatpickr-day.selected.inRange {
  background: #4e73df !important;
  border-color: #4e73df !important;
}

.form-control .dropdown-toggle {
  width: 100%;
  height: calc(1.5em + 0.75rem + 2px);
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #6e707e;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #d1d3e2;
  border-radius: 0.35rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control.bootstrap-select .dropdown-toggle:focus,
.form-control.bootstrap-select > select.mobile-device:focus + .dropdown-toggle,
.dropdown.bootstrap-select.form-control.show .btn-white {
  outline: 0 !important;
  box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25) !important;
}

.modify {
  width: 1px !important;
}

/* CHECKBOX */
.checkmark-container {
  display: inline;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  height: 25px;
  width: 25px;
  cursor: pointer;
  font-size: 22px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.checkmark-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #fff;
  border: 1px solid #d1d3e2;
  border-radius: 50%;
}

.checkmark-container:hover .checkmark {
  background-color: #f3f3f3;
}

.checkmark-container[check="true"] .checkmark {
  background-color: #2196f3;
  border: 1px solid #2196f3;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkmark-container[check="true"] .checkmark:after {
  display: block;
}

.checkmark-container .checkmark:after {
  left: 8px;
  top: 3px;
  width: 7px;
  height: 14px;
  border: solid white;
  border-width: 0 2px 2px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.hidden-text {
  font-size: 0;
}

/* checkmark-default-container - STANDARD */
.checkmark-default-container {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default checkbox */
.checkmark-default-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.checkmark-default-container .checkmark-default-checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 24px;
  width: 24px;
  border: 1px solid #d1d3e2;
  border-radius: 0.35rem;
}

/* On mouse-over, add a grey background color and focus */
.checkmark-default-container:hover input ~ .checkmark-default-checkmark,
.checkmark-default-container:focus-within .checkmark-default-checkmark {
  box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

/* When the checkbox is checked, add a blue background */
.checkmark-default-container input:checked ~ .checkmark-default-checkmark {
  background-color: #2196f3;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark-default-container .checkmark-default-checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.checkmark-default-container input:checked ~ .checkmark-default-checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.checkmark-default-container .checkmark-default-checkmark:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

/* CHECKMARK END*/

/* Check table row */
.rowHighlight {
  background-color: #e3e6f0;
}

/* Hover flatpickr Day */
.flatpickr-day.week.selected:hover,
.flatpickr-days .flatpickr-day:hover {
  background: #6c757d !important;
  color: #fff;
}

.datum-korning {
  display: block;
}

.vecka-korning,
.fakturaNummer {
  display: inline-block;
  font-size: 12px;
  background: #eaecf4;
  padding: 3px 7px;
  font-weight: bold;
}

#tableAnvandare [data-id="admin@werningerskog.se"] button {
  display: none;
}

/*#tableAterstaendeKorningar tfoot {
    display: none;
}*/

#tableAterstaendeKorningar tr > td:first-child {
  min-width: 130px;
}

.kundName {
  font-weight: bold;
}

.aterstendeKorningarRadTotalText {
  font-size: 14px;
  margin-bottom: 5px;
}

.totaltKlar,
.numberKorningarKlarNumber {
  font-weight: bold;
  color: #5a5c69;
}

.totaltKvar,
.numberKorningarTotaltNumber {
  font-weight: bold;
  color: #dd4d4d;
}

.profileName,
.namn {
  text-transform: capitalize;
}

.profileName {
  font-weight: bold;
}

#userDropdown {
  background: #f7f8fb;
  display: inline-flex;
  height: auto;
  color: #858796 !important;
  transition: 0.2s;
  border-radius: 4px;
}

#userDropdown:hover {
  background: #e5e8ef;
}

.forPrint {
  display: none;
}

.zero {
  font-size: 0 !important;
}

.dt-buttons {
  margin-bottom: 20px;
}

.btn-circle.btn-sm {
  width: 30px;
  height: 30px;
  padding: 6px 0px;
  border-radius: 15px;
  text-align: center;
}

.btn-circle.btn-md {
  width: 50px;
  height: 50px;
  padding: 7px 10px;
  border-radius: 25px;
  text-align: center;
}

.btn-circle.btn-xl {
  width: 70px;
  height: 70px;
  padding: 10px 16px;
  border-radius: 35px;
  text-align: center;
}

/* CALENDAR */
td.fc-day {
  cursor: pointer;
}

td.fc-day:hover {
  background-color: #def;
}

.fc-event {
  cursor: pointer;
  opacity: 0.8;
  position: relative;
}

.fc-event::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.2;
  background: #000;
  box-shadow: 0 0 0 1px #000;
  border-radius: 2px;
}

.fc-event:hover,
.fc-event.hovered {
  opacity: 1;
  box-shadow: 0 0 0 2px #4e73df;
  z-index: 7;
}

.fc-h-event .fc-event-title {
  display: flex;
  justify-content: space-between;
  text-transform: capitalize;
}

.fc-event.fc-event--disabled {
  cursor: default;
  opacity: 0.8;
}

.fc .fc-toolbar {
  flex-wrap: wrap;
}

.fc .fc-toolbar-title {
  font-size: 1.5rem;
  text-transform: capitalize;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding: 1.125rem;
  margin-bottom: 0.5rem;
}

.filter-buttons button {
  text-transform: capitalize;
}

/* Prislista */
#prislista table .kund {
  max-width: 100px;
}

/*table-list*/
ul.table-list {
  list-style: none;
  padding: 0;
  display: flex;
  margin: -10px -10px 10px;
}

ul.table-list li {
  display: flex;
  flex-direction: column;
  padding: 10px 15px;
  background-color: #fff;
  margin: 10px;
  border-radius: 0.35rem;
  border: 1px solid #e3e6f0;
}

ul.table-list li > span:first-child {
  min-width: 100px;
  font-weight: bold;
}

[userrole="admin"] .namn:after {
  content: "admin";
  color: #fff;
  font-size: 12px;
  vertical-align: top;
  background: #333;
  padding: 1px 4px;
  border-radius: 4px;
  margin-left: 10px;
}

.capitalize {
  text-transform: capitalize;
}

/**/
.bootstrap-select .dropdown-menu li.no-results {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 0.25rem 1.5rem;
  margin: 0;
}

.th-verkstad-fel {
  max-width: 400px;
}

.full-text {
  overflow: hidden;
  line-height: 1.5em;
  height: auto;
}

.full-text.clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  /* Visa 2 rader */
  overflow: hidden;
  text-overflow: ellipsis;
}

/* REGLER */

/* KUNDER */
body.kund:not(.anstalld) #korningar .btn-create,
body.kund .btn-export,
body.kund:not(.anstalld) .aterstendeKorningarRadTotalText,
body.kund:not(.anstalld) .aterstendeKorningarRad,
body.kund:not(.anstalld) #tableAterstaendeKorningar tfoot {
  display: none;
}

body.kund .admin,
body.anstalld .admin:not(.anstalld),
body.kund:not(.anstalld) .fakturera-check,
body.kund:not(.anstalld) .meddelande,
body.kund:not(.anstalld) #tableKorningar thead th:last-child,
body.kund:not(.anstalld) #tableKorningar tbody td:not(.dataTables_empty):last-child {
  display: none !important;
}

/* Dölj "Välj vecka" 
body.kund #selectKorningarColumn,
body.anstalld #selectKorningarColumn {
    display: none;
}
*/

/* Driftsrapport för timmerbilar */
#timmerTable { min-width: 880px; }
#timmerTable td { white-space: pre-wrap; vertical-align: middle; }
#timmerBilVal { min-width: 180px; }
