body {
  font-size: 1rem;
  font-family: "Red Hat Display", sans-serif;
  margin: 0;
}

body * {
  box-sizing: border-box;
  font-family: "Red Hat Display", sans-serif;
}

#loadingFullscreen,
#loadingBar,
#loadingBarContainer,
.loadingBarInner {
  position: fixed;
  background: transparent;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

#loadingFullscreen {
  background: #fff;
}

#loadingBar,
.loadingBarInner {
  display: none;
}

#loadingBarContainer,
.loadingBarInner {
  background: rgba(133, 136, 139, 0.3);
}

@keyframes shine {
  to {
    background-position-x: -200%;
  }
}

.fc-daygrid-day.loading-days {
  background: linear-gradient(110deg, #edf2f570 8%, #f9f9f963 20%, #edf2f56e 33%);
  background-size: 200% 100%;
  animation: shine 1.5s linear infinite;
  transition: background 0.5s ease;
  position: relative;
  z-index: 1;
}

.fc-daygrid-day.loading-days.fade-out {
  background: linear-gradient(110deg, transparent 8%, transparent 20%, transparent 33%);
}

/* Main */
main {
  padding-bottom: 4rem;
}

main:before {
  content: "";
  z-index: 9;
  position: fixed;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgb(51 51 51 / 10%);
  transition: 0.2s;
  opacity: 0;
  pointer-events: none;
}

main.blur:before {
  opacity: 1;
  pointer-events: auto;
}

.mainContainer {
  max-width: 1800px;
  margin: 0 auto;
  padding: 2rem;
}

#page > .mainContainer {
  max-width: 1200px;
}

.pageHeader {
  background: #edf2f5;
  font-size: 1.2rem;
  padding: 1rem 0;
}

.pageHeader .mainContainer {
  padding: 0 2rem;
}

.pageHeader .mainContainer .mainContainer-inner {
  flex-wrap: wrap;
  gap: 7px;
}

#page[data-page="news"] > .mainContainer {
  max-width: 820px;
}

#page[data-page="news"] #pageViewerContent {
  box-shadow: none;
  padding: 0;
}

/* #loadingBarContainer circle,
#loadingFullscreen circle {
    stroke: rgb(181 181 181);
} */

.feather {
  width: 16px;
  height: 16px;
  vertical-align: text-bottom;
}

a {
  color: #0e2b5a;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  margin-bottom: 2rem;
  color: #0e2b5a;
}

h1 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.6;
}

h2 {
  margin-bottom: 1.2rem;
}

h3 {
  font-size: 1.1rem;
}

#pageViewerContent p:not(.MsoNormal) {
  line-height: 1.6;
  font-size: 1rem;
}

/* input */
input,
textarea,
select,
button {
  font-size: 1rem;
  outline-color: #bbb;
  background-color: transparent;
  border-radius: 4px;
}

input,
select,
textarea {
  border: 1px solid #c3c3c3;
  color: #000;
  padding: 0.8rem 1rem;
}

textarea {
  min-height: 10rem;
  width: 100%;
  max-width: 100%;
}
.sidebar textarea {
  resize: vertical;
}

label {
  margin-bottom: 0.3rem;
  display: inline-block;
  color: #0e2b5a;
}

input[type="file"] {
  display: none;
}

.input-group-datepicker {
  position: relative;
}

.input-group-datepicker-buttons {
  position: absolute;
  right: 0;
  height: 100%;
  display: flex;
  align-items: center;
  top: 0;
  padding: 1rem 0.7rem;
  font-size: 1.5rem;
  gap: 0.3rem;
}

.input-button {
  cursor: pointer;
}

.input-button:hover {
  color: #0070d1;
}

.input-button-clear {
  font-size: 1rem;
}

.input-group-datepicker .datepicker {
  padding-right: 4rem;
}

.heading-small {
  margin: 0;
  font-size: 1rem;
}

ul.pagination,
ul.list,
ul.normal,
ul.clean {
  list-style: none;
  margin: 0;
  padding: 0;
}

.d-block-important {
  display: block !important;
}

.d-flex {
  display: flex;
}

th.modify {
  width: 1% !important;
}

td.modify {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  white-space: nowrap;
}

/* Style the entire scrollbar */
.card-content::-webkit-scrollbar,
.navbar-content::-webkit-scrollbar {
  width: 10px;
  /* Width of the scrollbar */
  height: 0px;
  /* Height of the horizontal scrollbar */
}

/* Style the track (the area the scrollbar moves within) */
::-webkit-scrollbar-track {
  background: #f1f1f1;
  /* Light gray background for the track */
  border-radius: 10px;
  /* Rounded corners for the track */
}

/* Style the handle (the draggable part of the scrollbar) */
::-webkit-scrollbar-thumb {
  background: #888;
  /* Default gray color */
  border-radius: 10px;
  /* Rounded corners for the thumb */
  border: 3px solid #f1f1f1;
  /* Optional border for thumb */
}

/* Style the handle when hovering over it */
::-webkit-scrollbar-thumb:hover {
  background: #555;
  /* Darker color when hovering */
}

/* Style the corner (where both horizontal and vertical scrollbars meet) */
::-webkit-scrollbar-corner {
  background: #f1f1f1;
  /* Light gray corner */
}

.box {
  padding: 1.5rem;
  background-color: #e4e5e9;
}

.alert {
  padding: 1.4rem 1.5rem;
  padding-left: 3rem;
  margin-bottom: 0.5rem;
  text-align: left;
  color: #0e2b5a;
  border-radius: 6px;
  font-size: 0.875rem;
  line-height: 1.6;
}

.alert-lg {
  padding: 1.5rem;
}

.alert-lg.alert-icon:before {
  top: 1.3rem;
}

.alert-icon {
  padding-left: 3rem;
  position: relative;
}

.alert-icon:before {
  font-family: "Line Awesome Free";
  font-size: 1.4rem;
  font-weight: 900;
  position: absolute;
  top: 1rem;
  left: 1rem;
}

#toastContainer .alert {
  padding: 1rem 1.5rem;
}

#toastContainer .alert-icon {
  padding-left: 3rem;
}

#toastContainer .alert-icon:before {
  top: 0.6rem;
}

.sidebar .alert {
  padding: 0.8rem 0.9rem;
  padding-left: 2.5rem;
  border-radius: 4px;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 100%;
}

.sidebar .alert-icon:before {
  left: 0.7rem;
  top: 7px;
}

.alert-danger {
  background-color: #fdd1d1;
}

.alert-icon.alert-danger:before {
  content: "\f071";
}

.alert-warning {
  background-color: #ffe8aa;
}

.alert-icon.alert-warning:before {
  content: "\f071";
}

.alert-success {
  background-color: #d5edc3;
}

