body {
  overflow-x: hidden !important;
}

/* ── Custom Scrollbar (global) ── */
* {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

*::-webkit-scrollbar { width: 4px; height: 4px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
*::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

.locked-content-wrapper {
  position: relative;
  padding: 60px 25px;
}

.locked-content-wrapper .locked-content-overlay {
  width: 100%; 
  height: 100%; 
  top: 0; 
  left: 0;
  padding: 0 20%;
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(5px);
  position: absolute;
  display: flex; 
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 0.55rem;
  border: 1px solid grey;
}

.locked-content-overlay .locked-icon i {
  font-size: 28px;
  margin-bottom: 20px;
}

.locked-content-overlay h3 {
  font-size: 18px !important;
}

/* Logged-out Header Navigation */
.navigation_main {
  position: static;
  box-shadow: none;
  background: transparent;
  backdrop-filter: none;
  border-radius: 0;
  gap: 0.5rem;
}

.navigation_main .text-muted.fs-sm {
  padding: 0 !important;
  display: flex;
  align-items: center;
  font-size: 0.78rem;
  color: #94a3b8;
}

.navigation_main .text-muted.fs-sm a.signin-modal-trigger {
  color: #4a4ef0;
  font-weight: 600;
  text-decoration: none;
  margin-left: 0.25rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid #4a4ef0;
  border-radius: 0.5rem;
  background: rgba(74, 78, 240, 0.04);
  transition: background 0.15s ease, color 0.15s ease;
  cursor: pointer;
}

.navigation_main .text-muted.fs-sm a.signin-modal-trigger:hover {
  background: #4a4ef0;
  color: #fff;
}

.navigation_main .language-flag {
  width: 1.2rem;
  height: auto;
  border-radius: 2px;
  opacity: 0.8;
  transition: opacity 0.15s ease;
}

.navigation_main .language-flag:hover {
  opacity: 1;
}

/* ── Signin Modal (Split Layout) ── */
.modal-content.signin-modal-split {
  display: flex !important;
  flex-direction: row !important;
  border-radius: 0.75rem;
  overflow: hidden;
  min-height: 540px;
  border: none;
  background: transparent;
}

.signin-modal-brand {
  width: 40%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(59, 63, 212, 0.92) 0%, rgba(85, 88, 245, 0.85) 50%, rgba(110, 113, 247, 0.8) 100%),
    url('../media/background/signin-modal.jpg') center / cover no-repeat;
  padding: 3rem 2.5rem;
  color: #fff;
}

.signin-modal-brand-title {
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.signin-modal-brand-subtitle {
  font-size: 1rem;
  font-weight: 300;
  opacity: 0.85;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.signin-modal-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.signin-modal-features li {
  font-size: 0.9rem;
  padding: 0.4rem 0;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.signin-modal-features li i {
  font-size: 0.7rem;
}

.signin-modal-form {
  width: 60%;
  background: #fff;
  padding: 2rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.signin-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1rem;
  cursor: pointer;
  z-index: 1;
  transition: color 0.15s ease;
}

.signin-modal-close:hover {
  color: #1e293b;
}

.signin-modal-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.25rem;
}

.signin-modal-subheading {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 1.5rem;
}

.signin-modal-methods {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.signin-modal-method {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #64748b;
  background: #f8f9fc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.signin-modal-method:hover {
  background: #f0f0ff;
  border-color: #cbd5e1;
  color: #1e293b;
}

.signin-modal-method.active {
  background: rgba(74, 78, 240, 0.1);
  border-color: rgba(74, 78, 240, 0.25);
  color: #4a4ef0;
  font-weight: 600;
}

.signin-modal-hint {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.signin-modal-input-row {
  display: flex;
  gap: 0.5rem;
}

.signin-modal-input-row .form-control {
  flex: 1;
}

.signin-modal-input-row .btn {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
}

.signin-modal-form .btn {
  border-radius: 0.5rem;
}

.signin-modal-forgot {
  font-size: 0.78rem;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s ease;
}

.signin-modal-forgot:hover {
  color: #4a4ef0;
}

.signin-modal-confirm {
  text-align: center;
  padding: 1rem 0;
}

.signin-modal-confirm-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(74, 78, 240, 0.08);
  color: #4a4ef0;
  font-size: 1.2rem;
}

.signin-modal-confirm-text {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 0;
}

.signin-modal-confirm-text strong {
  color: #1e293b;
}

.signin-modal-confirm .signin-modal-input-row {
  justify-content: center;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

/* Split layout inner wrapper (for modals) */
.signin-modal-inner {
  display: flex;
  min-height: 520px;
}

.signin-modal-inner .signin-modal-brand {
  width: 40%;
  border-radius: 0;
}

.signin-modal-inner .signin-modal-form {
  width: 60%;
  padding: 2rem 2.5rem;
  position: relative;
}

@media (max-width: 768px) {
  .signin-modal-brand { display: none; }
  .signin-modal-form { width: 100% !important; }
}

.tan-input {
  border: 0 !important;
  border-bottom: 2px solid #717ced !important;
  border-radius: 0 !important;
  caret-color: transparent !important;
  background: transparent !important;
  user-select: none !important;
  padding: 5px 10px;
}

.tan-input.form-control:focus {
  box-shadow: 0 0 0 !important; 
}

#dataset-note-list {
  width: 100%; 
  max-height: 240px;
  overflow: auto;
  margin-top: 30px; 
  background: #f6fbfd;
  padding: 35px;
  border-radius: 0.55em;
}

@media only screen and (max-width: 991px) { 
  
  .fixed-menu {
    width: 100% !important;
    left: 0 !important;
  }

}

.demo-alert {
  width: 100%;
  bottom: 0;
  left: 0 !important;
  z-index: 900;
  position: fixed;
  background: rgba(251, 222, 206, .9) !important;
  color: rgba(234, 88, 11, 1);
  display: flex;
  align-items: center;
  padding: 20px;
  padding-left: 90px;
}

.fixed-menu {
  max-width: 100% !important;
  position: fixed;
  top: 0;
  left: 250px;
  width: calc(100% - 250px);
  z-index: 99;
  padding: 0 !important;
}

.sidebar-mini .fixed-menu {
  left: 50px !important;
  width: calc(100% - 10px) !important;
}

.fixed-menu .block {
  background-color: rgba(255,255,255,0.75) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.dark-mode .fixed-menu .block {
  background-color: rgba(42, 48, 59, 0.75) !important;
}

.fixed-menu .block-rounded {
  border-radius: 0 !important;
}

.sticky-menu a {
  border-radius: 0.375em !important;
}

#page-container.sidebar-dark #sidebar {
  background-color: #161F2F !important;
}

.dark-mode, 
.dark-mode #page-loader, 
.dark-mode #side-overlay {
  background-color: #121A27 !important;
}

.dark-mode .sticky-menu a:hover,
.dark-mode .fixed-menu a:hover {
  background-color: rgb(36, 41, 50, 0.95) !important;
}

.dark-mode .sticky-menu a.active, 
.dark-mode .fixed-menu a.active {
  background-color: rgb(36, 41, 50, 0.95) !important;
}

.dark-mode .sticky-menu a:focus,
.dark-mode .fixed-menu a:focus {
  background-color: transparent !important;
}


.fs-mini {
  font-size: 11px;
}

.block-title {
  text-transform: none 
  +üüß!important;
}

ul.ked-footer {
  margin: 0 auto;
  padding: 0;
  list-style-type: none;
}

ul.ked-footer li {
  margin: 0 10px 0 0;
  display: inline-block;
  font-size: 12px;               
}

.lp-data-required {
  box-shadow: 0 0 3px #A61D1D;
}

.btn-special {
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  top: -15px;
  padding-top: 38px !important;
  padding-bottom: 10px !important;
  position: relative;
  -webkit-transition: all .2s ease-in-out !important;
  -moz-transition: all .2s ease-in-out !important;
  -o-transition: all .2s ease-in-out !important;
  transition: all .2s ease-in-out !important;
  background: #D2DDF7 !important;
  border: 0 !important;
  box-shadow: 0 !important;
  color: #334155 !important;
}

.btn-special:hover,
.btn-special:active,
.btn-special:focus {
   top: -10px !important;
   transform: scale(1) !important;
   color: #334155 !important;
}

.dark-mode .dark-mode-hide {
  display: none !important;
}

.dark-mode-hide {
  display: block !important;
}

.dark-mode .dark-mode-show {
  display: block !important;
}

.dark-mode-show {
  display: none !important;
}

.fa-moon {
  color: #283593 !important;
}

.fa-sun {
  color: #fdd835 !important;
}

/* ── Sidebar (Style Guideline) ── */
#sidebar {
  background: #fff !important;
  border-right: 1px solid #e2e8f0 !important;
  box-shadow: none !important;
}

#sidebar .content-header-kedja {
  background: #fff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  height: 120px !important;
}

@media only screen and (max-width: 991px) {
  #sidebar .content-header-kedja {
    height: 120px !important;
  }
}

#sidebar .js-sidebar-scroll {
  height: calc( 100% - 120px ) !important;
}

#sidebar .content-side {
  padding: 0.75rem 0.65rem !important;
}

#sidebar .nav-main-item {
  margin: 0.1rem 1.6rem !important;
}
#sidebar .nav-main-submenu .nav-main-item {
  margin: 0.1rem 0.5rem !important;
}

#sidebar .nav-main-link {
  color: #475569 !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  border-radius: 0.45rem !important;
  padding: 0.5rem 0.7rem !important;
  transition: background 0.15s ease, color 0.15s ease !important;
}

#sidebar .nav-main-link:hover {
  background: rgba(74, 78, 240, 0.06) !important;
  color: #4a4ef0 !important;
}

#sidebar .nav-main-link.active {
  background: transparent !important;
  color: #475569 !important;
}

#sidebar .nav-main-link-icon {
  color: #94a3b8 !important;
  font-size: 0.82rem !important;
  width: 1.5rem !important;
  margin-right: 0.5rem !important;
  text-align: center !important;
  transition: color 0.15s ease !important;
}

.sidebar-mini.sidebar-o #sidebar:not(:hover) .nav-main-link {
  justify-content: center !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.sidebar-mini.sidebar-o #sidebar:not(:hover) .nav-main-link-icon {
  margin-right: 0 !important;
}

#sidebar .nav-main-link:hover .nav-main-link-icon,
#sidebar .nav-main-link.active .nav-main-link-icon {
  color: #4a4ef0 !important;
}

#sidebar .nav-main-link-name {
  font-size: 0.8rem !important;
  letter-spacing: -0.01em !important;
}

.nav-main-submenu {
  padding: 0.375rem 0 !important;
  margin-top: 0.375rem;
  border-radius: 0.5rem;
}
.nav-main-submenu .nav-main-link {
  font-size: 0.8rem !important;
  padding: 0.5rem 1rem 0.5rem 1.25rem !important;
}
.nav-main-submenu .nav-main-link-icon {
  font-size: 0.45rem;
  min-width: 0.75rem;
  margin-right: 0.5rem;
  opacity: 0.5;
}
.nav-main-submenu .nav-main-link-icon-img {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
  object-fit: contain;
}

.nav-main-divider {
  max-width: 80% !important;
  padding: 0 !important;
  margin: 10px auto 10px auto !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.dark-mode .nav-main-divider {
  border-bottom: 1px solid #314158 !important;
}

/* ── Header (Style Guideline) ── */
#page-header {
  background: #fff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: none !important;
}

#page-header.header-transparent {
  background: transparent !important;
  border-bottom: none !important;
}

#page-header .content-header {
  height: 3.25rem !important;
  background-color: transparent !important;
}

#page-header .btn-alt-secondary {
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 0.5rem !important;
  color: #475569 !important;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  padding: 0.35rem 0.75rem !important;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease !important;
}

#page-header .btn-alt-secondary:hover,
#page-header .btn-alt-secondary:focus {
  border-color: #4a4ef0 !important;
  color: #4a4ef0 !important;
  background: rgba(74, 78, 240, 0.04) !important;
  box-shadow: none !important;
}

#page-header div#page-header-user-dropdown {
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 0.5rem !important;
  padding: 0.35rem 0.75rem !important;
  cursor: pointer !important;
  justify-content: center !important;
  line-height: 1.5 !important;
  font-size: 0.78rem !important;
  box-sizing: border-box !important;
  transition: border-color 0.15s ease, background 0.15s ease !important;
}

#page-header div#page-header-user-dropdown:hover {
  border-color: #4a4ef0 !important;
  background: rgba(74, 78, 240, 0.04) !important;
}

#page-header div#page-header-user-dropdown > span {
  margin-left: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#page-header div#page-header-user-dropdown .fa-user {
  font-size: 0.78rem !important;
  color: #475569 !important;
  transition: color 0.15s ease !important;
}

#page-header div#page-header-user-dropdown:hover .fa-user {
  color: #4a4ef0 !important;
}

#page-header .dropdown-menu {
  border: 1px solid #e2e8f0 !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  overflow: hidden !important;
  padding: 0 !important;
  min-width: 13rem !important;
  margin-top: 0.35rem !important;
}

#page-header .dropdown-menu .bg-body-light {
  background: #f8f9fc !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding: 0.85rem 1rem !important;
}

#page-header .dropdown-menu .bg-body-light .fw-medium {
  font-size: 0.8rem;
  color: #1e293b;
  font-weight: 600 !important;
  letter-spacing: -0.01em;
}

#page-header .dropdown-menu > .p-0,
#page-header .dropdown-menu > .p-2 {
  padding: 0.25rem 0.4rem !important;
}

#page-header .dropdown-item {
  font-size: 0.78rem;
  color: #475569;
  border-radius: 0.4rem;
  padding: 0.45rem 0.7rem;
  margin: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

#page-header .dropdown-item:hover,
#page-header .dropdown-item:focus {
  background: rgba(74, 78, 240, 0.06);
  color: #4a4ef0;
}

#page-header .dropdown-item:active {
  background: rgba(74, 78, 240, 0.1);
  color: #4a4ef0;
}

#page-header .dropdown-item .fs-sm {
  font-size: 0.78rem;
}

#page-header .dropdown-item .fw-medium {
  font-weight: 500 !important;
  color: inherit;
}

#page-header .dropdown-divider {
  border-color: #e2e8f0;
  margin: 0.25rem 0;
  opacity: 1;
}

.language-flag {
  width: 1.2rem;
  height: auto;
  border-radius: 2px;
  vertical-align: middle;
}

/* ── Main Content Background ── */
#main-container {
  min-height: 100vh;
}

/* Universeller unterer Seitenabstand (OneUI .content hat nur 1px unten).
   An den LETZTEN Content-Block einer Seite haengen, damit die Inhalte nicht
   ans Seitenende andocken. Referenz: .pk-detail-body (3rem unten). */
.pb-page {
  padding-bottom: 3rem !important;
}

.content-header {
  background-color: transparent !important;
}

.dark-mode .content-header {
  background-color: transparent !important;
}

.text-clicks {
  color: #90A4AE;
}

/* ── SweetAlert2 (Style Guideline) ── */
.swal2-popup {
  border-radius: 0.75rem !important;
  padding: 2rem 1.5rem 1.5rem !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
  font-family: inherit !important;
  color: #1e293b !important;
  border: none !important;
}

.swal2-popup.swal2-show {
  animation: swal2-show 0.2s ease-out !important;
}

.swal2-title {
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  padding: 0 0 0.5rem !important;
}

.swal2-html-container {
  font-size: 0.875rem !important;
  color: #64748b !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  padding: 0 1rem !important;
}

.swal2-icon {
  margin: 0 auto 0.75rem !important;
  border-width: 2px !important;
}

.swal2-icon.swal2-success {
  border-color: #10b981 !important;
  color: #10b981 !important;
}

.swal2-icon.swal2-success [class^=swal2-success-line] {
  background-color: #10b981 !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
  border-color: rgba(16, 185, 129, 0.2) !important;
}

.swal2-icon.swal2-warning {
  border-color: #d97706 !important;
  color: #d97706 !important;
}

.swal2-icon.swal2-error {
  border-color: #ef4444 !important;
}

.swal2-icon.swal2-error [class^=swal2-x-mark-line] {
  background-color: #ef4444 !important;
}

.swal2-icon.swal2-info {
  border-color: #4a4ef0 !important;
  color: #4a4ef0 !important;
}

.swal2-icon.swal2-question {
  border-color: #94a3b8 !important;
  color: #94a3b8 !important;
}

.swal2-actions {
  margin-top: 1.25rem !important;
  gap: 0.5rem !important;
}

.swal2-styled.swal2-confirm {
  background: #4a4ef0 !important;
  border: none !important;
  border-radius: 0.5rem !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  padding: 0.6rem 1.25rem !important;
  box-shadow: none !important;
  transition: background-color 0.2s ease !important;
}

.swal2-styled.swal2-confirm:hover {
  background: #3b3fd4 !important;
}

.swal2-styled.swal2-confirm:focus {
  box-shadow: 0 0 0 3px rgba(74, 78, 240, 0.2) !important;
}

.swal2-styled.swal2-cancel {
  background: transparent !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 0.5rem !important;
  color: #64748b !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  padding: 0.6rem 1.25rem !important;
  box-shadow: none !important;
  transition: background-color 0.2s ease, color 0.2s ease !important;
}

.swal2-styled.swal2-cancel:hover {
  background: #f8f9fc !important;
  color: #1e293b !important;
}

