/**
* Template Name: NiceAdmin
* Template URL: https://bootstrapmade.com/nice-admin-bootstrap-admin-html-template/
* Updated: Apr 20 2024 with Bootstrap v5.3.3
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
:root {
  scroll-behavior: smooth;
  --color-primary: #f68f66;
  --color-primary-strong: #ea7751;
  --color-primary-soft: #f9ab8d;
  --color-secondary: #7bbcaf;
  --color-secondary-soft: #9bcec3;
  --color-accent: #e5b54a;
  --color-background: #f4f2e6;
  --color-surface: #fffaf2;
  --color-card: #fdf8ef;
  --color-text: #373a3f;
  --color-muted: #80858e;
  --font-heading: sans-serif;   /* Klassisch: System-Default (wie vor dem Merge) */
  --font-body: sans-serif;      /* Brand überschreibt beide -> Raleway/Quicksand */
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-soft: 0 14px 34px rgba(46, 48, 53, 0.1);
}

body {
  font-family: var(--font-body);
  background: var(--color-background);
  color: var(--color-text);
  font-weight: 400;
  line-height: 1.6;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.22s ease, transform 0.22s ease;
}

a:hover {
  color: var(--color-primary-soft);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-text);
  font-weight: 650;
  letter-spacing: 0.01em;
}

/*--------------------------------------------------------------
# Main
--------------------------------------------------------------*/
#main {
  margin-top: 60px;
  padding: 20px 30px;
  transition: all 0.3s;
}

@media (max-width: 1199px) {
  #main {
    padding: 20px;
  }
}

/*--------------------------------------------------------------
# Page Title
--------------------------------------------------------------*/
.pagetitle {
  margin-bottom: 10px;
}

.pagetitle h1 {
  font-size: 24px;
  margin-bottom: 0;
  font-weight: 600;
  color: var(--color-text);
}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background: linear-gradient(155deg, var(--color-primary) 0%, var(--color-primary-strong) 100%);
  width: 46px;
  height: 46px;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(246, 143, 102, 0.32);
  transition: all 0.24s ease;
}

.back-to-top i {
  font-size: 24px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  background: var(--color-primary-soft);
  transform: translateY(-3px);
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Override some default Bootstrap stylings
--------------------------------------------------------------*/
/* Dropdown menus */
.dropdown-menu {
  border-radius: var(--radius-md);
  padding: 10px 0;
  animation-name: dropdown-animate;
  animation-duration: 0.2s;
  animation-fill-mode: both;
  border: 0;
  box-shadow: 0 12px 28px rgba(46, 48, 53, 0.1);
  background: linear-gradient(180deg, #fffdf8 0%, var(--color-surface) 100%);
}

.dropdown-menu .dropdown-header,
.dropdown-menu .dropdown-footer {
  text-align: center;
  font-size: 15px;
  padding: 10px 25px;
}

.dropdown-menu .dropdown-footer a {
  color: var(--color-text);
  text-decoration: underline;
}

.dropdown-menu .dropdown-footer a:hover {
  text-decoration: none;
}

.dropdown-menu .dropdown-divider {
  color: rgba(61, 60, 59, 0.1);
  margin: 0;
}

.dropdown-menu .dropdown-item {
  font-size: 14px;
  padding: 10px 15px;
  transition: 0.3s;
}

.dropdown-menu .dropdown-item i {
  margin-right: 10px;
  font-size: 18px;
  line-height: 0;
}

.dropdown-menu .dropdown-item:hover {
  background-color: rgba(255, 132, 88, 0.08);
}

@media (min-width: 768px) {
  .dropdown-menu-arrow::before {
    content: "";
    width: 13px;
    height: 13px;
    background: #fff;
    position: absolute;
    top: -7px;
    right: 20px;
    transform: rotate(45deg);
    border-top: 1px solid rgba(61, 60, 59, 0.08);
    border-left: 1px solid rgba(61, 60, 59, 0.08);
  }
}

@keyframes dropdown-animate {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }

  0% {
    opacity: 0;
  }
}

/* Light Backgrounds */
.bg-primary-light {
  background-color: rgba(255, 132, 88, 0.15);
  border-color: rgba(255, 132, 88, 0.25);
}

.bg-secondary-light {
  background-color: rgba(128, 194, 182, 0.2);
  border-color: rgba(128, 194, 182, 0.32);
}

.bg-success-light {
  background-color: rgba(237, 176, 33, 0.18);
  border-color: rgba(237, 176, 33, 0.28);
}

.bg-danger-light {
  background-color: rgba(255, 132, 88, 0.08);
  border-color: rgba(255, 132, 88, 0.18);
}

.bg-warning-light {
  background-color: rgba(237, 176, 33, 0.12);
  border-color: rgba(237, 176, 33, 0.22);
}

.bg-info-light {
  background-color: rgba(128, 194, 182, 0.18);
  border-color: rgba(128, 194, 182, 0.3);
}

.bg-dark-light {
  background-color: rgba(61, 60, 59, 0.08);
  border-color: rgba(61, 60, 59, 0.18);
}

/* Buttons */
.btn {
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.btn:focus {
  box-shadow: 0 0 0 0.2rem rgba(123, 188, 175, 0.32);
}

.btn-primary {
  background: linear-gradient(150deg, var(--color-primary) 0%, var(--color-primary-strong) 100%);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 10px 22px rgba(246, 143, 102, 0.28);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(150deg, var(--color-primary-strong) 0%, #de6844 100%);
  border-color: var(--color-primary-strong);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(234, 119, 81, 0.32);
}

.btn-secondary {
  background: linear-gradient(150deg, var(--color-secondary) 0%, #6eaea2 100%);
  border-color: var(--color-secondary);
  color: #0f3b36;
  box-shadow: 0 10px 22px rgba(123, 188, 175, 0.28);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: linear-gradient(150deg, var(--color-secondary-soft) 0%, var(--color-secondary) 100%);
  border-color: var(--color-secondary-soft);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(123, 188, 175, 0.32);
}

.btn-outline-primary {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--color-primary);
  color: #fff;
}

.btn-link {
  color: var(--color-primary);
  font-weight: 600;
}

.btn-link:hover,
.btn-link:focus {
  color: var(--color-primary-strong);
}

.form-control,
.form-select,
.form-floating>.form-control,
.input-group-text {
  border-radius: var(--radius-md);
  border: 1px solid rgba(61, 60, 59, 0.18);
  background-color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-body);
  color: var(--color-text);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(123, 188, 175, 0.18);
}

.form-label {
  font-family: var(--font-heading);
  color: var(--color-text);
  font-weight: 600;
}

.modal-content {
  border-radius: var(--radius-lg);
  border: none;
  background-color: var(--color-surface);
  box-shadow: var(--shadow-soft);
  color: var(--color-text);
}

.modal-header,
.modal-footer {
  border-color: rgba(61, 60, 59, 0.08);
}

.modal-header .modal-title {
  font-family: var(--font-heading);
  font-weight: 600;
}

.modal-header .btn-close {
  filter: invert(40%);
}

/* Card */
.card {
  margin-bottom: 30px;
  border: none;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fffcf7 0%, var(--color-card) 100%);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
}

.card-header,
.card-footer {
  border-color: transparent;
  background-color: transparent;
  color: var(--color-muted);
  padding: 15px;
}

.card-title {
  padding: 20px 0 15px 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--color-text);
  font-family: var(--font-heading);
}