.alert-icon.alert-success:before {
  content: "\f00c";
}

.alert-info {
  background-color: #d0e9f5;
}

.alert-icon.alert-info:before {
  content: "\f05a";
}

/* Alert toggle */
.alert.alert-toggle-open {
  padding-right: 2rem;
}

.alert.alert-toggle-closed {
  padding-right: 0.8rem;
}

.alert-toggle::before {
  transition: 0.2s;
}

.alert-toggle-btn {
  position: absolute;
  right: -16px;
  top: 5px;
  transition: 0.2s;
  padding: 0;
  background: #d0e9f5;
  border-radius: 50%;
  border: 1px solid #fff;
}

.btn-circle.alert-toggle-btn:hover i {
  background: #055193;
  color: #fff;
}

.alert-toggle-active {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.alert-toggle-closed.alert.alert-icon:before {
  top: 5px;
}

.alert-content {
  transform-origin: top left;
  transform: scaleY(1) scaleX(1);
  opacity: 1;
  visibility: visible;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.alert-toggle-closed .alert-content {
  transform-origin: top left;
  transform: scaleY(0) scaleX(0);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

/* Infobox */
.info-box {
  display: flex;
  max-width: 700px;
  width: 100%;
}

.info-box .alert p:last-child {
  margin-bottom: 0;
}

.not-valid {
  outline: 1px solid #b11830;
}

/* Text */
.text-center {
  text-align: center;
}

/* Forms */
.form-column {
  display: flex;
  flex-direction: column;
  max-width: 600px;
}

.label__extra-info {
  font-size: 12px;
  color: #767676;
}

.form-inline {
  display: flex;
}

.form-inline input {
  margin: 0;
  margin-right: 0.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

hr {
  width: 100%;
  height: 1px;
  background-color: #e4e5e9;
  margin: 2rem 0;
  border: 0;
}

/* Text */
.user-status {
  text-transform: capitalize;
}

.offline {
  color: #e90023;
}

.online {
  color: #16a550;
}

/* LOGIN */
#login {
  max-width: 300px;
  margin: 0 auto;
  text-align: center;
}

#login .form-group {
  margin-bottom: 1rem;
}

#login input {
  width: 100%;
}

#login button {
  margin-top: 0.5rem;
}

#login img {
  width: 80px;
  margin-top: 2rem;
}

#login .logo {
  padding: 1rem;
  margin: 0;
  margin-bottom: 1rem;
}

/* Navigation */
.navbar {
  background: #c9dae5;
  position: fixed;
  height: 100dvh;
  width: 11rem;
  display: flex;
  align-items: center;
  flex-direction: column;
  transition: 0.2s;
  z-index: 999;
  left: 0;
  bottom: 0;
  top: 0;
}

.navbar-icon {
  width: 100%;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}

.navbar-icon img {
  width: 100%;
  height: 100%;
  display: flex;
  padding: 1rem;
  max-width: 4rem;
}

.navbar ul {
  list-style: none;
  padding: 0;
  padding-right: 1px;
  margin: 0;
}

.navbar li {
  padding: 0 4px;
  margin: 0;
  display: block;
  width: 100%;
}

.navbar li:not(:first-child) {
  margin-top: 0.5rem;
}

.navbar a {
  color: #001c48;
  padding: 0.5rem 0.8rem;
  display: flex;
  align-items: center;
  transition: 0.2s;
  text-decoration: none;
  border-radius: 4px;
}

.navbar a:hover,
.navbar a.active {
  background-color: #055193;
  color: #fff;
}

.navbar a.active {
  color: #fff;
}

.navbar a i {
  font-size: 2rem;
}

.navbar a span {
  font-size: 0.925rem;
  margin-left: 0.5rem;
  opacity: 1;
  transition: 0.2s;
  transition: opacity 0.2s;
  overflow: hidden;
}

.navbar-content {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
  overflow: auto;
}

.navbar-top {
  width: 100%;
  margin-bottom: auto;
}

.navbar-bottom {
  width: 100%;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.nav-view {
  position: relative;
  width: 100%;
}

#nav-view-toggle {
  position: absolute;
  bottom: 1rem;
  right: 0;
  background: #c9dae5;
  display: flex;
  border-radius: 50%;
  transition: 0.2s;
  margin-right: -1.1rem;
  border: 1px solid #fff;
  color: #001c48;
}

#nav-view-toggle:hover {
  background: #055193;
  color: #fff;
}

#nav-view-toggle i {
  padding: 0.5rem;
  font-size: 1.4rem;
  transition: 0.2s transform;
}

#nav-menu-btn {
  display: none;
  align-items: center;
  position: fixed;
  left: 0.5rem;
  bottom: 2rem;
  z-index: 998;
}

#nav-notifications {
  position: relative;
}

.notification-icon {
  position: absolute;
  right: -3px;
  top: -5px;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: bold;
  color: #0e2b5a;
  background: #d5edc3;
}

/* Container */
.container {
  padding-left: 11rem;
  transition: 0.2s;
}

/* Toggle Navigation */
body.nav-small .navbar {
  width: 4rem;
}

body.nav-small .container {
  padding-left: 4rem;
}

body.nav-small .navbar a span {
  opacity: 0;
  pointer-events: none;
}

body.nav-small .container {
  padding-left: 4rem;
}

body.nav-small #nav-view-toggle .la-angle-left {
  transform: scaleX(-1);
}

/* Header */
header {
  display: flex;

  align-items: center;
  width: 100%;
  padding: 0 2rem;
  border-bottom: 2px solid #e4e5e9;
}

.logo {
  color: #253042;
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
  margin-right: 1.5rem;
  padding: 1rem 0;
}

.logo span:last-child {
  font-size: 1.45rem;
}

header .logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-decoration: none;
}

header .logo-icon {
  width: 100%;
  height: 100%;
  display: flex;
  max-width: 2rem;
  margin-right: 10px;
  display: none;
}

header .logo-title {
  display: flex;
  flex-direction: column;
}

/* Header Navigation */

.header-nav {
  display: flex;
  margin-left: auto;
}

.header-nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.header-nav ul:not(:last-child) {
  margin-right: 1rem;
  padding-right: 1rem;
  border-right: 1px solid #eee;
}

.header-nav ul li {
  display: flex;
  flex-direction: column;
}

.header-nav ul li span {
  font-size: 0.9rem;
  color: #919191;
}

.header-nav #profileUsername {
  text-transform: capitalize;
  font-weight: bold;
  text-align: right;
}

.header-notification {
  display: flex;
  align-items: center;
}

