.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    font-weight: 300!important;
}

.dropzone .dz-image img {
  object-fit: cover;
  object-position: center center;
  width: 100%;
  height: 100%;
  border-radius: 0.5rem;
}


/* Fade-effekt för meny */
.menu-fade {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.menu-fade.show {
    opacity: 1;
}

/* Visa dropdown på hover i horizontal layout */
.hover-dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}

.hover-dropdown .dropdown-menu {
    display: none;
}

.zen-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.zen-menu li {
  display: block;
}

.zen-menu a.menu-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem!important;
  color: #212529;
  text-decoration: none;
  border-radius: 0.375rem;
}

.zen-menu.zen-horizontal {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-left: 0;
    margin: 0;
    list-style: none;
}

.zen-menu.zen-horizontal > li {
    display: inline-block;
}

.zen-menu.zen-horizontal .menu-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #212529;
    text-decoration: none;
    padding: 0.5rem 0;
    font-weight: 500;
}

.zen-menu.zen-horizontal .menu-item:hover {
    color: #000;
    text-decoration: none;
}

.zen-menu.zen-vertical .zen-submenu {
    display: none;
    flex-direction: column;
    margin-left: 1.5rem;
    margin-top: 0.25rem;
}

.zen-menu.zen-vertical .zen-submenu.show {
    display: flex;
}

.zen-menu.zen-horizontal .zen-dropdown {
    position: relative;
}

.zen-menu.zen-horizontal .zen-dropdown > .zen-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.5rem 0;
    min-width: 12rem;
    z-index: 1000;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}

.zen-menu.zen-horizontal .zen-dropdown:hover > .zen-submenu {
    display: block;
}

.zen-menu.zen-horizontal .zen-submenu li {
    display: block;
}

.zen-menu.zen-horizontal .zen-submenu .menu-item {
    padding: 0.5rem 1rem;
    white-space: nowrap;
}

.icontools-mobile .nav-link,
.icontools-mobile .close-app-button {
    font-size: 1.5rem;
}

@media (max-width: 768px) {
  /* Menyn vertikal i mobil */
  .zen-menu.zen-horizontal {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.25rem !important;
  }

  .zen-menu.zen-horizontal > li {
    display: block !important;
  }

  .zen-menu.zen-horizontal .menu-item {
    padding: 0.4rem 1rem !important;
    justify-content: flex-start !important;
    font-size: 0.95rem;
  }

  .zen-menu.zen-horizontal .zen-submenu {
    position: static !important;
    box-shadow: none !important;
    padding-left: 1.25rem;
    margin-top: 0.25rem;
    gap: 0.25rem;
  }

  .zen-menu .icon {
    min-width: 1.25rem;
    text-align: center;
  }

  /* Huvudikoner på mobil (avatar, logout, etc) */
  .navbar-nav {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1.25rem;
    padding: 1rem 0;
  }

  .navbar-nav .nav-item {
    display: flex;
    justify-content: center;
  }

  .navbar-nav .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Avatar dropdown – mobil */
  .user-avatar-dropdown {
    position: relative !important;
    width: 100%;
  }

  .user-avatar-dropdown .dropdown-menu {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    margin-top: 0.5rem;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .user-avatar-dropdown-mobile .dropdown-menu {
    width: 100%;
    box-shadow: none !important;
    border-radius: 0.375rem !important;
    margin-top: 0.25rem !important;
    padding: 0.5rem 0.75rem;
  }

  /* ✅ Ny wrapper för notis + stängknapp i mobil */
  .icontools-mobile {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 1.25rem;
  }

  .icontools-mobile .nav-link,
  .icontools-mobile .close-app-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    padding: 0;
    line-height: 1;
  }

  .icontools-mobile .close-app-button {
    background-color: #0d6efd;
    color: white;
    border-radius: 50%;
  }


    
    .icontools-mobile {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0.5rem 1.25rem;
    }
    
    .notification-link {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 2.4rem;
      height: 2.4rem;
    }
    
    .close-app-button {
      width: 2.4rem;
      height: 2.4rem;
      background-color: #0d6efd;
      color: white;
      border-radius: 50%;
      font-size: 1.2rem;
      display: flex;
      align-items: center;
      justify-content: center;
      text-decoration: none !important;
      padding: 0;
      line-height: 1;
    }
    
    
    
    .icontools-mobile .nav-link {
          position: relative; /* Gör så badgen positioneras relativt ikonen */
    }

  /* Avatar längst ner (inte dropdown utan statisk rad) */
  .avatar-row-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
  }

  .avatar-row-mobile img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
  }

  .avatar-row-mobile .user-name {
    font-weight: 600;
    margin-top: 0.5rem;
  }

  .avatar-row-mobile .user-id {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.2rem;
  }
  
  .close-app-button {
      text-decoration: none !important;
  }
}