.card-title span {
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 400;
}

.card-body {
  /* Allseitiges Padding inkl. oben — so sitzt Karteninhalt nie bündig an der
     oberen Kante, auch wenn die Karte nicht mit einem .card-title beginnt
     (z. B. Aufgaben-, Mitarbeiter-, Kurzlink-Liste). */
  padding: 24px;
}

/* Ein führender .card-title brachte historisch sein eigenes oberes Padding
   mit. Da .card-body jetzt immer oben Abstand liefert, hier neutralisieren,
   damit der Abstand nicht doppelt wird. */
.card-body > .card-title:first-child {
  padding-top: 0;
}

.card-img-overlay {
  background-color: rgba(255, 255, 255, 0.6);
}

/* Alerts */
.alert-heading {
  font-weight: 500;
  font-family: var(--font-heading);
  font-size: 20px;
}

.alert {
  border-radius: var(--radius-md);
  border: none;
  box-shadow: 0 12px 28px rgba(61, 60, 59, 0.08);
  font-family: var(--font-body);
}

.alert-primary {
  background-color: rgba(255, 132, 88, 0.15);
  color: var(--color-primary);
}

.alert-success {
  background-color: rgba(128, 194, 182, 0.18);
  color: #0f3b36;
}

.alert-warning {
  background-color: rgba(237, 176, 33, 0.2);
  color: #6a4c06;
}

.alert-danger {
  background-color: rgba(255, 132, 88, 0.2);
  color: var(--color-primary-strong);
}

/* Close Button */
.btn-close {
  background-size: 25%;
}

.btn-close:focus {
  outline: 0;
  box-shadow: none;
}

/* Accordion */
.accordion-item {
  border: 1px solid rgba(61, 60, 59, 0.1);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.accordion-button:focus {
  outline: 0;
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  color: var(--color-text);
  background-color: rgba(128, 194, 182, 0.18);
}

.accordion-flush .accordion-button {
  padding: 15px 0;
  background: none;
  border: 0;
}

.accordion-flush .accordion-button:not(.collapsed) {
  box-shadow: none;
  color: var(--color-primary);
}

.accordion-flush .accordion-body {
  padding: 0 0 15px 0;
  color: var(--color-text);
  font-size: 15px;
}

/* Breadcrumbs */
.breadcrumb {
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--color-muted);
  font-weight: 600;
}

.breadcrumb a {
  color: var(--color-muted);
  transition: 0.3s;
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb .breadcrumb-item::before {
  color: var(--color-muted);
}

.breadcrumb .active {
  color: var(--color-text);
  font-weight: 600;
}

/* Bordered Tabs */
.nav-tabs-bordered {
  border-bottom: 2px solid rgba(61, 60, 59, 0.1);
}

.nav-tabs-bordered .nav-link {
  margin-bottom: -2px;
  border: none;
  color: var(--color-muted);
}

.nav-tabs-bordered .nav-link:hover,
.nav-tabs-bordered .nav-link:focus {
  color: var(--color-primary);
}

.nav-tabs-bordered .nav-link.active {
  background-color: var(--color-surface);
  color: var(--color-text);
  border-bottom: 2px solid var(--color-primary);
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.logo {
  line-height: 1;
}

@media (min-width: 1200px) {
  .logo {
    width: 280px;
  }
}

.logo img {
  max-height: 26px;
  margin-right: 6px;
}

.logo span {
  font-size: 26px;
  font-weight: 700;
  color: var(--color-text);
  font-family: var(--font-heading);
}

.header {
  transition: all 0.5s;
  z-index: 997;
  height: 60px;
  box-shadow: var(--shadow-soft);
  background: linear-gradient(180deg, rgba(255, 251, 244, 0.94) 0%, rgba(255, 248, 238, 0.9) 100%);
  padding-left: 20px;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(61, 60, 59, 0.08);
  /* Toggle Sidebar Button */
  /* Search Bar */
}

.header .toggle-sidebar-btn {
  font-size: 32px;
  padding-left: 10px;
  cursor: pointer;
  color: var(--color-primary-strong);
  transition: color 0.2s ease;
}

.header .toggle-sidebar-btn:hover {
  color: var(--color-primary);
}

.header .search-bar {
  min-width: 360px;
  padding: 0 20px;
}

@media (max-width: 1199px) {
  .header .search-bar {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    padding: 20px;
    box-shadow: var(--shadow-soft);
    background: var(--color-surface);
    z-index: 9999;
    transition: 0.3s;
    visibility: hidden;
    opacity: 0;
  }

  .header .search-bar-show {
    top: 60px;
    visibility: visible;
    opacity: 1;
  }
}

.header .search-form {
  width: 100%;
}

.header .search-form input {
  border: 0;
  font-size: 14px;
  color: var(--color-text);
  border: 1px solid rgba(61, 60, 59, 0.18);
  padding: 8px 38px 8px 14px;
  border-radius: var(--radius-md);
  transition: 0.3s;
  width: 100%;
}

.header .search-form input:focus,
.header .search-form input:hover {
  outline: none;
  box-shadow: 0 0 0 3px rgba(123, 188, 175, 0.16);
  border: 1px solid rgba(123, 188, 175, 0.36);
}

.header .search-form button {
  border: 0;
  padding: 0;
  margin-left: -30px;
  background: none;
}

.header .search-form button i {
  color: var(--color-muted);
}

/*--------------------------------------------------------------
# Header Nav
--------------------------------------------------------------*/
.header-nav ul {
  list-style: none;
}

.header-nav>ul {
  margin: 0;
  padding: 0;
}

.header-nav .nav-icon {
  font-size: 22px;
  color: var(--color-primary-strong);
  margin-right: 25px;
  position: relative;
}

.header-nav .nav-profile {
  color: var(--color-primary-strong);
}

.header-nav .nav-profile img {
  max-height: 36px;
}

/* Avatar oben rechts: Google-Profilbild aus Zitadel oder Standard-Profilbild.
   Kantenlaenge kommt als --user-avatar-size aus common/partials/user_avatar.html. */
.user-avatar {
  --user-avatar-size: 36px;
  width: var(--user-avatar-size);
  height: var(--user-avatar-size);
  flex: 0 0 auto;
}

img.user-avatar {
  object-fit: cover;
  background-color: var(--color-surface);
}

.header-nav .nav-profile span {
  font-size: 14px;
  font-weight: 600;
}

.header-nav .badge-number {
  position: absolute;
  inset: -2px -5px auto auto;
  font-weight: normal;
  font-size: 12px;
  padding: 3px 6px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 999px;
}

.header-nav .notifications {
  inset: 8px -15px auto auto !important;
}

.header-nav .notifications .notification-item {
  display: flex;
  align-items: center;
  padding: 15px 10px;
  transition: 0.3s;
}

.header-nav .notifications .notification-item i {
  margin: 0 20px 0 10px;
  font-size: 24px;
  color: var(--color-primary);
}

.header-nav .notifications .notification-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
}

.header-nav .notifications .notification-item p {
  font-size: 13px;
  margin-bottom: 3px;
  color: var(--color-muted);
}

.header-nav .notifications .notification-item:hover {
  background-color: rgba(255, 132, 88, 0.1);
}

.header-nav .messages {
  inset: 8px -15px auto auto !important;
}

.header-nav .messages .message-item {
  padding: 15px 10px;
  transition: 0.3s;
}

.header-nav .messages .message-item a {
  display: flex;
}

.header-nav .messages .message-item img {
  margin: 0 20px 0 10px;
  max-height: 40px;
}

.header-nav .messages .message-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--color-primary);
}