/* Buttons */
button {
  transition: 0.2s;
  cursor: pointer;
  padding: 0;
  margin: 0;
  background-color: transparent;
  border-width: 0;
  font-family: inherit;
  font-size: inherit;
  font-style: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.btn {
  color: #003993;
  width: auto;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  margin: 0;
  text-decoration: none;
  display: inline-block;
}

.btn-small {
  font-size: 14px;
  padding: 0.4rem 0.8rem;
}

.btn-smaller {
  font-size: 1rem;
  padding: 0 0.1rem;
}

.btn-only-icon {
  padding: 0 4px;
  font-size: 1.2rem;
  line-height: 1;
}

.btn-large {
  font-size: 16px;
  padding: 0.8rem 1.4rem;
}

.btn-icon i {
  margin-right: 7px;
}

.btn-wide {
  width: 100%;
  padding: 1rem 2rem;
}

.btn-primary {
  color: #fff;
  background-color: #055193;
}

.btn-primary:hover {
  background-color: #003993;
}

.btn-primary[disabled] {
  background-color: #81a8c9;
  opacity: 1;
}

.btn-secondary {
  color: #055193;
  background-color: #dfe6f1;
}

.btn-secondary {
  color: #055193;
  background-color: #dfe6f1;
}

.pageHeader .btn-secondary {
  color: #055193;
  background-color: #f6f9ff;
  box-shadow: 0 0 0 1px #d3deef;
}

.btn-secondary:hover {
  background-color: #d7e7ff;
}

.btn-white {
  color: #055193;
  background-color: #fff;
}

.btn-white:hover {
  color: #ffffff;
  background-color: #055193;
}

.btn-white-secondary {
  color: #055193;
  background-color: #fff;
}

.btn-white-secondary:hover {
  color: #055193;
  background-color: #dfe6f1;
}

.btn-danger {
  background-color: #c35263;
  color: #fff;
}

.btn-danger:hover {
  background-color: #b63d4f;
  color: #fff;
}

.btn-warning {
  background-color: #ffeeaf;
  color: #000;
}

.btn-warning:hover {
  background-color: #f9de78;
  color: #000;
}

.btn-circle i {
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}

.btn-circle:hover i {
  background-color: #f5f5f5;
}

/* Färgstiler för ikoner */
.btn-icon-primary {
  color: #055193;
}

.btn-icon-primary:hover {
  color: #0088ff;
}

.btn-icon-primary[disabled] {
  opacity: 0.7;
}

.btn-icon-danger {
  color: #c35263;
}

.btn-icon-danger:hover {
  color: #ff4d67;
}

/* RADIO BUTTONS*/
.btn-radio [type="radio"] {
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  display: flex;
}

/* Stil för knappar */
.btn-radio label {
  color: #003993;
  width: auto;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  margin: 0;
  text-decoration: none;
  display: inline-block;
  border: 2px solid #dfe6f1;
}

.btn-radio label::before {
  display: none;
  transition: 0.2s ease-in-out;
  content: "\f00c";
  font-family: "Line Awesome Free";
  font-weight: 900;
  position: relative;
  margin-right: 5px;
}

/* Aktiverad radio button - when selected */
.btn-radio input[type="radio"]:checked + label {
  border-color: #003993;
}

.btn-radio input[type="radio"]:checked + label::before {
  display: inline-block;
}

/* När radioknappen är vald (inaktiv till aktiv) */
.btn-radio input[type="radio"]:checked + label:hover {
  border-color: #0056b3;
}

.copy-url {
  opacity: 0;
}

tr:hover .copy-url {
  opacity: 1;
}

/* Meny tab */
.tab {
  display: none;
}

.tab.active {
  display: block;
}

/* TABS */
.tabs {
  display: flex;
  border-bottom: 1px solid #edf2f5;
}

.tablink {
  background-color: #edf2f5;
  border: none;
  outline: none;
  padding: 10px 15px;
  cursor: pointer;
  margin-right: 5px;
  border-radius: 0;
}

.tablink.active {
  background-color: #e0f2ff;
  border-bottom: 1px solid #007bff;
}

.tabcontent {
  display: none;
  padding: 20px;
  border: 1px solid #edf2f5;
  border-top: 0;
}

.tabcontent.active {
  display: block;
}

/* Logistic Search */

.logisticSearch {
  display: flex;
  width: 100%;
  position: relative;
}

.logisticSearch i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  font-size: 1.4rem;
  color: #bbb;
}

.logisticSearch input {
  width: 100%;
  border: 1px solid #e4e5e9;
  color: #000;
  font-size: 1rem;
  padding: 1.5rem 3rem;
  padding-right: 6rem;
  border-radius: 0;
  margin: 0;
}

.logisticSearch input::placeholder {
  color: #bbb;
}

.logisticSearch .searchBtn-container {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logisticSearch .searchBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.5rem;
  width: 5rem;
  padding: 1rem;
}

/* Content logistic */
.logisticContent {
  border: 1px solid #e4e5e9;
  border-top: 0;
  padding: 2rem;
  overflow: auto;
  height: calc(100vh - 18rem);
}

.logisticContentTitle {
  color: #999;
}

.logisticSections {
  margin-top: 2rem;
  display: flex;
  transform-origin: 0% 0% 0px;
}

.logisticSectionTitle {
  color: #999;
  font-size: 1rem;
  text-align: left;
  display: block;
}

.titleSection {
  background: #253042;
  color: #fff;
  padding: 0.3rem 0.7rem;
}

.logisticSection ul.logisticSectionBoxes {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -0.5rem;
}

.logisticSection li.logisticSectionBox {
  display: block;
  padding: 0.5rem;
  position: relative;
}

.logisticSection a {
  width: 4rem;
  height: 2rem;
  display: inline-flex;
  background-color: #eee;
  transition: 0.2s;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #253042;
  font-size: 1rem;
}

.logisticSection a.done {
  background-color: #055193;
  color: #fff;
}

.logisticSection a.empty {
  background-color: #fff;
  box-shadow: inset 0 0 0 2px #dfe6f1;
}

.logisticSection a.loaded {
  background-color: #dfe6f1;
}

.logisticSection a:hover,
.logisticSection a.active {
  box-shadow: inset 0 0 0 2px #f7b852;
}

/* Tippy-box */
.popover {
  display: none;
}

.tippy-box-popover ul {
  padding: 5px;
  display: table;
  width: 100%;
}

.tippy-box-popover ul li {
  display: table;
  min-width: 100%;
}

.tippy-box-popover ul li span {
  width: 100%;
  display: table-cell;
  padding: 5px;
  font-size: 0.925rem;
}

.user-status--lastSeenOnline {
  font-size: 0.75rem;
  color: #0e385f;
  margin-left: 5px;
  margin-top: 1px;
  text-transform: none;
}

/* logistik sidfot */
.logisticFooter {
  display: flex;
  align-items: center;
  border: 1px solid #e4e5e9;
  border-top: 0;
  padding: 1rem 2rem;
}