/* Ikonfix */
.zen-menu .icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 1.25rem;
    text-align: center;
}


.hoverbox {
    transition: all .1s ease-in-out;
}
.hoverbox:hover {
    transform: scale(1.04);
}

.grow {
    transition: all .1s ease-in-out;
}
.grow:hover {
    transform: scale(1.04);
}

.dashboard-module-icon-wrap {
    line-height: 1;
}

.dashboard-module-title-link {
    line-height: 1.3;
}

.dashboard-module-badge,
.zen-menu-badge {
    position: static;
    min-width: 1.25rem;
    font-size: 0.65rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 0.2em 0.45em;
    vertical-align: middle;
    flex-shrink: 0;
    background-color: #fff !important;
    color: #212529 !important;
    --bs-badge-color: #212529;
    border: 1px solid rgba(0, 0, 0, 0.12);
    text-transform: none !important;
}

.zen-menu a.menu-item.active .zen-menu-badge,
.zen-menu a.menu-item:hover .zen-menu-badge,
.zen-menu.zen-horizontal .menu-item.active .zen-menu-badge,
.zen-menu.zen-horizontal .menu-item:hover .zen-menu-badge {
    color: #212529 !important;
    --bs-badge-color: #212529;
    background-color: #fff !important;
}

.zen-menu.zen-horizontal .menu-item .zen-menu-badge {
    margin-left: 0.15rem;
}

#table-supportdesk-tickets tr.sd-ticket-row--attention > td {
    background-color: #f4faf6 !important;
}
#table-supportdesk-tickets.table-striped > tbody > tr.sd-ticket-row--attention:nth-of-type(odd) > td,
#table-supportdesk-tickets.table-striped > tbody > tr.sd-ticket-row--attention:nth-of-type(even) > td {
    background-color: #f4faf6 !important;
}

.liftup {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.liftup:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  z-index: 99;
  position: relative;
}

/* 🔔 Notifikation-popup (baserat på usermeny) */
.notification-popup {
  min-width: 250px!important;
  max-width: 300px!important;
  width: 100%!important;
  border-radius: 6px;
  padding: 0;
  overflow: hidden;
  display: none; /* hanteras via .show */
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 1050;
  background-color: #fff;
  box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.15);
}

/* När .show är på – visa popupen */
.notification-popup.show {
  display: block;
}

/* Enskild item i dropdownen */
.notification-popup .dropdown-item {
  padding: 0.75rem 1rem;
  white-space: normal;
  line-height: 1.3;
}

/* 🟣 Badge OLÄST */
.notification-popup .badge {
  font-size: 0.7rem;
}

/* Ikonruta till vänster */
.notification-popup .dropdown-item i.fas {
  font-size: 1.2rem;
}

@media (max-width: 991.98px) {
  .notification-popup {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    min-width: 100%;
    z-index: 1050;
    border-radius: 0.5rem;
  }
  .notification-popup .dropdown-item {
    padding: 1rem;
  }
}

.notificationbadge {
  position: absolute;
  background-color: #fff!important;
  color: #000!important; 
  border: 1px solid #a9a9a9 !important; 
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1)!important; /* liten skugga för lyft */
  font-weight: bold;
  font-size: 12px!important;
  padding: 3px 6px;
  border-radius: 50% !important;
  line-height: 1;
  z-index: 10;
}



@media (max-width: 576px) {
  .notificationbadge {
    top: -2px;
    right: 0px;
  }
  
  .icontools-mobile .nav-link,
    .icontools-mobile .close-app-button {
        font-size: 1.4rem!important;
    }
}