.header-nav .messages .message-item p {
  font-size: 13px;
  margin-bottom: 3px;
  color: var(--color-muted);
}

.header-nav .messages .message-item:hover {
  background-color: rgba(255, 132, 88, 0.1);
}

.header-nav .profile {
  min-width: 240px;
  padding-bottom: 0;
  top: 8px !important;
}

.header-nav .profile .dropdown-header h6 {
  font-size: 18px;
  margin-bottom: 0;
  font-weight: 600;
  color: var(--color-primary);
}

.header-nav .profile .dropdown-header span {
  font-size: 14px;
}

.header-nav .profile .dropdown-item {
  font-size: 14px;
  padding: 10px 15px;
  transition: 0.3s;
}

.header-nav .profile .dropdown-item i {
  margin-right: 10px;
  font-size: 18px;
  line-height: 0;
}

.header-nav .profile .dropdown-item:hover {
  background-color: rgba(255, 132, 88, 0.1);
}

/*--------------------------------------------------------------
# Sidebar
--------------------------------------------------------------*/
.sidebar {
  position: fixed;
  top: 60px;
  left: 0;
  bottom: 0;
  width: 300px;
  z-index: 996;
  transition: all 0.3s;
  padding: 20px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
  box-shadow: 8px 0 28px rgba(46, 48, 53, 0.14);
  background: linear-gradient(180deg, #81c2b6 0%, #74b4a8 100%);
  color: #ffffff;
}

@media (max-width: 1199px) {
  .sidebar {
    left: -300px;
  }
}

.sidebar::-webkit-scrollbar {
  width: 5px;
  height: 8px;
  background-color: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.35);
}

@media (min-width: 1200px) {

  #main,
  #footer {
    margin-left: 300px;
  }
}

@media (max-width: 1199px) {
  .toggle-sidebar .sidebar {
    left: 0;
  }
}

@media (min-width: 1200px) {

  .toggle-sidebar #main,
  .toggle-sidebar #footer {
    margin-left: 0;
  }

  .toggle-sidebar .sidebar {
    left: -300px;
  }
}

.sidebar-nav {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-nav li {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-nav .nav-item {
  margin-bottom: 5px;
}

.sidebar-nav .nav-heading {
  font-size: 11px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  margin: 10px 0 5px 15px;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  transition: 0.24s ease;
  background: rgba(255, 255, 255, 0.12);
  padding: 12px 18px;
  border-radius: var(--radius-md);
}

.sidebar-nav .nav-link i {
  font-size: 16px;
  margin-right: 10px;
  color: #ffffff;
}

.sidebar-nav .nav-link.active,
.sidebar-nav .nav-link.collapsed {
  color: rgba(255, 255, 255, 0.85);
  background: transparent;
}

.sidebar-nav .nav-link.active i,
.sidebar-nav .nav-link.collapsed i {
  color: rgba(255, 255, 255, 0.75);
}

.sidebar-nav .nav-link.active {
  background: linear-gradient(150deg, var(--color-primary) 0%, var(--color-primary-strong) 100%);
  color: var(--color-background);
  box-shadow: 0 10px 22px rgba(234, 119, 81, 0.3);
}

.sidebar-nav .nav-link.active i {
  color: var(--color-background);
}

.sidebar-nav .nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
}

.sidebar-nav .nav-link:hover i {
  color: #ffffff;
}

.sidebar-nav .nav-link .bi-chevron-down {
  margin-right: 0;
  transition: transform 0.2s ease-in-out;
}

.sidebar-nav .nav-link:not(.collapsed) .bi-chevron-down {
  transform: rotate(180deg);
}

.sidebar-nav .nav-link:not(.collapsed) {
  background: linear-gradient(150deg, var(--color-primary) 0%, var(--color-primary-strong) 100%);
  color: var(--color-background);
  box-shadow: 0 10px 22px rgba(234, 119, 81, 0.3);
}

.sidebar-nav .nav-link:not(.collapsed) i {
  color: var(--color-background);
}

.sidebar-nav .nav-content {
  padding: 5px 0 0 0;
  margin: 0;
  list-style: none;
}

.sidebar-nav .nav-content a {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  transition: 0.3s;
  padding: 10px 0 10px 40px;
}

.sidebar-nav .nav-content a i {
  font-size: 6px;
  margin-right: 8px;
  line-height: 0;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
}

.sidebar-nav .nav-content a:hover,
.sidebar-nav .nav-content a.active {
  color: var(--color-primary);
}

.sidebar-nav .nav-content a.active i {
  background-color: var(--color-primary);
}

/* Ordner-Untereinträge: wie normale nav-links (echtes Icon, oranger Aktiv-
   Zustand, Hover), nur etwas kleiner und unter dem Ordner eingerückt.
   Überschreibt die NiceAdmin-".nav-content a"-Punkt-Optik oben. */
.sidebar-nav .nav-content .nav-item {
  margin-bottom: 4px;
}

.sidebar-nav .nav-content .nav-link-sub {
  font-size: 14px;
  padding: 9px 14px;
  margin-left: 22px;
}

.sidebar-nav .nav-content .nav-link-sub i {
  font-size: 14px;
  margin-right: 9px;
  line-height: normal;
  border-radius: 0;
  background: transparent;
}

.sidebar-nav .nav-content .nav-link-sub.active,
.sidebar-nav .nav-content .nav-link-sub.active i {
  color: var(--color-background);
}

/* NiceAdmin malt sonst per ".nav-content a.active i" (höhere Spezifität als der
   Reset oben) einen orangenen Punkt-Hintergrund hinter das aktive Icon → hier
   gezielt mit höherer Spezifität (.nav-link-sub.active i) wieder entfernen. */
.sidebar-nav .nav-content .nav-link-sub.active i {
  background: transparent;
}

.sidebar-nav .nav-content .nav-link-sub:hover,
.sidebar-nav .nav-content .nav-link-sub:hover i {
  color: #ffffff;
}

/* Icon-Picker im Account-Settings-Modal (Ordner-Icon).
   WICHTIG: display NICHT inline setzen — sonst überschreibt es Bootstraps
   display:none und das Menü ist dauerhaft offen. Grid nur, wenn Bootstrap
   .show setzt; sonst greift das normale .dropdown-menu (display:none). */
.sb-icon-menu {
  min-width: auto;
}

.sb-icon-menu.show {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
}

/*--------------------------------------------------------------
# Dashboard
--------------------------------------------------------------*/
/* Filter dropdown */
.dashboard .filter {
  position: absolute;
  right: 0px;
  top: 15px;
}

.dashboard .filter .icon {
  color: var(--color-muted);
  padding-right: 20px;
  padding-bottom: 5px;
  transition: 0.3s;
  font-size: 16px;
}

.dashboard .filter .icon:hover,
.dashboard .filter .icon:focus {
  color: var(--color-primary);
}

.dashboard .filter .dropdown-header {
  padding: 8px 15px;
}

.dashboard .filter .dropdown-header h6 {
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--color-muted);
  margin-bottom: 0;
  padding: 0;
}