.logisticFooterTitle {
  color: #999;
  margin-right: 5rem;
}

ul.statusSymbols {
  color: #253042;
  display: flex;
}

.statusSymbols li {
  display: flex;
  align-items: center;
  font-size: 0.9375rem;
  margin-right: 6rem;
}

.statusIcon {
  width: 3rem;
  height: 1.7rem;
  display: block;
  margin-right: 1rem;
}

.statusText {
  color: #646464;
  font-weight: 500;
}

.statusSymbol.done .statusIcon {
  background-color: #055193;
}

.statusSymbol.loaded .statusIcon {
  background-color: #dfe6f1;
}

.statusSymbol.empty .statusIcon {
  background-color: #fff;
  box-shadow: inset 0 0 0 2px #dfe6f1;
}

.statusQuantity {
  margin-left: 7px;
  font-size: 11px;
  background: #f5f5f5;
  padding: 0.2rem 0.7rem;
  border-radius: 1rem;
  font-weight: 600;
  color: #686868;
}

.viewButtons {
  margin-left: auto;
}

.zoomButton {
  display: flex;
  align-items: center;
}

.zoomButton button {
  font-size: 2rem;
  color: #055193;
  border-radius: 10px;
}

.zoomButton button:hover {
  background: #f3f4f7;
  color: #0f52bd;
}

.zoomPercentage {
  margin-left: 0.5rem;
  color: #999;
  font-size: 0.875rem;
}

/* TOAST */
#toastContainer {
  position: fixed;
  bottom: 80px;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.toast {
  opacity: 0;
  margin: 0 8px;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(20px);
}

.toast .alert {
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  border: 1px solid #33333338;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.hide {
  opacity: 0;
  transform: translateY(-20px);
}

/* Sidebar */
.sidebar {
  padding: 1.5rem;
  padding-bottom: 4rem;
  border-left: 1px solid #e4e5e9;
  display: none;
  position: fixed;
  right: -450px;
  top: 0;
  bottom: 0;
  width: 450px;
  max-width: 100%;
  transition: 0.2s ease-in-out;
  z-index: 9998;
  background-color: #fff;
  overflow-y: auto;
  box-shadow: 0 0 20px rgb(0 0 0 / 5%);
}

.sidebar.active {
  right: 0;
}

.sidebar-header {
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 0.5rem;
}

h2.sidebar-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
}

.sidebar-header .titleHylla {
  border-left: 1px solid #e4e5e9;
  padding-left: 1rem;
  margin-left: 1rem;
}

.sidebar-header .closeSidebar,
.close-btn {
  font-size: 1.8rem;
  position: relative;
  right: 0;
  top: -5px;
  display: flex;
  height: 2.4rem;
  width: 2.4rem;
  align-items: center;
  justify-content: center;
  color: #055193;
  margin-left: auto;
}

.sidebar-header .closeSidebar:hover,
.close-btn:hover {
  background: #f3f4f7;
  color: #0f52bd;
}

.sidebar .alert {
  margin: 1.5rem 0 0;
}

.sidebar input:not([type="checkbox"]):not([type="radio"]),
.sidebar select {
  width: 100%;
}

.inputNewsImage-container {
  display: flex;
}

/* Grundläggande styling för form-check */
.form-checkbox {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

/* Platt styling för checkbox */
.form-checkbox-input {
  width: 20px;
  height: 20px;
  border: 1px solid #c3c3c3;
  background-color: #fff;
  border-radius: 4px;
  appearance: none;
  position: relative;
  transition: all 0.2s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* För när checkboxen är markerad */
.form-checkbox-input:checked {
  background-color: #007bff;
  /* Blå bakgrund när markerad */
  border-color: #007bff;
  /* Matchande blå kant */
}

/* För den visuella markeringen när checkboxen är markerad */
.form-checkbox-input:checked::before {
  content: "\f00c";
  font-family: "Line Awesome Free";
  font-weight: 900;
  color: #fff;
  position: absolute;
}

/* För hover-effekt */
.form-checkbox-input:hover {
  border-color: #0056b3;
  /* Mörkare blå när musen är över */
}

/* Styling för etiketten */
.form-checkbox-label {
  margin: 0;
  margin-left: 8px;
  /* Avstånd från checkboxen */
  font-size: 1rem;
  cursor: pointer;
  /* Muspekare blir en pekare på etiketten */
  user-select: none;
  /* Förhindra att etiketten kan markeras */
}

/* Toggle content */
.btn-toggle {
  border: 2px solid #dfe6f1;
  display: inline-flex;
  align-items: center;
}

.btn-toggle.toggle-active {
  border: 2px solid #055193;
}

.btn-toggle:before {
  display: none;
  transition: 0.2s ease-in-out;
  content: "\f00c";
  font-family: "Line Awesome Free";
  font-weight: 900;
  position: relative;
  margin-right: 5px;
}

.btn-toggle.toggle-active:before {
  display: inline-block;
}

.toggle-content {
  display: none;
  border-top: 2px solid #ffffff;
}

.toggle-content.show {
  display: block;
}

/* image Preview */
#imagePreview {
  display: none;
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 4px;
}

#imagePreview.show {
  display: flex;
  margin-top: 1rem;
}

.clearInput {
  display: none;
  margin-left: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* document Preview */
#documentPreview {
  display: none;
  padding: 1rem;
  border: 1px solid #055193;
  font-weight: 500;
  color: #055193;
  border-radius: 4px;
  border-left: 0.5rem solid #055193;
  background: #f5f5f5;
}

#documentPreview.show {
  display: flex;
  margin-top: 1rem;
}

.alert .icon {
  font-size: 20px;
}

/* chart */
.chartInfo {
  text-align: center;
  display: flex;
  flex-direction: column;
  margin-top: -5rem;
}

.chartUnit {
  font-size: 2.4rem;
}

.chartText {
  color: #999;
  font-size: 1.2rem;
}

.sectionUpdateInfo {
  text-align: center;
  margin-top: 2.5rem;
  color: #999;
}

.sectionUpdate-date,
.sectionUpdate-by {
  color: #000;
  margin: 0 4px;
}

/* Chart Diagram  */
:root {
  --percentageRotate: 100;
}

.chart {
  margin: 0 auto;
  padding: 0;
  list-style-type: none;
}

.chart *,
.chart::before {
  box-sizing: border-box;
}

.chart {
  position: relative;
  width: 350px;
  height: 175px;
  overflow: hidden;
}

.chart::before,
.chart::after {
  position: absolute;
}

.chart::before {
  content: "";
  width: inherit;
  height: inherit;
  border: 45px solid #aeaeae;
  border-bottom: none;
  border-top-left-radius: 175px;
  border-top-right-radius: 175px;
}