.swal2-styled.swal2-deny {
  background: transparent !important;
  border: 1px solid #fecaca !important;
  border-radius: 0.5rem !important;
  color: #ef4444 !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  padding: 0.6rem 1.25rem !important;
  box-shadow: none !important;
}

.swal2-styled.swal2-deny:hover {
  background: #fef2f2 !important;
}

.swal2-close {
  color: #94a3b8 !important;
  font-size: 1.5rem !important;
  transition: color 0.2s ease !important;
}

.swal2-close:hover {
  color: #1e293b !important;
}

.swal2-input,
.swal2-textarea,
.swal2-select {
  border: 1px solid #e2e8f0 !important;
  border-radius: 0.5rem !important;
  font-size: 0.85rem !important;
  color: #1e293b !important;
  box-shadow: none !important;
}

.swal2-input:focus,
.swal2-textarea:focus,
.swal2-select:focus {
  border-color: #4a4ef0 !important;
  box-shadow: 0 0 0 3px rgba(74, 78, 240, 0.1) !important;
}

.mh-full {
  height: 100% !important;
  min-height: 100% !important;
  max-height: auto !important;
}

a.kedja-language-pick {
  width: 100% !important;
  display: inline-block !important;
  padding: 15px !important;
  border: 1px solid rgba(255,255,255,.0);
  border-bottom: 5px solid rgba(255,255,255,.2);
  border-radius: 5px;
  background: rgba(255,255,255,.5);
  color: #3C4554;
  vertical-align: middle;
}

.dark-mode a.kedja-language-pick {
  background: rgba(60, 69, 84, .5);
  color: #F1F1F1 !important;
}

/* =============================================
   Toast Notifications (Global)
   ============================================= */
.alert.alert-dismissible[data-notify="container"] {
  max-width: 360px !important;
  border: none !important;
  border-radius: 0.75rem !important;
  padding: 1rem 1.25rem !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.5;
}
.alert.alert-dismissible[data-notify="container"] p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.alert.alert-dismissible[data-notify="container"] [data-notify="icon"] {
  font-size: 1rem;
}
.alert.alert-dismissible[data-notify="container"] .progress {
  height: 3px;
  border-radius: 2px;
  margin-top: 0.75rem;
  opacity: 0.5;
}

/* Success */
.alert.alert-success[data-notify="container"] {
  background: rgba(240,253,244,0.95) !important;
  color: #166534 !important;
  border-left: 3px solid #22c55e !important;
}

/* Warning */
.alert.alert-warning[data-notify="container"] {
  background: rgba(255,251,235,0.95) !important;
  color: #92400e !important;
  border-left: 3px solid #f59e0b !important;
}

/* Danger */
.alert.alert-danger[data-notify="container"] {
  background: rgba(254,242,242,0.95) !important;
  color: #991b1b !important;
  border-left: 3px solid #ef4444 !important;
}

/* Info */
.alert.alert-info[data-notify="container"] {
  background: rgba(239,246,255,0.95) !important;
  color: #1e40af !important;
  border-left: 3px solid #3b82f6 !important;
}




#auditlist {
  display: grid;

}

.auditlist-audit {
  width: 100%;
  display: flex;
  border-bottom: 1px solid #f2f2f2;
}

.auditlist-audit:hover {
  border-bottom: 1px solid #f2f2f2;
  border-radius: 7px;
  background: #f2f2f2 !important;
}

.dark-mode .auditlist-audit:hover {
  background: yellow !important;
}

.auditlist-item {
  padding: 0.8rem 0.5rem 0.8rem 0.5rem;
  float: left;
  font-size: 14px;
  vertical-align: middle !important;
}

.audit-id {
  max-width: 10% !important;
  min-width: 10% !important;
}

.audit-auditee {
  max-width: 30% !important;
  min-width: 30% !important;
}

.audit-type {
  max-width: 15% !important;
  min-width: 15% !important;
}

.audit-status {
  max-width: 10% !important;
  min-width: 10% !important;
}

.audit-date {
  max-width: 10% !important;
  min-width: 10% !important;
}

.audit-price {
  max-width: 10% !important;
  min-width: 10% !important;
}

.audit-detail {
  max-width: 15% !important;
  min-width: 15% !important;
}


#heacon-notification-content {
  height 10vh;
  max-height: 280px;
  overflow-y: scroll;
}

.heacon-notification-content-spinner {
  padding-left:calc(50% - 16px);
  padding-top:35px;
  padding-bottom:35px;
}

table.table-form tr td {
  width: 50% !important;
  padding: 20px 10px !important;
  font-size: 13px !important;
}

table.table-form tr td:first-child {
  font-weight: 800 !important;
}

table.table-form tr:last-child {
  background: #f0f2f5 !important;
}

.offcanvas-bottom.offcanvas-custom {
  min-width: 30% !important;
  max-width: 75% !important;
  min-height: 95vh !important;
  max-height: calc(100vh - 100px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.offcanvas-end.offcanvas-audit {
  min-width: 90%;
  max-width: 95%;
}

.offcanvas-end.offcanvas-contract {
  width: 700px !important;
  max-width: 95%;
}

.offcanvas-end.offcanvas-community-post {
  min-width: 40%;
  max-width: 45%;
}

.offcanvas-end.offcanvas-dataset {
  min-width: 90% !important;
  max-width: 95% !important;
}

.offcanvas-level-1 {
  z-index: 2000 !important;
}

.offcanvas-backdrop {
  z-index: 1999 !important;
}

.modal-level-1 {
  z-index: 2500 !important;
}

.modal-level-2 {
  z-index: 8000 !important;
}

.modal-backdrop {
  z-index: 2499 !important;
  -webkit-backdrop-filter: blur(10px) !important;
}


.modal-audit {
  width: 80% !important;
  max-width: 1920px !important;
}



ul.heacon-auditor-list {
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

ul.heacon-auditor-list li {
  border: 1px solid #f1f1f1 !important;
  border-radius: 10px !important;
  padding: 8px 10px !important;
  background: transparent !important;
}

ul.heacon-auditor-list li:hover {
  background: #f1f1f1 !important;
}


.pointer {
  cursor: pointer !important;
}


.lp-table {
  width: 100%;
  border-collapse: collapse;
}

/*
.lp-table-item {
  flex: 1;
  padding: 12px;
  display: flex !important;
  align-items: center !important;
}
*/

.lp-table-item {
  padding: 12px;
}

.lp-table-head {
  font-size: 13px;
  font-weight: bold;
}

.lp-table-object {
  display: flex;
  width: 100%;
  border-bottom: 1px solid #ebeef2;
  font-size: 13px;
  align-items:center;
}

.lp-table-content .lp-table-object:hover {
  border-radius: 8px;
  background: #eceff2 !important;
}

/* Verstecke Spalte auf mobilen Geräten */
.table-item-mobile {
  display: block;
}

/* Zeige Spalte auf mobilen Geräten */
@media (max-width: 768px) {
  .table-item-mobile {
    display: none;
  }
}

.form-select-sm {
  font-size: 14px !important;
}

.content-line {
  padding: 2.85rem 0rem !important;
}

.datepicker-dropdown {
  z-index: 9000 !important;
}
input.datepicker {
  z-index: auto !important;
}

.swal2-container {
  z-index: 9500 !important;
}

.lp-button-disabled {
  opacity: .5 !important;
  pointer-events: none !important;
  transition: .5s ease-in-out;
}

/* ==========================================================================
   Universeller Lade-Zustand fuer Buttons (Opt-in via Attribut lp-loading)
   - Waehrend des AJAX-Calls wird der Button-Inhalt durch einen Spinner ersetzt.
   - JS (processSubmit) merkt sich Breite/Inhalt und stellt sie danach wieder her.
   Verwendung:  <button class="... lp-button" lp-loading lp-data-rc="...">
   ========================================================================== */
.lp-loading-active {
  pointer-events: none !important;
  cursor: progress !important;
}
.lp-loading-spinner {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  vertical-align: -0.15em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: lp-spin 0.6s linear infinite;
}
@keyframes lp-spin {
  to { transform: rotate(360deg); }
}



.dropzone.lp-cloudzone {
  min-height: 0 !important;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;

  border: 1px solid #b2b2b2;
}

.dropzone.lp-cloudzone:hover {
  border: 1px solid #2356d7;
}

.dropzone.lp-cloudzone p {
  width: 100%;
  display: block;
  margin: 0;
  pointer-events: none;
  text-align: center;
  font-weight: 300;
  font-size: 12px;
}

.dropzone.lp-cloudzone .dz-preview {
  display: block !important;
}

.dataset-cloudzone-upload {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #dfe3ea;
}

.dataset-cloudzone-upload:hover {
  background: #f1f1f1;
}

.dataset-cloudzone-upload:nth-last-child {
  border-bottom: 1px solid transparent !important;
}

.dataset-cloudzone-upload .upload-format {
  padding: 5px 10px;
  border-radius: 5px;
  display: inline-block;
  font-size: 12px !important;
  font-weight: 800;
  color: #fff;
  opacity: 0.5;
  transition: 0.2 ease-in;
}

.dataset-cloudzone-upload:hover .upload-format {
  opacity: 1.0;
}

.upload-format.format-png {
  background: #2356d7;
}

.alert[data-notify="container"] {
  z-index: 9900 !important;
}

span.text-info {
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
}

.datepicker {
  padding: 0.375rem 0.75rem !important;
}

.bg-transparent {
  background: transparent !important;
}

/*
   =========================================================================
   Creditor Detail (.crd-*)
   =========================================================================
*/

/* Metric Cards */
.crd-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.crd-metric-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.25rem;
  text-align: center;
  transition: box-shadow 0.2s;
}

.crd-metric-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.crd-metric-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: #94a3b8;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.crd-metric-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.2;
}

.crd-metric-hint {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 0.25rem;
}

/* Grade Colors */
.crd-grade-5 { color: #059669; }
.crd-grade-4 { color: #16a34a; }
.crd-grade-3 { color: #d97706; }
.crd-grade-2 { color: #ea580c; }
.crd-grade-1 { color: #dc2626; }
.crd-grade-none { color: #94a3b8; }

/* Chart Card */
.crd-chart-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.crd-chart-canvas {
  max-height: 220px;
}

/* Price Alert */
.crd-alert {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 0.75rem;
  font-size: 0.82rem;
  color: #1e40af;
  margin-bottom: 1.5rem;
}

.crd-alert i {
  font-size: 1rem;
  flex-shrink: 0;
}

/* Info Row (Rahmendaten) */
.crd-info-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.crd-info-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.25rem;
  text-align: center;
}

.crd-info-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: #94a3b8;
  margin-bottom: 0.35rem;
}

.crd-info-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
}

/* Product & Supplier List */
.crd-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.crd-list-item:last-child {
  border-bottom: none;
}

.crd-list-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
}

.crd-list-name a {
  color: #4a4ef0;
  text-decoration: none;
}

.crd-list-name a:hover {
  text-decoration: underline;
}

.crd-list-empty {
  padding: 2rem 0;
  text-align: center;
  color: #94a3b8;
  font-size: 0.85rem;
}

/* Sidebar: Evaluate Button */
.crd-evaluate-btn {
  display: block;
  width: 100%;
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: #4a4ef0;
  border: none;
  border-radius: 0.625rem;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, box-shadow 0.2s;
}

.crd-evaluate-btn:hover {
  background: #3b3fcc;
  box-shadow: 0 2px 10px rgba(74,78,240,0.25);
}

.crd-evaluate-btn i {
  margin-right: 0.4rem;
}

/* Sidebar: History */
.crd-history-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-top: 1rem;
}

.crd-history-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
}

.crd-history-group {
  margin-bottom: 1rem;
}

.crd-history-group:last-child {
  margin-bottom: 0;
}

.crd-history-group-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}

.crd-history-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.3rem 0;
  font-size: 0.78rem;
  color: #475569;
}

.crd-history-date {
  color: #94a3b8;
}

.crd-history-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-left: 0.5rem;
}

.crd-dot-green { background: #059669; }
.crd-dot-orange { background: #d97706; }
.crd-dot-red { background: #dc2626; }
.crd-dot-gray { background: #cbd5e1; }

/* Sidebar: Info Popover Link */
.crd-popover-link {
  font-size: 0.75rem;
  color: #94a3b8;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
}

.crd-popover-link:hover {
  color: #64748b;
}

/* Tooltip Icon */
.crd-tooltip-icon {
  font-size: 0.7rem;
  color: #cbd5e1;
  margin-left: 0.3rem;
  cursor: help;
  transition: color 0.15s;
  vertical-align: middle;
}

.crd-tooltip-icon:hover {
  color: #4a4ef0;
}

/* History Hint */
.crd-history-hint {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
  font-size: 0.75rem;
  color: #94a3b8;
}

/* Insider Timeline */
.crd-timeline {
  position: relative;
  padding-left: 1.5rem;
}

.crd-timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e2e8f0;
}

.crd-timeline-item {
  position: relative;
  padding-bottom: 1.25rem;
}

.crd-timeline-item:last-child {
  padding-bottom: 0;
}

.crd-timeline-item::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4a4ef0;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #e2e8f0;
  z-index: 1;
}

.crd-timeline-date {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.crd-timeline-content {
  font-size: 0.82rem;
  color: #1e293b;
  line-height: 1.5;
}

.crd-timeline-empty {
  padding: 1.5rem 0;
  text-align: center;
  color: #94a3b8;
  font-size: 0.82rem;
}

/* Creditor List (.crd-list-*) */
.crd-list-hero {
  max-width: 800px;
}

.crd-list-hero-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
}

.crd-list-hero-subtitle {
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}

.crd-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.crd-list-search {
  max-width: 320px;
  position: relative;
}

.crd-list-search input {
  padding-left: 2.25rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  font-size: 0.82rem;
  height: 36px;
  background: #fff;
}

.crd-list-search input:focus {
  border-color: #4a4ef0;
  box-shadow: 0 0 0 3px rgba(74,78,240,0.08);
}

.crd-list-search i {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.78rem;
  pointer-events: none;
}

.crd-list-count {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 500;
}

.crd-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1rem;
}

.crd-list-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.25rem;
  transition: box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.crd-list-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border-color: #cbd5e1;
}

.crd-list-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.crd-list-card-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.3;
}

.crd-list-card-name a {
  color: #1e293b;
  text-decoration: none;
}

.crd-list-card-name a:hover {
  color: #4a4ef0;
}

.crd-list-card-address {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 0.15rem;
}

.crd-list-card-grades {
  display: flex;
  gap: 0.5rem;
}

.crd-list-card-grade {
  flex: 1;
  text-align: center;
  padding: 0.5rem 0.25rem;
  background: #f8fafc;
  border-radius: 0.5rem;
}

.crd-list-card-grade-label {
  font-size: 0.65rem;
  font-weight: 500;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.2rem;
}

.crd-list-card-grade-value {
  font-size: 1.1rem;
  font-weight: 700;
}

.crd-list-card-footer {
  display: flex;
  justify-content: flex-end;
}

.crd-list-card-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: #94a3b8;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
  .crd-metrics { grid-template-columns: 1fr; }
  .crd-info-row { grid-template-columns: 1fr; }
  .crd-list-grid { grid-template-columns: 1fr; }
  .crd-list-toolbar { flex-direction: column; gap: 0.75rem; align-items: stretch; }
  .crd-list-search { max-width: 100%; }
}


.marketplace-topic-image,
.marketplace-topic-image img {
  width: 30px !important;
}

.bg-blue {
  background-color: #2b5a94 !important;
}

.bg-grey {
  background-color: #4b5563 !important;
}


.bg-wave {
  background-image: url( '../media/background/code-background.jpg' );
  background-size: cover !important;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-position: bottom right;
  background-color: transparent;
}

.bg-earth {
  background-image: url( '../media/background/earth.jpg' );
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-color: transparent;
}

.bg-berlin {
  background-image: url( '../media/background/berlin.jpg' );
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-color: transparent;
}

.bg-earth-blue {
  background-image: url( '../media/background/earth-blue.jpg' );
  background-size: 100% auto;
  background-repeat: no-repeat;
}

.bg-audit {
  background:
    linear-gradient(135deg, rgba(59, 63, 212, 0.92) 0%, rgba(85, 88, 245, 0.85) 50%, rgba(110, 113, 247, 0.8) 100%),
    url('../media/background/audit-space.jpg') center / cover no-repeat;
  background-attachment: fixed;
}

/* ── Audit Hero (Public/MyAudits) ── */
.aud-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.aud-hero-content {
  position: relative;
  z-index: 1;
  flex: 1;
  max-width: 65%;
}
.aud-hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  padding: 0.3rem 0.85rem;
  border-radius: 2rem;
  font-size: 0.72rem;
  color: #fff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.aud-hero-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.75rem 0;
  line-height: 1.25;
}
.aud-hero-subtitle {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.65;
  margin: 0 0 1.5rem 0;
  max-width: 520px;
}
.aud-hero-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1.25rem;
}
.aud-hero-checklist li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}
.aud-hero-checklist li i {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  flex-shrink: 0;
}
.aud-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.35rem;
  background: #fff;
  color: #4a4ef0;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}