.dashboard .filter .dropdown-item {
  padding: 8px 15px;
}

/* Info Cards */
.dashboard .info-card {
  padding-bottom: 10px;
}

.dashboard .info-card h6 {
  font-size: 28px;
  color: var(--color-text);
  font-weight: 700;
  margin: 0;
  padding: 0;
}

.dashboard .card-icon {
  font-size: 32px;
  line-height: 0;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  flex-grow: 0;
}

.dashboard .sales-card .card-icon {
  color: var(--color-primary);
  background: rgba(255, 132, 88, 0.12);
}

.dashboard .revenue-card .card-icon {
  color: var(--color-accent);
  background: rgba(237, 176, 33, 0.18);
}

.dashboard .customers-card .card-icon {
  color: var(--color-secondary);
  background: rgba(128, 194, 182, 0.24);
}

/* Activity */
.dashboard .activity {
  font-size: 14px;
}

.dashboard .activity .activity-item .activite-label {
  color: var(--color-muted);
  position: relative;
  flex-shrink: 0;
  flex-grow: 0;
  min-width: 64px;
}

.dashboard .activity .activity-item .activite-label::before {
  content: "";
  position: absolute;
  right: -11px;
  width: 4px;
  top: 0;
  bottom: 0;
  background-color: rgba(255, 132, 88, 0.25);
}

.dashboard .activity .activity-item .activity-badge {
  margin-top: 3px;
  z-index: 1;
  font-size: 11px;
  line-height: 0;
  border-radius: 50%;
  flex-shrink: 0;
  border: 3px solid #fff;
  flex-grow: 0;
}

.dashboard .activity .activity-item .activity-content {
  padding-left: 10px;
  padding-bottom: 20px;
}

.dashboard .activity .activity-item:first-child .activite-label::before {
  top: 5px;
}

.dashboard .activity .activity-item:last-child .activity-content {
  padding-bottom: 0;
}

/* News & Updates */
.dashboard .news .post-item+.post-item {
  margin-top: 15px;
}

.dashboard .news img {
  width: 80px;
  float: left;
  border-radius: 5px;
}

.dashboard .news h4 {
  font-size: 15px;
  margin-left: 95px;
  font-weight: bold;
  margin-bottom: 5px;
}

.dashboard .news h4 a {
  color: var(--color-text);
  transition: 0.3s;
}

.dashboard .news h4 a:hover {
  color: var(--color-primary);
}

.dashboard .news p {
  font-size: 14px;
  color: var(--color-muted);
  margin-left: 95px;
}

/* Recent Sales */
.dashboard .recent-sales {
  font-size: 14px;
}

.dashboard .recent-sales .table thead {
  background: rgba(255, 132, 88, 0.12);
}

.dashboard .recent-sales .table thead th {
  border: 0;
}

.dashboard .recent-sales .dataTable-top {
  padding: 0 0 10px 0;
}

.dashboard .recent-sales .dataTable-bottom {
  padding: 10px 0 0 0;
}

/* Top Selling */
.dashboard .top-selling {
  font-size: 14px;
}

.dashboard .top-selling .table thead {
  background: rgba(255, 132, 88, 0.12);
}

.dashboard .top-selling .table thead th {
  border: 0;
}

.dashboard .top-selling .table tbody td {
  vertical-align: middle;
}

.table {
  color: var(--color-text);
  border-color: rgba(61, 60, 59, 0.12);
  background-color: transparent;
}

.table thead {
  background-color: rgba(246, 143, 102, 0.1);
  color: var(--color-primary);
}

.table-striped>tbody>tr:nth-of-type(odd)>* {
  background-color: rgba(128, 194, 182, 0.12);
}

.table-hover>tbody>tr:hover>* {
  background-color: rgba(255, 132, 88, 0.12);
}

.dataTable-top .dataTable-search input {
  border-radius: var(--radius-md);
  border: 1px solid rgba(61, 60, 59, 0.18);
  font-family: var(--font-body);
}

.dataTable-top .dataTable-search input:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(128, 194, 182, 0.2);
}

.dashboard .top-selling img {
  border-radius: 5px;
  max-width: 60px;
}

/*--------------------------------------------------------------
# Icons list page
--------------------------------------------------------------*/
.iconslist {
  display: grid;
  max-width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  padding-top: 15px;
}

.iconslist .icon {
  background-color: #fffdf8;
  border-radius: 0.7rem;
  text-align: center;
  color: var(--color-text);
  padding: 15px 0;
}

.iconslist i {
  margin: 0.25rem;
  font-size: 2.5rem;
}