.chart div {
  position: absolute;
  top: 100%;
  left: 0;
  width: inherit;
  height: inherit;
  border: 45px solid #aeaeae;
  border-top: none;
  border-bottom-left-radius: 175px;
  border-bottom-right-radius: 175px;
  transform-origin: 50% 0;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  animation-fill-mode: forwards;
  animation-duration: 0.4s;
  animation-timing-function: linear;
  background: transparent;
}

.chart div:nth-child(1) {
  z-index: 4;
  border-color: orange;
  transition: all 2s;
  transform: rotate(calc(var(--percentageRotate) * 0deg));
}

.chart span {
  position: absolute;
  font-size: 18px;
  backface-visibility: hidden;
  color: white;
  animation: fade-in 0.4s linear forwards;
}

.chart .candidate-one-percentage {
  top: 10px;
  left: -35px;
  transform: rotate(0deg);
}

.chart .candidate-two-percentage {
  top: -35px;
  left: -35px;
  transform: rotate(-90deg);
}

@keyframes rotate-one {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(calc(--percentageRotate * 0deg));
  }
}

/* Table */
.table-container {
  margin: 0 -10px;
}

.dataTables_wrapper {
  padding: 10px;
}

table,
table.dataTable {
  border-collapse: collapse !important;
  font-family: sans-serif;
  /* max-width: 1200px; */
  width: 100%;
  font-family: "Abel", sans-serif;
}

table thead tr th {
  font-weight: 700;
}

table thead tr {
  background-color: #f9f9f9;
  text-align: left;
  color: #0e2b5a;
  box-shadow: inset 0 0 0 1px #c0c3c9;
  border-bottom: 2px solid #0e2b5a;
}

table th,
table td {
  padding: 15px 15px;
}

table td {
  color: #253042;
}

table td:not(.modify) {
  font-weight: 500;
}

table td:not(.noCapitalize):first-letter,
#profileFullName,
#profileGroup:first-letter {
  text-transform: capitalize;
}

.profile-user {
  display: flex;
  flex-wrap: wrap;
}

.profile-user-avatar {
  font-size: 5rem;
  color: #055193;
  border-radius: 50%;
  display: flex;
  align-self: flex-start;
  margin-right: 3rem;
  padding: 4rem;
  background: #edf2f5;
  margin-bottom: 2rem;
}

table.dataTable thead th,
table.dataTable thead td {
  padding-left: 10px;
}

table.dataTable td.title a {
  font-weight: 600;
}

table.dataTable td.title a:hover {
  color: #0070d1;
}

table td button {
  font-weight: 400;
}

tbody tr {
  border-bottom: 1px solid #c0c3c9;
}

tbody tr:nth-of-type(even) {
  background-color: #f9f9f9;
}

tbody tr.logged-in-account {
  background-color: #f3faff !important;
}

tbody tr:last-of-type {
  border-bottom: 2px solid #e4e5e9;
}

tbody tr.active-row {
  font-weight: bold;
  color: #e4e5e9;
}

div.table-responsive > div.dataTables_wrapper > div.row > div[class^="col-"]:last-child {
  padding: 0;
}

.dataTables_wrapper .dataTables_filter {
  margin-top: 0;
}

.table-responsive .col-sm-12 {
  overflow: auto;
}

.userTableCalendarDate {
  max-width: 200px;
  white-space: normal;
  word-wrap: break-word;
}

.userTableCalendarDate span {
  display: inline-block;
  margin-right: 4px;
}

/* Paginaiton */
.pagination {
  display: flex;
}

.pagination li a {
  position: relative;
  display: block;
  padding: 0.5rem 0.75rem;
  margin-left: -1px;
  line-height: 1.25;
  color: #4e73df;
  background-color: #fff;
  border: 1px solid #dddfeb;
  text-decoration: none;
  font-weight: 500;
}

.pagination li.active a {
  background-color: #055193;
  color: #fff;
}

.pagination li.disabled a {
  color: #858796;
  pointer-events: none;
  cursor: auto;
  background-color: #fff;
  border-color: #dddfeb;
  font-weight: normal;
}

.pagination li:first-child a {
  margin-left: 0;
  border-top-left-radius: 0.35rem;
  border-bottom-left-radius: 0.35rem;
}

.pagination li:last-child a {
  margin-right: 0;
  border-top-right-radius: 0.35rem;
  border-bottom-right-radius: 0.35rem;
}

/* sidebar-content */
.sidebar-content ul {
  margin-top: 2rem;
}

.sidebar-content ul li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

/* sidebar-content - alerts */
.sidebar-content .alert ul li {
  display: list-item;
  margin-bottom: 0.7rem;
}

.sidebar-content .alert ul li:last-child {
  margin-bottom: 0;
}

.sidebar .alert ul {
  margin-top: 1.2rem;
  margin-bottom: 1.2rem;
  padding-left: 1.2rem;
}

.contentUpdate-left {
  font-weight: 500;
}

.btn-minus,
.btn-plus {
  font-size: 2rem;
  color: #055193;
  border-radius: 10px;
}

.btn-minus:hover,
.btn-plus:hover {
  background: #f3f4f7;
  color: #0f52bd;
}

.contentQuantity {
  display: flex;
  align-items: center;
  line-height: 0.8;
}

.quantity {
  font-size: 1.2rem;
  min-width: 40px;
  text-align: center;
}

/* list */
ul.list {
  margin-bottom: 2.5rem;
}

ul.list li {
  margin-bottom: 1.4rem;
}

ul.list li span {
  margin-bottom: 0.3rem;
  display: block;
  color: #253042;
}

ul.list li span:last-child {
  font-size: 1.2rem;
}

ul.clean li {
  margin: 0;
}

.color-gray {
  color: #777;
}

.color-gray--blue {
  color: #858f95;
}

.sidebar.done .btn-title {
  color: #05932e;
}

.btn-title {
  margin-bottom: 0.5rem;
  display: block;
  font-size: 0.9375rem;
}

#linksList {
  background: #edf2f5;
  border-radius: 6px;
  padding: 0.5rem 1.5rem;
  margin-bottom: 1rem;
}

.link-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
}

.link-title {
  flex: 1;
  word-break: break-word;
}

.buttons-container {
  display: none;
  gap: 0.5rem;
  flex-shrink: 0;
}

.link-item:hover .buttons-container,
.link-item .buttons-container:has(button:focus),
.link-item .buttons-container:has(button:active) {
  display: flex;
}

[disabled],
.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Grupper */

/* NOT Admin */
body:not([group="is-admin"]) .admin {
  display: none;
}

/* IS Admin */
body[group="is-admin"] .admin {
  display: inline-block;
}

/* IS Admin - d-none */
body[group="is-admin"] .admin.d-none {
  display: none;
}