.aud-hero-cta:hover {
  background: rgba(255, 255, 255, 0.92);
  color: #3538c8;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}
.aud-hero-cta i {
  font-size: 0.7rem;
  transition: transform 0.2s;
}
.aud-hero-cta:hover i {
  transform: translateX(3px);
}
.aud-hero-visual {
  position: absolute;
  right: -1rem;
  bottom: -1.5rem;
  opacity: 0.06;
  color: #fff;
  font-size: 14rem;
  line-height: 1;
  pointer-events: none;
}
@media (max-width: 768px) {
  .aud-hero { padding: 1.75rem; }
  .aud-hero-content { max-width: 100%; }
  .aud-hero-visual { display: none; }
  .aud-hero-checklist { grid-template-columns: 1fr; }
  .aud-hero-title { font-size: 1.35rem; }
}

/* Hero Admin: two-column layout with Ad card */
.aud-hero-admin {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.aud-hero-admin-text { flex: 1; }

.aud-hero-ad {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  text-decoration: none;
  transition: all 0.2s;
  max-width: 380px;
  flex-shrink: 0;
}
.aud-hero-ad:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.aud-hero-ad-icon {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  flex-shrink: 0;
}
.aud-hero-ad-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.aud-hero-ad-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}
.aud-hero-ad-desc {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.aud-hero-ad-arrow {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.aud-hero-ad:hover .aud-hero-ad-arrow {
  color: #fff;
  transform: translateX(3px);
}
@media (max-width: 768px) {
  .aud-hero-admin { flex-direction: column; align-items: flex-start; }
  .aud-hero-ad { max-width: 100%; width: 100%; }
}

.bg-storage {
  background-image: url( '../media/background/storage-hall.jpg' );
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: top center;
}

.bg-meeting {
  background-image: url( '../media/background/meeting.jpg' );
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: top center;
}

.bg-analytics {
  background-image: url( '../media/background/analytics.jpg' );
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: top center;
}

.bg-pen {
  background-image: url( '../media/background/pen.jpg' );
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: top center;
}

.bg-pen-full {
  background-image: url( '../media/background/pen-full.jpg' );
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: top center;
}


ul.article-list {
  list-style-type: none;
}

ul.article-list li {
  width: 100%;
  display: inline-block;
  position: relative;
  margin-bottom: 20px;
  font-weight: 300;
  font-size: 16px;
  color: #000;
  transition: .2s ease-in;
}

ul.article-list li:before {
  content: "";
  width: 20px;
  height: 100%;
  display: inline-block;
  position: absolute;
  margin-left: -30px;
  background-color: transparent;
  background-image: url( '../icon-angle-right.png' );
  background-size: 30% auto;
  background-repeat: no-repeat;
  background-position: center center;
}

ul.article-list li:hover {
  margin-left: 10px;
}

.codex-block {
  width: 100%;
  display: flex;
  justify-content: space-between;
  z-index: 1 !important;
}

.codex-block:hover {
  background: #f1f1f1;
}

.codex-block-content {
  padding: 20px;
  z-index: 1 !important;
} 

.codex-block-navigation {
  width: 5%;
  border-right: 1px solid #f1f1f1;
}

.codex-block-navigation div {
  position: sticky  !important;
  top: 10px;
  z-index: 1;

  border-radius: 15px;
  
  margin-top: 20px;
  margin-bottom: 20px;
  margin-left: 37px;
}

div.js-ckeditor-inline-enabled {
  margin: 0 !important;
}

.input-group-block .btn {
  border-radius: 0;
  opacity: 1;
}

.input-group-block .js-ckeditor-inline-enabled.form-control {
  border-radius: 0 !important;
}


.codex-block-content {
  width: 95%;
}

.fav-block-active i {
  color: orange !important;
}

.fav-block-active .btn {
  border-radius: 0 !important;
}


.hero-searchform {
  background: transparent;
}

.hero-searchform input[type=text] {
  border-radius: 0px;
  border: 0;
  border-bottom: 1px solid rgba(2555,255,255,.15);
  background: transparent;
  color: rgba(255,255,255, .90) !important;
}

.hero-searchform input[type=text]::placeholder {
  color: rgba(255,255,255, .80) !important;
}

.hero-searchform input[type=text]:focus {
  box-shadow: 0 0 0 0 rgba(35,86,2,0);
}

.codex-navigation {
  max-height: 100vh;
  overflow-x: auto;
  top: 0;
  z-index: 1;
  position: sticky !important;
  position: -webkit-sticky;
  border-right: 1px solid #f1f1f1;
}

mark.mark-delete {
  background-color: #fde1e1 !important;
  color: #d71f48 !important;
}

mark.mark-add {
  background-color: #e9f1df !important;
  color: #109a52 !important;
}

.fs-10 {
  font-size: 10px !important;
}



.cloud-item,
.cloud-nav {
  transition: .5 ease-in !important;
}

.cloud-nav {
  display: none;
}

.cloud-nav ul {
  width: 100%;
  display: block;
  margin: 0;
  padding: 8px 0 0 0;
  list-style-type: none;
}

.cloud-nav ul li {
  float: left;
}

.cloud-nav ul li:after {
  content: "|";
  font-size: 10px;
  margin-right: 6px;
  margin-left: 6px;
}

.cloud-nav ul li:last-child:after {
  content: "";
  margin: 0 !important;
}

.cloud-item:hover .cloud-nav {
  display: block !important;
}


span.community-topic {
  padding: 6px 12px; 
  background: #c3e4ea;
  border-radius: 15px;
  font-size: 10px;
  text-transform: none !important;
  color: #075766;
}

div.post-content {
  padding-left: 10px; 
  border-left: 2px solid #b5d3d9;
}


div.block.block-comment {
   border: 0; 
   border-radius: 10px;
   display: inline-block !important;
   width: auto !important;
   max-width: 80% !important;
}

div.block.block-comment-author {
  background: #cbe3e8;
}

div.block.block-comment-guest {
  background: #f1f1f1;
}

.comment {
  width: 100%; 
  display: block; 
}

#comment-form {
  width: 100%; 
  display: block;
  background: #f1f1f1;
  padding: 1.25rem; 
  border-radius: 10px;
}


.nav-link-topics.active {
  background:#b5d3d9 !important;
  color:#075766 !important;
}


.nav-link-marketplace.active {
  background:#b5d3d9 !important;
  color:#075766 !important;
}


input.full, 
textarea.full,
button.full {
  width: 100% !important;
}

/* ── Language Switch Modal ── */
#modal_content_language {
  z-index: 2500 !important;
}

.ls-modal {
  border: none !important;
  border-radius: 0.75rem !important;
  overflow: hidden;
}

.ls-header {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8f9fc;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ls-header-title {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
}

.ls-header-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 0.75rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.ls-header-close:hover {
  color: #1e293b;
  background: rgba(0, 0, 0, 0.04);
}

.ls-body {
  padding: 0.5rem;
}

.ls-lang-btn {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0.65rem 0.85rem;
  border: none;
  background: transparent;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.ls-lang-btn:hover {
  background: #f0f1ff;
}

.ls-lang-btn.ls-lang-active {
  background: #f0f1ff;
}

.ls-lang-flag {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  margin-right: 0.75rem;
}

.ls-lang-name {
  font-size: 0.82rem;
  font-weight: 500;
  color: #1e293b;
  flex: 1;
  text-align: left;
}

.ls-lang-check {
  color: #4a4ef0;
  font-size: 0.75rem;
  margin-left: auto;
}


/* Dashboard / News */

.block-news-full {
  aspect-ratio: 16/9;
  position: relative;
}

.block-news-box {
  background-position: center left !important;
  background-size: 100% auto !important;
  aspect-ratio: 16/9;
  position: relative;
}

.block-news-full .block-content-overlay, 
.block-news-box .block-content-overlay {
  width: 100%; 
  height: 100%;
  border-radius: .375rem;
  position: absolute; 
  top: 0; 
  left: 0;
  z-index: 1 !important;
}

.block-news-full .block-content,
.block-news-box .block-content {
  height: 100%;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  color: #f1f1f1;
  z-index: 2500 !important;
}

#partner-body {
  position: relative;
  border-radius: .5rem;
  padding: 1.375em;
}

#partner-body #partner-heacon-logo {
  max-width: 220px;
  height: auto; 
  display: block;
  margin-bottom: 30px;
}

#partner-preview {
  position: fixed; 
  z-index: 999; 
  bottom: 0; 
  right: 5rem;
}

.block.block-dataset-note-create {
  max-width: 80%;
  border: 1px solid #d3ddf7;
}

.block.block-dataset-note {
  width: auto;
  max-width: 80%;
  display: inline-block !important; 
  background-color: #f1f1f1; 
  color: #1a2129;
  font-size: 14px;
}

.block.block-dataset-mynote {
  background: #d3ddf7;
  color: #192031;
}

.author-info {
  display: flex; 
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.author-info .author-image {
  width: 40px;
  height: 40px;
  margin-right: 10px;
  border-radius: 50%;
  background-color: #1a1a1a;
}

.author-info .author-meta .author-name {
  font-weight: bold;
  font-size: 14px;
}

.author-info .author-meta .author-position {
  font-weight: 300;
  font-size: 14px;
}

ul.note-privacy {
  list-style-type: none;
  margin: 10px 0 0 0 !important; 
  padding: 0 !important;
  font-size: 12px !important;
}

ul.note-privacy li {
  margin-left: 0px !important;
  margin-bottom: 5px !important; 
}

ul.note-privacy li:last-child {
  margin-bottom: 0 !important;
}

.privacy-text {
  font-size: 12px !important;
}



/* Cloud Index Client Accounts */

#audit-cloud-index {
  width: 100%; 
  display: flex; 
  flex-direction: column;
}

#audit-cloud-index .account-audit-index-item {
  display: flex; 
  flex-direction: row;
  flex-wrap: wrap;

  padding: 15px; 
  border-radius: .38rem;
  border: 1px solid #c8d5f5;

  margin-bottom: 12px;

  align-items: center;
  text-align: left !important;
}

#audit-cloud-index .account-audit-index-item div {

}

#audit-cloud-index .account-audit-index-item div.audit-index-item-file-action {
  display: flex; 
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: end;
  gap: 3%;
}


/* Contract */

#contract_nav {
  width: 100%; 
  display: flex;
}

#contract_nav .hc-nav-item {
  display: flex; 
  flex-direction: column;
  align-items: start;
  justify-content: center !important; 
  font-size: 18px;
}

#contract_nav #contract_partner_logo h1 {
  font-size: 18px !important;
}

#contract_partner_nav.hc-nav-item {
  width: 50%;
  justify-content: center;
  align-items: end !important;
}

#contract_nav .hc-nav-item ul {
  display: block; 
  padding: 0; 
  margin: 0;
  list-style-type: none;
}

#contract_nav .hc-nav-item ul li {
  float: left; 
  margin-right: 10px; 
}

#contract_nav .hc-nav-item ul li:last-child {
  margin-right: 0;
}

#contract_nav .hc-nav-item ul li a {
  padding: 20px;
  font-weight: 700;
  color: #1a1a1a;
  transition: .2s ease-in-out;
}

#contract_nav .hc-nav-item ul li a:hover {
  background: rgba(0,0,0,.05);
}

#contract_partner_logo {
  width: 50%;
}

#contract_partner_logo img {
  max-height: 50px;
}

#contract_text_partner_title img {
  max-width: 120px;
  margin-bottom: 40px;
}

.block-screen {
  min-height: 300px;
  background-size: 100% auto;
  background-position: top center;
}

.block-contract {
  transition: .2s ease-in-out;
  cursor: pointer;
}

.block-contract:hover {
  transform: scale(1.025);
}

.contract-contact-heacon {
  display: flex;
  flex-direction: column;
}

.contract-contact-heacon .contract-contact-profile {
  max-width: 100%;
  margin-bottom: 20px !important;
}

.contract-contact-heacon .contract-contact-contact ul {
  display: block; 
  list-style-type: none;
  margin: 20px 0;
  padding: 0;
}

.contract-contact-heacon .contract-contact-contact ul li {
  margin-bottom: 10px;
}

/* Audit Paradoxical */

.audit-paradoxical-root {
  position: relative !important;
}

.audit-paradoxical-root .audit-paradoxical-tooltip {
  width: auto;
  min-width: 280px;
  max-width: 360px;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  background: #fff;
  border: 1px solid #fecaca;
  border-left: 3px solid #dc2626;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  color: #1e293b;
  font-size: 0.78rem;
  line-height: 1.5;
  pointer-events: none !important;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1000 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.audit-paradoxical-root .audit-paradoxical-tooltip ul {
  margin: 0.4rem 0 0 0;
  padding-left: 1.1rem;
  color: #64748b;
  font-size: 0.72rem;
}

.audit-paradoxical-root .audit-paradoxical-tooltip ul li {
  margin-bottom: 0.15rem;
}

.audit-paradoxical-root:hover .audit-paradoxical-tooltip {
  opacity: 1;
  transform: translateY(0);
}


.hc-button-centered {
  display: flex; 
  align-items: center; 
  justify-content: center;
  padding: 10px;
} 

/* ── Account Modal (modal_account_me) ── */

#modal_account_me .modal-content {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  overflow: hidden;
}

.ame-modal {
  padding: 0;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}

/* Sticky Header */
.ame-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8f9fc;
  border-radius: 0.75rem 0.75rem 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.ame-header-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
  letter-spacing: -0.01em;
}

.ame-header-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 0.85rem;
  border-radius: 0.4rem;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.ame-header-close:hover {
  color: #1e293b;
  background: rgba(0, 0, 0, 0.04);
}

/* Scrollable Body */
.ame-body {
  overflow-y: auto;
  flex: 1;
}

.ame-section {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.ame-section:last-child {
  border-bottom: none;
}

.ame-section-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.75rem 1.5rem;
}

.ame-section-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 1rem 0;
}

.ame-profile-picture {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ame-profile-picture-wrapper {
  width: 120px;
  height: 120px;
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  border: 3px solid #e2e8f0;
  transition: border-color 0.15s ease;
}

.ame-profile-picture-wrapper:hover {
  border-color: #4a4ef0;
}

/* Company Card */
.ame-company-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
}

.ame-company-icon {
  width: 36px;
  height: 36px;
  border-radius: 0.4rem;
  background: #4a4ef0;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.ame-company-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.ame-company-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
}

.ame-company-address,
.ame-company-country {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.4;
}

/* Buttons */
.ame-btn-outline {
  font-size: 0.78rem;
  font-weight: 500;
  color: #475569;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.35rem 0.85rem;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.ame-btn-outline:hover {
  border-color: #4a4ef0;
  color: #4a4ef0;
  background: rgba(74, 78, 240, 0.04);
}

.ame-btn-primary {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.4rem 1rem;
  color: #fff;
  background: #4a4ef0;
  border: 1px solid #4a4ef0;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.ame-btn-primary:hover {
  background: #3538c8;
  border-color: #3538c8;
  color: #fff;
}

.ame-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #94a3b8;
  border-color: #94a3b8;
}

/* Cropper */
.ame-cropper-container {
  width: 100%;
  max-height: 320px;
  margin-top: 1rem;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #f8f9fc;
}

.ame-cropper-container img {
  display: block;
  max-width: 100%;
}

.ame-cropper-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
  gap: 0.5rem;
}

.ame-cropper-tools {
  display: flex;
  gap: 0.25rem;
}

.ame-tool-btn {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 0.75rem;
  color: #475569;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.4rem;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.ame-tool-btn:hover {
  border-color: #4a4ef0;
  color: #4a4ef0;
  background: rgba(74, 78, 240, 0.04);
}

.ame-cropper-actions {
  display: flex;
  gap: 0.4rem;
}

/* Password Rules */
.ame-pw-rules {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  background: #f8f9fc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1rem;
}

.ame-pw-rule {
  font-size: 0.72rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.15s ease;
}

.ame-pw-rule i {
  font-size: 0.45rem;
  width: 0.85rem;
  text-align: center;
  transition: color 0.15s ease;
}

.ame-pw-rule-valid {
  color: #22c55e;
}

.ame-pw-rule-valid i {
  font-size: 0.7rem;
  color: #22c55e;
}

.ame-pw-rule-invalid {
  color: #ef4444;
}

.ame-pw-rule-invalid i {
  color: #ef4444;
}

/* Form Rows */
.ame-form-row {
  margin-bottom: 0.75rem;
}

.ame-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: #94a3b8;
  margin-bottom: 0.3rem;
}

.ame-input {
  font-size: 0.82rem !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 0.5rem !important;
  padding: 0.45rem 0.7rem !important;
  color: #1e293b !important;
  transition: border-color 0.15s ease !important;
}

.ame-input:focus {
  border-color: #4a4ef0 !important;
  box-shadow: 0 0 0 2px rgba(74, 78, 240, 0.1) !important;
}

.ame-input:disabled {
  background: #f8f9fc !important;
  color: #94a3b8 !important;
}

/* Audit-erstellen-Modal: Umschalter zwischen Auswahl und Neu-Anlegen */
.aac-switch-row {
  margin-top: -0.25rem;
}
.aac-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: #4a4ef0;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
}
.aac-switch:hover {
  color: #3538c8;
}
.aac-switch i {
  font-size: 0.72rem;
}


