body { font-family: "M PLUS 1", "Helvetica Neue", Arial, sans-serif; color: #2d3343; }
:root {
  --bs-primary: #2d3343;
  --bs-link-color: #2d3343;
  --bs-link-hover-color: #ae935f;
}
a {
  color: #2d3343;
}
a:hover,
a:focus {
  color: #ae935f;
}
.card { border-radius: 0.75rem; }
.badge-status { font-size: 0.85rem; }
.affiliate-merge .form-select {
  min-width: 160px;
}
.commission-rate-group .form-control {
  min-width: 0;
}
.commission-rate-group .commission-unit-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.15rem;
  background: #f5f5f7;
  border-left: 1px solid rgba(45, 51, 67, 0.15);
}
.commission-rate-group .commission-unit-btn {
  min-width: 28px;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: #2d3343;
  font-weight: 600;
}
.commission-rate-group .commission-unit-btn.active {
  background: #2d3343;
  color: #ffffff;
}
.commission-rate-deviation {
  border-color: rgba(248, 149, 0, 0.65) !important;
  box-shadow: 0 0 0 0.15rem rgba(248, 149, 0, 0.15);
}
.inkasso-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(45, 51, 67, 0.25);
  border-radius: 999px;
  overflow: hidden;
  background: #ffffff;
  padding: 2px;
  gap: 2px;
}
.inkasso-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.inkasso-toggle label {
  min-width: 2.1rem;
  text-align: center;
  padding: 0.2rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 999px;
  color: #2d3343;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}
.inkasso-toggle input:checked + label {
  background: #2d3343;
  color: #ffffff;
}
.customer-type-toggle label {
  min-width: 3.2rem;
}
.booking-muted {
  color: #7b7f8b;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}
.field-saved {
  animation: fieldSavedFlash 900ms ease;
}
@keyframes fieldSavedFlash {
  0% {
    background-color: rgba(25, 135, 84, 0.25);
  }
  100% {
    background-color: transparent;
  }
}
.table-filter-btn {
  padding: 0.1rem 0.35rem;
  line-height: 1;
  border-radius: 999px;
}
.table-filter-btn i {
  font-size: 0.75rem;
}
.travel-range {
  border: 0;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  line-height: 1.1;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  background: rgba(45, 51, 67, 0.08);
  color: #2d3343;
  cursor: pointer;
  transition: background-color 150ms ease, box-shadow 150ms ease, color 150ms ease;
}
.travel-range--empty {
  background: rgba(174, 147, 95, 0.12);
  color: #8b6a36;
  border: 1px dashed rgba(174, 147, 95, 0.6);
}
.travel-range--filled {
  background: linear-gradient(135deg, #7d8c74, #4e5a45);
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(45, 51, 67, 0.18);
}
.travel-range--readonly {
  cursor: default;
}
.travel-range:focus,
.travel-range:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(174, 147, 95, 0.25);
}
.travel-range-form {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.travel-range-input {
  border: 0;
  background: rgba(45, 51, 67, 0.08);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  color: #2d3343;
}
.travel-range-input:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(174, 147, 95, 0.25);
}
.travel-range-sep {
  font-size: 0.75rem;
  color: #7b7f8b;
}
.due-item {
  border-radius: 0.6rem;
  padding: 0.4rem 0.6rem;
}
.due-item--overdue {
  background: rgba(220, 53, 69, 0.12);
  border: 1px solid rgba(220, 53, 69, 0.35);
}
.due-item--soon {
  background: rgba(255, 193, 7, 0.18);
  border: 1px solid rgba(255, 193, 7, 0.45);
}
.attachment-name {
  position: relative;
  display: block;
  max-width: min(60vw, 360px);
  white-space: nowrap;
  overflow: hidden;
  vertical-align: bottom;
}
.attachment-name::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #ffffff 70%);
}
.bg-soft {
  background: linear-gradient(135deg, #2d3343 0%, #ae935f 100%);
}
.navbar-light .navbar-brand,
.navbar-light .nav-link,
.navbar-light .navbar-text {
  color: #f6f1e6 !important;
}
.navbar {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.navbar-brand {
  margin-right: 1.25rem;
}
.navbar-nav {
  align-items: center;
}
.navbar-logo {
  max-height: 40px;
  width: auto;
}
@media (min-width: 992px) {
  .navbar-logo {
    max-height: 72px;
  }
}
.navbar-light .nav-link {
  position: relative;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}
.navbar-light .nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 2px;
  background: linear-gradient(90deg, #ae935f, #f6f1e6);
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity 160ms ease, transform 160ms ease;
}
.navbar-light .nav-link:hover {
  color: #ffffff !important;
  background-color: rgba(174, 147, 95, 0.25);
  transform: translateY(-1px);
}
.navbar-light .nav-link:hover::after {
  opacity: 1;
  transform: scaleX(1);
}
.navbar-light .dropdown-toggle {
  border-color: rgba(246, 241, 230, 0.6);
}
.navbar-light .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.9);
}
.navbar-light .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.2);
}
.navbar-light .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.btn-primary {
  background-color: #2d3343;
  border-color: #2d3343;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: #ae935f;
  border-color: #ae935f;
  color: #2d3343;
}
.btn-outline-primary {
  color: #2d3343;
  border-color: #2d3343;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: #2d3343;
  border-color: #2d3343;
  color: #f6f1e6;
}
.btn-outline-primary:active {
  background-color: #ae935f;
  border-color: #ae935f;
  color: #2d3343;
}
.text-primary { color: #2d3343 !important; }
.bg-primary { background-color: #2d3343 !important; }
.border-primary { border-color: #2d3343 !important; }
.link-primary { color: #2d3343 !important; }
.link-primary:hover,
.link-primary:focus { color: #ae935f !important; }
.tox-tinymce-aux,
.tox-dialog,
.tox-dialog-wrap {
  z-index: 2000 !important;
}

.dashboard-kpi {
  background: #ffffff;
  border: 1px solid rgba(45, 51, 67, 0.08);
}

.membership-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.membership-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: center;
}
.membership-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  background: rgba(45, 51, 67, 0.06);
  border: 1px solid rgba(45, 51, 67, 0.12);
  font-size: 0.75rem;
  padding: 0.1rem 0.55rem;
  position: relative;
}
.membership-badge img {
  height: 14px;
  width: auto;
  display: inline-block;
}
.membership-badge select {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  border: 0;
}
.membership-value {
  cursor: copy;
}
.membership-value.is-editing {
  cursor: text;
  background-color: #ffffff;
}
.membership-value.membership-saved {
  box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.35);
  background-color: rgba(25, 135, 84, 0.08);
}
.field-saved {
  box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.35);
  background-color: rgba(25, 135, 84, 0.08);
  transition: background-color 0.6s ease, box-shadow 0.6s ease;
}
.mobile-country-select {
  width: auto;
  flex: 0 0 auto;
  min-width: 5.5rem;
}
.short-select {
  max-width: 7rem;
}
.badge-disabled {
  text-decoration: line-through;
  opacity: 0.7;
}
.membership-value.membership-copied {
  box-shadow: 0 0 0 0.2rem rgba(174, 147, 95, 0.25);
}
.membership-bookings .badge {
  font-size: 0.7rem;
  white-space: nowrap;
}
@media (max-width: 992px) {
  .membership-row {
    grid-template-columns: 1fr;
  }
}

.customer-summary {
  padding: 0.6rem 0.75rem;
  border-radius: 0.8rem;
  background: rgba(45, 51, 67, 0.04);
  border: 1px solid rgba(45, 51, 67, 0.08);
}
.summary-title {
  font-weight: 600;
  font-size: 1.05rem;
}
.summary-meta {
  font-size: 0.8rem;
  color: #7b7f8b;
}
.summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(45, 51, 67, 0.12);
  font-size: 0.8rem;
}
.chip i {
  color: #7b7f8b;
}
.chip-copy {
  padding: 0;
  line-height: 1;
  color: #2d3343;
}
.chip-copied {
  box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
  border-color: rgba(25, 135, 84, 0.5);
}
.affiliate-edit-trigger {
  color: #2d3343;
  text-decoration: none;
}
.affiliate-edit-trigger:hover,
.affiliate-edit-trigger:focus {
  color: #ae935f;
  text-decoration: none;
}
.detail-section {
  padding: 0.65rem 0.75rem;
  border-radius: 0.8rem;
  background: rgba(45, 51, 67, 0.03);
  border: 1px solid rgba(45, 51, 67, 0.07);
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #7b7f8b;
  margin-bottom: 0.5rem;
}
.companion-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.companion-item {
  border: 1px solid rgba(45, 51, 67, 0.08);
  border-radius: 0.65rem;
  padding: 0.45rem 0.65rem;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
}
.companion-item:hover,
.companion-item:focus {
  border-color: rgba(45, 51, 67, 0.2);
  box-shadow: 0 0 0 0.2rem rgba(174, 147, 95, 0.2);
}
.companion-name {
  font-weight: 600;
}
.companion-meta {
  color: #7b7f8b;
  font-size: 0.85rem;
}
.modal-dialog-scrollable .modal-body {
  max-height: calc(100vh - 220px);
  overflow-y: auto;
}
.dashboard-kpi .display-6 {
  font-weight: 600;
}
.kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.1rem;
  box-shadow: 0 12px 24px rgba(45, 51, 67, 0.2);
}
.bg-sand { background: linear-gradient(135deg, #c7a66c, #8b6a36); }
.bg-ink { background: linear-gradient(135deg, #2d3343, #596073); }
.bg-amber { background: linear-gradient(135deg, #f1b24a, #ae7a25); }
.bg-sage { background: linear-gradient(135deg, #7d8c74, #4e5a45); }
.bg-rose { background: linear-gradient(135deg, #c47b7b, #8f4040); }
.bg-sky { background: linear-gradient(135deg, #5f7ea3, #2e4969); }
.bg-wine { background: linear-gradient(135deg, #7b3d4f, #3f1c26); }
.bg-night { background: linear-gradient(135deg, #3d4b6c, #1f2638); }

.dashboard-panel {
  border: 1px solid rgba(45, 51, 67, 0.08);
}
.dashboard-section {
  background: #ffffff;
  border: 1px solid rgba(45, 51, 67, 0.08);
  border-radius: 1rem;
  padding: 1.25rem 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 10px 24px rgba(45, 51, 67, 0.08);
}
.dashboard-section-alt {
  background: linear-gradient(135deg, rgba(246, 241, 230, 0.65), rgba(250, 247, 242, 0.9));
}
.dashboard-section-title {
  font-weight: 600;
  color: #2d3343;
  margin-bottom: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(174, 147, 95, 0.12);
  letter-spacing: 0.02em;
}
.chart-wrap {
  position: relative;
  height: 280px;
}
.chart-wrap-sm {
  position: relative;
  height: 220px;
}
.top-list .progress {
  height: 6px;
  background-color: rgba(45, 51, 67, 0.08);
}
.top-list .progress-bar {
  background: linear-gradient(90deg, #2d3343, #ae935f);
}
.organizer-docs-active {
  background: #e8f1ff;
  border-color: #b7d1f5;
}
.organizer-docs-area.organizer-docs-active {
  background: #e8f1ff;
  border-color: #b7d1f5;
}
.organizer-docs-area {
  border: 1px solid transparent;
  border-radius: 0.5rem;
  padding: 0.75rem;
}
.organizer-small {
  max-width: 50%;
}
.no-spin::-webkit-outer-spin-button,
.no-spin::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.no-spin {
  -moz-appearance: textfield;
}
.service-special {
  background-color: rgba(174, 147, 95, 0.12);
}
.service-modal-section {
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(45, 51, 67, 0.12);
  background: #fbfbfd;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
}
.service-modal-section:last-child {
  margin-bottom: 0;
}
.service-modal-section-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.affiliate-card {
  background: linear-gradient(135deg, rgba(246, 241, 230, 0.9), rgba(255, 249, 232, 0.95));
  border: 1px solid rgba(174, 147, 95, 0.4);
  box-shadow: 0 8px 20px rgba(174, 147, 95, 0.12);
}
.summary-card .summary-group {
  padding: 0.65rem 0.75rem;
  border-radius: 0.6rem;
  background: #faf7ef;
  border: 1px solid rgba(45, 51, 67, 0.08);
}
.fab-add-customer {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2d3343, #ae935f);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 14px 30px rgba(45, 51, 67, 0.25);
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
  z-index: 1050;
}
.fab-add-customer:hover,
.fab-add-customer:focus {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(45, 51, 67, 0.3);
  opacity: 0.95;
}
.summary-card .summary-title {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7a6a44;
}
.summary-card .summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.35rem;
}
.summary-card .summary-value {
  font-weight: 600;
}
.status-select {
  border-width: 1px;
}
.status-select.status-primary {
  background-color: rgba(45, 51, 67, 0.08);
  border-color: rgba(45, 51, 67, 0.35);
  color: #2d3343;
}
.status-select.status-warning {
  background-color: rgba(241, 178, 74, 0.18);
  border-color: rgba(241, 178, 74, 0.5);
  color: #6f4b12;
}
.status-select.status-success {
  background-color: rgba(125, 140, 116, 0.18);
  border-color: rgba(125, 140, 116, 0.5);
  color: #3e4b38;
}
.status-select.status-danger {
  background-color: rgba(196, 123, 123, 0.2);
  border-color: rgba(196, 123, 123, 0.55);
  color: #6a2a2a;
}
.status-select.status-secondary {
  background-color: rgba(89, 96, 115, 0.15);
  border-color: rgba(89, 96, 115, 0.35);
  color: #2d3343;
}
.docs-group-row td {
  font-weight: 600;
}
.docs-group-row .docs-group-meta {
  font-weight: 400;
  color: #6c757d;
}
@media (max-width: 767.98px) {
  .chart-wrap {
    height: 220px;
  }
  .chart-wrap-sm {
    height: 200px;
  }
}
@media (max-width: 575.98px) {
  .dashboard-section {
    padding: 1rem;
  }
  .dashboard-section-title {
    font-size: 0.85rem;
    padding: 0.25rem 0.6rem;
  }
  .dashboard-kpi .display-6 {
    font-size: 1.6rem;
  }
  .kpi-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 0.95rem;
  }
  .dashboard-panel .card-body {
    padding: 1rem;
  }
  .dashboard-panel .table {
    font-size: 0.9rem;
  }
}

.attachment-dropzone {
  border: 1px dashed #c7ccd6;
  border-radius: 0.75rem;
  padding: 0.85rem;
  background: #f8f9fb;
  position: relative;
}
.attachment-dropzone .dropzone-hint {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #6c757d;
}
.attachment-dropzone.is-dragover {
  background: #eef1f6;
  border-color: #8792a2;
}
.document-attachment-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.document-attachment-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid #e1e5ee;
  border-radius: 0.6rem;
  background: #fff;
  font-size: 0.9rem;
}
.document-attachment-item .attachment-name {
  font-weight: 600;
}
.document-attachment-item .attachment-meta {
  color: #6c757d;
  font-size: 0.8rem;
}