body[group="is-admin"] .modify {
  display: flex;
}

/* IS Admin - TABLE */
body[group="is-admin"] th.admin {
  display: table-cell;
}

/* Alla som inte har behörighet ADMIN */
body:not([group="is-admin"]):not([group="readWrite"]) #calendar-view table * {
  cursor: default;
  box-shadow: none !important;
}

body:not([group="is-admin"]):not([group="readWrite"]) #calendar-view table td a.fc-event {
  opacity: 0.8 !important;
}

body:not([group="is-admin"]):not([group="readWrite"]) #calendar-view table td.fc-day {
  background-color: transparent !important;
}

/* IS readWrite */
body[group="readWrite"] .readWrite {
  display: inline-block;
}

body[group="readWrite"] .modify {
  display: flex;
}

/* IS readWrite - TABLE */
body[group="readWrite"] th.readWrite {
  display: table-cell;
}

/* Cards */
.card-container {
  display: flex;
  margin: 0 -1rem;
  flex-wrap: wrap;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 0 1rem;
  margin-bottom: 1.5rem;
  width: 25%;
  position: relative;
}

.card-image img {
  display: flex;
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.card-image img.imagePlaceholder {
  object-fit: none;
  background-color: #d9ebf7;
}

.card-inner {
  display: flex;
  flex-direction: column;
  border-radius: 6px;
  border: 1px solid #eee;
  position: relative;
  height: 100%;
  transition: 0.2s all;
  overflow: hidden;
}

.createdBy {
  font-size: 0.8rem;
  color: #777;
  padding: 0.5rem 0.5rem 1rem;
}

.card-icon {
  height: 50px;
  width: 50px;
  border-radius: 50%;
  background: #d5edc3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.card-content {
  display: flex;
  padding: 1.5rem 2rem;
}

.card.newsArticle .card-inner:hover {
  box-shadow: 0px 10px 35px 0 rgb(0 0 0 / 8%), inset 0px -5px 0 #0070d1;
}

.card.newsArticle a:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* NY NYHET */
.card .badge-new {
  background-color: #ff4757;
  color: white;
  font-size: 1rem;
  padding: 2px 6px;
  border-radius: 4px;
  align-self: flex-start;
  margin-bottom: 10px;
}

#startpageContent {
  padding: 2rem 3rem;
}

.startpageBox h2 {
  font-size: 1.3rem;
  background: #c9dae5;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.startpageBox h2 i::before {
  line-height: normal;
}

.startpageBoxContainer {
  margin: 0 -2rem;
  display: flex;
  flex-wrap: wrap;
  box-sizing: border-box;
}

.startpageBoxContainer > div {
  box-sizing: border-box;
  width: 33.3334%;
  padding: 0 1rem 2rem;
}

.startpageBoxContainer > div:first-child {
  width: 40%;
}

.startpageBoxContainer > div:not(:first-child) {
  width: 30%;
}

.startpageBoxContainer .card {
  width: 100%;
  padding: 0 0.5rem;
}

.startpageBoxContainer .card:not(:nth-child(-n + 3)) {
  width: 50%;
}

#startpageNews {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -0.5rem;
}

#startpageNews.is-empty {
  margin: 0;
}

#startpageNews .card-content {
  display: flex;
  padding: 1rem 1.2rem 1.5rem;
}

#startpageNews .card-inner {
  overflow: hidden;
}

#startpageNews .card-title {
  margin-bottom: 0;
}

#startpageNews .card-title i {
  left: -4px;
  position: relative;
}

#startpageNews .card-title a {
  text-decoration: none;
}

#startpageNews .card:not(:first-child) .card-image img {
  height: 200px;
}

.news-content {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  -moz-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.7rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  box-orient: vertical;
}

.news-content img {
  max-width: 100%;
}

.news-content p {
  margin: 1rem 0 0;
}

.emptybox {
  background: #edf2f5;
  padding: 5rem 1.5rem;
  width: 100%;
  display: flex;
  border-radius: 6px;
  flex-direction: column;
  align-items: center;
  color: #0e2b5a;
}

.emptybox p {
  margin-bottom: 0;
}

.emptybox i {
  font-size: 2rem;
}

.startpage-event-item {
  background: #edf2f5;
  margin-bottom: 10px;
  border-radius: 6px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.event-item-top {
  display: flex;
  color: #0e2b5a;
  align-items: center;
}

a.link,
.startpage-event-item a {
  font-size: 1rem;
  font-weight: 600;
}

a.link:hover,
.startpage-event-item a:hover {
  color: #0070d1;
}

.startpage-event-item a::first-letter {
  text-transform: uppercase;
}

.startpage-event-item .event-item-info {
  font-size: 0.875rem;
  margin-top: 1rem;
  color: #4f5e77;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.event-source {
  display: flex;
  align-items: center;
}

.event-source i {
  font-size: 1.1rem;
  margin-right: 0.3rem;
}

.calendar-item {
  display: flex;
  background: #edf2f5;
  margin-bottom: 10px;
  border-radius: 6px;
  padding: 1.5rem;
}

.calendar-user-name {
  text-transform: capitalize;
  font-weight: 500;
}

.calendar-date {
  border-right: 1px solid #d5d9ed;
  padding-right: 1.5rem;
  margin-right: 1.5rem;
}

.calendar-details-user {
  border-left: 7px solid #a6b39c;
  margin-bottom: 1rem;
  color: #0e2b5a;
  padding-left: 0.5rem;
}

.calendar-details-user:last-child {
  margin-bottom: 0;
}

.calendar-details-user.arbetstid {
  border-color: #ffa500;
}

.calendar-details-user.franvaro {
  border-color: #ff4545;
}

.calendar-details-user.ovrigt {
  border-color: #d000ff;
}

.calender-no-events {
  color: #89909b;
  font-size: 0.938rem;
}

.calendar-dayName {
  text-transform: capitalize;
}

.calendar-day {
  font-size: 1.5rem;
}

.calendar-type {
  font-weight: 400;
}

.calendar-time {
  font-size: 0.9rem;
}

.btn-user-readed {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  font-size: 1.2rem;
  color: #055193;
}

body[group="is-admin"] .card-content--toggle.admin,
.card-content--toggle {
  display: none;
  position: absolute;
  bottom: -100%;
  background: #fff;
  width: 100%;
  height: 100%;
  z-index: 1;
}

body[group="is-admin"] .card-content--toggle.admin.active,
.card-content--toggle.active {
  bottom: 0;
}

.card-content--toggle .card-content {
  padding: 1rem;
  max-height: 100%;
  overflow: auto;
}

.card-notification .card-content--toggle .card-content {
  padding: 0.5rem 1.8rem 0.5rem 0.5rem;
}

.card-notification .btn-user-readed {
  padding: 0.2rem;
}

.userData {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.userData.list li {
  padding: 0.2rem;
  margin: 0;
}

.userData li .user {
  background-color: #f5f5f5;
  border-radius: 6px;
  padding: 0.2rem 0.4rem;
  text-transform: capitalize;
}

.userData li .user-has-readed {
  background-color: #d5edc3;
}

.card .group {
  margin: 0;
  margin-top: -10px;
  margin-bottom: 7px;
  font-size: 0.75rem;
  margin-left: -0.2rem;
  font-weight: 500;
  letter-spacing: 1px;
  background: #f5f5f5;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  align-self: flex-start;
}

.card .title {
  margin: 0;
}

.card .content {
  margin-top: 0.6rem;
  margin-bottom: 0;
  line-height: 1.8rem;
  word-break: break-word;
}

.card-content--left {
  display: flex;
  flex-direction: column;
}

.card-content--right {
  display: flex;
  flex-direction: column;
  margin-left: 20px;
}

.card-created {
  display: flex;
  align-items: center;
}

.card-created i {
  color: #999;
  margin-right: 7px;
}

.card-created span {
  font-size: 0.875rem;
  color: #777;
}

.card--left {
  margin-right: auto;
}

.card--right .btn:not(:first-child) {
  margin-left: 10px;
}

.card-bottom {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  background: #f5f5f5;
  margin: 6px;
  border-radius: 4px;
  margin-top: auto;
  flex-wrap: wrap;
  gap: 10px;
}

.card-bottom .btn {
  margin-left: auto;
}

.row {
  display: flex;
  margin: 0 -1rem;
  flex-wrap: wrap;
}

.row:has(.emptybox) {
  margin: 0;
}

.d-none {
  display: none;
}

.hide {
  display: none !important;
}

#startpageCalendar {
  flex-direction: column;
}

/* CALENDAR */
#calendar-view {
  /* max-width: 1198px; */
}