.contract-box {
  background: #fff;
  position: relative; 
  height: 100% !important;
  display: flex; 
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px !important;
  aspect-ratio: 16/9;
  border: 1px solid #efeeec;
  border-radius: 10px;
  transition: .2s ease-in-out;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.contract-box:hover {
  transform: scale(1.15);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contract-box:hover .logo-wrapper {
  filter: grayscale(0) !important;
  transition: .4s ease-in-out;
}

.contract-box .logo-wrapper {
  width: 90%;
  height: 40px;
  background-size: auto 100% !important;
  background-repeat: no-repeat !important;
  background-position: top center !important;
  display: block;
  filter: grayscale(100);
}

.contract-box h3.contract-no-logo {
  font-size: 18px;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1em !important;
}

.contract-box h4.contract-logo {
  margin-top: 8px;
  font-weight: 300 !important;
  font-size: 10px !important;
  padding: 4px 5px !important;
  color: #fff;
  line-height: 1em;
  position: absolute; 
  top: 0;
  left: 0;
  background: #2b5a94;
}


.dashboard-block-audit {
  width: 100%; 
  height: 180px;
  display: flex !important;
  align-items: center;
  border-radius: .5rem !important;
  transition: .3s ease-in-out;
  z-index: 999 !important;
}

.dashboard-block-audit h3, 
.dashboard-block-audit h5 {
  color: #212529 !important;
}

.dashboard-block-audit:hover {
  transform: scale(1.08);
}


.dashboard-app-list {
  background: rgba(0,0,0,.15);
  border-radius: 15px;
  padding-top: 25px;
}

#dashboard-app-list .col-lg-2 {
  display: flex; 
  justify-content: center;
  align-items: center;
}

.dashboard-app-block.pharma-audit {
  background-image: url( '../media/background/app-box/service-box-audit.jpg' );
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: top center;
}

.dashboard-app-block {
  width: 64px;
  aspect-ratio: 1/1;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 5px;
  border-radius: 12px !important;
  font-size: 20px;
  margin-bottom: 50px !important;
  transition: .2s ease-in-out;
  position: relative;

  background: #d0e9ee;
}

.dashboard-app-block .app-block-title {
  width: 150px;
  display: block; 
  font-size: 14px;
  color: #fff;
  border-radius: 5px;
  padding: 3px 0px;
  position: absolute !important; 
  bottom: -30px; 
  background: transparent;
  transition: .2s ease-in-out;
}

.dashboard-app-block:hover {
  transform: scale(1.18);
  background-size: 120% auto;
}

.dashboard-app-block i {
  transition: .3s ease-in-out;
}

.dashboard-app-block:hover i {
  transform: scale(1.65);
}

.dashboard-app-block:hover .app-block-title {
  transform: scale(0.75) !important;
}

.dashboard-app-block-content {
  color: #1491aa;
  font-weight: 800;
  z-index: 999;
}

.dashboard-app-overlay {
  position: absolute;
  display: none;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%; 
  background: rgba(255, 255, 255, .8);
  border-radius: 5px;
}

.marketplace-item-create-content {
  border: 1px solid #fff; 
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}


ul#dashboard-community-list {
  list-style-type: none !important;
  padding: 0 !important;
  margin: 0 !important;
}


ul#dashboard-community-list li {
  width: 100%; 
  display: block; 
  flex-direction: column !important;
}

ul#dashboard-community-list li a {
  display: block; 
  margin-bottom: 14px;
  padding: 1rem .5rem;
  border-bottom: 1px solid #f1f1f1;
  background: #d0e9ee;
  border-radius: .5rem;
  position:relative;
  transition: .3s ease-in-out;
}

ul#dashboard-community-list li a:hover {
  transform: scale(1.05);
}

ul#dashboard-community-list li a span {
  font-size: 8px;
  padding: 3px 10px; 
  border-radius: .5rem;
  background: #2d4d76;
  display: inline-block;
  max-width: auto;
  color: #fff; 
  position: absolute;
  top: -5px; 
  right: -5px;
}

ul#dashboard-community-list li a b {
  display: block !important;
  font-size: 12px;
  color: #1491aa;
}


.logo-text {
  color: transparent !important;
background-image: linear-gradient(23deg, #ff6e92 0%, #b251e6 40%, #4897f1 100%);
background-size: 100% 100%;
-webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  font-size: 6rem !important;
}

.block-blurred {
  backdrop-filter: blur(10px) !important;
  background: rgba(255,255,255,.5) !important;
  border: 1px solid rgba(255,255,255,.4);
}

.bg-customdark {
  background: #151e22 !important;
}

img#app-mockup {
  max-width: 50%;
  top: 10%; 
  left: 0;
  position: absolute;
}

.text-right {
  text-align: right;
}


#lp-table-manager img.avatar {
  width: 32px !important;
  height: 32px;
  border-radius: 50% !important;
}


.audit-ad-box {
  display: flex; 
  flex-direction: row !important;
  padding: 1.5rem !important;
  background-image:url('https://www.heacon.de/wp-content/uploads/2025/02/heacon_index_bg.jpg');
  background-size: 100% auto;
}

.ad-box-description {
  width: 70% !important;
  padding: 35px 10% 0px 25px !important;
  display: flex; 
  flex-direction: column;
  justify-content: center;
  text-align: left !important; 
}

.ad-box-description h2 {
  color: #fff; 
}

.ad-box-description p {
  color: #fff; 
}

.ad-box-conversion {
  width: 30% !important;
  display: flex; 
  align-items: center;
  justify-content: center;
}

.btn-ad-box {
  width: 100% !important;
  text-align: center; 
  background: #fff; 
  border: 2px solid #fff; 
  padding: 15px;
  color: #2d4d76;
  font-weight: 700;
  font-size: 15px;
  transition: .3s ease-in-out;
}

.btn-ad-box:hover {
  background: transparent !important;
  border: 2px solid #fff !important;
  color: #fff;
}




ul.audit-nav {
  width: auto; 
  display: inline-block;
  padding: 0; 
  margin: 0; 
  list-style-type: none;
  border-radius: .5rem;
  box-shadow: 1px 3px 5px rgba(0,0,0,.02);
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px); 
}

ul.audit-nav li {
  float: left; 
  padding: 16px 35px;
}


ul.auditee-nav {
  width: auto; 
  display: inline-block; 
  padding: 0; 
  margin: 30px 0 0 0; 
  list-style-type: none;
}

ul.auditee-nav li {
  float: left; 
  padding: 10px 0;
  margin-right: 25px; 
}




.block.block-map {
  position: relative;
  overflow: hidden;
  padding: 25px 0;
}

.block-map-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0; /* Hintergrund */
}

.block-map-map {
  position: absolute;
  top: 0;
  left: 30%;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Map nicht anklickbar */
  z-index: 1;
}

.block-map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,1) 30%, rgba(255,255,255,0.8) 100%);
  z-index: 2;
}

.block-content {
  position: relative;
  z-index: 3; /* ganz oben */
}


.block-map .auditee {
  max-width: 50% !important;
}

.block-sticky {
  position: sticky !important;
  top: 80px !important;
}


.hc-flex {
  display: flex; 
  flex-direction: row;
  gap: 10px;
  align-items: flex-end;
  justify-content: center;
}


.auditee-contact-slide {
  z-index: 400;
  width: 100%; 
  height: 100%;
  top: 0; 
  right: 0;
  position: absolute;
  display: none; /* initial versteckt */
}

.auditee-contact-content {
  z-index: 400;
  width: 90%; 
  height: 100%;
  position: absolute;
  box-shadow: -2px 0px 25px rgba(0,0,0,.15);
  top: 100%;
  right: 0; 
  background: rgba(255,255,255,.75);
  z-index: 400 !important;
  padding: 35px 25px 25px 25px !important;
  overflow: auto;
  transition: top 0.4s ease;
}

.auditee-contact-overlay {
  position: absolute; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  background: rgba(0,0,0,.15); 
  z-index: 150 !important;
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* Aktiv-Zustände */
.auditee-contact-slide.active {
  display: block;
}

.auditee-contact-slide.active .auditee-contact-overlay {
  opacity: 1;
}



#audit-paradoxical-message-box .block.block-mode-pinned {
  min-width: 70% !important; 
}

#audit-paradoxical-message-box .block.block-mode-hidden {
  min-width: 20% !important; 
}

#audit-paradoxical-message-box .block.block-mode-pinned .block-content {
  height: auto !important;
  max-height: 90vh !important;
}


#audit-paradoxical-message {
  display: flex;
  flex-direction: column;
  padding: 0 !important;
}

#audit-paradoxical-message-box .block.block-mode-hidden #audit-paradoxical-message {
  display: none !important;
}

.content-box {
  border-radius: 0;
  border: 1px solid #dfe3ea;
  margin: 0 !important;
  padding: 25px !important;
}

#audit-paradoxical-message-box .block.block-mode-pinned .content-box-info, 
#audit-paradoxical-message-box .block.block-mode-pinned .content-box-warning {
  padding: 120px 45px !important; 
}

.content-box-info {
  background: #fef7ec !important;
  color: #ffc224;
  padding: 25px;
}

.content-box-warning {
  background: #f9ede8 !important;
  color: #e0550a;
  padding: 25px;
}


/* =============================================
   Audit Detail Page (aud-*)
   ============================================= */

/* Map Card */
.aud-map-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 1.5rem 0;
  border-radius: 0.75rem;
}
.aud-map-card .block-map-content {
  border-radius: 0.75rem;
}
.aud-map-card .block-map-overlay {
  background: linear-gradient(to right, rgba(255,255,255,1) 25%, rgba(255,255,255,0.85) 55%, rgba(255,255,255,0.3) 100%);
}

