@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100..700;1,100..700&family=Rajdhani:wght@300;400;500;600;700&display=swap');

:root {
  --motiw-green: #2D4F47;
  --motiw-mint: #99C0B6;
  --motiw-bg: #f5f5f5;
  --motiw-fg: #3a3a3a;
  --motiw-border: #EFF0EB;
  --motiw-clay: #E8A892;
  --motiw-steel: #768AA7;
  --sidebar-expanded: 240px;
  --sidebar-collapsed: 72px;
}

.rajdhani-light {
  font-family: "Rajdhani", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.rajdhani-regular {
  font-family: "Rajdhani", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.rajdhani-medium {
  font-family: "Rajdhani", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.rajdhani-semibold {
  font-family: "Rajdhani", sans-serif;
  font-weight: 600;
  font-style: normal;
}

.rajdhani-bold {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-style: normal;
}

* {
  font-family: "IBM Plex Sans", sans-serif;
}

.private-mode-banner {
  display: none;
}

h1,
h2,
h3,
h4 {
  font-family: "Rajdhani", sans-serif !important;
  font-weight: 700 !important;
  font-style: normal !important;
  text-transform: uppercase;
  color: #2d4f47 !important;
}

h1 {
  font-size: clamp(2.07rem, 2.07rem + ((1vw - 0.2rem) * 2.691), 3.55rem) !important;
}

h2 {
  font-size: clamp(1.73rem, 1.73rem + ((1vw - 0.2rem) * 1.691), 2.66rem) !important;
}

h4 {
  text-transform: none;
}

h5 {
  font-family: "Rajdhani", sans-serif !important;
  font-weight: 500 !important;
  font-style: normal !important;
  color: #99c0b6 !important;
  font-size: clamp(1rem, 1rem + ((1vw - 0.2rem) * 0.236), 1.13rem) !important;
}

body,
span,
p,
div {
  font-family: "IBM Plex Sans", sans-serif !important;
  font-weight: 400 !important;
  color: #3a3a3a !important;
  /* font-size:clamp(0.875rem, 0.875rem + ((1vw - 0.2rem) * 0.591), 1.2rem)!important; */
}

a {
  font-family: "IBM Plex Sans", sans-serif !important;
}

.crmEntityFormView {
  border: none !important;
}

.btn:disabled{
  color: var(--motiw-mint);
  border: 1px solid var(--motiw-mint);
  background: none;
}

.btn-outline-primary{
  color: var(--motiw-mint);
  border-color: var(--motiw-mint);
}

.btn-outline-primary:hover{
  color: var(--motiw-bg);
  background: var(--motiw-mint);
  border-color: var(--motiw-mint);
}

.btn-primary:hover,.button1:hover{
  background-image: linear-gradient(rgb(0 0 0 / 5%) 0 0);
  background-color: var(--motiw-mint);
  color: #fff;
}

.btn-check:checked+.btn{
    color: var(--motiw-bg);
    background-color: var(--motiw-mint);
    border-color: var(--motiw-mint);
}

.btn-check+.btn:hover {
    color: var(--motiw-bg);
    background-color: var(--motiw-mint);
    border-color: var(--motiw-mint);
}

/* Når "Ja" (urgentYes) er valgt → varm ler */
#urgentYes:checked + label {
  background-color: #E8A892; /* varm ler */
  border-color: #E8A892;
  color: #fff;
}

/* Når "Nej" (urgentNo) er valgt → mint */
#urgentNo:checked + label {
  background-color: #99C0B6; /* mint */
  border-color: #99C0B6;
  color: #fff;
}

.button1:active{
  color: #fff !important;
}

.tooltip-inner {
  background-color: var(--motiw-green) !important;
  color: var(--motiw-bg) !important;
}

.motiwContainer {
  background-color: var(--motiw-bg);
  padding: 2rem;
  border-radius: 12px;
  margin:0px;
}

.navbar-dark .navbar-nav>li>a:hover {
  background-color: transparent !important;
  text-decoration: none !important;
  color: #3a3a3a !important;
}

.navbar-dark .navbar-nav>li>a,
.navbar-dark .navbar-nav>li.dropdown>a {
  color: #3a3a3a !important;
}

.navbar-dark .navbar-nav a.show,
.navbar-dark .navbar-nav a.dropdown-toggle.show {
  text-decoration: none !important;
  background-color: transparent !important;
  color: #2d4f47 !important;
}

.static-top.navbar-dark {
  background-color: transparent !important;
  -webkit-box-shadow: none;
  box-shadow: none;
}

.navbar-dark .navbar-nav>li>a:focus,
.navbar-dark .navbar-nav>li.dropdown>a:focus {
  background-color: transparent !important;
}

.fa {
  font-family: var(--fa-style-family, "Font Awesome 6 Free") !important;
  font-weight: var(--fa-style, 900) !important;
}

footer .footer-bottom {
  background-color: #2f2f2f;

}

footer .footer-bottom p {
  color: #ffffff !important;
}


.list-group-item {
  background-color: #f5f5f5 !important;
}

.active>.page-link,
.page-link.active {
  background-color: #99c0b6 !important;
  border-color: transparent !important;
}


.closedTicket {
  background-color: #E8A892;
  border-radius: 10px;
  text-transform: uppercase;
  font-weight: 600 !important;
  padding: 0.5rem;
}


.chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin: 0 auto;
  margin-top:20px;
}