.iconslist .label {
  font-family: var(--bs-font-monospace);
  display: inline-block;
  width: 100%;
  overflow: hidden;
  padding: 0.25rem;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--color-muted);
}

/*--------------------------------------------------------------
# Profie Page
--------------------------------------------------------------*/
.profile .profile-card img {
  max-width: 120px;
}

.profile .profile-card h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text);
  margin: 10px 0 0 0;
}

.profile .profile-card h3 {
  font-size: 18px;
}

.profile .profile-card .social-links a {
  font-size: 20px;
  display: inline-block;
  color: rgba(255, 132, 88, 0.55);
  line-height: 0;
  margin-right: 10px;
  transition: 0.3s;
}

.profile .profile-card .social-links a:hover {
  color: var(--color-primary);
}

.profile .profile-overview .row {
  margin-bottom: 20px;
  font-size: 15px;
}

.profile .profile-overview .card-title {
  color: var(--color-text);
}

.profile .profile-overview .label {
  font-weight: 600;
  color: var(--color-muted);
}

.profile .profile-edit label {
  font-weight: 600;
  color: var(--color-muted);
}

.profile .profile-edit img {
  max-width: 120px;
}

/*--------------------------------------------------------------
# F.A.Q Page
--------------------------------------------------------------*/
.faq .basic h6 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary);
}

.faq .basic p {
  color: var(--color-muted);
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact .info-box {
  padding: 28px 30px;
}

.contact .info-box i {
  font-size: 38px;
  line-height: 0;
  color: var(--color-primary);
}

.contact .info-box h3 {
  font-size: 20px;
  color: var(--color-text);
  font-weight: 700;
  margin: 20px 0 10px 0;
}

.contact .info-box p {
  padding: 0;
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}

.contact .php-email-form .error-message {
  display: none;
  color: #fff;
  background: var(--color-primary-strong);
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
  border-radius: var(--radius-md);
}

.contact .php-email-form .sent-message {
  display: none;
  color: #0f3b36;
  background: rgba(128, 194, 182, 0.3);
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
  border-radius: var(--radius-md);
}

.contact .php-email-form .loading {
  display: none;
  background: rgba(255, 255, 255, 0.82);
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  border-radius: var(--radius-md);
}

.contact .php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--color-secondary);
  border-top-color: rgba(255, 255, 255, 0.6);
  animation: animate-loading 1s linear infinite;
}

.contact .php-email-form input,
.contact .php-email-form textarea {
  border-radius: var(--radius-md);
  box-shadow: none;
  font-size: 14px;
  border: 1px solid rgba(61, 60, 59, 0.18);
  font-family: var(--font-body);
}

.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(123, 188, 175, 0.16);
}

.contact .php-email-form input {
  padding: 10px 15px;
}

.contact .php-email-form textarea {
  padding: 12px 15px;
}

.contact .php-email-form button[type=submit] {
  background: linear-gradient(150deg, var(--color-primary) 0%, var(--color-primary-strong) 100%);
  border: 0;
  padding: 10px 30px;
  color: #fff;
  transition: 0.4s;
  border-radius: var(--radius-md);
}

.contact .php-email-form button[type=submit]:hover {
  background: linear-gradient(150deg, var(--color-primary-strong) 0%, #de6844 100%);
}

@keyframes animate-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Error 404
--------------------------------------------------------------*/
.error-404 {
  padding: 30px;
}

.error-404 h1 {
  font-size: 180px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0;
  line-height: 150px;
}

.error-404 h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 30px;
}

.error-404 .btn {
  background: linear-gradient(150deg, var(--color-primary) 0%, var(--color-primary-strong) 100%);
  color: #fff;
  padding: 10px 32px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 22px rgba(246, 143, 102, 0.26);
}

.error-404 .btn:hover {
  background: linear-gradient(150deg, var(--color-primary-strong) 0%, #de6844 100%);
}

@media (min-width: 992px) {
  .error-404 img {
    max-width: 50%;
  }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  padding: 20px 0;
  font-size: 14px;
  transition: all 0.3s;
  border-top: 1px solid rgba(61, 60, 59, 0.08);
  background-color: transparent;
  color: var(--color-muted);
}

.footer .copyright {
  text-align: center;
  color: var(--color-text);
}

.footer .credits {
  padding-top: 5px;
  text-align: center;
  font-size: 13px;
  color: var(--color-muted);
}
/*--------------------------------------------------------------
# Apple login card
--------------------------------------------------------------*/
.apple-login-card {
  background: linear-gradient(180deg, #fffefb 0%, var(--color-surface) 100%);
  border: none;
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-lg);
}

.apple-login-card .card-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
}

.apple-login-card .hint {
  color: var(--color-muted);
  font-size: 0.95rem;
}