thead .fc-scroller {
  overflow: hidden !important;
}

thead .fc-col-header {
  width: 100% !important;
}

.fc-view table:not([cellpadding]) td,
.fc-view table:not([cellpadding]) th {
  padding: 0 !important;
}

.fc thead tr {
  box-shadow: unset;
  border: 0;
}

th.fc-col-header-cell {
  border-bottom: 2px solid;
}

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;
  white-space: normal;
}

.fc-h-event .fc-event-title .event-name-time::first-letter {
  text-transform: capitalize;
}

.fc .fc-toolbar {
  flex-wrap: wrap;
}

.fc .fc-toolbar-title {
  font-size: 1.5rem;
  text-transform: capitalize;
}

/* Select - Tom Select */
.ts-dropdown {
  margin: 0 !important;
  box-shadow: 0 4px 10px rgb(0 0 0 / 20%);
}

.focus .ts-control {
  box-shadow: unset;
}

.ts-control {
  padding: 1rem !important;
  height: 48.6px !important;
  box-shadow: none;
  border: 1px solid #c3c3c3 !important;
}

.plugin-dropdown_input .dropdown-input {
  padding: 1rem !important;
}

.ts-control *,
.ts-dropdown-content .option,
.ts-dropdown .create.active {
  font-size: 1rem !important;
  color: #000;
}

.ts-dropdown .active,
.ts-dropdown .create.active {
  background-color: #1967d2;
  color: #fff;
}

.ts-control > input {
  font-size: 1rem !important;
  border: 1px solid #c3c3c3 !important;
  color: #000;
}

.ts-dropdown .create,
.ts-dropdown .no-results,
.ts-dropdown .optgroup-header,
.ts-dropdown .option {
  padding: 0.6rem 1rem !important;
}

.ts-wrapper,
.ts-control {
  border-radius: 4px;
}

.ts-wrapper.single .ts-control {
  background: #fff !important;
  box-shadow: unset !important;
}

.ts-wrapper.single .ts-control::first-letter {
  text-transform: capitalize !important;
}

.ts-dropdown [data-selectable].option::first-letter,
.ts-control > *::first-letter {
  text-transform: capitalize !important;
}

.ts-dropdown .no-results {
  font-size: 0.875rem;
  color: #999;
}

.sidebar .ts-wrapper.multi.has-items .ts-control {
  /* Set the maximum height */
  overflow-y: auto;
  /* Enable vertical scrolling */
}

.ts-wrapper.multi .ts-control > div {
  margin: 0;
  padding: 0 0.4rem;
  line-height: 1.713;
}

.ts-wrapper.multi.has-items .ts-control {
  border: 1px solid #c3c3c3;
  color: #000;
  box-shadow: none;
  padding: 0.6rem 1rem !important;
  gap: 10px;
  height: auto !important;
}

.ts-wrapper.multi .ts-control [data-value],
.ts-wrapper.multi .ts-control [data-value].active {
  background: #dfe6f1;
  box-shadow: none;
  border: 0;
  text-shadow: none;
  color: #055193;
}

.ts-wrapper.multi .ts-control [data-value].active {
  box-shadow: 0 0 0 1px #357ca8;
}

.ts-wrapper.multi .ts-control [data-value]:hover,
.ts-wrapper.multi .ts-control [data-value].active:hover {
  background: #d7e7ff;
}

.ts-wrapper.plugin-remove_button:not(.rtl) .item .remove {
  border-left: 1px solid #357ca847;
}

.ts-wrapper.plugin-remove_button:not(.rtl) .item.active .remove {
  background: rgba(0, 0, 0, 0.05);
}

/* Wrapper för varje option */
.ts-opt-row {
  width: 100%;
}

.ts-opt-row:hover .ts-opt-delete {
  opacity: 0.7;
  pointer-events: auto;
}

/* Delete-knappen */
.ts-opt-delete {
  opacity: 0;
  transition: 0s;
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0.1rem 0.2rem;
  font-size: 1rem;
  pointer-events: none;
}

.ts-opt-row:hover .ts-opt-delete:hover {
  opacity: 1;
}

/* filter-container */
.filter-container {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 0.5rem;
  background-color: #edf2f5;
  border-radius: 4px;
}

.filter-container .filter-item {
  width: 300px;
}

.filter-container input {
  background-color: #fff;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 1.125rem;
  margin: 0.5rem 0;
  overflow: auto;
  white-space: nowrap;
  max-width: 100%;
}

.clearFilter {
  margin-top: 2.1rem;
}

/* Style for the scrollbar */
.filter-buttons::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.filter-buttons::-webkit-scrollbar-track {
  background: #eee;
  border-radius: 0;
}

.filter-buttons::-webkit-scrollbar-thumb {
  background-color: #bfbfbf;
  border-radius: 0;
}

.filter-buttons::-webkit-scrollbar-thumb:hover {
  background-color: #979797;
}