.chat-message-block {
  width: 100%;
    margin-bottom: 2%;
}

.sender-label {
  font-size: 13px !important;
  color: #5C5A58;
}

.sender-label.incoming {
  align-self: flex-end;
}

.sender-label.outgoing {
  align-self: flex-start;
}

.reciever-label {
  font-size: 13px !important;
  color: #5C5A58;
}

.reciever-label.incoming {
  align-self: flex-end;
}

.reciever-label.outgoing {
  align-self: flex-start;
}

.date-label {
  font-size: 13px !important;
  color: #5C5A58;
}

.date-label.incoming {
  align-self: center;
}

.date-label.outgoing {
    align-self: center;
}

input[type="text"]{
  border: 1px solid var(--motiw-mint);
}

input.form-control::placeholder{
  color: #808080 !important;
  opacity: 1;
}

.boolean-radio-cell .table-info label {
  font-weight: 600;
  text-transform: uppercase;
  color: #495057;
}

/* Layout spacing */
.boolean-radio {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Hide the raw radio buttons (we’ll style labels as buttons) */
.boolean-radio input[type="radio"] {
  display: none;
}

/* Base button look for both labels */
.boolean-radio label {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border: 2px solid transparent;
  border-radius: 0.375rem; /* matches Bootstrap .btn rounded corners */
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease-in-out;
}

/* Default “Nej” button */
#motiw_angivsomhaster_0 + label {
  background-color: #f8f9fa; /* Bootstrap light gray */
  color: #6c757d; /* text-secondary */
  border-color: #ced4da;
}

#motiw_angivsomhaster_0 + label:hover {
  background-color: #e2e6ea;
}

/* “Ja (Haster)” button — highlight with Bootstrap danger theme */
#motiw_angivsomhaster_1 + label {
  background-color: #fff;
  color: #dc3545;
  border-color: #dc3545;
  font-weight: 600;
}

#motiw_angivsomhaster_1 + label:hover {
  background-color: #dc3545;
  color: #fff;
}

/* Checked state — make it look pressed */
.boolean-radio input[type="radio"]:checked + label {
  background-color: #dc3545!important;
  color: #fff!important;
  border-color: #dc3545!important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

#SLAAlert {
margin-top: 20px;
}

/* Make table rows clickable with pointer cursor */
tbody tr {
  cursor: pointer;
  transition: background-color 0.2s;
}

/* Change background color on hover */
tbody tr:hover {
  background-color: white;
}

/* Common message style */
.message {
  padding: 10px 14px;
  border-radius: 16px;
  width: 90%;
  line-height: 1.4;
  word-wrap: break-word;
  font-size: 15px;
}

.message p{
  font-size: 14px !important;
}

.message hr {
  margin: 0.5rem 0;
}

/* Incoming (left side) */
.message.incoming {
  align-self: flex-end;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  color: #333;
}

/* Outgoing (right side) */
.message.outgoing {
  align-self: flex-start;
  background: var(--motiw-green);
}

.message.outgoing p {
  color: #fff !important;
}
.message.outgoing span {
  color: #fff !important;
}

.message.outgoing li {
  color: #fff !important;
}

.message.outgoing div {
  color: #fff !important;
}

.image-modal {
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}

.image-modal-content img {
  max-width: 95vw;
  max-height: 95vh;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
  object-fit: contain;
}

.message.incoming img {
  width: auto;
  max-width: 90%;
}

.message.outgoing img {
  width: auto;
  max-width: 90%;
}

.attachment-item {
  text-align: right;
}

.attachment-link {
  font-size: clamp(0.875rem, 0.875rem + ((1vw - 0.2rem) * 0.591), 0.5rem) !important;
}

.accordion-header h1, h2, h3, h4, h5 
{ 
  margin-top:0;
}

.accordion-button:not(.collapsed) {
background-color: #99C0B6;
color: #2d4f47 !important;
}


/* === SIDEBAR === */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-expanded);
  height: 100vh;
  max-height: 100vh;
  background: var(--motiw-bg);
  display: flex;
  flex-direction: column;
  transition: width 0.2s ease;
  z-index: 1000;
  overflow: hidden;
  overflow-y:auto;
  -webkit-overflow-scrolling: touch;
}

/* Safari fallback (ældre iOS) */
@supports (-webkit-touch-callout: none) {
  .sidebar {
    height: -webkit-fill-available;  
    max-height: -webkit-fill-available;
  }
}

/* Android/Moderne: undgå “adressebar spiser højden” */
@supports (height: 100svh) {
  .sidebar {            
    height: 100svh;
    max-height: 100svh;
  }
}

/* Bedre: brug dynamisk viewport hvor den findes */
@supports (height: 100dvh) {
  .sidebar {
    height: 100dvh;
    max-height: 100dvh;
  }
}