/* Auditee Nav Buttons */
.aud-auditee-nav {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.aud-auditee-nav li a {
  font-size: 0.82rem;
  color: #1e293b;
  font-weight: 500;
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: all 0.2s;
  display: inline-block;
}
.aud-auditee-nav li a:hover {
  background: rgba(255,255,255,0.8);
  border-color: rgba(74,78,240,0.3);
  color: #4a4ef0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* General Info Form Table */
.aud-form-table .lp-table-object {
  border-bottom: 1px solid #f1f5f9;
  padding: 0.6rem 0;
}
.aud-form-table .lp-table-object:last-child {
  border-bottom: none;
}

/* Sidebar Sticky Widget */
.aud-sidebar-sticky {
  position: sticky;
  top: 80px;
}

/* HeaconAR Info Box */
.aud-ar-box {
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(74,78,240,0.04) 0%, rgba(243,22,127,0.04) 100%);
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
}
.aud-ar-box-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.aud-ar-box-icon {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  flex-shrink: 0;
}
.aud-ar-box-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
}
.aud-ar-box-subtitle {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 0.15rem;
}
.aud-ar-box-version {
  font-size: 0.72rem;
  font-weight: 600;
  color: #4a4ef0;
  background: rgba(74,78,240,0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 2rem;
  white-space: nowrap;
}
.aud-ar-box-downloads {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.aud-ar-download {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #1e293b;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.15s;
}
.aud-ar-download:hover {
  border-color: #4a4ef0;
  color: #4a4ef0;
  box-shadow: 0 2px 8px rgba(74,78,240,0.1);
}
.aud-ar-download i {
  font-size: 1rem;
}
.aud-ar-download-ver {
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 400;
}

/* Paradoxical Widgets */
.aud-widget {
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  font-size: 0.82rem;
}
.aud-widget-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
.aud-widget-task {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}
.aud-widget-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.aud-widget-header i {
  font-size: 0.9rem;
}
.aud-widget-error .aud-widget-header i { color: #dc2626; }
.aud-widget-task .aud-widget-header i { color: #d97706; }
.aud-widget-list {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.6;
}
.aud-widget-list li {
  margin-bottom: 0.2rem;
}


.frame {
  position: relative; 
  background: linear-gradient(to bottom, #ffffff 0%, #f2f7fa 100%);
  padding: 25px;
  border-left: 0px solid #b6d3e7;
  border-right: 0px solid #b6d3e7;
  border-bottom: 0px solid #b6d3e7;
  box-shadow: 0px 10px 10px rgba(0,0,0,.05);
  border-bottom-left-radius: .55rem;
  border-bottom-right-radius: .55rem;
}


.lp-pointer {
  cursor: pointer !important;
}


.block-linkedin {
  background-color: #0A66C2 !important;
  transition: background-color 0.2s ease;
}

.block-linkedin:hover {
  background-color: #004182 !important;
}

.block-linkedin .block-content,
.block-linkedin .block-content span,
.block-linkedin .block-content i {
  color: #fff !important;
}

.block-news {
  aspect-ratio: 1/1;
}


.block-auditmanagement {
  height: 100%;
  min-height: 220px;
  background-image: url( '../media/background/block-auditmanagement.jpg' );
  background-position: top right;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  transition: .2s ease-in-out !important;
}

.block-einkaufskooperation {
  height: 100%;
  min-height: 220px;
  background-image: url( '../media/background/block-einkaufskooperation.jpg' );
  background-position: top right;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  transition: .2s ease-in-out !important;
}

.block-auditmanagement .block-content, 
.block-einkaufskooperation .block-content {
  height: 100%; 
  max-width: 50%;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  justify-content: center;
  align-items: center;
  position: absolute;
  display: flex; 
}


.block-einkaufskooperation:hover,
.block-auditmanagement:hover {
  transform: scale(1.05);
  opacity: 1;
}


.block-content-management table {
  width: 100% !important;
}

.block-content-management table tr {
  border-bottom: 1px solid #f1f1f1;
}

.block-content-management table tr td {
  width: 50% !important;
  padding: 10px 0px;
}

.block-content-management img {
  width: 64px !important;
  height: 64px !important;
  border-radius: 50%;
  margin-bottom: 25px;
}

/* Dashboard News Widget */
.dashboard-news-link {
  display: block;
  text-decoration: none;
  transition: all 0.2s ease;
}

.list-group-item:has(.dashboard-news-link) {
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.list-group-item:has(.dashboard-news-link):hover {
  background-color: rgba(43, 90, 148, 0.08);
  border-left: 3px solid #2b5a94;
}

.list-group-item:hover .dashboard-news-link {
  color: #2b5a94 !important;
}

/* ── Audit Detail Modal ── */
#modal_audit_detail {
  z-index: 3055;
}

#modal_audit_detail .modal-content {
  z-index: 3056;
}

.aud-modal {
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}

.aud-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8f9fc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.aud-header-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
  letter-spacing: -0.01em;
}

.aud-header-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 0.85rem;
  border-radius: 0.4rem;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.aud-header-close:hover {
  color: #1e293b;
  background: rgba(0, 0, 0, 0.04);
}

.aud-body {
  overflow-y: auto;
  flex: 1;
  background: linear-gradient(135deg, #f0f1ff 0%, #f8f9fc 40%, #ffffff 100%);
}

.aud-section {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.aud-section:last-child {
  border-bottom: none;
}

.aud-section-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 1rem 0;
}

.aud-info-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.aud-info-item {
  display: flex;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.aud-info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.aud-info-item:first-child {
  padding-top: 0;
}

.aud-info-label {
  flex: 0 0 35%;
  font-size: 0.82rem;
  color: #94a3b8;
  padding-top: 0.1rem;
}

.aud-info-value {
  flex: 1;
  font-size: 0.85rem;
  color: #1e293b;
  line-height: 1.5;
}

.aud-info-value strong {
  font-weight: 600;
}

.aud-status-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  background: #f0f1ff;
  color: #4a4ef0;
}

.aud-status-badge.aud-status-planned {
  background: #fef3c7;
  color: #b45309;
}

.aud-status-badge.aud-status-scheduling {
  background: #fef3c7;
  color: #b45309;
}

.aud-status-badge.aud-status-fixed {
  background: #d1fae5;
  color: #047857;
}

.aud-status-badge.aud-status-rip {
  background: #dbeafe;
  color: #1d4ed8;
}

.aud-status-badge.aud-status-follow_up {
  background: #f1f5f9;
  color: #475569;
}

.aud-status-badge.aud-status-closed {
  background: #dcfce7;
  color: #065f46;
}

.aud-status-badge.aud-status-cancelled {
  background: #fee2e2;
  color: #b91c1c;
}

.aud-status-badge.aud-status-open {
  background: #dbeafe;
  color: #1d4ed8;
}

.aud-form-row {
  margin-bottom: 0.75rem;
}

.aud-input {
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
  color: #1e293b;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.aud-input:focus {
  border-color: #4a4ef0;
  box-shadow: 0 0 0 3px rgba(74, 78, 240, 0.1);
  outline: none;
}

.aud-disclaimer {
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.aud-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  background: #4a4ef0;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.aud-btn-primary:hover {
  background: #3538c8;
  box-shadow: 0 2px 8px rgba(74, 78, 240, 0.25);
}

.aud-btn-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #64748b;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.15s;
  padding: 0;
  flex-shrink: 0;
}
.aud-btn-circle:hover {
  border-color: #4a4ef0;
  color: #fff;
  background: #4a4ef0;
  box-shadow: 0 2px 8px rgba(74,78,240,0.15);
}

/* ── Audit Select2 ── */
.pk-detail-card-body .select2-container {
  flex: 1;
  min-width: 0;
}
.pk-detail-card-body .select2-container .select2-selection--single {
  height: 34px;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #fff;
  padding: 0.2rem 0.5rem;
  font-size: 0.82rem;
  color: #1e293b;
}
.pk-detail-card-body .select2-container .select2-selection--single .select2-selection__rendered {
  line-height: 22px;
  color: #1e293b;
  padding-left: 0;
  margin-top: 2px;
}
.pk-detail-card-body .select2-container .select2-selection--single .select2-selection__placeholder {
  color: #94a3b8;
}
.pk-detail-card-body .select2-container .select2-selection--single .select2-selection__arrow {
  height: 32px;
}
.pk-detail-card-body .select2-container--focus .select2-selection--single,
.pk-detail-card-body .select2-container--open .select2-selection--single {
  border-color: #4a4ef0;
  outline: none;
  box-shadow: 0 0 0 2px rgba(74,78,240,0.08);
}
.select2-dropdown {
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  overflow: hidden;
  z-index: 9999 !important;
}
.select2-results__option {
  font-size: 0.82rem;
  padding: 0.45rem 0.75rem;
  color: #334155;
}
.select2-results__option--highlighted[aria-selected] {
  background: #4a4ef0;
  color: #fff;
}
.select2-search--dropdown .select2-search__field {
  font-size: 0.82rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  padding: 0.4rem 0.6rem;
}
.select2-search--dropdown .select2-search__field:focus {
  border-color: #4a4ef0;
  outline: none;
}

.pk-modal-body .select2-container {
  width: 100% !important;
}
.pk-modal-body .select2-container .select2-selection--single {
  height: 34px;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #fff;
  padding: 0.2rem 0.5rem;
  font-size: 0.82rem;
  color: #1e293b;
}
.pk-modal-body .select2-container .select2-selection--single .select2-selection__rendered {
  line-height: 22px;
  color: #1e293b;
  padding-left: 0;
  margin-top: 2px;
}
.pk-modal-body .select2-container .select2-selection--single .select2-selection__placeholder {
  color: #94a3b8;
}
.pk-modal-body .select2-container .select2-selection--single .select2-selection__arrow {
  height: 32px;
}
.pk-modal-body .select2-container--focus .select2-selection--single,
.pk-modal-body .select2-container--open .select2-selection--single {
  border-color: #4a4ef0;
  outline: none;
  box-shadow: 0 0 0 2px rgba(74,78,240,0.08);
}

/* ── Audit Table ── */
.aud-table .lp-table-head .lp-table-object {
  border-bottom: 1px solid #e2e8f0;
}
.aud-table .lp-table-head .lp-table-item {
  font-size: 0.7rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.5rem 0.75rem;
}
.aud-table .lp-table-content .lp-table-object {
  border-bottom: 1px solid #f1f5f9;
}
.aud-table .lp-table-content .lp-table-object:last-child {
  border-bottom: none;
}
.aud-table .lp-table-content .lp-table-object:hover {
  background: #f8f9fc !important;
  border-radius: 0;
}
.aud-table .lp-table-content .lp-table-item {
  font-size: 0.82rem;
  color: #334155;
  padding: 0.6rem 0.75rem;
}

/* ── Audit Badges ── */
.aud-badge-id {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #4a4ef0;
  background: #eef0ff;
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
  text-decoration: none;
  transition: all 0.15s;
}
.aud-badge-id:hover {
  background: #4a4ef0;
  color: #fff;
}
.aud-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
  line-height: 1.4;
}
.aud-badge-default { background: #f1f5f9; color: #64748b; }
.aud-badge-info    { background: #e0f2fe; color: #0284c7; }
.aud-badge-primary { background: #eef0ff; color: #4a4ef0; }
.aud-badge-success { background: #dcfce7; color: #16a34a; }
.aud-badge-danger  { background: #fee2e2; color: #dc2626; }
.aud-badge-warning { background: #fef3c7; color: #d97706; }

/* ── Audit Links ── */
.aud-link {
  color: #334155;
  text-decoration: none;
  transition: color 0.15s;
}
.aud-link:hover {
  color: #4a4ef0;
}

/* ── Audit Inline Elements ── */
.aud-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.aud-select-inline {
  font-size: 0.78rem !important;
  padding: 0.2rem 1.8rem 0.2rem 0.5rem !important;
  border-color: #e2e8f0;
  border-radius: 0.375rem !important;
  color: #334155;
  background-color: #f8f9fc;
  height: auto !important;
}
.aud-select-inline:focus {
  border-color: #4a4ef0;
  box-shadow: 0 0 0 2px rgba(74,78,240,0.08);
}
.aud-btn-menu {
  border: none !important;
  background: transparent !important;
  color: #94a3b8;
  padding: 0.25rem 0.4rem;
}
.aud-btn-menu:hover {
  color: #334155;
}
.aud-form-hint {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.5;
}
.aud-form-hint i {
  color: #94a3b8;
  margin-right: 0.25rem;
}

/* ── Contact Persons Modal ── */
#modal_contact_persons {
  z-index: 3055;
}

#modal_contact_persons .modal-content {
  z-index: 3056;
}

.cp-modal {
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}

.cp-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8f9fc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.cp-header-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
  letter-spacing: -0.01em;
}

.cp-header-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 0.85rem;
  border-radius: 0.4rem;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.cp-header-close:hover {
  color: #1e293b;
  background: rgba(0, 0, 0, 0.04);
}

.cp-body {
  overflow-y: auto;
  flex: 1;
  padding: 1.25rem 1.5rem;
}

.cp-description {
  color: #475569;
  font-size: 0.82rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.cp-contact-card {
  display: flex;
  align-items: flex-start;
  padding: 1rem;
  border-radius: 0.625rem;
  border: 1px solid #e2e8f0;
  margin-bottom: 0.625rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cp-contact-card:last-of-type {
  margin-bottom: 0;
}

.cp-contact-card:hover {
  border-color: #c7d2fe;
  box-shadow: 0 2px 8px rgba(74, 78, 240, 0.06);
}

.cp-avatar-wrapper {
  flex-shrink: 0;
  margin-right: 1rem;
}

.cp-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e2e8f0;
}

.cp-contact-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.15rem;
}

.cp-contact-dept {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

.cp-contact-channels {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.cp-channel {
  display: flex;
  align-items: center;
  font-size: 0.8rem;
}

.cp-channel-icon {
  width: 14px;
  color: #94a3b8;
  margin-right: 0.5rem;
  font-size: 0.72rem;
}

.cp-channel a {
  color: #4a4ef0;
  text-decoration: none;
  transition: color 0.15s ease;
}

.cp-channel a:hover {
  color: #3538c8;
}

.cp-footer {
  padding-top: 1.25rem;
  margin-top: 0.625rem;
  border-top: 1px solid #e2e8f0;
  text-align: center;
}

.cp-footer p {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 0;
}

.cp-footer a {
  color: #4a4ef0;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.cp-footer a:hover {
  color: #3538c8;
}

/* ── Partner-Kooperation (.pk-*) ── */

/* Z-Index Backdrop Fix */
#modal_partner_inquiry {
  z-index: 3055;
}

#modal_partner_inquiry .modal-content {
  z-index: 3056;
}

/* Hero */
.pk-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #0a3d3a 0%, #072726 100%);
  border-radius: 0.75rem;
  padding: 2.5rem;
  color: #fff;
  margin-bottom: 2.5rem;
  overflow: hidden;
  position: relative;
}

.pk-hero-content {
  flex: 1;
  max-width: 70%;
  position: relative;
  z-index: 1;
}

.pk-hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.3rem 0.85rem;
  border-radius: 2rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.pk-hero-title {
  font-size: 2rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin: 0 0 0.75rem 0 !important;
  line-height: 1.2 !important;
}

.pk-hero-subtitle {
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
  max-width: 540px;
}

.pk-hero-features {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pk-hero-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.45rem 0.85rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

.pk-hero-feature i {
  font-size: 0.85rem;
  opacity: 0.9;
}

.pk-hero-visual {
  position: relative;
  z-index: 0;
  opacity: 0.12;
  flex-shrink: 0;
}

/* Hero Logo Slider (3 async vertical columns) */
.pk-hero-slider {
  flex-shrink: 0;
  display: flex;
  gap: 0.75rem;
  width: 320px;
  height: 100%;
  max-height: 280px;
  align-self: center;
  overflow: hidden;
  mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%),
              linear-gradient(90deg, transparent 0%, #000 35%, #000 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%),
                      linear-gradient(90deg, transparent 0%, #000 35%, #000 100%);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
}

.pk-hero-slider-col {
  flex: 1;
  overflow: hidden;
}

.pk-hero-slider-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.pk-hero-slider-track-0 {
  animation: pk-slider-up 22s linear infinite;
}

.pk-hero-slider-track-1 {
  animation: pk-slider-down 28s linear infinite;
}

.pk-hero-slider-track-2 {
  animation: pk-slider-up 18s linear infinite;
}

.pk-hero-slider-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  width: 100%;
}

.pk-hero-slider-item img {
  max-height: 40px;
  max-width: 100px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

.pk-hero-slider-item img:hover {
  opacity: 1;
}

@keyframes pk-slider-up {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

@keyframes pk-slider-down {
  0% { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}

.pk-hero-icon {
  font-size: 8rem;
}

/* Admin Create Button */
.pk-create-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: #115e59;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  margin-bottom: 1.5rem;
}

.pk-create-btn:hover {
  background: #134e4a;
  box-shadow: 0 2px 8px rgba(17, 94, 89, 0.25);
}

/* Category Filter */
.pk-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.pk-filter-pill {
  padding: 0.4rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 2rem;
  background: #fff;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pk-filter-pill:hover {
  border-color: #99f6e4;
  color: #115e59;
  background: #f0fdfa;
}

.pk-filter-pill.active {
  background: #115e59;
  color: #fff;
  border-color: #115e59;
}

/* Category Title */
.pk-category-title {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  margin: 0 0 1.5rem 0 !important;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #115e59;
  display: inline-block;
}

/* Partner Cards */
.pk-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pk-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.pk-card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  min-height: 100px;
  background: #fff;
}

.pk-card-logo img {
  max-height: 50px;
  max-width: 80%;
  object-fit: contain;
}

.pk-card-logo-fallback {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
}

.pk-card-body {
  padding: 0.875rem 1.25rem;
  border-top: 1px solid #e2e8f0;
}

.pk-card-name {
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  margin: 0 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pk-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid #e2e8f0;
  margin-top: auto;
}

.pk-card-link {
  color: #115e59 !important;
  font-weight: 500;
  font-size: 0.8rem;
  text-decoration: none !important;
  transition: color 0.15s ease;
}

.pk-card-link:hover {
  color: #134e4a !important;
}

.pk-card-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  background: #115e59;
  color: #fff !important;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  overflow: hidden;
}

.pk-card-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: none;
}

.pk-card-btn:hover {
  background: #134e4a;
  box-shadow: 0 2px 8px rgba(17, 94, 89, 0.25);
}

.pk-card-btn:hover::after {
  animation: pk-shimmer 0.6s ease forwards;
}

@keyframes pk-shimmer {
  0% { left: -100%; }
  100% { left: 120%; }
}

/* Empty State */
.pk-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: #94a3b8;
}

.pk-empty i {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: block;
}

.pk-empty span {
  font-size: 0.88rem;
  font-weight: 400;
}

/* Inquiry Modal */
.pk-modal {
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}

/* Banner (Portal Header) */
.pk-modal-banner {
  position: relative;
  min-height: 160px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pk-modal-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}

.pk-modal-banner-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.9rem;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s ease;
}

.pk-modal-banner-close:hover {
  background: rgba(255, 255, 255, 0.4);
}

.pk-modal-banner-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.pk-modal-banner-logo {
  max-height: 55px;
  max-width: 200px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}

.pk-modal-banner-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Body */
.pk-modal-body {
  overflow-y: auto;
  flex: 1;
  padding: 1.5rem;
}

.pk-modal-title {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  margin: 0 0 0.5rem 0 !important;
}

.pk-modal-subtitle {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.pk-form-row {
  margin-bottom: 1rem;
}

.pk-form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.4rem;
}

.pk-input {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  color: #1e293b;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pk-input:focus {
  outline: none;
  border-color: #4a4ef0;
  box-shadow: 0 0 0 3px rgba(74, 78, 240, 0.1);
}

.pk-textarea {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  color: #1e293b;
  background: #fff;
  min-height: 120px;
  resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pk-textarea:focus {
  outline: none;
  border-color: #4a4ef0;
  box-shadow: 0 0 0 3px rgba(74, 78, 240, 0.1);
}

.pk-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.65rem 1.25rem;
  background: var(--pk-brand, #4a4ef0);
  color: var(--pk-font, #fff);
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: filter 0.15s ease, box-shadow 0.15s ease;
}

.pk-btn-primary:hover {
  filter: brightness(0.9);
  box-shadow: 0 2px 8px rgba(var(--pk-brand-rgb, 74, 78, 240), 0.3);
}


/* =============================================
   Partner Detail – One Pager (.pk-detail-*)
   ============================================= */

/* Hero Banner */
.pk-detail-hero {
  position: relative;
  min-height: 340px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
}

.pk-detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.55) 100%);
  z-index: 0;
}

.pk-detail-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.pk-detail-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  margin-bottom: 1.5rem;
  transition: background 0.2s;
}

.pk-detail-breadcrumb:hover {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

.pk-detail-hero-logo {
  margin-bottom: 1rem;
}

.pk-detail-hero-logo-img {
  max-height: 70px;
  max-width: 220px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.pk-detail-hero-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.pk-detail-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.85rem;
  border-radius: 2rem;
}

/* Section Navigation */
.pk-detail-nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
  transition: box-shadow 0.2s;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
}