.filter-buttons button {
  text-transform: capitalize;
  margin-right: 5px;
}

.filter-buttons button.active {
  background-color: #055193;
  color: #fff;
}

/* Toggle button and container */
.toggle-container {
  background-color: #edf2f5;
  border-radius: 4px;
}

.toggle-container > div {
  border-radius: 0;
}

.toggle-button {
  padding: 0.7rem 2rem 0.7rem 1rem;
  border-radius: 0;
  color: #0e2b5a;
  font-weight: 600;
  position: relative;
  width: 100%;
  text-align: left;
}

.toggle-button::after {
  content: "\f107";
  font-family: "Line Awesome Free";
  font-weight: 900;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
}

.toggle-active::after {
  transform: translateY(-50%) rotate(180deg);
}

.toggle-content {
  display: none;
}

.tox-statusbar__branding {
  display: none !important;
}

.w-600 {
  max-width: 600px;
  width: 100%;
}

#pageViewer {
  max-width: 1200px;
  box-sizing: border-box;
  margin: 0 auto;
}

#pageViewerInfo h2::first-letter {
  text-transform: uppercase;
}

#pageViewerContent {
  background-color: #fff;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
  margin: 1rem auto 0;
  max-width: 1200px;
  min-height: 70vh;
  padding: 4rem 6rem;
}

#pageViewerContent h2,
#pageViewerContent h3,
#pageViewerContent h4 {
  padding-top: 1rem;
}

.pageFooter {
  position: sticky;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem;
  z-index: 2;
}

.close {
  position: absolute;
  right: 20px;
  top: 10px;
  color: #000;
  font-size: 30px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

/* ============================================
   MODAL OVERLAY – BAS
   ============================================ */

/* MODALS */
/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);

  /* 🔥 Nytt: fade in/out */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* När modalen är aktiv – visas och är klickbar */
.modal.active {
  opacity: 1;
  pointer-events: auto;
}

/* (din gamla modal-content kan ligga kvar om den används någon annanstans) */
.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 100%;
  max-width: 1000px;
}

.modal-header,
.modal-footer {
  padding: 10px;
  color: #000;
  text-align: center;
}

.modal-header {
  position: relative;
}

.modal-body {
  padding: 20px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;

  /* 🔧 Justerat: börja lite högre upp, som Bootstrap */
  align-items: flex-start;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
  padding: 10vh 0;

  @media (max-width: 767px) {
    padding: 5vh 0.5rem;
  }
}

.modal-overlay .card {
  width: 100%;
  padding: 0;
}

.modal-overlay.d-none {
  display: none;
}

/* ============================================
   MODAL DIALOG – struktur och layout
   ============================================ */
.modal-overlay__dialog {
  background: #fff;
  max-width: 640px;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  transform: translateY(-20px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;

  @media (max-width: 1024px) {
    max-height: unset;
  }
}

/* När modalen är aktiv → glid ner lite och fadea in */
.modal.active .modal-overlay__dialog {
  transform: translateY(0);
  opacity: 1;
}

/* ============================================
   MODAL HEADER
   ============================================ */
.modal-overlay__header {
  padding: 1.5rem 2rem 1rem;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
}

.modal-overlay__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

/* ============================================
   MODAL BODY
   ============================================ */
.modal-overlay__body {
  padding: 1.5rem 2rem;
  overflow-y: auto;
  flex: 1; /* fyller ut mellan header och footer */
  display: flex;
  flex-direction: column;
  gap: 1rem;

  @media (max-width: 767px) {
    padding: 1.5rem 1rem;
  }
}

.notification-overlay__body-item .card {
  margin: 0;
  box-shadow: none;
}

/* ============================================
   MODAL FOOTER
   ============================================ */
.modal-overlay__footer {
  padding: 1rem 2rem 1.5rem;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
}
.modal-overlay__footer.center {
  justify-content: center;
}

.modal-overlay__footer button:last-child {
  margin-left: auto;
}

/* ============================================
   LOCK SCROLL PÅ BODY NÄR MODAL ÄR ÖPPEN
   ============================================ */
.modal-overlay-open {
  overflow: hidden;
}

@media (max-width: 1280px) {
  .card {
    width: 33.3334%;
    min-width: 33.3334%;
  }

  #pageViewerContent {
    padding: 2rem 4rem;
  }

  .startpageBoxContainer .card:not(:first-child) {
    width: 100%;
  }

  .startpageBoxContainer .card:not(:first-child) .card-image {
    display: none;
  }

  .startpageBoxContainer .news-content p {
    margin: 0;
    margin-top: 8px;
  }

  .startpageBoxContainer .calendar-item {
    padding: 1rem;
    flex-direction: column;
  }

  .calendar-date {
    border: 0;
    border-bottom: 1px solid #d5d9ed;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 3px;
  }

  .calendar-day {
    margin: 0 5px;
  }

  .calendar-dayName,
  .calendar-day,
  .calendar-month {
    font-size: 1rem;
  }

  .calendar-user {
    font-size: 0.925rem;
  }
}

@media (max-width: 1024px) {
  .card {
    width: 50%;
    min-width: 50%;
  }

  .startpageBoxContainer > div {
    width: 100% !important;
  }
}

@media (max-width: 767px) {
  header {
    padding: 0 1.25rem;
  }

  .header-nav .header-date {
    display: none;
  }

  header .logo-icon {
    display: block;
  }

  body.nav-small .navbar {
    width: 10rem;
    left: -10rem;
  }

  body.nav-small #nav-view-toggle.arrow-icon {
    margin-right: 0;
  }

  #nav-menu-btn {
    display: flex;
  }

  main {
    padding-bottom: 6rem;
  }

  #pageViewerContent p {
    line-height: 1.6;
    font-size: 0.938rem;
  }

  .container,
  body.nav-small .container {
    padding-left: 0;
  }

  .card {
    width: 100%;
    min-width: 100%;
  }

  .card-content {
    padding: 1.5rem;
  }

  .card-image img {
    height: 200px;
  }

  .pageHeader .mainContainer {
    padding: 0;
  }

  .pageHeader {
    padding: 1.25rem;
  }

  .mainContainer {
    padding: 1.25rem;
  }

  #pageViewerContent {
    padding: 1rem;
  }

  .startpageBoxContainer > div {
    padding: 0 0 2rem;
  }

  .profile-user-avatar {
    font-size: 3rem;
    color: #055193;
    border-radius: 50%;
    display: flex;
    align-self: flex-start;
    margin-right: 3rem;
    padding: 2rem;
    background: #edf2f5;
    margin-bottom: 2rem;
  }

  .btn-toggle {
    padding: 0.5rem;
  }

  .alert.alert-toggle-open {
    padding-right: 1rem;
  }
}