body.sidebar-collapsed .sidebar {
  width: var(--sidebar-collapsed);
}

/* Topbar */
.sidebar-topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 48px;
  padding: 8px 12px;
  background: var(--motiw-bg);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .08);
  margin-left: 6px;
}

.sidebar-collapsed .sidebar-topbar {
  justify-content: center;
  margin-left: 0px;
}

.sidebar-toggle {
  background: transparent;
  border: none;
  color: var(--motiw-fg);
  padding: 6px;
  border-radius: 8px;
  cursor: pointer;
}

.sidebar-toggle:hover {
  background: rgba(255, 255, 255, .12);
}

.sidebar-toggle:focus {
  outline: 2px solid var(--motiw-mint);
  outline-offset: 2px;
}

.sidebar-toggle svg path {
  fill: currentColor;
}

/* Backdrop (mobil) */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  z-index: 990;
  /* under .sidebar (1000), over indhold */
  display: none;
}

body.sidebar-open #sidebarBackdrop {
  display: block;
}

/* Global mobil-toggle (kun mobil) */
.mobile-toggle {
  position: fixed;
  left: 14px;
  top: 6px;
  z-index: 1200;
  display: none;
  /* skjult som udgangspunkt, vises i @media */
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: var(--motiw-bg);
  color: var(--motiw-fg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
  cursor: pointer;
}

.mobile-toggle svg path {
  fill: currentColor;
}

body.sidebar-open .mobile-toggle {
  box-shadow: none;
}

#sidebarToggle, 
#globalSidebarToggle {
  outline: none;
}

#sidebarToggle:focus, 
#globalSidebarToggle:focus {
  outline: none;
}

#sidebarToggle {
  -webkit-tap-highlight-color: transparent;
}

/* Navigation */
.sidebar-nav {
  padding: 8px 6px;
}

.sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--motiw-fg);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
  font-size: 14px;
  margin-left: 3px;
}

.sidebar-link:hover,
.sidebar-link.active {
  background: #eeeeee;
}

.icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon img {
  max-width: 75%;
  max-height: 75%;
  /* filter: brightness(0) invert(1); */
}

.sidebar-link:hover .icon img,
.sidebar-link.active .icon img {
  filter: none;
}

a.sidebar-link:hover {
  text-decoration: none !important;
}

.icon-fallback {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  background: rgba(255, 255, 255, .14);
  color: var(--motiw-fg);
}

/* Labels kun i udfoldet sidebar */
.label {
  display: inline-block;
}

body.sidebar-collapsed .label {
  display: none;
}

body.sidebar-collapsed .sidebar-link,
body.sidebar-collapsed .sidebar-cta {
  justify-content: center;
  padding: 10px;
}

/* Footer CTA i sidebar */
.sidebar-footer {
  margin-top: auto;
  padding: 8px 6px 12px;
}

.sidebar-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--motiw-mint);
  color: var(--motiw-green);
  text-decoration: none;
  font-weight: 600;
}

.sidebar-cta:hover {
  background: #fff;
  color: var(--motiw-green);
}

body.sidebar-collapsed .sidebar-cta .label {
  display: none;
}

/* === MAIN CONTENT & FOOTER === */

/* Hovedindhold */
#mainContent {
  margin-left: var(--sidebar-expanded);
  transition: margin-left 0.2s ease;
  padding: 2rem 2rem 2rem 2rem;
}

body.sidebar-collapsed #mainContent {
  margin-left: var(--sidebar-collapsed);
}

/* Footer */
.footer {
  margin-left: var(--sidebar-expanded);
  transition: margin-left 0.2s ease;
  background: var(--motiw-bg);
  border-top: 1px solid rgba(0, 0, 0, .06);
  color: var(--motiw-fg);
}

body.sidebar-collapsed .footer {
  margin-left: var(--sidebar-collapsed);
}


/* Mobil */
@media (max-width: 768px) {
  .mobile-toggle {
    display: inline-flex;
  }

  .sidebar {
    width: 80%;
    max-width: 320px;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    box-shadow: 0 0 24px rgba(126, 102, 102, 0.18);
    background: var(--motiw-bg);
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  #mainContent,
  .footer {
    margin-left: 0 !important;
  }
}



@media (max-width: 767.98px) {
  .responsive-stack thead { display: none; }
  .responsive-stack, 
  .responsive-stack tbody, 
  .responsive-stack tr, 
  .responsive-stack td { display: block; width: 100%; }
  .responsive-stack tr { 
    background: var(--motiw-bg);
    border-radius: 12px; 
    padding: 12px 14px; 
    margin-bottom: 12px; 
    box-shadow: 0 0 0 1px rgba(0,0,0,.05) inset;
  }
  .responsive-stack td {
    display: flex; 
    justify-content: space-between; 
    gap: 12px; 
    padding: 6px 0; 
    border: 0;
  }
  .responsive-stack td::before {
    content: attr(data-label);
    font-weight: 600; 
    color: #2D4F47;
  }
}

.trumbowyg-box p{
  font-size: 16px;
}