.btn-apple {
  background: linear-gradient(150deg, #161616 0%, #080808 100%);
  border-radius: 12px;
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.btn-apple:hover,
.btn-apple:focus {
  background: linear-gradient(150deg, #222222 0%, #121212 100%);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
  color: #fff;
}

/*--------------------------------------------------------------
# GOS Brand Theme (A/B-Rollout)
# Aktiviert via <body class="theme-brand"> aus UserPreference.ui_theme.
# Erlaubte Palette aus Designkit GOS:
#   #80c2b6 Mint  /  #438f81 Petrol  /  #edb021 Gold  /  #ff8458 Coral
#   #f2efce Creme / #f8f8e4 Off-White / #838a90 Grau / #3D3C3B Dark
# Nach Rollout: einfach den `body.theme-brand`-Prefix entfernen, dann gilt es global.
--------------------------------------------------------------*/

/* 1) CSS-Variablen für Brand-User überschreiben.
      Alle Komponenten, die var(--color-*) lesen, ziehen automatisch nach. */
body.theme-brand {
  --color-primary: #ff8458;          /* Coral */
  --color-primary-strong: #e56638;   /* dunkler Coral (Hover/Active) */
  --color-primary-soft: #ffa987;     /* heller Coral (Light-Backgrounds) */
  --color-secondary: #80c2b6;        /* Mint */
  --color-secondary-soft: #a8d4cb;   /* helles Mint */
  --color-accent: #edb021;           /* Gold */
  --color-petrol: #438f81;           /* Petrol (neu, für success-Mapping) */
  --color-background: #f8f8e4;       /* Off-White */
  --color-surface: #f2efce;          /* Creme */
  --color-card: #f8f8e4;             /* Off-White für Karten */
  --color-text: #3D3C3B;             /* Dark */
  --color-muted: #838a90;            /* Grau */
  --font-heading: "Raleway", sans-serif;   /* GOS Designkit: Überschriften */
  --font-body: "Quicksand", sans-serif;    /* GOS Designkit: Fließtext */
}

/* 2) Bootstrap-Standardklassen für Brand-User auf Palette mappen.
      Nur das Minimum für sichtbare Status-/Action-Elemente, kein Komplett-Override. */

/* bg-* Hintergründe */
body.theme-brand .bg-primary    { background-color: #ff8458 !important; }
body.theme-brand .bg-secondary  { background-color: #838a90 !important; }
body.theme-brand .bg-success    { background-color: #438f81 !important; }
body.theme-brand .bg-danger     { background-color: #3D3C3B !important; }
body.theme-brand .bg-warning    { background-color: #edb021 !important; }
body.theme-brand .bg-info       { background-color: #80c2b6 !important; }
body.theme-brand .bg-dark       { background-color: #3D3C3B !important; }
body.theme-brand .bg-light      { background-color: #f2efce !important; }

/* text-* Vordergründe (Statusfarben in Tabellen, kleinen Labels etc.) */
body.theme-brand .text-primary   { color: #ff8458 !important; }
body.theme-brand .text-secondary { color: #838a90 !important; }
body.theme-brand .text-success   { color: #438f81 !important; }
body.theme-brand .text-danger    { color: #3D3C3B !important; }
body.theme-brand .text-warning   { color: #edb021 !important; }
body.theme-brand .text-info      { color: #80c2b6 !important; }
body.theme-brand .text-dark      { color: #3D3C3B !important; }
body.theme-brand .text-muted     { color: #838a90 !important; }

/* btn-* Buttons (Solid + Border + Outline-Variants) */
body.theme-brand .btn-primary {
  background-color: #ff8458; border-color: #ff8458; color: #fff;
}
body.theme-brand .btn-primary:hover,
body.theme-brand .btn-primary:focus,
body.theme-brand .btn-primary:active {
  background-color: #e56638; border-color: #e56638; color: #fff;
}
body.theme-brand .btn-secondary {
  background-color: #838a90; border-color: #838a90; color: #fff;
}
body.theme-brand .btn-secondary:hover,
body.theme-brand .btn-secondary:focus,
body.theme-brand .btn-secondary:active {
  background-color: #6c7279; border-color: #6c7279; color: #fff;
}
body.theme-brand .btn-success {
  background-color: #438f81; border-color: #438f81; color: #fff;
}
body.theme-brand .btn-success:hover,
body.theme-brand .btn-success:focus,
body.theme-brand .btn-success:active {
  background-color: #357366; border-color: #357366; color: #fff;
}
body.theme-brand .btn-danger {
  background-color: #3D3C3B; border-color: #3D3C3B; color: #fff;
}
body.theme-brand .btn-danger:hover,
body.theme-brand .btn-danger:focus,
body.theme-brand .btn-danger:active {
  background-color: #252423; border-color: #252423; color: #fff;
}
body.theme-brand .btn-warning {
  background-color: #edb021; border-color: #edb021; color: #3D3C3B;
}
body.theme-brand .btn-warning:hover,
body.theme-brand .btn-warning:focus,
body.theme-brand .btn-warning:active {
  background-color: #c89518; border-color: #c89518; color: #3D3C3B;
}
body.theme-brand .btn-info {
  background-color: #80c2b6; border-color: #80c2b6; color: #3D3C3B;
}
body.theme-brand .btn-info:hover,
body.theme-brand .btn-info:focus,
body.theme-brand .btn-info:active {
  background-color: #66a89c; border-color: #66a89c; color: #3D3C3B;
}
body.theme-brand .btn-dark {
  background-color: #3D3C3B; border-color: #3D3C3B; color: #fff;
}
body.theme-brand .btn-light {
  background-color: #f2efce; border-color: #f2efce; color: #3D3C3B;
}

/* Outline-Buttons (Border + Text in Brand-Farbe, transparent) */
body.theme-brand .btn-outline-primary   { color: #ff8458; border-color: #ff8458; }
body.theme-brand .btn-outline-primary:hover,
body.theme-brand .btn-outline-primary:focus { background-color: #ff8458; color: #fff; }
body.theme-brand .btn-outline-secondary { color: #838a90; border-color: #838a90; }
body.theme-brand .btn-outline-secondary:hover,
body.theme-brand .btn-outline-secondary:focus { background-color: #838a90; color: #fff; }
body.theme-brand .btn-outline-success   { color: #438f81; border-color: #438f81; }
body.theme-brand .btn-outline-success:hover,
body.theme-brand .btn-outline-success:focus { background-color: #438f81; color: #fff; }
body.theme-brand .btn-outline-danger    { color: #3D3C3B; border-color: #3D3C3B; }
body.theme-brand .btn-outline-danger:hover,
body.theme-brand .btn-outline-danger:focus { background-color: #3D3C3B; color: #fff; }
body.theme-brand .btn-outline-warning   { color: #edb021; border-color: #edb021; }
body.theme-brand .btn-outline-warning:hover,
body.theme-brand .btn-outline-warning:focus { background-color: #edb021; color: #3D3C3B; }
body.theme-brand .btn-outline-info      { color: #80c2b6; border-color: #80c2b6; }
body.theme-brand .btn-outline-info:hover,
body.theme-brand .btn-outline-info:focus { background-color: #80c2b6; color: #3D3C3B; }

/* border-* (Cards, Inputs, Validation) */
body.theme-brand .border-primary   { border-color: #ff8458 !important; }
body.theme-brand .border-secondary { border-color: #838a90 !important; }
body.theme-brand .border-success   { border-color: #438f81 !important; }
body.theme-brand .border-danger    { border-color: #3D3C3B !important; }
body.theme-brand .border-warning   { border-color: #edb021 !important; }
body.theme-brand .border-info      { border-color: #80c2b6 !important; }

/* Light-Background-Helpers (eigene Klassen aus style.css) auf Brand mappen.
   bg-success-light bleibt visuell „grünlich" via Petrol-Tint statt Gold. */
body.theme-brand .bg-primary-light   { background-color: rgba(255, 132, 88, 0.15); border-color: rgba(255, 132, 88, 0.25); }
body.theme-brand .bg-secondary-light { background-color: rgba(131, 138, 144, 0.15); border-color: rgba(131, 138, 144, 0.28); }
body.theme-brand .bg-success-light   { background-color: rgba(67, 143, 129, 0.15);  border-color: rgba(67, 143, 129, 0.28); }
body.theme-brand .bg-danger-light    { background-color: rgba(61, 60, 59, 0.10);    border-color: rgba(61, 60, 59, 0.22); }
body.theme-brand .bg-warning-light   { background-color: rgba(237, 176, 33, 0.15);  border-color: rgba(237, 176, 33, 0.28); }
body.theme-brand .bg-info-light      { background-color: rgba(128, 194, 182, 0.20); border-color: rgba(128, 194, 182, 0.32); }
body.theme-brand .bg-dark-light      { background-color: rgba(61, 60, 59, 0.08);    border-color: rgba(61, 60, 59, 0.18); }

/* Badges (häufig im KMS für Status verwendet) — text-color auf weiß bzw. dark fixieren */
body.theme-brand .badge.bg-warning,
body.theme-brand .badge.bg-info,
body.theme-brand .badge.bg-light { color: #3D3C3B; }
body.theme-brand .badge.bg-primary,
body.theme-brand .badge.bg-secondary,
body.theme-brand .badge.bg-success,
body.theme-brand .badge.bg-danger,
body.theme-brand .badge.bg-dark { color: #fff; }

/* Links: bei Brand-Theme komplett auf Coral umstellen */
body.theme-brand a { color: #ff8458; }
body.theme-brand a:hover { color: #e56638; }

/* ───────────────────────── Versand-Suite (shipping) ───────────────────────── */
.min-w-0 { min-width: 0; }

/* Dashboard-Stat-Karten */
.ship-stat { transition: transform .12s ease, box-shadow .12s ease; }
a.ship-stat:hover { transform: translateY(-2px); }
.ship-stat-icon {
  width: 44px; height: 44px; border-radius: 12px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.ship-stat-num { font-size: 1.6rem; font-weight: 700; line-height: 1; color: var(--color-text, #373a3f); }
/* KPI-Leiste des Versand-Dashboards: neun Kacheln, die nicht drei Zeilen fressen
   sollen. Bootstrap kann kein Neuner-Raster (row-cols-* endet bei 6), deshalb
   werden die Spaltenbreiten ab Laptop-Breite hier gesetzt: 2 (Handy) → 3 (Tablet)
   → 5 (Laptop, zwei Zeilen) → 9 (breiter Monitor, eine Zeile). Das Karteninnere
   wird dafür schlanker; ausserhalb von .ship-kpis bleibt .ship-stat unveraendert.
   Die Regel greift NUR auf .dash-col-auto, also auf Karten ohne eigene Breite:
   sonst waere jede im Dashboard-Customizing gesetzte Breite auf dem Desktop
   wirkungslos, weil diese Regel sie ueberschreibt. */
@media (min-width: 1200px) { .ship-kpis > .dash-col-auto { flex: 0 0 auto; width: 20%; } }
@media (min-width: 1600px) { .ship-kpis > .dash-col-auto { flex: 0 0 auto; width: 11.1111%; } }
.ship-kpis .ship-stat-icon { width: 34px; height: 34px; border-radius: 10px; font-size: 1rem; }
.ship-kpis .ship-stat-num { font-size: 1.3rem; }
.ship-kpis .ship-stat .small { font-size: .72rem; line-height: 1.2; }
.ship-kpis .ship-stat .card-body > div { min-width: 0; }
.ship-lane .card-header { background: transparent; border-bottom: 1px solid rgba(61, 60, 59, .1); }
.ship-lane-body { max-height: 62vh; overflow: auto; }
.ship-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; display: inline-block; }
/* Klickbare „Heute zu packen"-Karten auf der Scan-Konsole */
.ship-worklist-card { cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
.ship-worklist-card:hover { transform: translateY(-2px); border-color: var(--color-primary, #4154f1); box-shadow: 0 .25rem .6rem rgba(0,0,0,.08); }

/* Task-Chips: datengetriebene Objekt-Typ- und Tag-Kennzeichnung.
   Farbe kommt per --chip (Hex) aus der Linkable-Registry bzw. Tag.color_hex —
   bewusste literale Farbe (kein Theme-Chrome), als weiche Fläche + Rahmen. */
.kms-chip {
  --chip: #64748b;
  color: var(--chip);
  background: color-mix(in srgb, var(--chip) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--chip) 42%, transparent);
  font-weight: 600;
  vertical-align: baseline;
}
a.kms-chip:hover { background: color-mix(in srgb, var(--chip) 24%, transparent); color: var(--chip); }
.kms-chip-sm { font-size: .7rem; padding: .2em .5em; }

/* Toggle-Chips im Formular: ungewählte Tags gedimmt, gewählte voll. */
.kms-tag-check { cursor: pointer; user-select: none; margin: 0; }
.kms-tag-check input:not(:checked) + .kms-chip { opacity: .38; }
.kms-tag-check:hover .kms-chip { filter: brightness(.97); }

/* Task-Board (Kanban): horizontal scrollende Lanes, wiederverwendet .ship-lane. */
.task-board { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: .5rem; align-items: stretch; }
.task-lane { flex: 0 0 300px; max-width: 300px; }

/* ─────────────────── Dashboard-Customizing (Edit-Modus) ───────────────────
   Generisch, kein App-Bezug: greift ueber .dash-edit-* auf jedem Dashboard,
   das core/partials/dashboard_edit.html einbindet. */
.dash-edit-bar {
  position: sticky; top: 0; z-index: 3;
  background: var(--color-surface, #fff);
  border: 1px solid rgba(61, 60, 59, .15); border-radius: .5rem;
  padding: .5rem .75rem;
}
.dash-edit-col { position: relative; }
.dash-edit-head {
  display: flex; align-items: center; gap: .35rem;
  padding: .15rem .35rem; margin-bottom: .25rem;
  border: 1px dashed rgba(61, 60, 59, .35); border-radius: .35rem;
  background: rgba(61, 60, 59, .04);
}
.dash-edit-name { font-size: .72rem; font-weight: 600; flex: 1 1 auto; min-width: 0; }
.dash-edit-grip { cursor: grab; flex: 0 0 auto; opacity: .55; }
.dash-edit-grip:active { cursor: grabbing; }
.dash-edit-width { width: auto; flex: 0 0 auto; font-size: .7rem; padding: .05rem 1.4rem .05rem .3rem; }
/* Im Edit-Modus ist die Karte Anschauungsmaterial, kein Link — sonst
   navigierte jeder Klick (und jeder abgebrochene Drag) vom Dashboard weg. */
.dash-edit-body { pointer-events: none; }
.dash-edit-hidden .dash-edit-body { opacity: .3; filter: grayscale(1); }
.dash-edit-placeholder { border: 1px dashed rgba(61, 60, 59, .35); background: rgba(61, 60, 59, .02); min-height: 90px; }
.dash-edit-ghost { opacity: .4; }
.dash-edit-row { min-height: 1px; }
.dash-edit-row-empty {
  min-height: 76px; margin-bottom: .75rem;
  border: 1px dashed rgba(61, 60, 59, .3); border-radius: .5rem;
}
.dash-edit-row-empty::after {
  content: attr(data-empty-label); display: block; width: 100%;
  text-align: center; align-self: center; font-size: .78rem; opacity: .5;
}

/* Fortschritts-Stepper */
.ship-stepper { display: flex; align-items: flex-start; gap: 0; overflow-x: auto; padding-bottom: 4px; }
.ship-step { flex: 1 1 0; min-width: 66px; text-align: center; position: relative; padding-top: 4px; }
.ship-step:not(:first-child)::before {
  content: ""; position: absolute; top: 25px; left: -50%; width: 100%; height: 3px;
  background: rgba(61, 60, 59, .15); z-index: 0;
}
.ship-step.is-done:not(:first-child)::before { background: var(--color-primary, #f68f66); }
.ship-step-form { margin: 0; display: inline-block; }
.ship-step-node {
  position: relative; z-index: 1; width: 42px; height: 42px; border-radius: 50%; padding: 0;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem;
  border: 3px solid rgba(61, 60, 59, .18); background: #fff; color: var(--color-muted, #80858e);
  transition: border-color .15s ease, background .15s ease;
}
.ship-step-node--passive { cursor: default; }
.ship-step.is-actionable .ship-step-node { cursor: pointer; }
.ship-step.is-actionable .ship-step-node:hover { border-color: var(--color-primary, #f68f66); }
.ship-step.is-done .ship-step-node { background: var(--color-primary, #f68f66); border-color: var(--color-primary, #f68f66); color: #fff; }
.ship-step-label { font-size: .8rem; font-weight: 600; margin-top: 6px; color: var(--color-text, #373a3f); }
.ship-step:not(.is-done) .ship-step-label { color: var(--color-muted, #80858e); }
.ship-step-date { font-size: .7rem; color: var(--color-muted, #80858e); min-height: 1em; }

/* Schüler-/Line-Karten */
.ship-line-card.is-done { opacity: .9; }
.ship-line-card .card-footer { background: transparent; border-top: 1px solid rgba(61, 60, 59, .08); }
.ship-line-avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-secondary-soft, #9bcec3); color: #fff;
}
/* Ausstattungs-Badges der Line-Karte tragen FREITEXT (`Student.technical_equipment`
   landet als „Sonstige" darin) — und Bootstrap-Badges haben `white-space: nowrap`.
   Ein langer Wert wird damit beliebig breit: gemessen 1117px in einer 801px
   breiten Karte. Die Karte laeuft dann nach rechts aus ihrer Spalte heraus und
   verschwindet unter dem Details-Panel; es sieht so aus, als wuerde der
   Versandkommentar darunter nicht umbrechen — der ist aber unschuldig, er wird
   nur mitgeschoben.

   `overflow-wrap: anywhere` statt `break-word`: nur `anywhere` senkt auch die
   min-content-Breite, sonst kann eine lange Mailadresse im Freitext die Karte
   weiterhin aufspannen. `text-align: left`, weil `.badge` zentriert — bei einem
   mehrzeilig umbrochenen Badge saehe das aus wie ein Versehen.

   Bewusst auf `.ship-equipment .badge` gescoped statt als Utility-Klasse im
   Template: so gilt die Regel auch fuer jeden Badge, den spaeter jemand in diese
   Zeile haengt. Der Hook ist die Klasse `ship-equipment` in line_card.html. */
.ship-equipment .badge {
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: left;
  max-width: 100%;
}
.ship-device-chip {
  background: rgba(128, 194, 182, .18); color: var(--color-text, #373a3f);
  border: 1px solid rgba(128, 194, 182, .4); font-weight: 500;
  display: inline-flex; align-items: center; gap: .15rem;
}
.ship-device-chip a { color: inherit; }
.ship-chip-x { background: none; border: none; color: var(--color-muted, #80858e); line-height: 1; padding: 0 .2rem; cursor: pointer; }
.ship-chip-x:hover { color: #d9534f; }
.ship-checklist .ship-check-item { padding: .4rem .25rem; border-bottom: 1px solid rgba(61, 60, 59, .07); }
.ship-checklist .ship-check-item:last-child { border-bottom: none; }
.ship-check-item.is-checked span { text-decoration: line-through; color: var(--color-muted, #80858e); }
.ship-return-item { padding: .5rem .25rem; border-bottom: 1px solid rgba(61, 60, 59, .08); }
.ship-return-item:last-child { border-bottom: none; }
.ship-deduction { max-width: 6.5rem; }
.ship-refund-panel {
  background: rgba(123, 188, 175, .12); border: 1px solid rgba(123, 188, 175, .3);
  border-radius: var(--radius-md, 12px); padding: .6rem .9rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.ship-refund-amount { font-size: 1.5rem; font-weight: 700; color: var(--color-text, #373a3f); white-space: nowrap; }

/* Richtungs-Segmented-Control: aktiver Knopf on-brand (statt Bootstrap-Blau) */
#direction-group .btn-check:checked + .btn,
#direction-group .btn-check:active + .btn,
#scan-mode-group .btn-check:checked + .btn,
#scan-mode-group .btn-check:active + .btn {
  background: var(--color-primary, #f68f66);
  border-color: var(--color-primary, #f68f66);
  color: #fff;
}

/* Tracking-Timeline (Carrier-Events unter Details) */
.ship-track-item { padding: .35rem 0 .35rem .8rem; border-left: 2px solid rgba(123, 188, 175, .5); margin-bottom: .5rem; }
.ship-track-item:last-child { margin-bottom: 0; }

/* ── Gesperrter Datensatz (common/blocking.py) ─────────────────────────────
   Die Sperre soll beim Öffnen der Seite auffallen, nicht erst beim Suchen:
   ein rotes Banner ganz oben plus eine rötliche Tönung ALLER Karten. Die
   Klasse .is-blocked sitzt auf dem Seiten-Container der Detailseiten. */
.is-blocked .card {
  background-color: #fff6f6;
  border: 1px solid rgba(220, 53, 69, .28);
}
.is-blocked .card .border-bottom { border-color: rgba(220, 53, 69, .18) !important; }

.block-banner {
  border: 1px solid rgba(220, 53, 69, .45);
  border-left: 6px solid #dc3545;
  background: rgba(220, 53, 69, .10);
  border-radius: var(--radius-md, 12px);
  padding: .85rem 1rem;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1rem;
}
.block-banner .block-banner-title {
  font-weight: 700; color: #b02a37; font-size: 1.05rem;
  display: flex; align-items: center; gap: .5rem;
}
.block-banner .block-banner-reason { font-weight: 600; }