.pk-detail-nav-wrapper.stuck {
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.pk-detail-nav {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.pk-detail-nav-inner {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.pk-detail-nav-inner::-webkit-scrollbar {
  display: none;
}

.pk-detail-nav-link {
  padding: 0.75rem 1.25rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pk-detail-nav-link i {
  font-size: 0.78rem;
}

.pk-detail-nav-link:hover {
  color: var(--pk-brand, #4a4ef0);
  background: rgba(var(--pk-brand-rgb, 74, 78, 240), 0.08);
  border-radius: 0.375rem 0.375rem 0 0;
}

.pk-detail-nav-link.active {
  color: var(--pk-brand, #4a4ef0);
  border-bottom-color: var(--pk-brand, #4a4ef0);
}

/* Body Container */
.pk-detail-body {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

/* Sections */
.pk-detail-section {
  margin-bottom: 3rem;
  scroll-margin-top: 80px;
}

.pk-detail-section-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.pk-detail-section-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(var(--pk-brand-rgb, 74, 78, 240), 0.08);
  color: var(--pk-brand, #4a4ef0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.pk-detail-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.pk-detail-section-subtitle {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0.2rem 0 0;
}

/* Cards */
.pk-detail-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  overflow: hidden;
}

.pk-detail-card-body {
  padding: 2rem;
}

/* Prose (Rich Text Content) */
.pk-detail-prose {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #334155;
}

.pk-detail-prose h1,
.pk-detail-prose h2,
.pk-detail-prose h3,
.pk-detail-prose h4,
.pk-detail-prose h5,
.pk-detail-prose h6 {
  color: #1e293b;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.pk-detail-prose img {
  max-width: 100%;
  border-radius: 0.5rem;
}

.pk-detail-prose ul,
.pk-detail-locked-content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}
.pk-detail-prose ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.pk-detail-prose ul li,
.pk-detail-locked-content ul li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.6rem;
}
.pk-detail-prose ul li::before,
.pk-detail-locked-content ul li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free', FontAwesome;
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0.15em;
  font-size: 0.7rem;
  width: 1.2rem;
  height: 1.2rem;
  line-height: 1.2rem;
  text-align: center;
  border-radius: 50%;
  background: rgba(var(--pk-brand-rgb, 74, 78, 240), 0.1);
  color: var(--pk-brand, #4a4ef0);
}
.pk-detail-prose ol li {
  margin-bottom: 0.35rem;
}

.pk-detail-prose a {
  color: var(--pk-brand, #4a4ef0);
}

/* CTA Banner */
.pk-detail-cta {
  background: linear-gradient(135deg, #f3167f 0%, #4a4ef0 50%, #f3f231 100%);
  background-size: 300% 300%;
  animation: pkCtaGradient 8s ease-in-out infinite;
  border-radius: 0.75rem;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  color: #fff;
}

@keyframes pkCtaGradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.pk-detail-cta-content {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.pk-detail-cta-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.pk-detail-cta-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}

.pk-detail-cta-text {
  font-size: 0.85rem;
  opacity: 0.9;
  margin: 0.25rem 0 0;
}

.pk-detail-cta-btn {
  background: #fff;
  color: var(--pk-brand, #4a4ef0);
  border: none;
  border-radius: 0.5rem;
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
  white-space: nowrap;
}

.pk-detail-cta-btn:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateY(-1px);
}

/* Locked Content */
.pk-detail-locked {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  min-height: 200px;
}

.pk-detail-locked-content {
  padding: 2rem;
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
  opacity: 0.5;
}

.pk-detail-locked-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.pk-detail-locked-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(var(--pk-brand-rgb, 74, 78, 240), 0.08);
  color: var(--pk-brand, #4a4ef0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.pk-detail-locked-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.5rem;
}

.pk-detail-locked-text {
  font-size: 0.85rem;
  color: #64748b;
  max-width: 400px;
  margin: 0 0 1.25rem;
}

.pk-detail-locked-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--pk-brand, #4a4ef0);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}

.pk-detail-locked-btn:hover {
  background: color-mix(in srgb, var(--pk-brand, #4a4ef0), black 15%);
  box-shadow: 0 4px 12px rgba(var(--pk-brand-rgb, 74, 78, 240), 0.3);
}

/* File List */
.pk-detail-file-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pk-detail-file-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  transition: border-color 0.2s, background 0.2s;
}

.pk-detail-file-item:hover {
  border-color: rgba(var(--pk-brand-rgb, 74, 78, 240), 0.25);
  background: rgba(var(--pk-brand-rgb, 74, 78, 240), 0.03);
}

.pk-detail-file-badge {
  display: inline-block;
  background: rgba(var(--pk-brand-rgb, 74, 78, 240), 0.08);
  color: var(--pk-brand, #4a4ef0);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 0.375rem;
  text-transform: uppercase;
  flex-shrink: 0;
}

.pk-detail-file-info {
  flex: 1;
  min-width: 0;
}

.pk-detail-file-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: #1e293b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

.pk-detail-file-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.pk-detail-file-dl,
.pk-detail-file-del {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: transparent;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  text-decoration: none;
}

.pk-detail-file-dl:hover {
  border-color: var(--pk-brand, #4a4ef0);
  color: var(--pk-brand, #4a4ef0);
}

.pk-detail-file-del:hover {
  border-color: #ef4444;
  color: #ef4444;
}

.pk-detail-file-rename {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}
.pk-detail-file-rename-input {
  flex: 1;
  min-width: 0;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  padding: 0.3rem 0.6rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #1e293b;
  background: transparent;
  outline: none;
  transition: border-color 0.2s;
}
.pk-detail-file-rename-input:focus {
  border-color: var(--pk-brand, #4a4ef0);
}
.pk-detail-file-save {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: transparent;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.pk-detail-file-save:hover {
  border-color: var(--pk-brand, #4a4ef0);
  color: var(--pk-brand, #4a4ef0);
  background: rgba(var(--pk-brand-rgb, 74, 78, 240), 0.06);
}

.pk-detail-file-placeholder-item {
  height: 52px;
  background: #e2e8f0;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Upload Zone */
.pk-detail-upload-zone {
  margin-bottom: 1.5rem;
}
.pk-detail-upload-zone .dropzone.lp-cloudzone {
  border: 2px dashed #cbd5e1;
  border-radius: 0.75rem;
  background: #f8fafc;
  padding: 1.5rem 1rem;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.pk-detail-upload-zone .dropzone.lp-cloudzone:hover {
  border-color: var(--pk-brand, #4a4ef0);
  background: rgba(var(--pk-brand-rgb, 74, 78, 240), 0.03);
}
.pk-detail-upload-zone .dropzone.lp-cloudzone p {
  font-size: 0.85rem;
  font-weight: 400;
  color: #64748b;
}
.pk-detail-upload-zone .dropzone.lp-cloudzone:hover p {
  color: var(--pk-brand, #4a4ef0);
}
.pk-detail-upload-zone .dropzone.lp-cloudzone .dz-preview {
  margin: 0.5rem 0 0;
}
.pk-detail-upload-zone .dropzone.lp-cloudzone .dz-success-mark,
.pk-detail-upload-zone .dropzone.lp-cloudzone .dz-error-mark {
  display: none;
}

/* Empty State */
.pk-detail-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
  color: #94a3b8;
  gap: 0.5rem;
}

.pk-detail-empty i {
  font-size: 1.5rem;
}

.pk-detail-empty span {
  font-size: 0.88rem;
}

/* Contact Cards */
.pk-detail-contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.pk-detail-contact-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pk-detail-contact-card-partner {
  border-top: 3px solid var(--pk-brand, #4a4ef0);
}

.pk-detail-contact-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 1rem;
}

.pk-detail-contact-avatar-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 3px solid #e2e8f0;
  margin-bottom: 1rem;
}

.pk-detail-contact-avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(var(--pk-brand-rgb, 74, 78, 240), 0.08);
  color: var(--pk-brand, #4a4ef0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.pk-detail-contact-name {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.25rem;
}

.pk-detail-contact-position {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0 0 1rem;
}

.pk-detail-contact-details {
  width: 100%;
  text-align: left;
}

.pk-detail-contact-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.85rem;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
}

.pk-detail-contact-row:last-child {
  border-bottom: none;
}

.pk-detail-contact-row i {
  width: 18px;
  color: #94a3b8;
  text-align: center;
  flex-shrink: 0;
}

.pk-detail-contact-row a {
  color: var(--pk-brand, #4a4ef0);
  text-decoration: none;
}

.pk-detail-contact-row a:hover {
  text-decoration: underline;
}

/* Form Title/Subtitle */
.pk-detail-form-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.25rem;
}

.pk-detail-form-subtitle {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0 0 1.5rem;
}

/* Inquiry Section – Two-Column Layout */
.pk-detail-inquiry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .pk-detail-inquiry-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Benefits (left) */
.pk-detail-inquiry-benefits {
  background: var(--pk-brand, #4a4ef0);
  color: var(--pk-font, #fff);
  border-radius: 0.75rem;
  padding: 1.75rem;
}

.pk-detail-inquiry-benefits-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  color: var(--pk-font, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.pk-detail-inquiry-benefits-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pk-font, #fff);
  margin: 0 0 0.5rem;
}

.pk-detail-inquiry-benefits-text {
  font-size: 0.85rem;
  color: var(--pk-font, #fff);
  opacity: 0.85;
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

.pk-detail-inquiry-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pk-detail-inquiry-checklist li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--pk-font, #fff);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.pk-detail-inquiry-checklist li:last-child {
  border-bottom: none;
}

.pk-detail-inquiry-checklist li i {
  color: var(--pk-font, #fff);
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* Greeting (right, above form) */
.pk-detail-inquiry-greeting {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.pk-detail-inquiry-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  border: 2px solid var(--pk-brand, #4a4ef0);
}

.pk-detail-inquiry-greeting-text {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

.pk-detail-inquiry-greeting-text strong {
  color: #1e293b;
}

/* Admin FAB */
.pk-detail-admin-fab {
  position: fixed;
  bottom: 2.5rem;
  right: 2rem;
  z-index: 999;
}

.pk-detail-admin-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--pk-brand, #4a4ef0);
  color: #fff;
  border: none;
  border-radius: 2rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(var(--pk-brand-rgb, 74, 78, 240), 0.3);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.pk-detail-admin-btn:hover {
  background: color-mix(in srgb, var(--pk-brand, #4a4ef0), black 15%);
  box-shadow: 0 6px 20px rgba(var(--pk-brand-rgb, 74, 78, 240), 0.4);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .pk-detail-hero { min-height: 240px; }
  .pk-detail-hero-title { font-size: 1.3rem !important; }
  .pk-detail-hero-logo-img { max-height: 50px; }
  .pk-detail-body { padding: 1.5rem 1rem 2rem; }
  .pk-detail-card-body { padding: 1.25rem; }
  .pk-detail-contacts { grid-template-columns: 1fr; }
  .pk-detail-cta { flex-direction: column; text-align: center; }
  .pk-detail-cta-content { flex-direction: column; }
  .pk-detail-cta-btn { width: 100%; justify-content: center; }
  .pk-detail-nav-inner { gap: 0; }
  .pk-detail-nav-link { padding: 0.6rem 0.8rem; font-size: 0.78rem; }
  .pk-detail-section-header { flex-direction: column; align-items: flex-start; }
}

/* ========================================================================
   PARTNER DETAIL – INLINE EDIT MODE
   ======================================================================== */

/* Visibility toggles */
.pk-detail-edit-only { display: none !important; }
.pk-detail-edit-mode .pk-detail-edit-only { display: block !important; }
.pk-detail-edit-mode .pk-detail-edit-only-flex { display: flex !important; }
.pk-detail-edit-mode .pk-detail-view-only { display: none !important; }

/* Editable cards – dotted border */
.pk-detail-edit-mode .pk-detail-editable {
  border: 2px dashed #cbd5e1;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pk-detail-edit-mode .pk-detail-editable:hover {
  border-color: rgba(var(--pk-brand-rgb, 74, 78, 240), 0.4);
}
.pk-detail-edit-mode .pk-detail-editable:focus-within {
  border-color: var(--pk-brand, #4a4ef0);
  box-shadow: 0 0 0 3px rgba(var(--pk-brand-rgb, 74, 78, 240), 0.08);
}

/* Edit hint overlay */
.pk-detail-edit-hint {
  display: none;
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.7rem;
  color: #94a3b8;
  background: rgba(255,255,255,0.85);
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  pointer-events: none;
  z-index: 2;
}
.pk-detail-edit-mode .pk-detail-editable:hover .pk-detail-edit-hint {
  display: block;
}
.pk-detail-edit-mode .pk-detail-editable:focus-within .pk-detail-edit-hint {
  display: none;
}

/* Hero edit toolbar */
.pk-detail-edit-hero-toolbar {
  display: none;
  position: relative;
  z-index: 110;
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  margin-top: -2rem;
  margin-bottom: 1.5rem;
}
.pk-detail-edit-mode .pk-detail-edit-hero-toolbar {
  display: block;
}
.pk-detail-edit-hero-toolbar-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 1rem;
}
.pk-detail-edit-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.pk-detail-edit-hero-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: #64748b;
  margin-bottom: 0.35rem;
}
.pk-detail-edit-hero-field input,
.pk-detail-edit-hero-field select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  background: #fff;
  color: #1e293b;
  transition: border-color 0.2s;
}
.pk-detail-edit-hero-field input:focus,
.pk-detail-edit-hero-field select:focus {
  outline: none;
  border-color: var(--pk-brand, #4a4ef0);
  box-shadow: 0 0 0 3px rgba(var(--pk-brand-rgb, 74, 78, 240), 0.08);
}
.pk-detail-edit-hero-field input[type="color"] {
  width: 40px;
  height: 36px;
  padding: 2px;
  cursor: pointer;
}
.pk-detail-edit-hero-colors {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
}
.pk-detail-edit-hero-color-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.pk-detail-edit-hero-color-item label {
  font-size: 0.72rem;
  font-weight: 500;
  color: #64748b;
}
.pk-detail-edit-hero-uploads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}
.pk-detail-edit-dropzone-wrap {
  border: 2px dashed #cbd5e1;
  border-radius: 0.5rem;
  padding: 1.25rem 1rem;
  text-align: center;
  font-size: 0.78rem;
  color: #94a3b8;
  transition: border-color 0.2s, background 0.2s;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  position: relative;
}
.pk-detail-edit-dropzone-wrap:hover {
  border-color: var(--pk-brand, #4a4ef0);
  background: rgba(var(--pk-brand-rgb, 74, 78, 240), 0.04);
}
.pk-detail-edit-dropzone-wrap:hover i {
  color: var(--pk-brand, #4a4ef0);
}
.pk-detail-edit-dropzone-wrap:hover span {
  color: #64748b;
}
.pk-detail-edit-dropzone-wrap i {
  font-size: 1.5rem;
  color: #cbd5e1;
  transition: color 0.2s;
}

/* Crop modal */
.pk-detail-crop-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pk-detail-crop-modal {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 720px;
  width: 90%;
  overflow: hidden;
}
.pk-detail-crop-container {
  width: 100%;
  max-height: 60vh;
  overflow: hidden;
  background: #1e293b;
}
.pk-detail-crop-container img {
  display: block;
  max-width: 100%;
}
.pk-detail-crop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-top: 1px solid #e2e8f0;
}
.pk-detail-crop-tools {
  display: flex;
  gap: 0.25rem;
}
.pk-detail-crop-tool-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: #f1f5f9;
  border-radius: 0.4rem;
  color: #475569;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pk-detail-crop-tool-btn:hover {
  background: #e2e8f0;
  color: #1e293b;
}
.pk-detail-crop-actions {
  display: flex;
  gap: 0.5rem;
}
.pk-detail-crop-btn-cancel {
  padding: 0.4rem 1rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 0.4rem;
  color: #64748b;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.15s;
}
.pk-detail-crop-btn-cancel:hover {
  background: #f8fafc;
}
.pk-detail-crop-btn-save {
  padding: 0.4rem 1rem;
  border: none;
  background: var(--pk-brand, #4a4ef0);
  border-radius: 0.4rem;
  color: #fff;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.15s;
}
.pk-detail-crop-btn-save:hover {
  background: color-mix(in srgb, var(--pk-brand, #4a4ef0), black 15%);
}
.pk-detail-crop-btn-save:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Audit assignment box */
.pk-detail-edit-assign {
  display: none;
  border: 2px dashed #cbd5e1;
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
}
.pk-detail-edit-mode .pk-detail-edit-assign {
  display: block;
}
.pk-detail-edit-assign-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(var(--pk-brand-rgb, 74, 78, 240), 0.08);
  color: var(--pk-brand, #4a4ef0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin: 0 auto 1rem;
}
.pk-detail-edit-assign-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.35rem;
}
.pk-detail-edit-assign-current {
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 1rem;
}
.pk-detail-edit-assign-current strong {
  color: #1e293b;
}
.pk-detail-edit-assign-form {
  max-width: 480px;
  margin: 0 auto;
}
.pk-detail-edit-assign-form .select2-container {
  flex: 1;
  min-width: 0;
}
.pk-detail-edit-assign-form .select2-container .select2-selection--single {
  height: 36px;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  background: #fff;
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
  color: #1e293b;
}
.pk-detail-edit-assign-form .select2-container .select2-selection--single .select2-selection__rendered {
  line-height: 24px;
  color: #1e293b;
  padding-left: 0;
}
.pk-detail-edit-assign-form .select2-container .select2-selection--single .select2-selection__placeholder {
  color: #94a3b8;
}
.pk-detail-edit-assign-form .select2-container .select2-selection--single .select2-selection__arrow {
  height: 34px;
}
.pk-detail-edit-assign-form .select2-container--focus .select2-selection--single {
  border-color: var(--pk-brand, #4a4ef0);
  outline: none;
}
.pk-detail-edit-assign-form button {
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--pk-brand, #4a4ef0);
  color: #fff;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.pk-detail-edit-assign-form button:hover {
  background: color-mix(in srgb, var(--pk-brand, #4a4ef0), black 15%);
}

/* Inline contact inputs (edit mode) */
.pk-detail-edit-contact-form {
  display: none;
  width: 100%;
}
.pk-detail-edit-mode .pk-detail-edit-contact-form {
  display: block;
}
.pk-detail-edit-mode .pk-detail-contact-view {
  display: none;
}
.pk-detail-edit-contact-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid #f1f5f9;
}
.pk-detail-edit-contact-field:last-child {
  border-bottom: none;
}
.pk-detail-edit-contact-field i {
  width: 18px;
  color: #94a3b8;
  text-align: center;
  flex-shrink: 0;
}
.pk-detail-edit-contact-field input {
  flex: 1;
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  background: #fff;
  color: #1e293b;
  transition: border-color 0.2s;
}
.pk-detail-edit-contact-field input:focus {
  outline: none;
  border-color: var(--pk-brand, #4a4ef0);
  box-shadow: 0 0 0 2px rgba(var(--pk-brand-rgb, 74, 78, 240), 0.08);
}

/* Heacon contact select */
.pk-detail-edit-contact-select {
  display: none;
  width: 100%;
  margin-top: 1rem;
}
.pk-detail-edit-mode .pk-detail-edit-contact-select {
  display: block;
}
.pk-detail-edit-contact-select select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  background: #fff;
  color: #1e293b;
}
.pk-detail-edit-contact-select select:focus {
  outline: none;
  border-color: var(--pk-brand, #4a4ef0);
}
.pk-detail-edit-contact-select button {
  margin-top: 0.5rem;
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--pk-brand, #4a4ef0);
  color: #fff;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background 0.2s;
}
.pk-detail-edit-contact-select button:hover {
  background: color-mix(in srgb, var(--pk-brand, #4a4ef0), black 15%);
}

/* Danger zone */
.pk-detail-edit-danger {
  display: none;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #fee2e2;
}
.pk-detail-edit-mode .pk-detail-edit-danger {
  display: block;
}
.pk-detail-edit-danger summary {
  font-size: 0.82rem;
  font-weight: 600;
  color: #ef4444;
  cursor: pointer;
  padding: 0.5rem 0;
  list-style: none;
}
.pk-detail-edit-danger summary::before {
  content: '\f071';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  margin-right: 0.5rem;
}
.pk-detail-edit-danger-content {
  padding: 1.5rem;
  background: #fef2f2;
  border: 1px solid #fee2e2;
  border-radius: 0.5rem;
  margin-top: 0.75rem;
}
.pk-detail-edit-danger-content p {
  font-size: 0.82rem;
  color: #991b1b;
  margin: 0 0 1rem;
}
.pk-detail-edit-danger-content button {
  padding: 0.5rem 1.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background 0.2s;
}
.pk-detail-edit-danger-content button:hover {
  background: #dc2626;
}

/* FAB active state */
.pk-detail-edit-fab-active .pk-detail-admin-btn {
  background: #10b981 !important;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3) !important;
}
.pk-detail-edit-fab-active .pk-detail-admin-btn:hover {
  background: #059669 !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4) !important;
}

/* SimpleMDE editor styles */
.pk-detail-edit-mode .CodeMirror {
  border: 1px solid #e2e8f0;
  border-radius: 0 0 0.5rem 0.5rem;
  min-height: 160px;
  font-size: 0.88rem;
  color: #1e293b;
}
.pk-detail-edit-mode .editor-toolbar {
  border: 1px solid #e2e8f0;
  border-bottom: none;
  border-radius: 0.5rem 0.5rem 0 0;
  background: #f8f9fc;
  opacity: 1;
}
.pk-detail-edit-mode .editor-toolbar a {
  color: #64748b !important;
}
.pk-detail-edit-mode .editor-toolbar a:hover,
.pk-detail-edit-mode .editor-toolbar a.active {
  background: rgba(var(--pk-brand-rgb, 74, 78, 240), 0.08);
  color: var(--pk-brand, #4a4ef0) !important;
  border-color: transparent;
}
.pk-detail-edit-mode .editor-toolbar.disabled-for-preview a:not(.no-disable) {
  opacity: 0.4;
}
.pk-detail-edit-mode .editor-preview {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #334155;
  padding: 1.25rem;
}

/* Responsive edit mode */
@media (max-width: 768px) {
  .pk-detail-edit-hero-grid { grid-template-columns: 1fr; }
  .pk-detail-edit-hero-uploads { grid-template-columns: 1fr; }
  .pk-detail-edit-hero-toolbar { margin-left: 1rem; margin-right: 1rem; }
}

/* =============================================
   Audit List (.al-*) — Pills, Toolbar, Cards
   ============================================= */

/* Pill Navigation */
.al-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem 0;
}

.al-pill a {
  display: block;
  padding: 0.4rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 2rem;
  text-decoration: none;
  transition: all 0.15s ease;
}

.al-pill a:hover {
  color: #3b3fd4;
  background: #e8eafc;
}

.al-pill-active a {
  color: #fff;
  background: #3b3fd4;
}

.al-pill-active a:hover {
  color: #fff;
  background: #4f53e0;
}

.al-pill-action {
  margin-left: 0.25rem;
}

.al-pill-action a {
  color: #3b3fd4;
  border: 1px dashed #b8badf;
  background: transparent;
}

.al-pill-action a:hover {
  color: #fff;
  background: #3b3fd4;
  border-color: #3b3fd4;
}

/* Select2 in Advanced Search – match form-control fs-sm */
.lp-form .select2-container {
  width: 100% !important;
}
.lp-form .select2-container .select2-selection--single {
  height: calc(1.5em + 0.75rem + calc(var(--bs-border-width) * 2));
  border: var(--bs-border-width) solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  background: var(--bs-body-bg);
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  color: var(--bs-body-color);
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.lp-form .select2-container .select2-selection--single .select2-selection__rendered {
  line-height: 1.8;
  padding-left: 0;
  color: var(--bs-body-color);
}
.lp-form .select2-container .select2-selection--single .select2-selection__placeholder {
  color: var(--bs-secondary-color);
}
.lp-form .select2-container .select2-selection--single .select2-selection__arrow {
  height: calc(1.5em + 0.75rem);
  right: 4px;
}
.lp-form .select2-container--default.select2-container--focus .select2-selection--single,
.lp-form .select2-container--default.select2-container--open .select2-selection--single {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Toolbar */
.al-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.al-toolbar-search {
  flex: 1;
  max-width: 320px;
}

.al-toolbar-actions {
  display: flex;
  gap: 0.25rem;
}

.al-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  background: #fff;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 0.875rem;
}

.al-view-btn:hover {
  color: #3b3fd4;
  border-color: #c7d2fe;
}

.al-view-btn.al-view-active {
  color: #3b3fd4;
  background: #eef2ff;
  border-color: #c7d2fe;
}

/* Card Grid */
.al-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.al-cards-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: #94a3b8;
}

/* Card */
.al-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.al-card:hover {
  border-color: #c7d2fe;
  box-shadow: 0 2px 8px rgba(59, 63, 212, 0.08);
}

.al-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.al-card-id a {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #3b3fd4;
  text-decoration: none;
}

.al-card-id a:hover {
  text-decoration: underline;
}

.al-card-id-danger a {
  color: #dc2626;
}

.al-card-status {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  padding: 0.2rem 0.5rem;
  border-radius: 1rem;
  background: #f1f5f9;
  color: #64748b;
}

.al-status-open { background: #dbeafe; color: #1d4ed8; }
.al-status-planned { background: #fef3c7; color: #b45309; }
.al-status-scheduling { background: #fef3c7; color: #b45309; }
.al-status-fixed { background: #d1fae5; color: #047857; }
.al-status-rip { background: #dbeafe; color: #1d4ed8; }
.al-status-follow_up { background: #f1f5f9; color: #475569; }
.al-status-closed { background: #dcfce7; color: #065f46; }
.al-status-cancelled { background: #fee2e2; color: #b91c1c; }

.al-card-body {
  padding: 0.75rem 1rem;
}

.al-card-auditee {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.al-card-meta {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 0.375rem;
}

.al-card-address {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.4;
}

.al-card-footer {
  display: flex;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-top: 1px solid #f1f5f9;
}

.al-card-action {
  font-size: 0.75rem;
  font-weight: 500;
  color: #3b3fd4;
  text-decoration: none;
  cursor: pointer;
}

.al-card-action:hover {
  text-decoration: underline;
}

/* Content area */
.al-content {
  min-height: 200px;
}

/* Responsive */
@media (max-width: 576px) {
  .al-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .al-toolbar-search {
    max-width: 100%;
  }
  .al-cards {
    grid-template-columns: 1fr;
  }
}

/* ── Select2 inside modals ── */
.modal-content > .select2-container {
  z-index: 9999 !important;
}

/* Select2 styled as ame-input */
.ame-input + .select2-container .select2-selection--single {
  font-size: 0.82rem !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 0.5rem !important;
  padding: 0.45rem 0.7rem !important;
  color: #1e293b !important;
  height: auto !important;
  transition: border-color 0.15s ease !important;
}

.ame-input + .select2-container .select2-selection--single .select2-selection__rendered {
  font-size: 0.82rem !important;
  color: #1e293b !important;
  padding-left: 0 !important;
  height: auto !important;
  line-height: 1.5 !important;
}

.ame-input + .select2-container .select2-selection--single .select2-selection__placeholder {
  color: #94a3b8 !important;
}

.ame-input + .select2-container .select2-selection--single .select2-selection__arrow {
  height: 100% !important;
}

.ame-input + .select2-container--default.select2-container--focus .select2-selection--single,
.ame-input + .select2-container--default.select2-container--open .select2-selection--single {
  border-color: #4a4ef0 !important;
  box-shadow: 0 0 0 2px rgba(74, 78, 240, 0.1) !important;
}

/* ── Audit List Items (Card Style) ── */
.audit-list-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  margin-bottom: 0.4rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.audit-list-item:hover {
  border-color: #e2e8f0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.audit-list-item.lp-table-object {
  border-bottom: none;
}

.audit-list-item .lp-table-item {
  flex: none;
  font-size: 0.8rem;
  color: #475569;
  padding: 0.6rem 0.65rem;
  overflow: hidden;
  word-break: break-word;
}

.audit-list-item .lp-table-item:first-child,
.audit-list-item .lp-table-item:last-child {
  overflow: visible;
}

.audit-list-item .lp-table-item:last-child {
  margin-left: auto;
}

.audit-list-item .lp-table-item b,
.audit-list-item .lp-table-item .fw-semibold {
  color: #1e293b;
  font-weight: 600;
  font-size: 0.82rem;
}

.audit-list-item .bg-info-light {
  background: rgba(74, 78, 240, 0.08) !important;
}

.audit-list-item .text-info {
  color: #4a4ef0 !important;
  font-size: 0.72rem;
}


.audit-list-item .btn-alt-primary {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.4rem;
  color: #475569;
  font-size: 0.75rem;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.audit-list-item .btn-alt-primary:hover {
  border-color: #4a4ef0;
  color: #4a4ef0;
  background: rgba(74, 78, 240, 0.04);
}

/* Status Badges (structural) */
.al-status {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
}

/* Dataset sub-table within audit card */
.audit-list-item + .lp-table .frame {
  margin-left: 1.5rem;
  margin-bottom: 0.6rem;
  padding: 0.5rem 0.75rem;
  border-left: 3px solid #4a4ef0;
  background: #f8f9fc;
  border-radius: 0 0.4rem 0.4rem 0;
}

.audit-list-item + .lp-table .frame .lp-table-object {
  border-bottom: 1px solid #e8ebf0;
  font-size: 0.78rem;
}

.audit-list-item + .lp-table .frame .lp-table-object:last-child {
  border-bottom: none;
}

.audit-list-item + .lp-table .frame .lp-table-object .lp-table-item {
  padding: 0.4rem 0.5rem;
  color: #475569;
}

.audit-list-item + .lp-table .frame .lp-table-object .fw-bold {
  color: #334155;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.audit-list-item + .lp-table .frame .link {
  color: #4a4ef0;
  text-decoration: none;
}

.audit-list-item + .lp-table .frame .link:hover {
  text-decoration: underline;
}

.audit-list-item + .lp-table .frame .form-select {
  font-size: 0.75rem;
  padding: 0.2rem 0.4rem;
  border-radius: 0.3rem;
}

/* ── Offcanvas List Items (.oc-list-item) ── */
.oc-list-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  margin-bottom: 0.4rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.oc-list-item:hover {
  border-color: #e2e8f0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.oc-list-item.lp-table-object {
  border-bottom: none;
}

.oc-list-item .lp-table-item {
  flex: none;
  font-size: 0.8rem;
  color: #475569;
  padding: 0.6rem 0.65rem;
  overflow: hidden;
  word-break: break-word;
}

.oc-list-item .lp-table-item:first-child,
.oc-list-item .lp-table-item:last-child {
  overflow: visible;
}

.oc-list-item .lp-table-item:last-child {
  margin-left: auto;
}

.oc-list-item .lp-table-item b,
.oc-list-item .lp-table-item .fw-semibold {
  color: #1e293b;
  font-weight: 600;
  font-size: 0.82rem;
}

.oc-list-item .bg-info-light {
  background: rgba(74, 78, 240, 0.08) !important;
}

.oc-list-item .text-info {
  color: #4a4ef0 !important;
  font-size: 0.72rem;
}

/* Table Head in card layout */
.al-view-list .lp-table-head {
  margin-bottom: 0.4rem;
}

.al-view-list .lp-table-head .lp-table-object {
  border-bottom: none;
}

.al-view-list .lp-table-head .lp-table-item {
  flex: none;
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.4rem 0.65rem;
}

/* ==========================================================================
   Admin-Modals (Benutzerkonto & Klient) - Redesign
   Namespace: .adm-*  | Brand: #4a4ef0
   ========================================================================== */

.adm-modal {
  display: flex;
  flex-direction: column;
  height: 82vh;
  max-height: 760px;
  background: #fff;
}

/* ---- Profil-Header (volle Breite, dezent - analog account_me) ---- */
.adm-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  padding-right: 3.5rem;
  background: #f8f9fc;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 0.75rem 0.75rem 0 0;
  color: #1e293b;
  flex-shrink: 0;
}
.adm-header-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e2e8f0;
  background: #fff;
  flex-shrink: 0;
}
.adm-header-icon {
  width: 52px;
  height: 52px;
  border-radius: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: #eef0ff;
  color: #4a4ef0;
  flex-shrink: 0;
}
.adm-header-info { flex: 1 1 auto; min-width: 0; }
.adm-header-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 .15rem;
  letter-spacing: -.01em;
  line-height: 1.2;
  color: #1e293b;
}
.adm-header-meta {
  font-size: .8rem;
  color: #64748b;
  line-height: 1.4;
  margin: 0;
}
.adm-header-badges { margin-top: .45rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.adm-header-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .7rem;
  font-weight: 600;
  padding: .18rem .55rem;
  border-radius: 999px;
  background: #eef0ff;
  color: #4a4ef0;
}
.adm-header-id {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .7rem;
  font-weight: 600;
  padding: .18rem .5rem;
  border-radius: .4rem;
  background: #f1f5f9;
  color: #64748b;
}
.adm-header-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: .4rem;
  background: transparent;
  color: #94a3b8;
  font-size: .85rem;
  cursor: pointer;
  transition: color .15s ease, background .15s ease;
}
.adm-header-close:hover { color: #1e293b; background: rgba(0,0,0,.04); }

/* ---- Body: vertikale Sidebar-Tabs + Content ---- */
.adm-body {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.adm-tabs {
  flex: 0 0 208px;
  border-right: 1px solid #e9edf2;
  background: #fcfdfe;
  padding: .85rem .6rem;
  overflow-y: auto;
}
.adm-tab-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: .6rem;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: .84rem;
  font-weight: 500;
  padding: .55rem .7rem;
  margin-bottom: .1rem;
  border-radius: .5rem;
  cursor: pointer;
  transition: color .15s ease, background .15s ease;
}
.adm-tab-link i {
  width: 16px;
  text-align: center;
  font-size: .82rem;
  color: #94a3b8;
  transition: color .15s ease;
  flex-shrink: 0;
}
.adm-tab-link:hover {
  color: #4a4ef0;
  background: rgba(74,78,240,.07);
}
.adm-tab-link:hover i { color: #4a4ef0; }
.adm-tab-link.active {
  color: #4a4ef0;
  background: rgba(74,78,240,.09);
  font-weight: 600;
}
.adm-tab-link.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  border-radius: 0 3px 3px 0;
  background: #4a4ef0;
}
.adm-tab-link.active i { color: #4a4ef0; }

.adm-content {
  flex: 1 1 auto;
  min-width: 0;
  overflow-y: auto;
  padding: 1.5rem 1.75rem;
  background: #fff;
}

/* ---- Sektionen ---- */
.adm-section { margin-bottom: 1.75rem; }
.adm-section:last-child { margin-bottom: 0; }
.adm-section-title {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0 0 .9rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.adm-section-title i { color: #cbd5e1; }
.adm-section-desc { font-size: .82rem; color: #64748b; margin: -.5rem 0 1rem; line-height: 1.5; }

.adm-card {
  border: 1px solid #e9edf2;
  border-radius: .85rem;
  background: #fff;
  overflow: hidden;
}
.adm-card + .adm-card { margin-top: 1rem; }

/* ---- Form: Label / Value rows ---- */
.adm-field {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .7rem 1rem;
  border-bottom: 1px solid #f1f5f9;
}
.adm-field:last-child { border-bottom: none; }
.adm-field-label {
  flex: 0 0 38%;
  font-size: .82rem;
  color: #64748b;
  font-weight: 500;
}
.adm-field-control { flex: 1 1 auto; min-width: 0; }
.adm-field-control .row { margin: 0 -.35rem; }
.adm-field-control .row > [class^="col"] { padding: 0 .35rem; }

/* Stacked variant (label above) */
.adm-field-stacked { display: block; }
.adm-field-stacked .adm-field-label { display: block; margin-bottom: .4rem; }

/* ---- Inputs / Selects / Textareas ---- */
.adm-input,
.adm-select,
.adm-textarea {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: .55rem;
  background: #f8fafc;
  padding: .5rem .75rem;
  font-size: .85rem;
  color: #1e293b;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.adm-textarea { min-height: 72px; resize: vertical; }
.adm-input:focus,
.adm-select:focus,
.adm-textarea:focus {
  outline: none;
  background: #fff;
  border-color: #4a4ef0;
  box-shadow: 0 0 0 3px rgba(74,78,240,.1);
}
.adm-input:disabled,
.adm-select:disabled { background: #eef1f5; color: #94a3b8; cursor: not-allowed; }
.adm-input::placeholder { color: #94a3b8; }

/* Input with attached action button */
.adm-input-group { display: flex; gap: .5rem; align-items: center; }
.adm-input-group .adm-input,
.adm-input-group .adm-select { flex: 1 1 auto; }

/* ---- Switch ---- */
.adm-switch { display: inline-flex; align-items: center; cursor: pointer; margin: 0; }
.adm-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.adm-switch-track {
  position: relative;
  width: 38px; height: 22px;
  background: #cbd5e1;
  border-radius: 999px;
  transition: background .18s ease;
  flex-shrink: 0;
}
.adm-switch-track::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,.2);
  transition: transform .18s ease;
}
.adm-switch input:checked + .adm-switch-track { background: #4a4ef0; }
.adm-switch input:checked + .adm-switch-track::after { transform: translateX(16px); }
.adm-switch-text { font-size: .84rem; color: #475569; margin-left: .6rem; }

/* ---- Buttons ---- */
.adm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .5rem 1.1rem;
  font-size: .83rem;
  font-weight: 600;
  border: none;
  border-radius: .55rem;
  cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease, transform .1s ease, border-color .15s ease;
}
.adm-btn-primary { background: #4a4ef0; color: #fff; }
.adm-btn-primary:hover { background: #3538c8; box-shadow: 0 .35rem .9rem rgba(74,78,240,.28); color: #fff; transform: translateY(-1px); }
.adm-btn-light { background: #f1f5f9; color: #475569; }
.adm-btn-light:hover { background: #e2e8f0; color: #1e293b; }
.adm-btn-icon {
  width: 36px; height: 36px; padding: 0;
  flex-shrink: 0;
}
.adm-btn-sm { padding: .35rem .8rem; font-size: .78rem; }

/* ---- Tables ---- */
.adm-table { width: 100%; }
.adm-table-head {
  display: flex;
  padding: .5rem 1rem;
  border-bottom: 1px solid #e9edf2;
}
.adm-table-head > div {
  font-size: .7rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.adm-table-row {
  display: flex;
  align-items: center;
  padding: .65rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  font-size: .84rem;
  color: #1e293b;
}
.adm-table-row:last-child { border-bottom: none; }
.adm-table-row:hover { background: #f8f9fc; }
.adm-table-empty {
  text-align: center;
  color: #94a3b8;
  font-size: .84rem;
  padding: 2rem 1rem;
}

/* ---- Pills / Badges ---- */
.adm-pill {
  display: inline-flex;
  align-items: center;
  font-size: .72rem;
  font-weight: 600;
  padding: .2rem .65rem;
  border-radius: 999px;
  background: #eef0ff;
  color: #4a4ef0;
}
.adm-pill.pointer { cursor: pointer; transition: background .12s ease; }
.adm-pill.pointer:hover { background: #dfe1ff; }
.adm-pill-muted { background: #f1f5f9; color: #64748b; }

.adm-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

/* ---- Account/Client mini-cards used inside tabs ---- */
.adm-entity-card {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: 1rem;
  border: 1px solid #e9edf2;
  border-radius: .75rem;
  background: #f8fafc;
}
.adm-entity-icon {
  width: 40px; height: 40px;
  border-radius: .6rem;
  background: #4a4ef0;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.adm-entity-name { font-size: .9rem; font-weight: 600; color: #1e293b; }
.adm-entity-meta { font-size: .8rem; color: #64748b; line-height: 1.5; }

/* ---- Empty / helper text ---- */
.adm-hint { font-size: .8rem; color: #64748b; line-height: 1.5; }

/* ---- Dropzone inside tabs ---- */
.adm-content .dataset-cloudzone-dropzone,
.adm-content .lp-cloudzone { border-radius: .65rem; }

/* ---- Two-column form grid for wide tabs ---- */
.adm-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 767.98px) {
  .adm-grid-2 { grid-template-columns: 1fr; }
  .adm-body { flex-direction: column; }
  .adm-tabs {
    flex: 0 0 auto;
    border-right: none;
    border-bottom: 1px solid #e9edf2;
    display: flex;
    overflow-x: auto;
    padding: .5rem;
  }
  .adm-tab-link { white-space: nowrap; margin-bottom: 0; }
  .adm-field { flex-direction: column; align-items: stretch; gap: .4rem; }
  .adm-field-label { flex-basis: auto; }
}


/* ==========================================================================
   Globale Switch-Verkleinerung
   OneUI/Bootstrap .form-switch ist projektweit zu gross -> kompakter & Brand
   ========================================================================== */
.form-switch {
  padding-left: 2.6em;
  min-height: auto;
}
/* Hinweis: oneui.min.css wird NACH heacon.css geladen. Damit diese Regeln
   gewinnen, wird die Thumb-Grafik direkt per background-image !important gesetzt
   (umgeht die --bs-form-switch-bg-Variable von OneUI). */
.form-switch .form-check-input {
  width: 2.1em !important;
  height: 1.15em !important;
  margin-top: 0.12em;
  margin-left: -2.6em !important;
  border-radius: 2em;
  background-color: #cbd5e1;
  border-color: #cbd5e1;
  /* Thumb (Kreis) in Brand-Blau, damit er sich vom grauen Track abhebt. */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%234a4ef0'/%3e%3c/svg%3e") !important;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, background-position 0.18s ease;
}
.form-switch .form-check-input:focus {
  border-color: #cbd5e1;
  box-shadow: 0 0 0 3px rgba(74, 78, 240, 0.12);
  /* Thumb-Farbe auch im Fokus beibehalten. */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%234a4ef0'/%3e%3c/svg%3e") !important;
}
.form-switch .form-check-input:checked {
  background-color: #4a4ef0 !important;
  border-color: #4a4ef0 !important;
  /* Aktiver Zustand: weisser Kreis auf blauem Track. */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e") !important;
}
.form-switch .form-check-label {
  font-size: 0.85rem;
  color: #475569;
  padding-top: 0.05rem;
}


/* ==========================================================================
   Fremdanbieter-Audit-Modal (read-only, nur Admins)
   Namespace: .afm-*  | Maps-Hero + Read-only Audit-Daten
   ========================================================================== */

.afm-modal {
  display: flex;
  flex-direction: column;
  max-height: 88vh;
}

/* Map Hero */
.afm-hero {
  position: relative;
  height: 170px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 0.75rem 0.75rem 0 0;
  background: #fff;
}
.afm-hero-map {
  position: absolute;
  top: 0;
  left: 30%;
  right: 0;
  bottom: 0;
  z-index: 0;
}
.afm-hero-map iframe {
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.afm-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right, rgba(255,255,255,1) 25%, rgba(255,255,255,0.85) 55%, rgba(255,255,255,0.3) 100%);
}
.afm-hero-content {
  position: absolute;
  left: 1.5rem;
  bottom: 1.1rem;
  right: 40%;
  z-index: 2;
  color: #0f172a;
}
.afm-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #eef0ff;
  border: 1px solid #d7d9ff;
  color: #4a4ef0;
  margin-bottom: 0.5rem;
}
.afm-hero-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.15rem;
  letter-spacing: -0.01em;
  color: #0f172a;
}
.afm-hero-sub {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
}
.afm-hero-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0.5rem;
  background: rgba(255,255,255,0.85);
  color: #475569;
  box-shadow: 0 1px 3px rgba(15,23,42,0.15);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.afm-hero-close:hover {
  background: #fff;
  color: #0f172a;
}

.afm-body {
  overflow-y: auto;
  flex: 1;
}

/* Dataset-Liste */
.afm-dataset-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.afm-dataset-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid #e9edf2;
  border-radius: 0.6rem;
  background: #f8fafc;
}
.afm-dataset-id {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  flex-shrink: 0;
}
.afm-dataset-name {
  flex: 1 1 auto;
  font-size: 0.85rem;
  color: #1e293b;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* ==========================================================================
   SharePoint-Ordner-Bereich (Audit-Detail, nur Admins)
   Namespace: .sp-*  | Microsoft Look & Feel
   ========================================================================== */

.sp-box {
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(0,164,239,0.05) 0%, rgba(16,110,190,0.05) 100%);
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
}
.sp-box-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.sp-box-icon {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #e2e8f0;
}
.sp-box-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
}
.sp-box-subtitle {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 0.15rem;
}

/* Init-Zustand (noch kein Ordner) */
.sp-box-init {
  margin-top: 1rem;
}
.sp-box-desc {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.55;
  margin: 0 0 1rem;
}
.sp-box-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: #106ebe; /* SharePoint-Blau */
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}
.sp-box-btn:hover {
  background: #0d5a9c;
  box-shadow: 0 4px 12px rgba(16,110,190,0.28);
  transform: translateY(-1px);
}

/* Link-Zustand (Ordner vorhanden) */
.sp-box-linkrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.6rem;
  flex-wrap: wrap;
}
.sp-box-linkinfo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}
.sp-box-linkicon {
  color: #106ebe;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.sp-box-linktext {
  font-size: 0.85rem;
  font-weight: 500;
  color: #1e293b;
}
.sp-box-open {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #106ebe;
  background: #eaf4fc;
  border: 1px solid #c6e2f7;
  border-radius: 0.5rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.sp-box-open:hover {
  background: #106ebe;
  color: #fff;
  border-color: #106ebe;
}


/* ==========================================================================
   Auditor einladen (client_auditor) - Link + Erfolg/Passwort im Modal
   Namespace: .aud-invite-link / .aic-*
   ========================================================================== */

.aud-invite-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: -0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: #4a4ef0;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
}
.aud-invite-link:hover {
  color: #3538c8;
}
.aud-invite-link i {
  font-size: 0.78rem;
}

/* Erfolgsbereich im Einladen-Modal */
.aic-success {
  text-align: center;
  padding: 1rem 0.5rem;
}
.aic-success-icon {
  font-size: 2.5rem;
  color: #16a34a;
  margin-bottom: 0.75rem;
}
.aic-success-text {
  font-size: 0.88rem;
  color: #1e293b;
  line-height: 1.55;
  margin: 0 0 1.25rem;
}
.aic-pw-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.4rem;
}
.aic-pw-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 320px;
  margin: 0 auto;
}
.aic-pw-input {
  flex: 1 1 auto;
  height: 44px;
  border: 1px solid #e2e8f0;
  border-radius: 0.6rem;
  background: #f8fafc;
  padding: 0 0.9rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #1e293b;
  text-align: center;
}
.aic-pw-copy {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  border-radius: 0.6rem;
  background: #fff;
  color: #64748b;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.aic-pw-copy:hover {
  background: #4a4ef0;
  color: #fff;
  border-color: #4a4ef0;
}


/* ==========================================================================
   Kunde-Bereich (client_auditor) - Audit-Detail
   Namespace: .aud-cust-*  | Box mit Link zum Kundendatensatz oder Erstellen
   ========================================================================== */

.aud-cust-box {
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(74,78,240,0.04) 0%, rgba(99,102,241,0.04) 100%);
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
}
.aud-cust-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.aud-cust-icon {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef0ff;
  color: #4a4ef0;
  font-size: 1.05rem;
}
.aud-cust-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
}
.aud-cust-subtitle {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 0.15rem;
}

/* Init-Zustand (noch kein Kundendatensatz) */
.aud-cust-init {
  margin-top: 1rem;
}
.aud-cust-desc {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.55;
  margin: 0 0 1rem;
}
.aud-cust-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: #4a4ef0;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}
.aud-cust-btn:hover {
  background: #3538c8;
  box-shadow: 0 4px 12px rgba(74,78,240,0.28);
  transform: translateY(-1px);
}

/* Link-Zustand (Kundendatensatz vorhanden) */
.aud-cust-linkrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.6rem;
  flex-wrap: wrap;
}
.aud-cust-linkinfo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}
.aud-cust-linkicon {
  color: #16a34a;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.aud-cust-linktext {
  font-size: 0.85rem;
  font-weight: 500;
  color: #1e293b;
}
.aud-cust-open {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #4a4ef0;
  background: #eef0ff;
  border: 1px solid #d7d9ff;
  border-radius: 0.5rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.aud-cust-open:hover {
  background: #4a4ef0;
  color: #fff;
  border-color: #4a4ef0;
}


/* ==========================================================================
   Admin – Zahlung (Stripe)  |  Namespace: .apy-*
   Route: /admin/payment  ·  content/page/admin/payment.php
   ========================================================================== */

.apy-hero {
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}
.apy-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.apy-hero-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.35rem;
}
.apy-hero-subtitle {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin: 0;
  max-width: 640px;
}

.apy-content {
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 4rem !important; /* !important: OneUI .content (laedt nach heacon.css) ueberschreibt sonst mit padding:...1px */
}

/* Sub-Navigation (auf dunklem Hintergrund) */
.apy-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.75rem;
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.7rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  width: fit-content;
}
.apy-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  border: none;
  background: transparent;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.15s;
}
.apy-tab:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.apy-tab-active {
  color: #4a4ef0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.apy-tab-active:hover { color: #4a4ef0; background: #fff; }

/* Tab-Panels */
.apy-panel { display: none; }
.apy-panel-active { display: block; }

/* Grid */
.apy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.5rem;
  align-items: start;
}
.apy-main { display: flex; flex-direction: column; gap: 1.5rem; }
.apy-sidebar { display: flex; flex-direction: column; gap: 1.5rem; position: sticky; top: 1.5rem; }

@media (max-width: 900px) {
  .apy-grid { grid-template-columns: 1fr; }
  .apy-sidebar { position: static; }
}

/* Card */
.apy-card {
  background: #fff;
  border: 1px solid #e8ebf0;
  border-radius: 0.9rem;
  box-shadow: 0 1px 2px rgba(16,24,40,0.04);
  overflow: hidden;
}
.apy-card-info {
  background: linear-gradient(135deg, rgba(74,78,240,0.05), rgba(99,91,255,0.05));
  border-color: rgba(99,91,255,0.15);
}
.apy-card-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem 1.35rem;
  border-bottom: 1px solid #eef1f5;
}
.apy-card-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef0ff;
  color: #4a4ef0;
  font-size: 1rem;
}
.apy-card-header > div:nth-child(2) { flex: 1; min-width: 0; }
.apy-card-title { font-size: 1rem; font-weight: 700; color: #1e293b; margin: 0; }
.apy-card-desc { font-size: 0.8rem; color: #64748b; margin: 0.15rem 0 0; }
.apy-card-body { padding: 1.35rem; }
.apy-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 0.35rem;
}

/* Status-Pill */
.apy-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}
.apy-status-dot { width: 7px; height: 7px; border-radius: 50%; }
.apy-status-off { color: #b45309; background: #fef3c7; }
.apy-status-off .apy-status-dot { background: #f59e0b; }
.apy-status-on { color: #15803d; background: #dcfce7; }
.apy-status-on .apy-status-dot { background: #22c55e; }

/* Fields */
.apy-field { margin-bottom: 1.15rem; }
.apy-field:last-child { margin-bottom: 0; }
.apy-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.apy-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.4rem;
}
.apy-input-wrap { position: relative; display: flex; align-items: center; }
.apy-input {
  width: 100%;
  font-size: 0.88rem;
  color: #1e293b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.55rem;
  padding: 0.6rem 0.8rem;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.apy-input:focus {
  outline: none;
  background: #fff;
  border-color: #4a4ef0;
  box-shadow: 0 0 0 3px rgba(74,78,240,0.1);
}
.apy-textarea { resize: vertical; min-height: 70px; }
.apy-input-action {
  position: absolute;
  right: 0.4rem;
  background: none;
  border: none;
  color: #94a3b8;
  padding: 0.35rem 0.45rem;
  cursor: pointer;
  border-radius: 0.4rem;
}
.apy-input-action:hover { color: #4a4ef0; background: #eef0ff; }
.apy-hint { display: block; font-size: 0.73rem; color: #94a3b8; margin-top: 0.35rem; }

/* Segment control */
.apy-segment {
  display: inline-flex;
  background: #f1f5f9;
  border-radius: 0.6rem;
  padding: 0.25rem;
  gap: 0.25rem;
}
.apy-segment-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  padding: 0.45rem 0.9rem;
  border-radius: 0.45rem;
  cursor: pointer;
  transition: all 0.15s;
  margin: 0;
}
.apy-segment-item input { display: none; }
.apy-segment-active { background: #fff; color: #4a4ef0; box-shadow: 0 1px 3px rgba(16,24,40,0.1); }

/* Buttons */
.apy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: 0.55rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
}
.apy-btn-sm { font-size: 0.8rem; padding: 0.45rem 0.85rem; }
.apy-btn-primary { color: #fff; background: #4a4ef0; }
.apy-btn-primary:hover { background: #3538c8; box-shadow: 0 4px 12px rgba(74,78,240,0.28); transform: translateY(-1px); }
.apy-btn-ghost { color: #475569; background: #fff; border-color: #e2e8f0; }
.apy-btn-ghost:hover { background: #f8fafc; border-color: #cbd5e1; }

/* Produkt-Liste */
.apy-product-list { display: flex; flex-direction: column; gap: 0.6rem; }
.apy-product {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid #e8ebf0;
  border-radius: 0.7rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.apy-product:hover { border-color: #d7d9ff; box-shadow: 0 2px 8px rgba(74,78,240,0.08); }
.apy-product-draft { opacity: 0.75; }
.apy-product-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 0.6rem;
  display: flex; align-items: center; justify-content: center;
  background: #f1f5f9; color: #475569; font-size: 1.05rem;
}
.apy-product-info { flex: 1; min-width: 0; }
.apy-product-name { font-size: 0.9rem; font-weight: 600; color: #1e293b; }
.apy-product-meta { font-size: 0.76rem; color: #94a3b8; margin-top: 0.1rem; }
.apy-product-price { text-align: right; white-space: nowrap; }
.apy-product-amount { font-size: 0.95rem; font-weight: 700; color: #1e293b; }
.apy-product-interval { font-size: 0.75rem; color: #94a3b8; }

.apy-badge {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
  padding: 0.22rem 0.55rem; border-radius: 999px; white-space: nowrap;
}
.apy-badge-active { color: #15803d; background: #dcfce7; }
.apy-badge-draft { color: #64748b; background: #f1f5f9; }

.apy-product-actions { display: flex; gap: 0.3rem; }
.apy-icon-btn {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: none; border-radius: 0.4rem;
  color: #94a3b8; cursor: pointer; font-size: 0.8rem;
  transition: all 0.15s;
}
.apy-icon-btn:hover { color: #4a4ef0; background: #eef0ff; }
.apy-icon-btn-danger:hover { color: #dc2626; background: #fee2e2; }

/* Empty-State */
.apy-empty { text-align: center; padding: 2.5rem 1rem; color: #94a3b8; }
.apy-empty i { font-size: 2rem; margin-bottom: 0.6rem; display: block; }
.apy-empty p { font-size: 0.85rem; margin: 0; }

/* Sidebar */
.apy-side-title {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.88rem; font-weight: 700; color: #1e293b; margin: 0 0 0.6rem;
}
.apy-side-title i { color: #4a4ef0; }
.apy-side-text { font-size: 0.8rem; color: #64748b; line-height: 1.55; margin: 0 0 0.85rem; }
.apy-side-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.82rem; font-weight: 600; color: #4a4ef0; text-decoration: none;
}
.apy-side-link:hover { text-decoration: underline; }
.apy-webhook-url {
  display: flex; align-items: center; gap: 0.4rem;
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 0.5rem; padding: 0.4rem 0.5rem;
}
.apy-webhook-url code {
  flex: 1; min-width: 0; font-size: 0.72rem; color: #475569;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Modal */
.apy-modal { border: none; border-radius: 0.9rem; overflow: hidden; }
.apy-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.35rem; border-bottom: 1px solid #eef1f5;
}
.apy-modal-title { font-size: 1.05rem; font-weight: 700; color: #1e293b; margin: 0; }
.apy-modal-close {
  background: none; border: none; color: #94a3b8; font-size: 1.05rem; cursor: pointer;
  width: 32px; height: 32px; border-radius: 0.4rem;
}
.apy-modal-close:hover { color: #334155; background: #f1f5f9; }
.apy-modal-body { padding: 1.35rem; }
.apy-modal-footer {
  display: flex; justify-content: flex-end; gap: 0.6rem;
  padding: 1.1rem 1.35rem; border-top: 1px solid #eef1f5; background: #f8fafc;
}