@media (min-width: 577px) and (max-width: 991.98px) {
  .notificationbadge {
    top: -7px;
    right: -7px;
  }
  
    .icontools-mobile .nav-link,
    .icontools-mobile .close-app-button {
        font-size: 1.4rem!important;
    }
}

@media (min-width: 992px) {
  .notificationbadge {
    top: -3px;
    right: -2px;
  }
  
    .icontools-mobile .nav-link,
    .icontools-mobile .close-app-button {
        font-size: 1.5rem!important;
    }
}

/* Inline edit affordance */
.js-editable {
    cursor: text;
}

.js-editable:hover {
    background-color: #f8f5ff;
    /* diskret lila/grå */
    box-shadow: inset 0 0 0 1px #e0d7ff;
}

/* Inline text edit (t.ex. offert-hälsning) */
.estimate-intro-card .form-control.estimate-title-inline,
.estimate-intro-card .form-control.estimate-spec-message-edit,
.estimate-closing-card .form-control.estimate-spec-message-edit,
.js-inline-text-edit textarea.estimate-spec-message-edit {
    border: 1px solid rgba(var(--brand-primary-rgb, 132, 32, 212), 0.22) !important;
    background: #fff;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.estimate-intro-card .form-control.estimate-title-inline:hover,
.estimate-intro-card .form-control.estimate-spec-message-edit:hover,
.estimate-closing-card .form-control.estimate-spec-message-edit:hover,
.js-inline-text-edit textarea.estimate-spec-message-edit:hover {
    border-color: rgba(var(--brand-primary-rgb, 132, 32, 212), 0.45) !important;
    background: rgba(var(--brand-primary-rgb, 132, 32, 212), 0.03);
}

.estimate-intro-card .form-control.estimate-title-inline:focus,
.estimate-intro-card .form-control.estimate-spec-message-edit:focus,
.estimate-closing-card .form-control.estimate-spec-message-edit:focus,
.js-inline-text-edit textarea.estimate-spec-message-edit:focus {
    border-color: var(--form-focus-color, var(--brand-primary, #8420d4)) !important;
    background: #fff;
    box-shadow: 0 0 0 0.25rem var(--form-focus-shadow, rgba(var(--brand-primary-rgb, 132, 32, 212), 0.25)) !important;
    outline: none !important;
}

.js-inline-text-edit textarea.estimate-message-inline {
    border: 1px solid rgba(var(--brand-primary-rgb, 132, 32, 212), 0.22) !important;
    background: #fff;
    resize: vertical;
    min-height: 10rem;
    line-height: 1.75;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.js-inline-text-edit textarea.estimate-message-inline:hover {
    border-color: rgba(var(--brand-primary-rgb, 132, 32, 212), 0.45) !important;
    background: rgba(var(--brand-primary-rgb, 132, 32, 212), 0.03);
}

.js-inline-text-edit textarea.estimate-message-inline:focus {
    border-color: var(--form-focus-color, var(--brand-primary, #8420d4)) !important;
    background: #fff;
    box-shadow: 0 0 0 0.25rem var(--form-focus-shadow, rgba(var(--brand-primary-rgb, 132, 32, 212), 0.25)) !important;
    outline: none !important;
}

.js-inline-text-edit.is-saving textarea.estimate-message-inline {
    opacity: 0.7;
}

.js-estimate-rich-edit {
    position: relative;
    overflow: visible;
}

.js-estimate-rich-edit .estimate-rich-edit-shell {
    position: relative;
    overflow: visible;
}

.js-estimate-rich-edit:not(.is-editing) .estimate-rich-toolbar {
    display: none !important;
}

.js-estimate-rich-edit .estimate-rich-toolbar {
    display: none;
    align-items: center;
    gap: 0.15rem;
    width: fit-content;
    max-width: 100%;
    position: absolute;
    left: 0;
    bottom: calc(100% + 0.35rem);
    top: auto;
    z-index: 20;
    margin: 0;
    padding: 0.25rem 0.35rem;
    background: #fff;
    border: 1px solid rgba(var(--brand-primary-rgb, 132, 32, 212), 0.28);
    border-radius: 0.5rem;
    box-shadow: 0 6px 18px rgba(var(--brand-primary-rgb, 132, 32, 212), 0.12);
    pointer-events: auto;
}

.js-estimate-rich-edit.is-editing .estimate-rich-toolbar {
    display: inline-flex !important;
}

.js-estimate-rich-edit .estimate-rich-toolbar .btn-light {
    border-color: transparent;
    color: var(--brand-primary, #8420d4);
    min-width: 2rem;
    padding: 0.2rem 0.45rem;
    border-radius: 0.35rem;
}

.js-estimate-rich-edit .estimate-rich-toolbar .btn-light:hover,
.js-estimate-rich-edit .estimate-rich-toolbar .btn-light:focus {
    background: rgba(var(--brand-primary-rgb, 132, 32, 212), 0.12);
    border-color: transparent;
    color: var(--brand-primary, #8420d4);
}

.js-estimate-rich-edit .estimate-rich-body {
    min-height: 10rem;
    line-height: 1.75;
    padding: 0.75rem;
    border: 1px solid rgba(var(--brand-primary-rgb, 132, 32, 212), 0.22) !important;
    border-radius: 0.375rem;
    background: #fff;
    outline: none !important;
    box-shadow: none;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.js-estimate-rich-edit .estimate-rich-body:hover {
    border-color: rgba(var(--brand-primary-rgb, 132, 32, 212), 0.45) !important;
    background: rgba(var(--brand-primary-rgb, 132, 32, 212), 0.02);
}

.js-estimate-rich-edit.is-editing .estimate-rich-body,
.js-estimate-rich-edit .estimate-rich-body:focus,
.js-estimate-rich-edit .estimate-rich-body:focus-visible {
    padding: 0.75rem;
    background: #fff;
    outline: none !important;
    border-color: var(--form-focus-color, var(--brand-primary, #8420d4)) !important;
    box-shadow: 0 0 0 0.25rem var(--form-focus-shadow, rgba(var(--brand-primary-rgb, 132, 32, 212), 0.25)) !important;
}

.js-estimate-rich-edit.is-saving .estimate-rich-body {
    opacity: 0.7;
}

.js-estimate-rich-edit .estimate-rich-body p,
.estimate-message-body p {
    margin: 0 0 0.75rem;
}

.js-estimate-rich-edit .estimate-rich-body p:last-child,
.estimate-message-body p:last-child {
    margin-bottom: 0;
}

.js-estimate-rich-edit .estimate-rich-body p.estimate-msg-gap,
.estimate-message-body p.estimate-msg-gap {
    min-height: 0.75rem;
}

.estimate-spec-message-edit {
    white-space: pre-wrap;
}

@keyframes zenEstimateLineIn {
    from {
        opacity: 0;
        transform: translateY(-0.65rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zenEstimateLineOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(0.65rem);
    }
}

.js-estimate-draft-lines tr.estimate-draft-line--enter {
    animation: zenEstimateLineIn 0.36s ease-out;
}

.js-estimate-draft-lines tr.estimate-draft-line--leave {
    animation: zenEstimateLineOut 0.28s ease-in forwards;
    pointer-events: none;
}

.text-pre-line {
    white-space: pre-line;
}

.estimate-message-body h2,
.js-estimate-rich-edit .estimate-rich-body h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 1.25rem 0 0.5rem;
}

.estimate-message-body h3,
.js-estimate-rich-edit .estimate-rich-body h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 1rem 0 0.35rem;
}

.estimate-intro-hero__img {
    display: block;
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: 0.75rem;
}

.estimate-intro-hero__img--public {
    max-height: 320px;
}

.estimate-intro-hero--admin .estimate-intro-hero__img {
    max-height: 220px;
}

.estimate-intro-hero-wrap {
    border-radius: 0.75rem;
    overflow: hidden;
}

.estimate-intro-hero-wrap .estimate-intro-hero__img--admin {
    display: block;
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: 0.75rem;
}

.estimate-intro-hero-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    padding: 1.5rem;
    background: #f3f4f6;
    border: 1px dashed #d1d5db;
    border-radius: 0.75rem;
    text-align: center;
}

.estimate-intro-change-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
}

.estimate-intro-hero__img--modal-preview {
    max-height: 180px;
    width: auto;
    max-width: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
}

.estimate-intro-card .card-body,
.estimate-closing-card .card-body {
    overflow: visible;
}

.estimate-title-inline {
    background: #fff;
    box-shadow: none;
    border: 1px solid rgba(var(--brand-primary-rgb, 132, 32, 212), 0.22) !important;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.estimate-title-inline:hover {
    background: rgba(var(--brand-primary-rgb, 132, 32, 212), 0.03);
    border-color: rgba(var(--brand-primary-rgb, 132, 32, 212), 0.45) !important;
}

.estimate-title-inline:focus {
    background: #fff;
    border-color: var(--form-focus-color, var(--brand-primary, #8420d4)) !important;
    box-shadow: 0 0 0 0.25rem var(--form-focus-shadow, rgba(var(--brand-primary-rgb, 132, 32, 212), 0.25)) !important;
    outline: none !important;
}


.estimate-closing-hero-wrap {
    max-width: 100%;
    border-radius: 0.75rem;
    overflow: hidden;
}

.estimate-closing-hero__img {
    display: block;
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: 0.75rem;
}

.estimate-closing-card .estimate-rich-body--closing,
.estimate-closing-preview-inner.estimate-rich-body--closing,
.estimate-public-closing .estimate-rich-body--closing {
    text-align: center;
    line-height: 1.75;
}

.estimate-closing-preview-inner.estimate-rich-body--closing p,
.estimate-public-closing .estimate-rich-body--closing p {
    margin: 0 0 0.75rem;
}

.estimate-closing-preview-inner.estimate-rich-body--closing p:last-child,
.estimate-public-closing .estimate-rich-body--closing p:last-child {
    margin-bottom: 0;
}

.estimate-closing-preview-inner.estimate-rich-body--closing p.estimate-msg-gap,
.estimate-public-closing .estimate-rich-body--closing p.estimate-msg-gap {
    min-height: 0.75rem;
    line-height: 0.75rem;
}

.estimate-closing-card .estimate-closing-preview,
.estimate-public-closing .estimate-closing-preview {
    line-height: 1.8;
    text-align: center;
}

.estimate-closing-card .estimate-rich-body--closing,
.estimate-closing-preview-inner {
    text-align: center;
}

.estimate-closing-card .estimate-rich-body--closing h2,
.estimate-closing-card .estimate-rich-body--closing h3,
.estimate-closing-preview-inner h2,
.estimate-closing-preview-inner h3 {
    text-align: center;
}

.estimate-closing-card .estimate-rich-body--closing ul,
.estimate-closing-preview-inner ul {
    display: inline-block;
    text-align: left;
    margin-left: auto;
    margin-right: auto;
}

.estimate-closing-card .estimate-closing-lead {
    color: var(--bs-body-color, #212529);
}

.estimate-closing-gap {
    min-height: 1.75rem;
    line-height: 1.75rem;
}

.estimate-public-closing .estimate-closing-gap {
    min-height: 2rem;
    line-height: 2rem;
}

/* Webboffert — luft mellan intro, spec och avslut (även via app.css) */
#public-estimate .estimate-public-cover {
    margin-bottom: 0;
    padding-bottom: 3.5rem;
    border-bottom: none;
}

#public-estimate .estimate-public-cover + .estimate-public-offer-head {
    margin-top: 4.5rem;
    padding-top: 3.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

#public-estimate .estimate-public-spec {
    margin-top: 4.5rem;
    padding-top: 3.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

#public-estimate .estimate-public-closing {
    margin-top: 6rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

#public-estimate .estimate-public-closing .estimate-closing-hero-wrap {
    margin-top: 3rem;
}

/* Admin offertvy — luft mellan intro, spec och avslut */
.estimate-web-document .estimate-intro-card {
    margin-bottom: 3.5rem !important;
}

.estimate-web-document .card.shadow-sm.border-0.rounded-4.mb-5 {
    margin-top: 3.5rem;
    margin-bottom: 3.5rem !important;
}

.estimate-web-document .estimate-closing-card {
    margin-top: 4rem !important;
}

.estimate-web-document .estimate-closing-hero-wrap {
    margin-top: 3rem;
}

.estimate-closing-card .estimate-closing-contact a {
    color: var(--brand-primary, #8420d4);
    text-decoration: none;
    font-weight: 500;
}

.estimate-closing-card .estimate-closing-contact a:hover {
    text-decoration: underline;
}

.estimate-closing-edit {
    border: 1px solid rgba(var(--brand-primary-rgb, 132, 32, 212), 0.22) !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.estimate-closing-edit:hover {
    border-color: rgba(var(--brand-primary-rgb, 132, 32, 212), 0.45) !important;
}

.estimate-closing-edit:focus {
    border-color: var(--form-focus-color, var(--brand-primary, #8420d4)) !important;
    box-shadow: 0 0 0 0.25rem var(--form-focus-shadow, rgba(var(--brand-primary-rgb, 132, 32, 212), 0.25)) !important;
    outline: none !important;
}

.estimate-spec-message-edit {
    border: 1px solid rgba(var(--brand-primary-rgb, 132, 32, 212), 0.22) !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.estimate-spec-message-edit:hover {
    border-color: rgba(var(--brand-primary-rgb, 132, 32, 212), 0.45) !important;
}

.estimate-spec-message-edit:focus {
    border-color: var(--form-focus-color, var(--brand-primary, #8420d4)) !important;
    box-shadow: 0 0 0 0.25rem var(--form-focus-shadow, rgba(var(--brand-primary-rgb, 132, 32, 212), 0.25)) !important;
    outline: none !important;
}

.estimate-greeting-auto-footer-preview {
    border-top: 1px solid color-mix(in srgb, var(--brand-primary, #8420d4) 12%, #e9ecef);
}

.estimate-greeting-auto-footer .estimate-greeting-signature {
    color: var(--bs-body-color, #212529);
}

.estimate-greeting-auto-footer .estimate-greeting-signature-email a {
    color: var(--brand-primary, #8420d4);
    text-decoration: none;
}

.estimate-greeting-auto-footer .estimate-greeting-signature-email a:hover {
    text-decoration: underline;
}


/* License widget (ring) */
.license-ring-wrap{
  width: 110px;
  height: 110px;
  position: relative;
}

.license-ring{
  width:110px;
  height:110px;
  border-radius:50%;
  display:grid;
  place-items:center;
}

.license-ring::after{
  content:"";
  width:82px;
  height:82px;
  border-radius:50%;
  background:#fff;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.03);
}

.license-ring-inner{
  position:absolute;
  text-align:center;
  line-height:1.1;
}

.license-ring-label{
  font-size:.80rem;
  color:#6c757d;
  margin-bottom:.1rem;
}

.license-ring-value{
  font-size:1.4rem;
  font-weight:800;
  color:var(--primary-color);
}

/* Infinity icon styling */
.license-inf{
  font-size: 1.25em;
  font-weight: 700;
  vertical-align: -0.10em;
  opacity: .85;
}

/* Animate the ring fill */
@property --p {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 0%;
}

.license-ring-anim{
  animation: licenseFill 900ms cubic-bezier(.2,.9,.2,1) forwards;
}

.license-ring-wrap.ring-compact {
  transform: scale(0.75);
}

@keyframes licenseFill{
  from { --p: 0%; }
  to   { --p: var(--target); }
}

/* Icon pop animation */
.license-ring-anim .license-inf{
  animation: licenseIconPop 650ms cubic-bezier(.2,.9,.2,1) 120ms forwards;
  opacity: 0;
  transform: translateY(1px) scale(.92);
}

@keyframes licenseIconPop{
  0%   { opacity: 0; transform: translateY(1px) scale(.92); }
  60%  { opacity: 1; transform: translateY(1px) scale(1.04); }
  100% { opacity: 1; transform: translateY(1px) scale(1); }
}


/* =========================================
   Stat ring (generic, reusable)
   ========================================= */

.stat-ring-wrap {
    position: relative;
    width: var(--size, 92px);
    height: var(--size, 92px);
}

.stat-ring {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.stat-ring::after {
    content: "";
    width: var(--inner, 70px);
    height: var(--inner, 70px);
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .03);
}

.stat-ring-inner {
    position: absolute;
    text-align: center;
    line-height: 1.1;
}

.stat-ring-label {
    font-size: .80rem;
    color: #6c757d;
    margin-bottom: .1rem;
}

.stat-ring-value {
    font-size: 1.25rem;
    font-weight: 800;
}

/* Animate fill (reuse same property name, OK globally) */
@property --p {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 0%;
}

.stat-ring-anim {
    animation: statRingFill 900ms cubic-bezier(.2, .9, .2, 1) forwards;
}

@keyframes statRingFill {
    from {
        --p: 0%;
    }

    to {
        --p: var(--target);
    }
}

/* Compact preset (header) */
.stat-ring-wrap.is-compact {
    --size: 64px;
    --inner: 46px;
}

.stat-ring-wrap.is-compact .stat-ring-label {
    display: none;
    /* header: inga extra rader */
}

.stat-ring-wrap.is-compact .stat-ring-value {
    font-size: 1.05rem;
}

/* Ännu mindre ring (t.ex. hälsokort på översikt) */
.stat-ring-wrap.is-embed {
    --size: 56px;
    --inner: 42px;
}

.stat-ring-wrap.is-compact.is-embed {
    --size: 50px;
    /* --inner: 36px;*/
}

.stat-ring-wrap.is-embed .stat-ring-value {
    font-size: 0.9rem;
}

.stat-ring-wrap.is-compact.is-embed .stat-ring-value {
    font-size: 0.82rem;
}

.filter-bar{
  background: #fff;
}

.filter-bar .input-group{
  background: #f8f9fa;
  border-radius: 999px;
  padding: .25rem .25rem;
}

.filter-bar .input-group-text,
.filter-bar .form-control{
  background: transparent !important;
}

.filter-bar .form-control:focus{
  box-shadow: none;
}

.filter-bar .btn-group{
  background: #f8f9fa;
  border-radius: 999px;
  padding: .25rem;
}

.filter-bar .btn{
  border: 0;
  border-radius: 999px !important;
  padding: .45rem .9rem;
}

.filter-bar .btn.active{
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

/* Säljstöd — Hämta företag: tydlig aktiv flik i söktyp (btn-check + tema) */
.sales-ft-mode-group .btn-check:checked + .btn {
    z-index: 2;
}

/* Bootstrap Table: undvik onödig vertikal scrollbar i tabellkroppen när ingen
   fast höjd (data-height) används — vendor sätter overflow:auto + height:100%.
   Sätt inte overflow-x:auto på en yttre wrapper runt tabellen; det ger dubbel
   scroll (tom lista m.m.). Horisontell scroll hanteras här i .fixed-table-body. */
.bootstrap-table .fixed-table-container:not(.fixed-height) .fixed-table-body {
    overflow-x: auto;
    overflow-y: visible;
    height: auto !important;
}

/* Säljstöd — Kanban-kort (hover lyft + ram, ingen skugga) */
.sales-kanban-board .card.sales-kanban-card,
.sales-mine-nya-grid .card.sales-kanban-card {
    box-shadow: none !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    outline: 2px solid transparent;
    outline-offset: -2px;
    transition: transform 0.22s ease, border-color 0.22s ease, outline-color 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease !important;
    position: relative;
}

.sales-kanban-board .card.sales-kanban-card:hover,
.sales-mine-nya-grid .card.sales-kanban-card:hover {
    transform: translateY(-4px) !important;
    border-color: var(--brand-primary, #8420d4) !important;
    outline: 2px solid color-mix(in srgb, var(--brand-primary, #8420d4) 40%, transparent) !important;
    outline-offset: -1px;
    box-shadow: 0 0 0 1px var(--brand-primary, #8420d4) !important;
    background-color: #fff !important;
    z-index: 5;
}

.sales-kanban-board .card.sales-kanban-card.border-danger-subtle:hover,
.sales-mine-nya-grid .card.sales-kanban-card.border-danger-subtle:hover {
    border-color: var(--bs-danger, #dc3545) !important;
    outline-color: rgba(var(--bs-danger-rgb, 220, 53, 69), 0.35) !important;
}

.sales-kanban-card .sales-kanban-card-title {
    margin-top: 1rem !important;
    padding-top: 0.35rem !important;
    line-height: 1.35;
}

.sales-kanban-card .sales-kanban-card-divider {
    border: 0;
    border-top: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.1));
    opacity: 1;
    margin: 0.15rem 0 0.35rem;
}

.sales-kanban-card .sales-kanban-card-footer {
    padding-top: 0;
    margin-top: 0;
}

.sales-kanban-card .sales-kanban-card-people > div + div {
    margin-top: 0.2rem;
}
