@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap");

@font-face {
  font-family: "Space Grotesk Local";
  src:
    url("./SpaceGrotesk-VariableFont_wght.ttf") format("truetype-variations"),
    url("./SpaceGrotesk-VariableFont_wght.ttf") format("truetype"),
    url("/SpaceGrotesk-VariableFont_wght.ttf") format("truetype-variations"),
    url("/SpaceGrotesk-VariableFont_wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color: #14151a;
  --background: oklch(0.977 0.003 165);
  --surface: oklch(1 0 0);
  --text: oklch(0.26 0.012 165);
  --muted-text: oklch(0.57 0.009 165);
  --border: oklch(0.92 0.005 165);
  --accent: #222222;
  --accent-soft: #f2f2f2;
  --radius: 0.875rem;
  --shadow: 0 4px 20px oklch(0.25 0.02 165 / 0.035), 0 1px 3px oklch(0.25 0.02 165 / 0.025);
}

* {
  box-sizing: border-box;
}

html,
body {
  font-family: "Space Grotesk", "Space Grotesk Local", Inter, -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-variation-settings: normal;
  background: #f8f9ff;
}

html:not(.customer-portal-mode),
html:not(.customer-portal-mode) body {
  background: var(--background);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
}

html.auth-view-app,
html.auth-view-app body,
html.auth-view-app .page {
  background: #ffffff;
}

html.customer-portal-mode,
html.customer-portal-mode body {
  background: #ffffff;
  color-scheme: only light;
}

button,
input,
textarea,
select {
  font: inherit;
}

body.modal-open,
body.nav-open {
  overflow: hidden;
  overscroll-behavior: none;
}

html.auth-view-login #auth-card {
  display: block;
}

html.auth-view-login #app-shell,
html.auth-view-login #password-change-card {
  display: none !important;
}

html.auth-view-app #auth-card,
html.auth-view-app #password-change-card {
  display: none;
}

html.auth-view-app #app-shell {
  display: flex;
}

html.auth-view-password-change #auth-card,
html.auth-view-password-change #app-shell {
  display: none !important;
}

html.auth-view-password-change #password-change-card,
html.auth-view-password-change #password-change-card.hidden {
  display: block !important;
}

html.auth-view-app.roi-personal-hint #personal-nav-btn.hidden,
html.auth-view-app.roi-personal-hint .sidebar-admin-item.hidden {
  display: block !important;
}

html.auth-view-app .page {
  display: block;
  padding: 0;
  overflow: visible;
}

html.auth-view-app .bg-glow {
  display: none;
}

html.customer-portal-mode .page {
  display: none !important;
}

html.customer-portal-mode #customer-portal.hidden {
  display: block !important;
}

html.customer-portal-mode:not(.customer-portal-ready) .customer-flow-topbar,
html.customer-portal-mode:not(.customer-portal-ready) .customer-flow-progress,
html.customer-portal-mode:not(.customer-portal-ready) .customer-portal-tabs,
html.customer-portal-mode:not(.customer-portal-ready) .customer-intake-view,
html.customer-portal-mode:not(.customer-portal-ready) .customer-intake-footer,
html.customer-portal-mode:not(.customer-portal-ready) .customer-submitted-view,
html.customer-portal-mode:not(.customer-portal-ready) .customer-review-view {
  display: none !important;
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.bg-glow {
  display: none;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  background: var(--surface);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
  animation: roi-fade-rise 500ms cubic-bezier(0.2, 0.65, 0.3, 1) both;
}

.logo {
  display: block;
  width: 116px;
  height: auto;
  margin: 2px auto 20px;
}

h1 {
  margin: 0;
  text-align: center;
  font-size: 1.78rem;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 26px;
}

.auth-card h1 {
  font-weight: 700;
}

.auth-card form {
  display: grid;
  gap: 12px;
}

.auth-card label {
  font-size: 0.92rem;
  color: #32364a;
  margin-top: 2px;
}

.auth-card input {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #d4d8ea;
  border-radius: 10px;
  font-size: 1rem;
  background: #ffffff;
  color: #191b26;
}

.auth-card input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.auth-card button {
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--surface);
  background: var(--accent);
  margin-top: 12px;
  transition: background-color 180ms ease, transform 180ms ease;
}

.auth-card button.is-loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.auth-card button.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin-top: -10.5px;
  margin-left: -9px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.auth-card button:hover {
  background: #111111;
}

.auth-card button:active {
  transform: translateY(1px);
}

.auth-card button.secondary {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
}

.auth-card button.secondary:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.hidden {
  display: none !important;
}

.status {
  min-height: 24px;
  margin: 14px 0 0;
  font-size: 0.9rem;
  text-align: center;
}

.status.error {
  color: #b10000;
}

.status.success {
  color: #00703c;
}

.terms {
  margin: 10px 0 0;
  text-align: center;
  color: #737894;
  font-size: 0.8rem;
}

.app-shell {
  width: 100%;
  min-height: 100vh;
  display: flex;
  background: var(--surface);
  animation: roi-fade-rise 500ms cubic-bezier(0.2, 0.65, 0.3, 1) both;
}

.sidebar {
  width: 232px;
  background: var(--surface);
  color: var(--text);
  padding: 22px 14px 18px;
  padding-bottom: 15px !important;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.sidebar-header {
  padding: 0 12px 18px;
  border-bottom: 0;
}

.sidebar-kicker {
  margin: 10px 12px 22px;
  color: var(--muted-text);
  font-size: 11px;
  line-height: 1.4;
}

.sidebar-logo {
  display: block;
  width: 96px;
  max-width: 100%;
  height: auto;
  filter: brightness(0);
}

.sidebar-logo-btn {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.sidebar-nav {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  align-content: start;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.sidebar-footer {
  position: relative;
  flex: 0 0 auto;
  margin-top: auto;
  padding-top: 12px;
  background: var(--surface);
  z-index: 2;
}

.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.sidebar-profile:hover,
.sidebar-profile[aria-expanded="true"] {
  background: var(--accent-soft);
}

.sidebar-profile-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  overflow: hidden;
  border-radius: 50%;
  background: #e5f6ec;
  color: #1d6b45;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.sidebar-profile-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.sidebar-profile-avatar[hidden] {
  display: none;
}

.sidebar-profile-copy {
  display: grid;
  min-width: 0;
  flex: 1 1 auto;
}

.sidebar-profile-name {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-profile-role {
  overflow: hidden;
  margin-top: 2px;
  color: var(--muted-text);
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-profile-chevron {
  flex: 0 0 auto;
  color: var(--muted-text);
  font-size: 11px;
  transition: transform 180ms ease;
}

.sidebar-profile[aria-expanded="true"] .sidebar-profile-chevron {
  transform: rotate(180deg);
}

.sidebar-profile-menu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% - 4px);
  z-index: 5;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 16px 34px rgba(20, 28, 45, 0.16);
  padding: 6px;
  display: grid;
  gap: 2px;
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transform-origin: bottom center;
  pointer-events: none;
  transition:
    opacity 180ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.sidebar-profile-menu.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.sidebar-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  text-align: left;
  border: 0;
  color: var(--muted-text);
  background: transparent;
  border-radius: 8px;
  padding: 0 12px;
  height: 40px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}

.sidebar-item i {
  width: 16px;
  text-align: center;
  font-size: 14px;
}

.sidebar-item-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: auto;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--surface);
  color: var(--accent);
  border: 1px solid var(--border);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.sidebar-item:hover,
.sidebar-item.active {
  background: var(--accent-soft);
  color: var(--accent);
}

.sidebar-backdrop {
  display: none;
}

.sidebar-toggle {
  display: none;
}

.app-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 64px;
  padding: 0 22px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.topbar-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  color: var(--muted-text);
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
}

.topbar-crumb-current {
  color: var(--text);
  font-weight: 600;
}

.topbar-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  min-width: 0;
  margin-left: auto;
}

.topbar-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 220px;
  height: 35px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--background);
  color: var(--muted-text);
}

.topbar-search-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.topbar-search-wrap i {
  font-size: 0.82rem;
  flex: 0 0 auto;
}

.create-customer-btn {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  width: max-content;
  white-space: nowrap;
  border: 0;
  background: var(--accent);
  color: #fff;
  border-radius: 7px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transform: none;
  transition: background 180ms ease, transform 180ms ease;
}

.create-customer-btn i {
  font-size: 1.1em;
}

.create-customer-btn:hover {
  background: #111111;
}

.create-customer-btn:active {
  transform: translateY(1px);
}

.legacy-customer-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  width: max-content;
  white-space: nowrap;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 7px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.legacy-customer-upload-btn:hover {
  background: var(--surface-muted, #f4f4f4);
}

.legacy-customer-upload-preview {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  max-height: 240px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.legacy-customer-upload-preview:empty {
  display: none;
}

.legacy-customer-upload-preview li {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.legacy-customer-upload-preview li:last-child {
  border-bottom: 0;
}

.topbar-search {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  border-radius: 0;
  padding: 0;
  font-size: 13px;
  background: transparent;
  color: var(--text);
  box-shadow: none;
}

.topbar-search::placeholder {
  color: var(--muted-text);
}

.topbar-search:focus {
  outline: none;
  border-color: transparent;
  box-shadow: none;
}

.global-search-panel {
  position: fixed;
  z-index: 90;
  width: min(420px, calc(100vw - 24px));
  max-height: min(480px, calc(100vh - 96px));
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 16px 40px rgb(20 28 45 / 14%);
}

.global-search-panel.hidden {
  display: none;
}

.global-search-group {
  padding: 8px 8px 4px;
}

.global-search-group + .global-search-group {
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.global-search-name {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0 0 4px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
}

.global-search-name:hover,
.global-search-name.is-active {
  background: var(--accent-soft);
}

.global-search-platform {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  object-fit: contain;
}

.global-search-name span {
  min-width: 0;
}

.global-search-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
  color: var(--text);
}

.global-search-option:hover,
.global-search-option.is-active {
  background: var(--accent-soft);
}

.global-search-area {
  font-size: 12.5px;
  font-weight: 500;
}

.global-search-detail {
  color: var(--muted-text);
  font-size: 11.5px;
  font-weight: 400;
  white-space: nowrap;
}

.global-search-empty,
.global-search-note {
  margin: 0;
  padding: 16px 12px;
  color: var(--muted-text);
  font-size: 12.5px;
  text-align: center;
}

.topbar-search::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  margin: 0;
  background: center / 12px 12px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M10.2 1.2 6 5.4 1.8 1.2 1.2 1.8 5.4 6 1.2 10.2l.6.6L6 6.6l4.2 4.2.6-.6L6.6 6l4.2-4.2z'/%3E%3C/svg%3E");
  cursor: pointer;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 0;
  position: relative;
  z-index: 1;
}

.notification-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  line-height: 1;
  transition: background 180ms ease, transform 180ms ease;
}

.notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #1877f2;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #14151a;
}

.notifications-panel {
  position: fixed;
  z-index: 80;
  width: min(380px, calc(100vw - 24px));
  max-height: min(480px, calc(100vh - 96px));
  overflow: auto;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgb(20 28 45 / 14%);
  padding: 0;
}

.notifications-panel.hidden {
  display: none;
}

.notifications-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.notifications-head p {
  margin: 0;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--text);
}

.notifications-count {
  color: var(--muted-text);
  font-size: 11.5px;
  font-weight: 500;
}

.notifications-list {
  display: flex;
  flex-direction: column;
}

.notification-item {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  border-radius: 0;
  padding: 12px 16px;
  text-align: left;
  color: var(--text);
  cursor: pointer;
}

.notification-item:last-child {
  border-bottom: 0;
}

.notification-item:hover {
  background: var(--accent-soft);
}

.notification-item-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
}

.notification-item.is-unread .notification-item-dot {
  background: var(--accent);
}

.notification-item-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.notification-item-task {
  color: var(--muted-text);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
}

.notification-item-name {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-item-time {
  color: var(--muted-text);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.3;
  white-space: nowrap;
}

.notifications-empty {
  margin: 0;
  padding: 28px 16px;
  color: var(--muted-text);
  font-size: 12.5px;
  text-align: center;
}

.mention-menu {
  position: fixed;
  z-index: 5200;
  width: 260px;
  max-height: 220px;
  overflow: auto;
  background: #ffffff;
  color: #172b4d;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgb(0 0 0 / 18%);
  padding: 6px;
}

.mention-menu button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 8px 10px;
  text-align: left;
  color: #172b4d;
  cursor: pointer;
}

.mention-menu button.is-active,
.mention-menu button:hover {
  background: #eef3fb;
}

.notification-btn:hover {
  background: oklch(0.92 0.04 165);
}

.notification-btn:focus-visible {
  outline: none;
  box-shadow: none;
  opacity: 0.82;
}

.avatar-trigger {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  overflow: visible;
  display: flex;
  align-items: center;
  gap: 0;
}

.avatar-ring {
  width: 38px;
  height: 38px;
  border: 0;
  box-shadow: none;
  background: var(--accent-soft);
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.avatar-trigger:hover .avatar-ring {
  border-color: #ffffff;
  box-shadow: 0 0 0 1px rgba(0, 144, 255, 0.95);
}

.avatar-trigger:focus-visible {
  outline: none;
}

.avatar-trigger:focus-visible .avatar-ring {
  box-shadow:
    0 0 0 1px rgba(0, 144, 255, 0.95),
    0 0 0 4px rgba(255, 255, 255, 0.24);
}

.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-chevron {
  display: none;
  color: var(--muted-text);
  font-size: 0.82rem;
  line-height: 1;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.avatar-trigger:hover .avatar-chevron {
  opacity: 0.85;
}

.avatar-trigger[aria-expanded="true"] .avatar-chevron {
  transform: rotate(180deg);
}

.avatar-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 168px;
  background: #ffffff;
  border: 1px solid #d9dfec;
  border-radius: 12px;
  box-shadow:
    0 16px 34px rgba(20, 28, 45, 0.16),
    0 4px 12px rgba(20, 28, 45, 0.09);
  padding: 6px;
  display: grid;
  gap: 2px;
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  transform-origin: top right;
  pointer-events: none;
  transition:
    opacity 180ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.avatar-menu.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.avatar-menu-item {
  width: 100%;
  border: 0;
  background: transparent;
  color: #1f293f;
  text-align: left;
  font-weight: 600 !important;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.9rem;
  cursor: pointer;
}

.avatar-menu-item:hover {
  background: #f1f5ff;
}

.avatar-menu-item-danger {
  color: #bd243c;
}

.avatar-menu-item-danger:hover {
  background: #ffecef;
}

.workspace {
  flex: 1;
  background: var(--background);
  padding: 28px 28px 40px;
}

.sales-view {
  position: relative;
  margin-top: 14px;
}

.sales-view.has-note-bell {
  padding-top: 28px;
}

.sales-view.has-note-bell .trello-note-bell {
  top: -24px;
  left: -2px;
  bottom: auto;
}

@media (max-width: 860px) {
  .sales-view.has-note-bell {
    padding-top: 0;
  }
}

.workspace-page-title {
  margin: 0 0 18px;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #121826;
}

.leverans-workspace-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
  margin: -6px 0 18px;
}

.leverans-workspace-tabs {
  display: inline-flex;
  gap: 4px;
  margin: 0;
  padding: 4px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f7f8fb;
}

.leverans-filters {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  flex-wrap: wrap;
}

.leverans-ads-filter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.leverans-ads-filter-label {
  color: #6b7690;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.leverans-ads-filter-control {
  position: relative;
}

.leverans-ads-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid #e5e7eb;
  background: #f7f8fb;
  color: #111827;
  border-radius: 12px;
  padding: 6px 12px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.leverans-ads-filter-btn.is-active {
  border-color: #b9d7ff;
  background: #f3f8ff;
}

.leverans-ads-filter-btn .fa-chevron-down {
  color: #6b7690;
  font-size: 0.72rem;
}

.ads-ansvarig-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #eef1f6;
  box-shadow: 0 0 0 1px #d7dce8;
}

.ads-ansvarig-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  width: min(280px, 80vw);
  max-height: 320px;
  overflow: auto;
  padding: 6px;
  border: 1px solid #e6ebf4;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(20, 28, 45, 0.14);
}

.ads-ansvarig-menu-title,
.ads-ansvarig-menu-hint,
.ads-ansvarig-menu-empty {
  margin: 0;
  padding: 8px 10px 6px;
  color: #6b7690;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ads-ansvarig-menu-hint,
.ads-ansvarig-menu-empty {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.86rem;
  font-weight: 600;
}

.ads-ansvarig-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: #1c2438;
}

.ads-ansvarig-option:hover,
.ads-ansvarig-option:focus-visible {
  background: #f3f7ff;
}

.ads-ansvarig-option.is-selected {
  background: #eef5ff;
}

.ads-ansvarig-option.is-locked {
  cursor: default;
}

.ads-ansvarig-option .ads-ansvarig-avatar {
  width: 32px;
  height: 32px;
}

.ads-ansvarig-option-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef1f6;
  color: #4b5563;
  flex-shrink: 0;
}

.ads-ansvarig-option-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.ads-ansvarig-option-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.ads-ansvarig-option-rank {
  color: #6b7690;
  font-size: 0.72rem;
  font-weight: 600;
}

.ads-ansvarig-jag {
  margin-left: 6px;
  color: #0089ff;
  font-size: 0.72rem;
  font-weight: 700;
}

.ads-ansvarig-option .fa-check {
  color: #0089ff;
  font-size: 0.75rem;
}

.leverans-workspace-tab {
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #4b5563;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 14px;
  cursor: pointer;
}

.leverans-workspace-tab.is-active,
.leverans-workspace-tab[aria-selected="true"] {
  background: #ffffff;
  color: #111827;
  box-shadow: 0 1px 4px rgba(17, 24, 39, 0.08);
}

.personal-view {
  margin-top: 14px;
  display: grid;
  gap: 16px;
}

.personal-view .workspace-page-title {
  margin-bottom: 0;
}

.personal-create-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 18px 20px 20px;
}

.personal-create-lead {
  margin: 0 0 16px;
  color: #667089;
  font-size: 0.86rem;
  line-height: 1.45;
}

.personal-create-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.personal-create-card h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: #161b2c;
}

.personal-create-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.personal-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.personal-field span {
  color: #495675;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.personal-phone-field {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  border: 1px solid #d7ddf4;
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
}

.personal-phone-prefix {
  flex: 0 0 auto;
  padding: 10px 10px 10px 11px;
  color: #495675;
  font-size: 0.88rem;
  font-weight: 600;
  background: #f4f6fb;
  border-right: 1px solid #d7ddf4;
}

.personal-phone-input,
.personal-phone-field .personal-row-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding-left: 10px;
}

.personal-phone-field:focus-within {
  border-color: #0090ff;
  box-shadow: 0 0 0 3px rgba(0, 144, 255, 0.12);
}

.personal-phone-field .personal-row-input:focus {
  outline: none;
  border-color: transparent;
  box-shadow: none;
}

.personal-create-grid .personal-phone-field {
  width: 100%;
}

.personal-create-grid input:not(.personal-phone-input),
.personal-create-grid select,
.personal-admin-select,
.personal-rank-select,
.personal-password-reset input {
  width: 100%;
  border: 1px solid #d7ddf4;
  border-radius: 10px;
  padding: 10px 11px;
  font-size: 0.88rem;
  color: #1c2438;
  background: #ffffff;
}

.personal-create-grid input:not(.personal-phone-input):focus,
.personal-create-grid select:focus,
.personal-admin-select:focus,
.personal-rank-select:focus,
.personal-password-reset input:focus {
  outline: none;
  border-color: #0090ff;
  box-shadow: 0 0 0 3px rgba(0, 144, 255, 0.12);
}

.personal-create-grid .personal-phone-input {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 10px 11px 10px 10px;
  background: transparent;
}

.personal-create-grid .personal-phone-input:focus {
  outline: none;
  border-color: transparent;
  box-shadow: none;
}

.personal-create-footer {
  margin-top: 12px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.personal-create-footer .personal-field {
  max-width: 240px;
  flex: 1 1 180px;
}

.personal-create-action {
  display: flex;
  align-items: end;
}

.personal-create-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-width: 0;
  flex: 0 0 auto;
  margin: 0;
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  background: #0090ff;
  cursor: pointer;
  white-space: nowrap;
}

.personal-create-btn i {
  font-size: 0.86rem;
}

.personal-create-btn:hover {
  background: #0082e6;
}

.personal-create-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.personal-table-wrap {
  margin-top: 0;
}

.sales-table.personal-table {
  min-width: 780px;
}

.personal-status {
  min-height: 20px;
  margin: 10px 0 0;
  font-size: 0.83rem;
  color: #44506b;
}

.personal-status.error {
  color: #b10000;
}

.personal-status.success {
  color: #00703c;
}

.password-change-lead {
  margin: -12px 0 18px;
  text-align: center;
  color: #5b647c;
  font-size: 0.92rem;
  line-height: 1.45;
}

.sales-mobile-sorts {
  display: none;
}

.sales-table-wrap {
  border: 1px solid #e2e7f1;
  border-radius: 12px;
  overflow-x: auto;
  background: #ffffff;
}

.sales-col-head {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

.sales-filter-label-btn {
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  text-align: left;
}

.sales-filter-label-btn:hover,
.sales-filter-label-btn:focus-visible {
  color: #14151a;
  outline: none;
}

.sales-filter-label-btn[data-filter-active="true"] {
  color: #14151a;
}

.sales-sort-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: auto;
  max-width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  text-align: left;
}

.sales-table th > .sales-sort-btn,
.sales-mobile-sorts > .sales-sort-btn {
  width: 100%;
}

.sales-sort-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateX(1px);
  color: #4a5568;
  font-size: calc(0.52rem + 1.1px);
  font-weight: 900;
  -webkit-text-stroke: 0.55px currentColor;
  line-height: 1;
  flex: 0 0 auto;
}

.sales-sort-btn[data-sort-active="asc"] .sales-sort-chevron,
.sales-sort-btn[data-sort-active="desc"] .sales-sort-chevron {
  color: #14151a;
}

.sales-column-filter-menu {
  position: fixed;
  z-index: 40;
  min-width: 220px;
  max-width: min(320px, calc(100vw - 24px));
  max-height: min(360px, calc(100vh - 24px));
  overflow: auto;
  padding: 10px 0 8px;
  border: 1px solid #e2e7f1;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(20, 28, 45, 0.12);
}

.sales-column-filter-menu.hidden {
  display: none;
}

.sales-column-filter-title {
  margin: 0;
  padding: 2px 14px 8px;
  color: #000000;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sales-column-filter-empty {
  margin: 0;
  padding: 6px 14px 10px;
  color: #7a859e;
  font-size: 0.84rem;
}

.sales-column-filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 14px;
  border: 0;
  background: transparent;
  color: #273048;
  font-size: 0.86rem;
  text-align: left;
  cursor: pointer;
}

.sales-column-filter-option:hover,
.sales-column-filter-option:focus-visible {
  background: #f6f8fc;
  outline: none;
}

.sales-column-filter-option input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #0089ff;
  flex: 0 0 auto;
}

.sales-column-filter-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  background: #eef1f6;
  box-shadow: 0 0 0 1px #d7dce8;
}

.sales-column-filter-option-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-column-filter-menu .sales-status-pill,
.sales-column-filter-menu .roi-status-badge,
.sales-column-filter-menu .roi-status-live {
  cursor: default;
  pointer-events: none;
}

.sales-column-filter-menu .roi-status-badge::after {
  display: none;
}

.sales-column-filter-clear {
  display: block;
  width: calc(100% - 16px);
  margin: 8px 8px 2px;
  border: 0;
  border-radius: 8px;
  background: #f4f6fb;
  color: #3d4a63;
  padding: 7px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.sales-column-filter-clear:hover,
.sales-column-filter-clear:focus-visible {
  background: #e9eef7;
  outline: none;
}

.sales-table-sentinel {
  height: 1px;
}

.sales-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.sales-table th,
.sales-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #edf0f6;
  font-size: 0.89rem;
  color: #273048;
}

.sales-table td:first-child {
  font-weight: 500;
}

.sales-table th.sales-link-col,
.sales-table td.sales-link-col {
  width: 0;
  white-space: nowrap;
}

.sales-table td.sales-link-col {
  padding-left: 2px;
}

/* Startdatum visas bara i Granska-vyn. */
.sales-view:not(.is-review-view) .sales-table .sales-start-date-col {
  display: none !important;
}

.sales-view.is-review-view .sales-table .sales-start-date-col {
  white-space: nowrap;
}

.sales-view .sales-table td.sales-link-col .sales-link {
  position: relative;
  left: -16px;
}

.sales-table th {
  background: #f8f9fc;
  color: #52607c;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.sales-table th .sales-sort-btn,
.sales-table th .sales-filter-label-btn {
  min-width: 0;
}

.sales-empty-row td {
  text-align: center;
  color: #7a859e;
  padding: 18px 14px;
}

.sales-kundstatus {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.sales-kundstatus-skip {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d5dbe8;
  border-radius: 999px;
  padding: 0;
  background: #ffffff;
  color: #3a445c;
  font-size: 0.68rem;
  cursor: pointer;
}

.sales-kundstatus-skip:hover {
  background: #f4f6fa;
  color: #111111;
}

.sales-kundstatus-skip:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 2px;
}

.sales-kundstatus-skip i {
  display: block;
  margin-top: -2px;
  line-height: 1;
  transform: translate(1.5px, 1.5px);
}

.sales-view .sales-status-pill:has(.sales-kundstatus-skip) {
  gap: 6px;
}

.sales-view .sales-status-pill-label {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  cursor: pointer;
}

.sales-view .sales-status-pill .sales-kundstatus-skip {
  width: auto;
  height: auto;
  flex: 0 0 auto;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: #000000;
  font-size: 10px;
  line-height: 1;
}

.sales-view .sales-status-pill .sales-kundstatus-skip:hover {
  background: transparent;
  color: #000000;
  opacity: 1;
}

.sales-view .sales-status-pill .sales-kundstatus-skip i {
  margin-top: 0;
  transform: none;
}

.sales-status-pill {
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #ececec;
  color: #000000;
  cursor: help;
}

button.sales-status-pill {
  cursor: pointer;
}

.sales-status-pill.is-visa {
  min-width: 3.25rem;
  justify-content: center;
  font-variant-numeric: tabular-nums;
  background: #f0f0f0;
  color: #000000;
}

.sales-status-pill.is-slutford,
.sales-status-pill.is-klar {
  background: #2e7a44;
  color: #ffffff;
}

.sales-status-pill.is-granskar {
  background: #7475a3;
  color: #ffffff;
}

.sales-status-pill.is-godkand {
  background: #1f7a3a;
  color: #ffffff;
  cursor: default;
}

.sales-status-pill.is-nekad,
.sales-status-pill.is-vantar {
  background: #867541;
  color: #ffffff;
}

.sales-status-pill.is-archived {
  background: #c23b3b;
  color: #ffffff;
  cursor: help;
}

.roi-status-badge {
  border: 0;
  border-radius: 999px;
  padding: 5px 11px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #ffffff;
  background: #000000;
  cursor: pointer;
}

span.roi-status-badge {
  cursor: help;
}

.roi-status-badge.is-waiting {
  background: #0089ff;
  cursor: help;
}

.roi-status-badge.is-sent {
  background: #2f7a44;
}

.roi-status-badge.is-feedback {
  background: #c2410c;
}

.roi-status-badge.is-reviewing {
  background: #6d28d9;
}

.roi-status-badge.is-correct {
  background: #b45309;
}

.roi-status-badge.is-offline {
  background: #c23b3b;
  cursor: help;
}

.roi-status-badge.is-offline::after {
  display: none;
}

.roi-status-badge.is-reviewing.is-static::after {
  display: none;
}

.roi-status-badge.is-reviewing.is-static {
  cursor: help;
}

.roi-status-badge::after {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 2px solid #000000;
  border-right: 2px solid #000000;
  transform: rotate(45deg);
}

.roi-status-badge.is-waiting::after,
.roi-status-badge.is-at-delivery::after {
  display: none;
}

.roi-status-badge.is-at-delivery {
  cursor: help;
}

.roi-status-badge.is-approved-material {
  background: #2f7a44;
  color: #ffffff;
}

.roi-status-badge.is-publish {
  background: #0090ff;
  color: #ffffff;
}

.roi-status-badge.is-publish::after {
  border-top-color: #ffffff;
  border-right-color: #ffffff;
}

.roi-status-live {
  display: inline-flex;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #111111;
  cursor: help;
}

.roi-status-live:focus-visible,
.roi-status-badge:focus-visible,
.sales-status-pill:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 2px;
}

.roi-status-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.roi-status-warning {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 50%;
  background: #dc2626;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  cursor: default;
}

.roi-status-warning i {
  font-size: 0.82rem;
  line-height: 1;
  width: 1em;
  height: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.roi-status-tooltip {
  position: fixed;
  left: 0;
  top: 0;
  transform: translate(-50%, calc(-100% - 8px));
  opacity: 0;
  pointer-events: none;
  z-index: 3000;
  border-radius: 8px;
  padding: 6px 10px;
  background: rgba(17, 24, 39, 0.96);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.22),
    0 2px 6px rgba(0, 0, 0, 0.18);
  transition: opacity 0.12s ease;
}

.roi-status-tooltip.is-visible {
  opacity: 1;
}

.sales-view .sales-table td {
  padding-top: 16px;
  padding-bottom: 16px;
}

.sales-customer {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.sales-customer-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  overflow: hidden;
  border: 1px solid var(--border, #e6ebf4);
  border-radius: 12px;
  background: var(--surface, #fff);
  color: var(--muted-text, #667089);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.sales-customer-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.sales-customer-logo.is-google-logo {
  width: 55%;
  height: 55%;
}

.sales-customer-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.sales-customer-link {
  border: 0;
  background: transparent;
  padding: 0;
  color: #20293f;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  min-width: 0;
}

.sales-customer-link:hover {
  text-decoration: underline;
}

.sales-customer-note-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f0f0f0;
  color: #000000;
  font-size: 0.77rem;
  line-height: 1;
}

.sales-ansvarig {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.sales-ansvarig-names {
  min-width: 0;
}

.sales-ansvarig-avatars {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.sales-view .sales-ansvarig-avatar-btn {
  width: 34px;
  height: 34px;
}

.sales-ansvarig-avatar-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  overflow: hidden;
  background: #eef1f6;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px #d7dce8;
}

.sales-ansvarig-avatar-btn.is-static {
  cursor: default;
}

.sales-ansvarig-avatar-btn:hover:not(.is-static),
.sales-ansvarig-avatar-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #1663d6;
}

.sales-ansvarig-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.sales-link {
  border: 0;
  padding: 0;
  background: transparent;
  font: inherit;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
  color: #1663d6;
  text-decoration: none;
  cursor: pointer;
}

.sales-link:hover {
  text-decoration: underline;
}

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 10px);
  opacity: 0;
  pointer-events: none;
  z-index: 3000;
  border-radius: 10px;
  padding: 10px 14px;
  background: rgba(17, 24, 39, 0.96);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.24),
    0 2px 8px rgba(0, 0, 0, 0.2);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.copy-toast.at-pointer {
  bottom: auto;
  transform: translate(-50%, -115%);
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.copy-toast.at-pointer.is-visible {
  transform: translate(-50%, -125%);
}

.top-toast {
  position: fixed;
  top: 23px;
  left: 50%;
  transform: translate(-50%, -24px);
  opacity: 0;
  pointer-events: none;
  z-index: 10050;
  border-radius: 10px;
  padding: 9px 16px;
  background: rgba(17, 17, 17, 0.97);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  max-width: calc(100vw - 32px);
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.28),
    0 2px 10px rgba(0, 0, 0, 0.22);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.top-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.personal-admin-cell,
.personal-rank-cell {
  width: 168px;
}

.personal-action-cell {
  min-width: 280px;
}

.personal-phone-cell .personal-phone-field {
  border-radius: 8px;
}

.personal-phone-cell .personal-phone-prefix {
  padding: 7px 8px 7px 9px;
  font-size: 0.86rem;
}

.personal-phone-cell .personal-phone-input,
.personal-phone-cell .personal-row-input {
  padding: 7px 9px 7px 8px;
  font-size: 0.86rem;
}

.personal-row-input {
  width: 100%;
  border: 1px solid #d7ddf4;
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 0.86rem;
  color: #1c2438;
  background: #ffffff;
}

.personal-row-input:focus {
  outline: none;
  border-color: #0090ff;
  box-shadow: 0 0 0 3px rgba(0, 144, 255, 0.12);
}

.personal-rank-select,
#personal-admin-select {
  min-width: 148px;
  font-weight: 600;
  padding-top: 6px;
  padding-left: 8px;
  padding-bottom: 6px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2352607c' d='M1.2 1.1 6 6.1l4.8-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 10px 7px;
  background-position: right 9.5px center;
}

.personal-rank-select::-ms-expand,
#personal-admin-select::-ms-expand {
  display: none;
}

.personal-rank-select[data-rank="1"],
#personal-admin-select[data-rank="1"] {
  border-color: #bfd6ff;
  background-color: #eef5ff;
  color: #ff0000;
}

.personal-rank-select[data-rank="2"],
#personal-admin-select[data-rank="2"] {
  border-color: #dbe1ee;
  background-color: #f6f8fc;
  color: #8a5a00;
}

.personal-rank-select[data-rank="0"],
#personal-admin-select[data-rank="0"] {
  border-color: #dbe1ee;
  background-color: #f6f8fc;
  color: #3c4763;
}

.personal-rank-select[data-rank="3"],
#personal-admin-select[data-rank="3"] {
  border-color: #c9ddcf;
  background-color: #f3faf5;
  color: #2f5d44;
}

.personal-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.personal-save-btn,
.personal-password-btn,
.personal-password-confirm-btn,
.personal-password-cancel-btn,
.personal-delete-btn,
.personal-delete-confirm-btn,
.personal-delete-cancel-btn {
  width: auto;
  min-width: 0;
  flex: 0 0 auto;
  padding: 8px 12px;
  font-size: 0.8rem;
}

.personal-password-btn {
  color: #26314a;
  background: #ffffff;
  border: 1px solid #d6ddff;
}

.personal-delete-btn {
  color: #bd243c;
  background: #ffffff;
  border: 1px solid #f3c5cd;
}

.personal-delete-btn:hover:not(:disabled) {
  background: #ffecef;
}

.personal-delete-confirm-btn {
  color: #ffffff;
  background: #bd243c;
  border: 1px solid #bd243c;
}

.personal-delete-confirm-btn:hover:not(:disabled) {
  background: #9e1d33;
}

.personal-email-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}

.personal-email-text {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.personal-must-change {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  background: #dedede;
  color: #000000;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.personal-password-reset {
  display: none;
  width: 100%;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #edf0f6;
}

.personal-password-reset.is-open {
  display: grid;
  gap: 8px;
}

.personal-password-reset-actions,
.personal-delete-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.personal-delete-confirm {
  display: none;
  width: 100%;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #edf0f6;
}

.personal-delete-confirm.is-open {
  display: grid;
  gap: 8px;
}

.personal-delete-confirm-text {
  margin: 0;
  color: #5a3140;
  font-size: 0.8rem;
  line-height: 1.4;
}

.workspace-text {
  margin: 0;
  color: #8a90a3;
  font-size: 0.95rem;
}

.app-status {
  margin: 10px 0 0;
  color: #2d3348;
  font-size: 0.9rem;
}

.app-status.error {
  color: #b10000;
}

.app-status.success {
  color: #00703c;
}

.modal-icon-close {
  border: 0;
  background: transparent;
  color: #626b83;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal-icon-close:hover {
  background: #f0f3fa;
}

.avatar-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(11, 16, 27, 0.58);
  padding: 20px;
  z-index: 20;
}

.profile-modal,
.material-upload-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(11, 16, 27, 0.52);
  padding: 20px;
  z-index: 25;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.profile-modal.is-open,
.material-upload-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

#customer-portal-skip-confirm-modal {
  z-index: 80;
}

.create-customer-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(11, 16, 27, 0.52);
  padding: 20px;
  z-index: 24;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.profile-modal-card {
  width: min(470px, 100%);
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e4e8f7;
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.24),
    0 4px 14px rgba(0, 0, 0, 0.13);
    padding: 18px 20px 22px;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition:
    opacity 220ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.profile-modal.is-open .profile-modal-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.profile-modal-card .modal-icon-close {
  margin-left: auto;
  display: flex;
  width: 34px;
  height: 34px;
  color: #000000;
}

.profile-modal-card .modal-icon-close .fa-xmark {
  font-size: 1.3rem;
}

.material-upload-card .modal-icon-close {
  width: 34px;
  height: 34px;
  color: #000000;
}

.material-upload-card .modal-icon-close .fa-xmark {
  font-size: 1.3rem;
}

.profile-avatar-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 0 20px;
}

.profile-avatar-frame {
  width: 96px;
  height: 96px;
  position: relative;
}

.profile-modal-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #c9c9c9;
  background: #f3f6fc;
}

.profile-avatar-change-btn {
  position: absolute;
  top: 78px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #eff2f7;
  color: #000000;
  box-shadow: 0 2px 5px rgb(0 0 0 / 36%);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar-change-favicon {
  display: none;
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.profile-modal.is-view-only .profile-avatar-change-camera {
  display: none;
}

.profile-modal.is-view-only .profile-avatar-change-favicon {
  display: block;
}

.profile-modal.is-view-only .profile-avatar-change-btn,
.profile-modal.is-view-only .profile-avatar-change-btn:disabled {
  cursor: default;
  pointer-events: none;
  opacity: 1;
  color: #000000;
}

.profile-avatar-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #000000;
}

.profile-avatar-text {
  margin: 34px 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.profile-avatar-subtitle {
  margin: 0;
  font-size: 0.85rem;
  color: #2f3545;
}

.profile-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-field {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  color: #30374f;
}

.profile-field input {
  width: 100%;
  border: 1px solid #e6eaf3;
  background: #f4f6fa;
  border-radius: 10px;
  padding: 11px 12px;
  color: #232b3f;
}

.profile-field-full {
  margin-top: 10px;
}

.profile-field input:focus {
  outline: none;
}

.material-upload-card {
  width: min(620px, 100%);
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e4e8f7;
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.24),
    0 4px 14px rgba(0, 0, 0, 0.13);
  padding: 20px;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition:
    opacity 220ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.material-upload-modal.is-open .material-upload-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.material-upload-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.material-upload-header h2 {
  margin: 0;
  font-size: 1.9rem;
}

.material-upload-customer {
  margin: 0 0 20px;
  font-size: 0.86rem;
  color: #66738f;
}

.material-upload-dropzone {
  width: 100%;
  border: 1px dashed #d7deec;
  border-radius: 12px;
  background: #fcfdff;
  padding: 24px 14px;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: #2c354f;
  cursor: pointer;
}

.material-upload-dropzone.is-drag-over {
  border-color: #96b5ff;
  background: #f2f7ff;
}

.material-upload-icon {
  color: #96a2bc;
  font-size: 1.05rem;
}

.material-upload-primary {
  font-size: 1.04rem;
}

.material-upload-primary span {
  color: #1770ff;
}

.material-upload-secondary {
  color: #7a839b;
  font-size: 0.89rem;
}

.material-upload-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.material-upload-file {
  border: 1px solid #e6eaf3;
  border-radius: 10px;
  padding: 12px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2f3650;
  font-size: 0.9rem;
  background: #ffffff;
}

.material-upload-file i {
  color: #f24d4d;
  font-size: 1rem;
}

.material-upload-empty {
  border: 1px dashed #e0e6f2;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  color: #78839f;
  font-size: 0.86rem;
}

.material-upload-actions {
  margin-top: 14px;
}

.material-upload-status {
  min-height: 20px;
  margin: 8px 0 0;
  color: #4a5572;
  font-size: 0.84rem;
}

.material-upload-status.error {
  color: #b10000;
}

.material-upload-status.success {
  color: #00703c;
}

.customer-details-view {
  margin-top: 14px;
  display: grid;
  gap: 14px;
}

.customer-details-view-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.customer-details-view-header h2 {
  margin: 0;
  font-size: 1.42rem;
  margin-bottom: 11px;
  color: #1d2434;
}

.customer-details-view-header h2:has(+ .customer-details-split-label:not(.hidden)) {
  margin-bottom: 4px;
}

.customer-details-split-label {
  margin: 0 0 8px;
  color: #3d4a66;
  font-size: 0.92rem;
  font-weight: 600;
}

.customer-details-view-header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.customer-details-back-btn {
  border: 1px solid #d6deef;
  background: #ffffff;
  color: #2f3a55;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.material-delivery-send-btn {
  border: 0;
  background: #007eff;
  color: #ffffff;
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: auto;
}

.material-delivery-send-btn:hover {
  background: #0082e6;
}

.material-delivery-send-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.customer-details-back-btn:hover {
  background: #f3f7ff;
}

.material-delivery-content {
  max-width: none;
}

.material-delivery-card {
  background: #ffffff;
  border: 1px solid #e6ebf3;
  border-radius: 16px;
  padding: 22px 24px 24px;
  box-shadow: 0 8px 24px rgba(20, 28, 45, 0.04);
}

.material-delivery-card h3 {
  margin: 0 0 16px;
  font-size: 1.28rem;
  color: #111827;
}

.material-delivery-feedback-card {

  background: #ffffff;
}

.material-delivery-feedback-list,
.customer-feedback-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.material-delivery-feedback-list li,
.customer-feedback-list li {
  border-radius: 10px;
  background: #f3f4f6;
  padding: 10px 12px;
  color: #111827;
}

.material-delivery-feedback-list {
  counter-reset: material-feedback;
}

.material-delivery-feedback-list li {
  background: #f2f2f2;
  counter-increment: material-feedback;
}

.material-delivery-feedback-list li::before {
  content: none;
}

.material-delivery-comment-label {
  display: block;
  margin: 0 0 8px;
  color: #3d4a66;
  font-size: 0.86rem;
  font-weight: 600;
}

.material-delivery-comment-input {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  border: 1px solid #d6deef;
  border-radius: 12px;
  padding: 12px 13px;
  font-size: 0.92rem;
  color: #1c2438;
  background: #fafbfe;
}

.material-delivery-feedback-history {
  display: grid;
  gap: 16px;
  grid-column: 1 / -1;
}

.material-feedback-task-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.material-feedback-task {
  border-radius: 10px;
  background: #f2f2f2;
  padding: 12px 14px;
  color: #111827;
  display: grid;
  gap: 8px;
}

.material-feedback-task-main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.material-feedback-task-check {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 2px solid #b8c0cf;
  border-radius: 50%;
  background: #ffffff;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
}

.material-feedback-task-check i {
  font-size: 0.68rem;
}

.material-feedback-task.is-done .material-feedback-task-check,
.material-feedback-task-check[disabled] {
  cursor: default;
}

.material-feedback-task.is-done .material-feedback-task-check,
.material-feedback-task-check.is-on {
  border-color: #16a34a;
  background: #16a34a;
  cursor: pointer;
}

.material-feedback-task-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.4;
  flex: 1;
}

button.material-feedback-task-file {
  border: 0;
  background: #e8edf5;
  font: inherit;
  color: inherit;
  cursor: zoom-in;
}

.material-feedback-task-file {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  background: #e8edf5;
  color: #44506b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.15;
  padding: 4px;
  text-decoration: none;
}

.material-feedback-task-file img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.material-feedback-task.is-done .material-feedback-task-text {
  text-decoration: line-through;
  color: #6b7280;
}

.material-feedback-task-reply {
  margin-left: 32px;
  border-radius: 8px;
  background: #e5e7eb;
  padding: 8px 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #1f2937;
  font-size: 0.86rem;
}

.material-feedback-task-reply i {
  margin-top: 3px;
  color: #4b5563;
}

.material-feedback-task-reply-input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  font: inherit;
  resize: none;
  min-height: 36px;
}

.material-feedback-task-reply-input:focus {
  outline: none;
}

.material-feedback-task-status {
  margin: 0 0 0 32px;
  color: #16a34a;
  font-size: 0.78rem;
  font-weight: 700;
}

.material-thumb-badge {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 1;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
  background: #16a34a;
}

.material-thumb-badge.is-removed {
  background: #b42318;
}

.material-delivery-thumb.is-removed {
  opacity: 0.62;
}

.material-send-confirm-text {
  margin: 0 0 8px;
  color: #44506b;
  font-size: 0.92rem;
  line-height: 1.45;
}

.customer-review-response {
  display: grid;
  gap: 14px;
  width: 100%;
  margin: 18px 0 0;
}

.customer-review-response-card {
  background: #ffffff;
  border: 1px solid #e6ebf3;
  border-radius: 16px;
  padding: 18px 18px 16px;
}

.customer-review-response-card h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  color: #111827;
}

.customer-review-agency-comment {
  margin: 0;
  color: #1f2937;
  font-size: 0.92rem;
  line-height: 1.45;
}

.customer-feedback-list {
  counter-reset: customer-feedback;
  margin-top: 10px;
}

.customer-feedback-list li {
  counter-increment: customer-feedback;
}

.customer-feedback-list li::before {
  content: counter(customer-feedback) ". ";
  font-weight: 600;
}

.customer-feedback-history {
  display: grid;
  gap: 12px;
}

.customer-feedback-history-entry {
  border: 1px solid #e6ebf4;
  border-radius: 12px;
  background: #f8f9fc;
  padding: 14px 14px 12px;
}

.customer-feedback-history-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

@media (max-width: 860px) {
  .customer-feedback-history-head {
    flex-wrap: wrap;
  }
}

.customer-feedback-history-title {
  margin: 0;
  color: #161b2c;
  font-size: 0.95rem;
  font-weight: 700;
}

.customer-feedback-history-time {
  display: block;
  margin-top: 2px;
  color: #6b7690;
  font-size: 0.82rem;
  font-weight: 600;
}

.customer-feedback-history-count {
  flex-shrink: 0;
  color: #4b5568;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.customer-feedback-history-entry .customer-feedback-list {
  margin-top: 12px;
}

.customer-feedback-history-entry .customer-feedback-list li {
  background: #ffffff;
}

.material-delivery-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.material-delivery-view.is-readonly .material-upload-dropzone,
.material-delivery-view.is-readonly .material-delivery-link-form,
.material-delivery-view.is-readonly .material-delivery-thumb-remove,
.material-delivery-view.is-readonly .material-delivery-send-btn,
.material-delivery-view.is-readonly .material-delivery-feedback-card,
.material-delivery-view.is-readonly .material-delivery-comment-card,
.material-delivery-view.is-readonly .material-delivery-reviewer-note-card,
.material-delivery-view.is-readonly .material-delivery-rejection-history-card,
.material-delivery-view.is-readonly .material-delivery-feedback-history {
  display: none !important;
}

.material-delivery-answers {
  margin: 0;
  display: grid;
  gap: 12px;
}

.material-delivery-answers div {
  display: grid;
  grid-template-columns: minmax(110px, 140px) 1fr;
  gap: 16px;
  align-items: start;
}

.material-delivery-answers dt,
.material-delivery-answers dd {
  margin: 0;
  color: #111827;
  font-size: 0.98rem;
}

.material-delivery-answers dt {
  font-weight: 500;
}

.material-delivery-view .material-upload-dropzone {
  width: 100%;
  min-height: 148px;
  border: 1px dashed #dce3f0;
  border-radius: 12px;
  background: #fafbfe;
  color: #1f2937;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  padding: 28px 16px;
  cursor: pointer;
}

.material-delivery-view .material-upload-dropzone.is-drag-over {
  border-color: #96b5ff;
  background: #f3f7ff;
}

.material-delivery-view .material-upload-dropzone.is-busy,
.material-delivery-view .material-upload-dropzone:disabled {
  opacity: 0.65;
  cursor: wait;
}

.material-delivery-view .material-upload-icon {
  font-size: 1.5rem;
  color: #6b7280;
}

.material-delivery-view .material-upload-primary {
  font-weight: 600;
  color: #111827;
}

.material-delivery-view .material-upload-primary span {
  color: inherit;
}

.material-delivery-view .material-upload-secondary {
  color: #6b7280;
  font-size: 0.9rem;
}

.material-delivery-thumbs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.material-delivery-thumb {
  position: relative;
  border: 1px solid #e6ebf4;
  border-radius: 14px;
  overflow: hidden;
  padding-bottom: 12px !important;
  background: #ffffff;
  min-height: 188px;
  box-shadow: 0 8px 20px rgba(20, 28, 45, 0.04);
}

.material-review-thumb-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
}

.material-review-thumb-remove:hover {
  background: #000000;
}

.material-delivery-thumb-btn {
  position: relative;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  display: block;
  cursor: pointer;
}

.material-delivery-thumb-preview {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  background: #eef2f7;
}

.material-delivery-thumb-preview.is-video {
  object-fit: cover;
}

.material-delivery-thumb.is-accepted {
  border-color: #86efac;
}

.material-delivery-thumb.is-rejected {
  border-color: #fca5a5;
}

@keyframes material-reject-overlay-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.material-delivery-thumb.is-rejected .material-delivery-thumb-btn::after,
.material-delivery-thumb.is-rejected .material-delivery-thumb-file::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(12, 14, 20, 0.48);
  pointer-events: none;
  animation: material-reject-overlay-in 360ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .material-delivery-thumb.is-rejected .material-delivery-thumb-btn::after,
  .material-delivery-thumb.is-rejected .material-delivery-thumb-file::after {
    animation: none;
  }
}

.material-review-actions {
  display: flex;
  gap: 6px;
  padding: 10px 10px 0;
}

.material-review-approve-all {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 12px;
  padding: 8px 14px;
  border: 1px solid #86efac;
  border-radius: 9px;
  background: #f0fdf4;
  color: #166534;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.material-review-approve-all:hover:not(:disabled) {
  background: #dcfce7;
}

.material-review-approve-all:disabled {
  opacity: 0.6;
  cursor: default;
}

.material-review-action {
  flex: 1;
  border: 1px solid #d6deef;
  background: #ffffff;
  color: #2f3a55;
  border-radius: 9px;
  padding: 7px 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.material-review-action.is-accept:hover {
  background: #f0fdf4;
  border-color: #86efac;
}

.material-review-action.is-reject:hover {
  background: #fef2f2;
  border-color: #fca5a5;
}

.material-review-action.is-accept.is-active {
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
}

.material-review-action.is-reject.is-active {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
}

.material-review-comment-wrap {
  display: grid;
  gap: 12px;

  width: calc(100% - 20px);
  margin: 8px 10px 10px;
}

.material-review-comment {
  display: block;
  width: 100%;
  margin: 0;
  min-height: 64px;
  resize: vertical;
  border: 1px solid #d6deef;
  border-radius: 10px;
  padding: 10px;
  font-size: calc(0.8rem + 0.5px);
  color: #1c2438;
}

.material-review-comment-save {
  width: 100%;
  justify-self: stretch;
  border: 1px solid #0089ff;
  background: #0089ff;
  color: #ffffff;
  border-radius: 9px;
  padding: 9px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.material-review-comment-save:hover {
  background: #007ae6;
  border-color: #007ae6;
}

.material-review-comment-save:disabled {
  opacity: 0.72;
  cursor: default;
}

.material-review-general {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.material-review-general label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #2f3a55;
}

.material-review-general textarea {
  width: 100%;
  min-height: 88px;
  resize: vertical;
  border: 1px solid #d6deef;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #1c2438;
  background: #ffffff;
}

.material-review-general-readonly {
  display: grid;
  gap: 4px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f4f7fb;
  color: #1c2438;
}

.material-review-general-readonly-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #5b6478;
}

.material-review-general-readonly [data-review-general-text] {
  margin: 0;
  white-space: pre-wrap;
  font-size: 0.9rem;
  line-height: 1.45;
}

.material-delivery-correction-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.material-delivery-rejection-history .material-delivery-correction-list {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  align-items: start;
}

.material-delivery-rejection-history .material-delivery-correction-item .material-delivery-correction-thumb,
.material-delivery-rejection-history .material-delivery-correction-item .customer-details-thumb-btn.material-delivery-correction-thumb {
  width: 120px;
  max-width: 120px;
  flex-basis: 120px;
}

.material-delivery-correction-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-radius: 10px;
  background: #fff7ed;
  padding: 10px 12px;
  color: #111827;
}

.material-delivery-correction-item .material-delivery-correction-thumb,
.material-delivery-correction-item .customer-details-thumb-btn.material-delivery-correction-thumb {
  width: 220px;
  max-width: 220px;
  height: auto;
  aspect-ratio: 3 / 4;
  flex: 0 0 220px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #f3e8d8;
  display: block;
  cursor: pointer;
}

.material-delivery-correction-thumb.is-file {
  display: grid;
  place-items: center;
  cursor: default;
  color: #9a6b2f;
  font-size: 1.35rem;
}

.material-delivery-correction-thumb-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.material-delivery-correction-copy {
  min-width: 0;
  flex: 1;
}

.material-delivery-correction-item strong {
  display: block;
  margin-bottom: 4px;
}

.material-delivery-correction-copy p {
  margin: 0;
  color: #3f3a32;
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.material-delivery-history-toggle {
  margin-left: auto;
  border: 1px solid #d6deef;
  background: #ffffff;
  color: #2f3a55;
  border-radius: 9px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.material-delivery-history-toggle:hover {
  background: #f5f7fb;
}

.material-delivery-rejection-history-card.is-collapsed .customer-details-block-body {
  display: none;
}

.material-delivery-rejection-history-card.is-collapsed .customer-details-block-head {
  margin-bottom: 0;
}

.material-delivery-rejection-history {
  display: grid;
  gap: 18px;
}

.material-delivery-rejection-round {
  display: grid;
  gap: 10px;
}

.material-delivery-rejection-round-title {
  margin: 0;
  color: #6b7280;
  font-size: 0.82rem;
  font-weight: 700;
}

.material-delivery-correction-item.is-history {
  background: #f8fafc;
}

.material-delivery-reviewer-note-history {
  display: grid;
  gap: 14px;
}

#material-delivery-reviewer-note-text:not(.hidden) + .material-delivery-reviewer-note-history:not(.hidden) {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e6ebf4;
}

.material-delivery-reviewer-note-history-item {
  display: grid;
  gap: 6px;
}

.material-delivery-view.is-review .material-upload-dropzone,
.material-delivery-view.is-review .material-delivery-link-form,
.material-delivery-view.is-review .material-delivery-thumb-remove {
  display: none;
}

.material-delivery-link-form {
  margin-top: 16px;
}

.material-delivery-link-divider {
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  color: #6b7280;
  font-size: 0.82rem;
  gap: 12px;
}

.material-delivery-link-divider::before,
.material-delivery-link-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid #e5e9f2;
}

.material-delivery-link-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-weight: 600;
  color: #111827;
  font-size: 0.92rem;
}

.material-delivery-link-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

#material-delivery-link-input {
  flex: 1;
  min-width: 0;
  border: 1px solid #d5d9e3;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 0.98rem;
  color: #111827;
}

#material-delivery-link-input:focus {
  outline: none;
  border-color: #0090ff;
  box-shadow: 0 0 0 3px rgba(0, 144, 255, 0.14);
}

#material-delivery-link-input:disabled {
  opacity: 0.55;
}

.material-delivery-link-add-btn {
  flex: 0 0 auto;
  border: 0;
  background: #0090ff;
  color: #ffffff;
  border-radius: 10px;
  padding: 0 16px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

.material-delivery-link-add-btn:hover {
  background: #0082e6;
}

.material-delivery-link-add-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.material-delivery-link-help {
  margin: 8px 0 0;
  color: #6b7280;
  font-size: 0.84rem;
}

.material-delivery-thumb-file.is-link,
.material-delivery-correction-thumb.is-link {
  color: #0090ff;
}

.material-delivery-view.is-review .material-feedback-task-check {
  pointer-events: none;
}

.material-delivery-view.is-review .material-delivery-thumb {
  padding-bottom: 3px;
}

.material-delivery-thumb-file {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  color: #6b7280;
  font-size: 1.6rem;
  background: #eef2f7;
}

.material-delivery-thumb-feedback {
  margin: 0;
  padding: 8px 10px;
  border-top: 1px solid #e6ebf4;
  background: #f4f6fb;
  color: #1c2438;
  font-size: 0.78rem;
  line-height: 1.4;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.material-delivery-thumb-name {
  margin: 0;
  padding: 8px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #4b5563;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: #ffffff;
}

.material-delivery-thumb-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
}

.material-delivery-thumb-remove:hover {
  background: #000000;
}

.material-delivery-thumb.is-uploading {
  opacity: 0.7;
}

#customer-details-view.customer-details-view,
#material-delivery-view.customer-details-view {
  margin-top: 6px;
  gap: 20px;
}

#customer-details-view .customer-details-view-header,
#material-delivery-view .customer-details-view-header {
  gap: 16px;
}

#customer-details-view .customer-details-heading,
#material-delivery-view .customer-details-heading {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

#customer-details-view .customer-details-kicker,
#material-delivery-view .customer-details-kicker {
  margin: 0;
  color: #0089ff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#customer-details-view .customer-details-heading-row,
#material-delivery-view .customer-details-heading-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  width: 100%;
}

#customer-details-view .customer-details-heading-main,
#material-delivery-view .customer-details-heading-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 46px;
  min-width: 0;
}

#customer-details-view .customer-details-ads-wrap {
  position: relative;
}

#customer-details-view .customer-details-ads-ansvarig {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 0px 6px 2px 2px;
  cursor: pointer;
  font: inherit;
  color: #1c2438;
}

#customer-details-view .customer-details-ads-ansvarig:hover,
#customer-details-view .customer-details-ads-ansvarig[aria-expanded="true"] {
  background: transparent;
  cursor: pointer;
}

#customer-details-view .customer-details-ads-ansvarig:disabled {
  cursor: progress;
  opacity: 0.7;
}

#customer-details-view .customer-details-ads-ansvarig.is-viewonly,
#customer-details-view .customer-details-ads-ansvarig.is-viewonly:hover,
#customer-details-view .customer-details-ads-ansvarig.is-viewonly:disabled {
  cursor: default;
  opacity: 1;
  pointer-events: none;
}

#customer-details-view .customer-details-ads-ansvarig.is-viewonly.is-unassigned .customer-details-ads-name::after {
  content: none;
}

#customer-details-view .customer-details-ads-ansvarig.is-viewonly.is-unassigned:hover .customer-details-ads-name,
#customer-details-view .customer-details-ads-ansvarig.is-viewonly.is-unassigned[aria-expanded="true"] .customer-details-ads-name {
  background: #e6ebf4;
}

#customer-details-view .customer-details-ads-name {
  font-size: 0.9rem;
  font-weight: 600;
}

#customer-details-view .customer-details-ads-ansvarig.is-unassigned {
  padding: 0;
  gap: 0;
  background: transparent;
}

#customer-details-view .customer-details-ads-ansvarig.is-unassigned:hover,
#customer-details-view .customer-details-ads-ansvarig.is-unassigned[aria-expanded="true"] {
  background: transparent;
}

#customer-details-view .customer-details-ads-ansvarig.is-unassigned .customer-details-ads-name {
  border-radius: 999px;
  padding: 5px 11px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: normal;
  color: #3d4a63;
  background: #e6ebf4;
}

#customer-details-view .customer-details-ads-ansvarig.is-unassigned .customer-details-ads-name::after {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

#customer-details-view .customer-details-ads-ansvarig.is-unassigned:hover .customer-details-ads-name,
#customer-details-view .customer-details-ads-ansvarig.is-unassigned[aria-expanded="true"] .customer-details-ads-name {
  background: #dbe2ef;
}

#customer-details-view .customer-details-heading-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

#customer-details-view .customer-upcoming-contact {
  position: relative;
}

#customer-details-view .customer-upcoming-contact-btn {
  height: 35px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  background: #e7f1ff;
  color: #0b5cab;
  font-size: 11.5px;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
}

#customer-details-view .customer-upcoming-contact-btn:hover,
#customer-details-view .customer-upcoming-contact-btn[aria-expanded="true"] {
  background: #d7e8ff;
}

#customer-details-view .customer-upcoming-contact-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(280px, 80vw);
  padding: 12px;
  border: 1px solid #e6ebf4;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(20, 28, 45, 0.14);
}

#customer-details-view .customer-upcoming-contact-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #6b7690;
  font-size: 11.5px;
  font-weight: 650;
}

#customer-details-view .customer-upcoming-contact-field input {
  height: 35px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
}

#customer-details-view .customer-upcoming-contact-actions {
  display: flex;
  gap: 8px;
}

#customer-details-view .customer-upcoming-contact-actions button {
  flex: 1;
  height: 34px;
  border: 0;
  border-radius: 7px;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

#customer-details-view #customer-upcoming-contact-save {
  background: #007eff;
  color: #ffffff;
}

#customer-details-view #customer-upcoming-contact-clear {
  background: #f4f6fb;
  color: #8a3414;
}

#customer-details-view .customer-upcoming-contact-actions button:disabled {
  cursor: default;
  opacity: 0.6;
}

#customer-details-view .customer-upcoming-contact-status {
  margin: 0;
  min-height: 0;
  color: #8a3414;
  font-size: 12px;
}

#customer-details-view .customer-upcoming-contact-status:empty {
  display: none;
}

#customer-details-view .customer-details-link-btn,
#customer-details-view .customer-details-archive-btn,
#customer-details-view .customer-details-delete-btn {
  border: 1px solid #d6deef;
  background: #ffffff;
  color: #2f3a55;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.86rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  flex-shrink: 0;
}

#customer-details-view .customer-details-link-btn:hover,
#customer-details-view .customer-details-archive-btn:hover {
  background: #f3f7ff;
}

#customer-details-view .customer-details-archive-btn:disabled {
  color: #6b7690;
  background: #f4f6fb;
  cursor: default;
}

#customer-details-view .customer-details-view-header h2,
#material-delivery-view .customer-details-view-header h2 {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #121826;
}

#customer-details-view .customer-details-view-header h2.is-editable {
  width: fit-content;
  cursor: pointer;
}

#customer-details-view .customer-details-view-header h2.is-editable:hover,
#customer-details-view .customer-details-view-header h2.is-editable:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.customer-rename-label {
  display: block;
  margin: 4px 0 8px;
  color: #6b7690;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

#customer-rename-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 12px 14px;
}

#customer-rename-status:empty {
  display: none;
}

#customer-rename-status.is-error {
  color: #b42318;
}

#customer-details-view .customer-details-split-label {
  margin: 0;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  background: #eef4ff;
  color: #2450a0;
  font-size: 0.78rem;
  font-weight: 600;
}

#customer-details-view .customer-details-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 25px;
  margin-top: 0;
}

#customer-details-view .customer-details-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

#customer-details-view .customer-details-field-label,
.customer-details-field dt {
  color: #6b7690;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

#customer-details-view .customer-details-meta-value {
  color: #1c2438;
  font-size: 0.88rem;
  font-weight: 600;
}

#customer-details-view .roi-status-badge,
#customer-details-view .sales-status-pill,
#customer-details-view .roi-status-live {
  cursor: default;
  width: fit-content;
}

#customer-details-view .sales-kundstatus-skip {
  cursor: pointer;
}

.customer-details-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.customer-details-block {
  border: 1px solid #e6ebf4;
  border-radius: 16px;
  padding: 18px 20px 20px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(20, 28, 45, 0.045);
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.customer-details-block.is-wide {
  grid-column: 1 / -1;
}

.customer-details-pair {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  min-width: 0;
}

.customer-internal-notes {
  height: auto;
}

.customer-internal-notes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.customer-internal-note {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid #e6ebf4;
  border-radius: 12px;
  background: #fafbfe;
}

.customer-internal-note.is-hidden-from-sales {
  background: #f5f6fa;
  border-style: dashed;
}

.customer-internal-note-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #eef2f8;
}

.customer-internal-note-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.customer-internal-note-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}

.customer-internal-note-name {
  color: #161b2c;
  font-size: 0.9rem;
  font-weight: 700;
}

.customer-internal-note-time {
  color: #8a93a8;
  font-size: 0.78rem;
  font-weight: 500;
}

.customer-internal-note-hidden-label {
  color: #6d7690;
  font-size: 0.74rem;
  font-weight: 600;
}

.customer-internal-note-text {
  margin: 0;
  color: oklch(0.35 0 0);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.customer-internal-note-visibility {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #52607c;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.customer-internal-note-visibility:hover {
  background: #eef2f8;
  color: #1c2438;
}

.customer-internal-note-visibility.is-hidden-from-sales {
  color: #8a93a8;
}

.customer-internal-notes-form {
  display: grid;
  gap: 8px;
  padding-top: 4px;
}

.customer-internal-notes-label {
  margin: 0;
  color: #3d4a66;
  font-size: 0.86rem;
  font-weight: 600;
}

.customer-internal-notes-input {
  width: 100%;
  min-height: 88px;
  resize: vertical;
  border: 1px solid #d6deef;
  border-radius: 12px;
  padding: 12px 13px;
  font: inherit;
  font-size: 0.92rem;
  color: #1c2438;
  background: #fafbfe;
}

.customer-internal-notes-input:focus {
  outline: none;
  border-color: #8cbcff;
  box-shadow: 0 0 0 3px rgba(0, 137, 255, 0.12);
}

.customer-internal-notes-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.customer-internal-notes-visibility {
  width: 42px;
  height: 42px;
  border: 1px solid #d6deef;
  border-radius: 12px;
  background: #ffffff;
  color: #3d4a66;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.customer-internal-notes-visibility:hover {
  background: #f4f7fb;
}

.customer-internal-notes-visibility.is-hidden-from-sales {
  color: #6d7690;
  background: #f4f6fa;
}

.customer-internal-notes-submit {
  border: 0;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  color: #ffffff;
  background: #0090ff;
}

.customer-internal-notes-submit:hover {
  background: #0082e6;
}

.customer-internal-notes-submit:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.customer-internal-notes-status {
  margin: 0;
  min-height: 1.1em;
  font-size: 0.82rem;
  font-weight: 500;
}

.customer-internal-notes-status.is-error {
  color: #c0392b;
}

.customer-internal-notes-status.is-success {
  color: #1f7a4d;
}

.customer-details-block-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.customer-details-block-head-action {
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.customer-details-new-material-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  border-radius: 999px;
  padding: 7px 14px;
  background: #0089ff;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.customer-details-new-material-btn:hover {
  background: #0077e0;
}

.customer-details-new-material-btn:active {
  transform: scale(0.97);
}

.customer-details-new-material-btn i {
  font-size: 0.75rem;
}

.material-source-choice-card {
  width: min(520px, 100%);
}

.material-source-choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.material-source-choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  border: 1px solid #e4e8f7;
  border-radius: 12px;
  background: #f8fbff;
  padding: 14px 16px;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.material-source-choice:hover {
  border-color: #0089ff;
  background: #ffffff;
}

.material-source-choice-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1c2438;
}

.material-source-choice-text {
  font-size: 0.82rem;
  line-height: 1.4;
  font-weight: 500;
  color: #6d7690;
}

#material-source-choice-modal .create-customer-modal-card {
  width: min(440px, 100%);
}

#material-source-choice-modal .material-source-choices {
  gap: 14px;
  margin-bottom: 6px;
}

#material-source-choice-modal .material-source-choice {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 12px;
  background: transparent;
  padding: 14px 14px 14px 16px;
  cursor: default;
}

#material-source-choice-modal .material-source-choice:hover {
  border-color: #e4e8f7;
  background: transparent;
}

#material-source-choice-modal .material-source-choice-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

#material-source-choice-modal .material-source-choice-title {
  font-size: 0.92rem;
  font-weight: 600;
}

#material-source-choice-modal .material-source-choice-text {
  font-size: 0.8rem;
  line-height: 1.35;
}

#material-source-choice-modal .material-source-choice > .modal-btn {
  flex: 0 0 auto;
  min-width: 110px;
}

.customer-material-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.customer-material-history-entry details {
  border: 1px solid #e6ebf4;
  border-radius: 12px;
  background: #fafbfe;
  overflow: hidden;
}

.customer-material-history-entry summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1c2438;
}

.customer-material-history-entry summary::-webkit-details-marker {
  display: none;
}

.customer-material-history-entry[open] summary {
  border-bottom: 1px solid #e6ebf4;
}

.customer-material-history-date {
  color: #1c2438;
}

.customer-material-history-count {
  color: #8a93a8;
  font-weight: 500;
  font-size: 0.8rem;
}

.customer-material-history-body {
  padding: 12px 14px 14px;
}

.customer-review-pending-when {
  margin: 0 0 12px;
  color: #8a93a8;
  font-size: 0.82rem;
}

.customer-details-block-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #eef4ff;
  color: #0089ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.82rem;
}

.customer-details-block h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: #161b2c;
}

.customer-details-block-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.customer-details-block p {
  margin: 0;
  color: #000000;
}

.customer-details-fields {
  display: grid;
  gap: 14px;
  margin: 0;
}

.customer-details-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.customer-details-field dd {
  margin: 0;
  color: #1c2438;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.customer-details-empty,
.customer-details-block .customer-details-empty {
  margin: 0;
  color: #8a93a8;
  font-size: 0.88rem;
  font-weight: 500;
}

.customer-details-empty-panel,
.customer-details-block-body > .customer-details-empty-panel {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 72px;
  border: 1px dashed #dce3f0;
  border-radius: 12px;
  padding: 18px 14px;
  text-align: center;
  background: #fafbfe;
}

.customer-details-note,
.customer-details-block .customer-details-note {
  margin: 0;
  color: #2a3348;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.5;
  white-space: pre-wrap;
}

.customer-details-block.is-wide .customer-details-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.customer-details-choice {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  background: #eef2f8;
  color: #3d4a66;
}

.customer-details-choice.is-yes {
  background: #d9f5e2;
  color: #116f3f;
}

.customer-details-choice.is-no {
  background: #f0f0f0;
  color: #5a6478;
}

.customer-details-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.customer-details-chips li {
  border-radius: 999px;
  background: #eef4ff;
  color: #1d3f7a;
  padding: 6px 11px;
  font-size: 0.82rem;
  font-weight: 600;
}

.customer-details-phone,
.customer-details-email {
  color: #1663d6;
  text-decoration: none;
}

.customer-details-phone:hover,
.customer-details-email:hover {
  text-decoration: underline;
}

.customer-details-media {
  display: grid;
  gap: 12px;
}

.customer-details-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.customer-details-list a {
  color: #1663d6;
  text-decoration: none;
}

.customer-details-list a:hover {
  text-decoration: underline;
}

.customer-details-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  background: #f6f8fc;
  color: #1d3f7a;
  text-decoration: none;
}

.customer-details-file:hover {
  background: #eef3fb;
  text-decoration: none;
}

.customer-details-file.is-static {
  color: #3d4a66;
}

.customer-details-file-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #ffffff;
  color: #0089ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.customer-details-file-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.customer-details-file-row .customer-details-file {
  flex: 1;
  min-width: 0;
}

.customer-details-file-row .customer-details-file span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-details-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  border: 1px solid #d5dce8;
  border-radius: 999px;
  background: #ffffff;
  color: #1d3f7a;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  padding: 7px 10px;
}

.customer-details-download:hover {
  background: #eef3fb;
}

.customer-details-thumbs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 10px;
}

.customer-details-thumb-item {
  position: relative;
}

.customer-details-thumb-item .customer-details-download {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 28px;
  height: 28px;
  padding: 0;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 4px rgba(16, 24, 40, 0.16);
}

.customer-details-thumb-item .customer-details-download span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.customer-details-thumb-btn {
  width: 100%;
  border: none;
  background: transparent;
  border-radius: 12px;
  padding: 0;
  display: block;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.customer-details-thumb-btn:hover {
  transform: translateY(-1px);
}

.customer-details-thumb {
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #e6ebf4;
  background: #eef2f8;
  display: block;
}

.sent-material-edit {
  border: 0;
  border-radius: 7px;
  background: #111827;
  color: #ffffff;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  padding: 7px 12px;
  cursor: pointer;
}

.sent-material-edit:hover {
  background: #000000;
}

.sent-material-edit:disabled,
.sent-material-cancel:disabled {
  opacity: 0.6;
  cursor: default;
}

.sent-material-cancel {
  border: 1px solid #d6deef;
  border-radius: 7px;
  background: #ffffff;
  color: #2f3a55;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  padding: 7px 12px;
  cursor: pointer;
}

.sent-material-cancel:hover {
  background: #f5f7fb;
}

.sent-material-list.is-editing .sent-material-item,
.sent-material-files.is-editing .sent-material-file {
  position: relative;
}

.sent-material-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sent-material-files .sent-material-remove {
  position: static;
  flex: 0 0 auto;
  margin-left: auto;
}

.sent-material-file {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sent-material-add {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  border-radius: 7px;
  background: #0090ff;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 12px;
  cursor: pointer;
}

.sent-material-add:hover {
  background: #0077e0;
}

.sent-material-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.sent-material-status {
  margin: 8px 0 0;
  color: #52607c;
  font-size: 0.84rem;
}

.sent-material-status:empty {
  display: none;
}

.customer-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 4000;
  pointer-events: none;
}

.customer-image-lightbox:not(.hidden) {
  pointer-events: auto;
}

.customer-image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(11, 16, 27, 0);
  cursor: pointer;
  transition: background 240ms ease;
}

.customer-image-lightbox.is-open .customer-image-lightbox-backdrop {
  background: rgba(11, 16, 27, 0.78);
}

.customer-image-lightbox-image {
  position: fixed;
  z-index: 81;
  margin: 0;
  border-radius: 10px;
  object-fit: cover;
  background: #ffffff;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.38);
  opacity: 0;
  pointer-events: none;
}

.customer-image-lightbox.is-open .customer-image-lightbox-image {
  opacity: 1;
}

.customer-image-lightbox-caption {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 82;
  transform: translateX(-50%) translateY(8px);
  margin: 0;
  max-width: min(86vw, 640px);
  color: #ffffff;
  font-size: 0.9rem;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.customer-image-lightbox.is-open .customer-image-lightbox-caption {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.customer-image-lightbox-download {
  position: fixed;
  z-index: 83;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #000000;
  color: #ffffff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
}

.customer-image-lightbox.is-open .customer-image-lightbox-download {
  opacity: 1;
  pointer-events: auto;
}

.customer-image-lightbox-download:hover {
  background: #1a1a1a;
}

.customer-image-lightbox-nav {
  position: fixed;
  top: 50%;
  z-index: 83;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-50%) scale(0.86);
  transition: opacity 200ms ease, transform 200ms ease, background 160ms ease;
}

.customer-image-lightbox.is-open.has-multiple .customer-image-lightbox-nav {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.customer-image-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.28);
}

.customer-image-lightbox-prev {
  left: 18px;
}

.customer-image-lightbox-next {
  right: 18px;
}

.customer-image-lightbox-nav i {
  font-size: 1.05rem;
}

.customer-details-geo-areas {
  width: 100%;
  margin-bottom: 10px;
}

.customer-details-geo-map {
  width: 100%;
  height: 280px;
  margin-top: 4px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e6ebf4;
}

.customer-portal {
  min-height: 100vh;
  background: #ffffff;
  padding: 0;
  font-family: "Space Grotesk", "Space Grotesk Local", Inter, -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#customer-portal *:not(i):not(.fa-solid):not(.fa-regular):not(.fa-brands):not(.fas):not(.far):not(.fab) {
  font-family: "Space Grotesk", "Space Grotesk Local", Inter, -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

#customer-portal input::placeholder,
#customer-portal textarea::placeholder {
  font-family: "Space Grotesk", "Space Grotesk Local", Inter, -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.customer-portal-card {
  width: min(760px, 100%);
  margin: 0 auto;
  background: #ffffff;
  min-height: 100vh;
  padding: 18px 24px 84px;
  position: relative;
}

.customer-portal-logo {
  display: none;
}

.customer-portal-title {
  display: none;
}

.customer-portal-company {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #444956;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.customer-portal-lead {
  display: none;
}

.customer-portal-status {
  min-height: 18px;
  margin: 8px 0 0;
  padding-bottom: 15px;
  color: #3d4965;
  font-size: 0.82rem;
}

.customer-portal-card:has(#customer-intake-view:not(.hidden)) > .customer-portal-status:empty {
  display: none;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.customer-portal-status.error {
  color: #b10000;
}

.customer-portal-status.success {
  color: #00703c;
}

.customer-intake-view,
.customer-review-view {
  margin-top: 0;
  display: grid;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

.customer-portal-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 4px 0 16px;
  padding: 4px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f7f8fb;
}

.customer-portal-tab {
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #4b5563;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.customer-portal-tab-lock {
  font-size: calc(0.78rem + 0.3px);
  color: #6b7280;
  transform: translateY(0.5px);
}

.customer-portal-tab[aria-selected="true"] {
  background: #ffffff;
  color: #111827;
  box-shadow: 0 1px 4px rgba(17, 24, 39, 0.08);
}

.customer-portal-tab[aria-selected="true"] .customer-portal-tab-lock {
  color: #111827;
}

.customer-portal-tab-warning {
  color: #d97706;
}

.customer-portal-tab[aria-selected="true"] .customer-portal-tab-warning {
  color: #b45309;
}

.customer-flow-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  margin-bottom: 10px;
}

.customer-flow-topbar-logo {
  width: 55px;
  height: auto;
  justify-self: end;
}

.customer-flow-step-label {
  margin: 0;
  font-size: 0.88rem;
  color: #4f5568;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

.customer-flow-progress {
  height: 8px;
  border-radius: 999px;
  background: #d9dce2;
  margin-bottom: 23px;
  overflow: hidden;
}

.customer-flow-progress-fill {
  display: block;
  width: 12.5%;
  height: 100%;
  background: #0089ff;
  transition: width 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.customer-social-section {
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 420px;
}

.customer-social-section h2 {
  margin: 0;
  font-size: 1.8rem;
}

.customer-social-question {
  margin: 0;
  color: #2e3445;
  margin-bottom: 24px;
  font-size: 1.02rem;
}

.customer-social-fields {
  display: grid;
  gap: 26px;
  width: min(560px, 100%);
}

.customer-social-fields.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.customer-social-field {
  display: grid;
  gap: 8px;
}

.customer-social-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  margin-bottom: 4px;
  font-weight: 600;
  color: #1f2533;
}

.customer-social-label .fa-facebook {
  color: #1877f2;
}

.customer-social-label .fa-square-instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

#customer-social-facebook,
#customer-social-instagram {
  width: 100%;
  border: 1px solid #ccd2de;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 0.98rem;
  color: #1d2331;
}

#customer-social-facebook:focus,
#customer-social-instagram:focus {
  outline: none;
  border-color: #0089ff;
  box-shadow: 0 0 0 3px rgba(0, 137, 255, 0.14);
}

#customer-social-facebook.customer-social-input-error,
#customer-social-instagram.customer-social-input-error,
#customer-social-facebook.customer-social-input-error:focus,
#customer-social-instagram.customer-social-input-error:focus {
  border-color: #e14d5f;
  box-shadow: 0 0 0 3px rgba(225, 77, 95, 0.14);
}

.customer-social-skip {
  width: min(560px, 100%);
  display: flex;
  align-items: center;
  margin-top: 20px;
  gap: 10px;
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  color: #22293a;
  font-size: 0.95rem;
  font-weight: 500;
}

.customer-social-skip input {
  width: 18px;
  height: 18px;
  accent-color: #0089ff;
  flex-shrink: 0;
}

.customer-social-skip.is-checked {
  border-color: #0089ff;

}

.customer-details-social-list {
  display: grid;
  gap: 8px;
}

.customer-details-social-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f6f8fc;
}

.customer-details-social-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #ffffff;
  color: #0089ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.customer-details-social-row p {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
}

.customer-details-social-row a {
  color: #1663d6;
  text-decoration: none;
}

.customer-details-social-row a:hover {
  text-decoration: underline;
}

.customer-bilder-section h2 {
  margin: 0;
  font-size: 1.8rem;
}

.customer-bilder-question {
  margin: 8px 0 0;
  color: #2e3445;
  font-size: 1.02rem;
}

.customer-services-section {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 420px;
}

.customer-sender-intro {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
  margin: 20px 0 28px;
}

.customer-sender-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  background: #eef1f6;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 1px #d7dce8;
}

.customer-sender-name {
  margin: 2px 0 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #171c26;
}

.customer-sender-name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.customer-sender-phone-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin: -8px 0;
  border-radius: 50%;
  background: #000000;
  color: #ffffff;
  border: 0;
  text-decoration: none;
  flex-shrink: 0;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.customer-sender-phone-btn:hover {
  background: #1a1a1a;
}

.customer-sender-phone-btn:active {
  transform: scale(0.96);
}

.customer-sender-phone-btn.is-disabled {
  opacity: 0.55;
  cursor: default;
}

.customer-sender-phone-btn i {
  font-size: 0.75rem;
}

.customer-sender-message {
  width: min(750px, 100%);
  display: grid;
  gap: 14px;
  text-align: left;
  margin-top: 12px;
  color: #2e3445;
  font-size: 1.02rem;
  line-height: 1.55;
}

.customer-sender-message p {
  margin: 0;
}

.customer-services-section h2 {
  margin: 0;
  font-size: 1.8rem;
}

.customer-services-question {
  margin: 0;
  color: #2e3445;
  font-size: 1.02rem;
}

.customer-services-info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 2px;
  padding: 12px 14px;
  border: 1px solid #c9def8;
  border-radius: 12px;
  background: #f3f8ff;
  color: #2e4a6b;
}

.customer-services-info i {
  margin-top: 2px;
  color: #0089ff;
  font-size: 1rem;
}

.customer-services-info p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.customer-services-input-row {
  margin-top: 10px;
  width: min(560px, 100%);
  display: flex;
  align-items: stretch;
  gap: 8px;
}

#customer-services-input {
  flex: 1;
  min-width: 0;
  border: 1px solid #ccd2de;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 0.98rem;
  line-height: 20px;
  color: #1d2331;
}

#customer-services-input:focus {
  outline: none;
  border-color: #0089ff;
  box-shadow: 0 0 0 3px rgba(0, 137, 255, 0.14);
}

#customer-services-input.customer-intake-field-error,
#customer-services-input.customer-intake-field-error:focus,
#customer-geo-city-search.customer-intake-field-error,
#customer-geo-city-search.customer-intake-field-error:focus,
#customer-misc-notes.customer-intake-field-error,
#customer-misc-notes.customer-intake-field-error:focus,
#customer-website.customer-intake-field-error,
#customer-website.customer-intake-field-error:focus,
#customer-contact-sms-phone.customer-intake-field-error,
#customer-contact-sms-phone.customer-intake-field-error:focus,
#customer-contact-call-phone.customer-intake-field-error,
#customer-contact-call-phone.customer-intake-field-error:focus,
#customer-contact-email.customer-intake-field-error,
#customer-contact-email.customer-intake-field-error:focus {
  border-color: #e14d5f;
  box-shadow: 0 0 0 3px rgba(225, 77, 95, 0.14);
}

.customer-services-add-btn {
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  align-self: stretch;
  border-radius: 12px;
  border: 1px solid #0089ff;
  background: #0089ff;
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.customer-services-add-btn:hover {
  background: #007ae6;
  border-color: #007ae6;
}

.customer-services-add-btn:disabled,
#customer-services-input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.customer-services-add-btn:disabled:hover {
  background: #0089ff;
  border-color: #0089ff;
}

.customer-services-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.customer-geo-section {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 420px;
}

.customer-geo-section h2 {
  margin: 0;
  font-size: 1.8rem;
}

.customer-geo-question {
  margin: 0;
  color: #2e3445;
  font-size: 1.02rem;
}

.customer-geo-nationwide-toggle {
  width: min(760px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid #d6dbe5;
  border-radius: 12px;
  background: #ffffff;
}

.customer-geo-nationwide-toggle > span:first-child {
  color: #22293a;
  font-size: 0.92rem;
  font-weight: 500;
}

.customer-geo-switch {
  position: relative;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
}

.customer-geo-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.customer-geo-switch-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #ced4e1;
  transition: background 0.2s ease;
}

.customer-geo-switch-slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease;
}

.customer-geo-switch input:checked + .customer-geo-switch-slider {
  background: #0089ff;
}

.customer-geo-switch input:checked + .customer-geo-switch-slider::after {
  transform: translateX(20px);
}

.customer-geo-switch input:focus-visible + .customer-geo-switch-slider {
  box-shadow: 0 0 0 3px rgba(0, 137, 255, 0.2);
}

.customer-geo-controls {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  gap: 10px;
}

.customer-geo-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

#customer-geo-city-search {
  flex: 1;
  min-width: 0;
  border: 1px solid #ccd2de;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.96rem;
  color: #1d2331;
  background: #ffffff;
}

#customer-geo-city-search:focus {
  outline: none;
  border-color: #0089ff;
  box-shadow: 0 0 0 3px rgba(0, 137, 255, 0.14);
}

.customer-geo-search-btn {
  border: 1px solid #ccd2de;
  border-radius: 10px;
  background: #ffffff;
  color: #242c3f;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
}

.customer-geo-search-btn:hover {
  background: #f5f8fd;
}

.customer-geo-search-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.customer-geo-radius-control {
  display: grid;
  gap: 8px;
}

.customer-geo-radius-control span {
  font-size: 0.82rem;
  color: #596176;
}

#customer-geo-radius {
  width: 210px;
  accent-color: #0089ff;
  cursor: pointer;
}

#customer-geo-radius:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.customer-geo-add-area-btn {
  border: 1px solid #ccd2de;
  border-radius: 10px;
  background: #ffffff;
  color: #242c3f;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.customer-geo-add-area-btn:hover {
  background: #f5f8fd;
}

.customer-geo-add-area-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.customer-geo-map-status {
  margin: 0;
  min-height: 20px;
  color: #4f586c;
  font-size: 0.86rem;
}

.customer-geo-map-status.error {
  color: #b4324d;
}

.customer-geo-map-status.success {
  color: #177244;
}

.customer-geo-map {
  width: min(760px, 100%);
  height: 320px;
  border: 1px solid #d6dbe5;
  border-radius: 14px;
  overflow: hidden;
  background: #eef2fb;
  position: relative;
  z-index: 1;
  isolation: isolate;
}

.customer-geo-map.is-disabled {
  pointer-events: none;
  opacity: 0.55;
}

.customer-geo-areas-list {
  width: min(760px, 100%);
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.customer-geo-areas-list li {
  border: 1px solid #d4e9dc;
  border-radius: 999px;
  background: #f1faf4;
  color: #214131;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  font-size: 0.84rem;
}

.customer-geo-area-remove-btn {
  border: 0;
  border-radius: 999px;
  width: 20px;
  height: 20px;
  background: #0089ff;
  color: #ffffff;
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.customer-geo-area-remove-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.customer-geo-help {
  margin: 0;
  color: #5f6778;
  font-size: 0.85rem;
  padding-top: 4px;
}

#customer-geographic-area {
  width: min(760px, 100%);
  border: 1px solid #ccd2de;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 0.98rem;
  color: #1d2331;
}

#customer-geographic-area:focus {
  outline: none;
  border-color: #0089ff;
  box-shadow: 0 0 0 3px rgba(0, 137, 255, 0.14);
}

.customer-services-list li {
  border: 1px solid #d4e9dc;
  border-radius: 999px;
  background: #f1faf4;
  color: #214131;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 0.86rem;
}

.customer-service-remove-btn {
  border: 0;
  border-radius: 999px;
  width: 20px;
  height: 20px;
  background: #0089ff;
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.customer-service-remove-icon {
  display: block;
  transform: translateY(-1px);
}

.customer-offer-section {
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 500px;
}

.customer-offer-section h2 {
  margin: 0;
  font-size: 1.8rem;
}

.customer-offer-question {
  margin: 0;
  color: #2e3445;
  font-size: 1.02rem;
  margin-top: 20px;
}

.customer-offer-tip {
  border: 1px solid #d8ede4;
  border-radius: 10px;
  background: #f2faf6;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
}

.customer-offer-tip-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #dff3e6;
  color: #19a95f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.customer-offer-tip strong {
  display: block;
  color: #182031;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.customer-offer-tip span {
  display: block;
  color: #3e4657;
  line-height: 1.4;
  font-size: 0.82rem;
}

.customer-offer-options {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.customer-offer-choice-btn {
  min-height: 70px;
  border-radius: 10px;
  border: 2px solid #d6dbe5;
  background: #ffffff;
  color: #4f5564;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
}

.customer-offer-choice-btn i {
  font-size: 0.84rem;
}

.customer-offer-choice-btn span {
  font-size: calc(1.55rem - 5px);
}

.customer-offer-choice-btn.is-active {
  border-color: #0089ff;
  background: #f2faf6;
  color: #000000;
}

#customer-offer-description {
  width: 100%;
  border: 1px solid #d6dbe5;
  border-radius: 10px;
  padding: 12px;
  font-size: 0.96rem;
  color: #1d2331;
  resize: vertical;
  min-height: 92px;
}

#customer-offer-description:focus {
  outline: none;
  border-color: #0089ff;
  box-shadow: 0 0 0 3px rgba(0, 137, 255, 0.14);
}

#customer-offer-description.customer-offer-description-error,
#customer-offer-description.customer-offer-description-error:focus,
.customer-intake-field-error,
.customer-intake-field-error:focus {
  border-color: #e14d5f;
  box-shadow: 0 0 0 3px rgba(225, 77, 95, 0.14);
}

.customer-offer-section .customer-offer-choice-btn {
  min-height: 64px;
  flex-direction: row;
  border-width: 1px;
  border-color: #e4e7ee;
  border-radius: 12px;
  color: #1c2433;
}

.customer-offer-section .customer-offer-choice-btn span {
  font-size: 1.15rem;
  font-weight: 600;
}

.customer-offer-section .customer-offer-choice-btn.is-active {
  border-color: #0089ff;
  background: #f3fbf6;
  color: #1c2433;
}

.customer-offer-section #customer-offer-description {
  border-color: #e4e7ee;
  border-radius: 12px;
  min-height: 112px;
}

.customer-offer-examples {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.customer-offer-examples-label {
  margin: 0;
  color: #6d7484;
  font-size: 0.95rem;
}

.customer-offer-examples-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.customer-offer-example {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #eef1f6;
  box-shadow: 0 10px 28px rgba(23, 32, 51, 0.08);
  transition: transform 180ms ease;
}

.customer-offer-example img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

@media (min-width: 861px) {
  .customer-offer-example {
    cursor: zoom-in;
  }

  .customer-offer-example:hover {
    transform: translateY(-2px);
  }

  .customer-offer-example:focus-visible {
    outline: 2px solid #0089ff;
    outline-offset: 3px;
  }
}

.customer-offer-examples-dots {
  display: none;
}

@media (max-width: 860px) {
  .customer-offer-section h2 {
    display: none;
  }

  .customer-offer-examples {
    order: -1;
    margin-top: 0;
  }

  .customer-offer-examples-label {
    display: none;
  }

  .customer-offer-examples-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-right: -14px;
    padding-right: 28px;
  }

  .customer-offer-examples-track::-webkit-scrollbar {
    display: none;
  }

  .customer-offer-example {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }

  .customer-offer-examples-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 2px;
  }

  .customer-offer-examples-dot {
    width: 7px;
    height: 7px;
    border: 0;
    border-radius: 999px;
    padding: 0;
    background: #d5d8e0;
    cursor: pointer;
  }

  .customer-offer-examples-dot.is-active {
    background: #1d2331;
  }

  .customer-offer-question {
    margin-top: 4px;
  }
}

.customer-logo-section {
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
  max-width: 100%;
  min-height: 500px;
}

.customer-logo-section h2 {
  margin: 0;
  font-size: 1.8rem;
}

.customer-logo-question {
  margin: 0;
  color: #2e3445;
  font-size: 1.02rem;
}

.customer-logo-dropzone {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 2px dashed #d6dbe5;
  border-radius: 14px;
  background: #ffffff;
  min-height: 128px;
  display: grid;
  margin-top: 10px;
  place-items: center;
  gap: 4px;
  text-align: center;
  color: #4a5160;
  cursor: pointer;
  padding: 16px 12px;
}

.customer-logo-dropzone i {
  font-size: 1.2rem;
  color: #6b7383;
}

.customer-logo-dropzone strong {
  font-size: 1.3rem;
  color: #171c26;
}

.customer-logo-dropzone span {
  font-size: 1rem;
  color: #545d6f;
}

.customer-logo-dropzone.customer-intake-field-error {
  border-color: #e14d5f;
  box-shadow: 0 0 0 3px rgba(225, 77, 95, 0.14);
}

.customer-logo-files-list {
  margin-top: 4px;
}

.customer-references-section {
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
  max-width: 100%;
  min-height: 500px;
}

.customer-references-section h2 {
  margin: 0;
  font-size: 1.8rem;
}

.customer-references-question {
  margin: 0;
  color: #2e3445;
  font-size: 1.02rem;
}

.customer-references-question-second {
  margin-top: 10px;
}

#customer-reference-notes {
  width: 100%;
  border: 1px solid #d6dbe5;
  border-radius: 10px;
  padding: 12px;
  font-size: 0.96rem;
  color: #1d2331;
  resize: vertical;
  min-height: 92px;
}

.customer-review-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.customer-review-preset-btn {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid #d6dbe5;
  background: #ffffff;
  color: #3d4454;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
}

.customer-review-preset-btn:hover {
  border-color: #0089ff;
  color: #0089ff;
}

.customer-review-preset-btn.is-active {
  border-color: #0089ff;
  background: #eef6ff;
  color: #006dcc;
}

.customer-review-preset-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

#customer-reference-notes:focus,
#customer-review-notes:focus {
  outline: none;
  border-color: #0089ff;
  box-shadow: 0 0 0 3px rgba(0, 137, 255, 0.14);
}

#customer-review-notes {
  width: 100%;
  border: 1px solid #d6dbe5;
  border-radius: 10px;
  padding: 12px;
  font-size: 0.96rem;
  color: #1d2331;
}

.customer-misc-section {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 500px;
}

.customer-misc-section h2 {
  margin: 0;
  font-size: 1.8rem;
}

.customer-misc-question {
  margin: 0;
  color: #2e3445;
  font-size: 1.02rem;
}

.customer-misc-question-second {
  margin-top: 18px;
}

.customer-website-field {
  width: min(560px, 100%);
}

.customer-website-field.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

#customer-website {
  width: 100%;
  border: 1px solid #ccd2de;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 0.98rem;
  color: #1d2331;
}

#customer-website:focus {
  outline: none;
  border-color: #0089ff;
  box-shadow: 0 0 0 3px rgba(0, 137, 255, 0.14);
}

.customer-website-skip {
  margin-top: 4px;
  min-height: 44px;
}

.customer-misc-options {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.customer-misc-choice-btn {
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid #d6dbe5;
  background: #ffffff;
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.customer-misc-choice-btn span {
  font-size: 1rem;
  font-weight: 600;
}

.customer-misc-choice-btn.is-active {
  border-color: #0089ff;
  background: #0089ff;
  color: #ffffff;
}

#customer-misc-notes {
  width: 100%;
  border: 1px solid #d6dbe5;
  border-radius: 10px;
  padding: 12px;
  font-size: 0.96rem;
  margin-top: 5px;
  color: #1d2331;
  resize: vertical;
  min-height: 124px;
}

#customer-misc-notes:focus {
  outline: none;
  border-color: #0089ff;
  box-shadow: 0 0 0 3px rgba(0, 137, 255, 0.14);
}

.customer-contact-section {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 500px;
}

.customer-contact-section h2 {
  margin: 0;
  font-size: 1.8rem;
}

.customer-contact-question {
  margin: 0;
  color: #2e3445;
  font-size: 1.02rem;
}

.customer-contact-question-second {
  margin-top: 10px;
}

.customer-contact-same-phone {
  width: min(760px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid #d6dbe5;
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
}

.customer-contact-same-phone > span:first-child {
  color: #22293a;
  font-size: 0.92rem;
  font-weight: 500;
}

#customer-contact-call-phone:disabled,
#customer-contact-invoice-email:disabled {
  opacity: 0.7;
  background: #f5f7fb;
  cursor: not-allowed;
}

#customer-contact-sms-phone,
#customer-contact-call-phone,
#customer-contact-email,
#customer-contact-invoice-email {
  width: 100%;
  border: 1px solid #d6dbe5;
  border-radius: 10px;
  padding: 12px;
  font-size: 0.96rem;
  color: #1d2331;
}

#customer-contact-sms-phone:focus,
#customer-contact-call-phone:focus,
#customer-contact-email:focus,
#customer-contact-invoice-email:focus {
  outline: none;
  border-color: #0089ff;
  box-shadow: 0 0 0 3px rgba(0, 137, 255, 0.14);
}

.customer-summary-section {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 500px;
}

.customer-summary-section h2 {
  margin: 0;
  font-size: 1.8rem;
}

.customer-form-locked-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 6px 0 14px;
  padding: 14px 16px;
  border: 1px solid #d7dce8;
  border-radius: 14px;
  background: #f4f6fa;
  color: #3d4454;
}

.customer-form-locked-banner i {
  margin-top: 2px;
  color: #4b5563;
  font-size: 1rem;
}

.customer-form-locked-banner strong {
  display: block;
  color: #1f2534;
  font-size: 0.98rem;
}

.customer-form-locked-banner span {
  display: block;
  margin-top: 2px;
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 1.45;
}

.customer-intake-view.is-readonly .customer-intake-footer {
  display: none;
}

.customer-intake-view.is-readonly .customer-summary-item {
  background: #f8f9fb;
}

.customer-intake-view.is-readonly .customer-summary-edit-btn {
  display: none;
}

.customer-portal-card:has(#customer-intake-view.is-readonly) {
  padding-bottom: 28px;
}

.customer-summary-help {
  margin: 0;
  color: #2e3445;
  font-size: 1.02rem;
}

.customer-summary-list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.customer-summary-item {
  border: 1px solid #e4e8f2;
  border-radius: 12px;
  background: #ffffff;
  padding: 10px 12px;
  display: grid;
  gap: 6px;
}

.customer-summary-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.customer-summary-item-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2d3342;
  font-weight: 600;
}

.customer-summary-item-title i {
  color: #6f788a;
  font-size: 0.88rem;
}

.customer-summary-edit-btn {
  border: 0;
  background: transparent;
  color: #4f5568;
  font-size: 0.86rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
}

.customer-summary-item p {
  margin: 0;
  color: #1f2534;
  font-size: 0.95rem;
}

.customer-bilder-tip {
  
  border: 1px solid #d2f1dd;
  border-radius: 14px;
  background: #f3fcf6;
  padding: 14px 16px;
  margin-bottom: 40px;
  margin-top: 15px;
  display: grid;
  gap: 4px;
}

.customer-bilder-tip strong {
  color: #0089ff;
  font-size: 1rem;
}

.customer-bilder-tip span {
  color: #2d3448;
  line-height: 1.5;
}

.customer-image-source-options {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.customer-social-material-section {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.customer-source-card {
  border: 2px solid #d6d9df;
  border-radius: 14px;
  background: #ffffff;
  text-align: left;
  padding: 16px;
  display: grid;
  gap: 6px;
  cursor: pointer;
}

.customer-source-card strong {
  font-size: 1rem;
  color: #151a25;
}

.customer-source-card span {
  font-size: 0.95rem;
  color: #424856;
}

.customer-source-card.is-active {
  border-color: #0c6cf6;
  background: #f4fbf8;
}

.customer-upload-section {
  margin-top: 14px;
}

.customer-upload-dropzone {
  width: 100%;
  border: 2px dashed #d1d5df;
  border-radius: 14px;
  background: #ffffff;
  margin-top: 40px;
  min-height: 170px;
  display: grid;
  place-items: center;
  gap: 6px;
  color: #3a3f4b;
  cursor: pointer;
  text-align: center;
  padding: 20px 14px;
}

.customer-upload-dropzone.is-uploading {
  opacity: 0.72;
  cursor: wait;
}

.customer-upload-dropzone i {
  font-size: 1.7rem;
  color: #5c6474;
}

.customer-upload-dropzone strong {
  font-size: 1.08rem;
  color: #161a23;
}

.customer-upload-dropzone span {
  color: #4e5567;
}

.customer-files-count {
  text-align: center;
  margin: 24px 0 0;
  padding-bottom: 8px;
  color: #4d5465;
}

.customer-upload-loading {
  margin: 0 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #31538b;
  font-size: 0.9rem;
}

.customer-divider {
  margin: 10px 0;
  display: flex;
  align-items: center;
  color: #5c6373;
  gap: 12px;
}

.customer-divider::before,
.customer-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid #d8dce5;
}

.customer-link-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #1f2533;
  margin: 2px 0 8px;
}

#customer-files-link {
  width: 100%;
  border: 1px solid #d5d9e3;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 1.02rem;
}

#customer-files-link:focus {
  outline: none;
  border-color: #0c6cf6;
}

.customer-link-help {
  margin: 8px 0 0;
  color: #51596b;
  font-size: 0.88rem;
}

.customer-files-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

.customer-files-list li {
  border: 1px solid #e4e9f4;
  border-radius: 10px;
  padding: 8px 10px;
  background: #fbfdff;
  font-size: 0.9rem;
  color: #2c3550;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

.customer-files-list li.is-uploading {
  border-color: #cdd9f8;
  background: #f3f7ff;
}

.customer-file-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.customer-file-label {
  display: block;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-file-label a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-file-thumb {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #d8dfef;
  flex-shrink: 0;
}

.customer-file-loading {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #3b5a8e;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.customer-files-list li a {
  color: #1663d6;
  text-decoration: none;
}

.customer-files-list li a:hover {
  text-decoration: underline;
}

.customer-file-remove-btn {
  border: 1px solid #f1c6cc;
  background: #fff4f5;
  color: #a22d3c;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 0.8rem;
  cursor: pointer;
  flex-shrink: 0;
}

.customer-file-remove-btn:hover:not(:disabled) {
  background: #ffe9ec;
}

.customer-file-remove-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(59, 90, 142, 0.2);
  border-top-color: #3b5a8e;
  animation: customer-spinner-rotate 0.8s linear infinite;
}

@keyframes customer-spinner-rotate {
  to {
    transform: rotate(360deg);
  }
}

.customer-review-view h2 {
  margin: 0;
  margin-top: 22px;
  margin-bottom: 12px;

  font-size: 1.85rem;
  text-align: center;
  color: #111827;
}

.customer-review-main,
.customer-review-result {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.customer-review-help {
  margin: 0;
  color: #6b7280;
  font-size: 0.98rem;
  padding-bottom: 20px;
  text-align: center;
  line-height: 1.5;
}

.customer-review-waiting {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 16px;
  text-align: center;
}

.customer-review-waiting p {
  margin: 0;
  color: #6b7280;
  font-size: 0.98rem;
}

.customer-review-waiting-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid #e4e8f7;
  border-top-color: #0090ff;
  border-radius: 50%;
  animation: customer-review-waiting-spin 0.8s linear infinite;
}

@keyframes customer-review-waiting-spin {
  to {
    transform: rotate(360deg);
  }
}

.customer-review-gallery {
  width: 100%;
  margin-top: 4px;
}

.customer-review-decision {
  width: min(560px, 100%);
  margin-top: 8px;
  padding-top: 32px;
  margin-top: 18px;
  border-top: 1px solid #eceff4;
  display: grid;
  gap: 24px;
  justify-items: center;
}

.customer-review-decision h3 {
  margin: 0;
  font-size: 1.2rem;
  text-align: center;
}

.customer-review-step {
  width: 100%;
  display: grid;
  gap: 24px;
  justify-items: center;
}

.customer-review-nudge {
  margin: 0;
  color: #4b5563;
  text-align: center;
  line-height: 1.55;
  max-width: 46ch;
}

.customer-review-actions {
  display: flex;
  gap: 26px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.customer-review-approve-btn {
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  background: #3cb14a;
  color: #ffffff;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.customer-review-approve-btn:hover {
  background: #32963e;
}

.customer-review-approve-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.customer-review-outline-btn {
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 12px 18px;
  background: #ffffff;
  color: #111827;
  font-weight: 700;
  cursor: pointer;
}

.customer-review-text-btn {
  border: 0;
  background: transparent;
  color: #6b7280;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 4px;
}

.customer-review-text-btn:hover {
  color: #111827;
}

.customer-review-feedback-label {
  width: 100%;
  color: #374151;
  font-size: 0.92rem;
}

.customer-review-comment-row {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.customer-review-comment-row input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
}

.customer-review-add-comment-btn {
  width: 42px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #ffffff;
  color: #111827;
  cursor: pointer;
}

.customer-review-comments-list {
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.customer-review-material-picker {
  width: 100%;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.customer-review-material-option {
  flex: 0 0 84px;
  width: 84px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #f3f4f6;
  padding: 6px;
  display: grid;
  gap: 4px;
  justify-items: center;
  color: #374151;
  cursor: pointer;
}

.customer-review-material-option img,
.customer-review-material-option i {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  background: #e5e7eb;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.customer-review-material-option span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.68rem;
  font-weight: 600;
}

.customer-review-material-option.is-selected {
  border-color: #007eff;
  background: #eef6ff;
}

.customer-review-material-hint {
  width: 100%;
  margin: 0;
  color: #b10000;
  font-size: 0.82rem;
  font-weight: 600;
}

.customer-review-comment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 10px;
  background: #f3f4f6;
  padding: 10px 12px;
  color: #111827;
}

.customer-review-comment-body {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.customer-review-comment-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex: 0 0 auto;
}

.customer-review-comment-file,
.customer-feedback-comment-file {
  flex: 0 0 auto;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 999px;
  background: #e5e7eb;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 600;
}

.customer-feedback-comment {
  display: flex;
  align-items: center;
  gap: 10px;
}

.customer-feedback-comment-thumb-btn {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
  line-height: 0;
  border-radius: 8px;
  flex: 0 0 auto;
}

.customer-feedback-comment-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex: 0 0 auto;
}

.customer-review-comment-remove {
  border: 0;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
}

.customer-review-ack {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #374151;
  font-size: 0.9rem;
  line-height: 1.45;
}

.customer-review-ack input {
  margin-top: 3px;
}

.customer-review-result {
  padding-top: 48px;
}

.customer-review-result .customer-submitted-actions {
  margin-top: 8px;
}

.customer-submitted-view {
  margin-top: 0;
  display: grid;
  gap: 12px;
  align-content: start;
}

.customer-submitted-check {
  width: 56px;
  height: 56px;
  margin-top: 25px !important;
  border-radius: 999px;
  border: 4px solid #1cbf60;
  color: #1cbf60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 2px auto 0;
  font-size: 1.5rem;
}

.customer-submitted-view:not(.hidden) .customer-submitted-check {
  animation: customer-submitted-check-pop 0.55s cubic-bezier(0.22, 1.35, 0.36, 1) both;
}

.customer-submitted-view:not(.hidden) .customer-submitted-check i {
  animation: customer-submitted-check-mark 0.35s ease 0.18s both;
}

@keyframes customer-submitted-check-pop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  72% {
    transform: scale(1.12);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes customer-submitted-check-mark {
  0% {
    transform: scale(0) rotate(-25deg);
    opacity: 0;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .customer-submitted-view:not(.hidden) .customer-submitted-check,
  .customer-submitted-view:not(.hidden) .customer-submitted-check i {
    animation: none;
  }
}

.customer-submitted-view h2 {
  margin: 0;
  text-align: center;
  font-size: 2.5rem;
}

.customer-submitted-help {
  margin: 0;
  color: #2f3545;
  text-align: center;
  line-height: 1.5;
  width: min(450px, 100%);
  justify-self: center;
}

.customer-submitted-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2px;
}

.customer-submitted-edit-btn {
  border-color: #d6dbe5;
  background: #ffffff;
  color: #1d2433;
  font-size: 0.9rem;
}

.customer-submitted-label {
  margin: 22px 0 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #616b7f;
}

.customer-submitted-material-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.customer-submitted-material-item {
  border: 1px solid #e4e8f2;
  border-radius: 12px;
  background: #ffffff;
  padding: 10px 12px;
  display: grid;
  gap: 6px;
}

.customer-submitted-material-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #2d3342;
}

.customer-submitted-material-title i {
  color: #737b8c;
  font-size: 0.9rem;
}

.customer-submitted-material-item p {
  margin: 0;
  color: #1f2534;
  font-size: 0.95rem;
}

.customer-field {
  display: grid;
  gap: 6px;
}

.customer-field span {
  font-size: 0.9rem;
  color: #303a53;
}

.customer-field textarea {
  width: 100%;
  border: 1px solid #d8deec;
  border-radius: 10px;
  padding: 11px 12px;
  resize: vertical;
}

.customer-field textarea:focus {
  outline: none;
  border-color: #0c6cf6;
}

.customer-intake-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: min(760px, 100%);
  margin: 0 auto;
  background: #ffffff;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  z-index: 50;
}

.customer-intake-status {
  display: none;
}

@media (min-width: 861px) {
  .customer-portal-card:has(#customer-intake-view:not(.hidden)) > .customer-portal-status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }

  .customer-intake-status:not(:empty) {
    display: block;
    margin: 0;
    padding: 8px 24px 13px;
    min-height: 0;
    box-sizing: border-box;
  }

  .customer-portal-card:has(.customer-intake-status:not(:empty)) {
    padding-bottom: 130px;
  }
}

.customer-intake-footer-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e1e5ee;
  padding: 12px 24px;
  box-sizing: border-box;
}

.customer-intake-footer-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.customer-nav-btn {
  border-radius: 10px;
  border: 1px solid #d9dde8;
  background: #ffffff;
  color: #121825;
  font-weight: 500;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.customer-nav-back {
  border: 0;
  background: transparent;
  color: #7b7b7b;
  padding: 2px 0;
}

.customer-nav-skip {
  border: 0;
  background: transparent;
  color: #9aa3b5;
  font-weight: 500;
  font-size: 0.88rem;
  padding-right: 8px !important;
  padding: 2px 0;
}

.customer-nav-skip:hover {
  color: #6d7688;
}

.customer-nav-skip:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.customer-nav-next {
  border-color: #0089ff;
  background: #0089ff;
  color: #ffffff;
  min-width: 86px;
  justify-content: center;
}

.create-customer-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.create-customer-modal-card {
  width: min(430px, 100%);
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e4e8f7;
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.24),
    0 4px 14px rgba(0, 0, 0, 0.13);
  padding: 20px;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition:
    opacity 220ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.create-customer-modal.is-open .create-customer-modal-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.create-customer-modal-card h2 {
  margin: 0 0 16px;
  font-size: 1.2rem;
}

.create-customer-step {
  display: block;
}

#create-customer-input,
#create-customer-split-select {
  width: 100%;
  border: 1px solid #d7ddf4;
  border-radius: 10px;
  padding: 12px 13px;
  font-size: 0.95rem;
  color: #1c2438;
  background: #ffffff;
}

.create-customer-split-control {
  position: relative;
  z-index: 2;
}

#create-customer-split-select {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

#create-customer-split-select .fa-chevron-down {
  margin-left: auto;
  color: #6b7690;
  font-size: 0.72rem;
}

#create-customer-split-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#create-customer-split-select .ads-ansvarig-avatar {
  width: 28px;
  height: 28px;
}

#create-customer-split-menu {
  left: 0;
  right: auto;
  width: 100%;
}

#create-customer-input:focus,
#create-customer-split-select:focus {
  outline: none;
  border-color: #0090ff;
  box-shadow: none;
}

.create-customer-split-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  color: #1c2438;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}

.create-customer-split-toggle:first-of-type {
  margin-top: 22px;
}

.create-customer-split-toggle:last-of-type {
  margin-bottom: 25px;
}

.create-customer-split-toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #0090ff;
  flex-shrink: 0;
  cursor: pointer;
  outline: none;
  border-radius: 4px;
}

.create-customer-split-toggle input:focus-visible {
  outline: 2px solid #0090ff;
  outline-offset: 2px;
}

#create-customer-url {
  flex: 1;
  min-width: 0;
  border: 1px solid #d7ddf4;
  border-radius: 10px;
  padding: 12px 13px;
  font-size: 0.86rem;
  color: #1c2438;
  background: #f8fbff;
}

.create-customer-link-label {
  display: block;
  margin: 2px 0 8px;
  color: #495675;
  font-size: 0.85rem;
  font-weight: 600;
}

.create-customer-link-row {
  display: flex;
  gap: 10px;
}

.copy-url-btn {
  flex: 0 0 auto;
  min-width: 98px;
}

.legacy-link-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 6px;
}

.legacy-link-row {
  border: 1px solid #e4e8f7;
  border-radius: 12px;
  padding: 12px;
}

.legacy-link-row.is-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 14px 14px 16px;
}

.legacy-link-row-head {
  margin-bottom: 8px;
  min-width: 0;
}

.legacy-link-row.is-choice .legacy-link-row-head {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 0;
}

.legacy-link-row-label {
  font-weight: 600;
  font-size: 0.92rem;
  color: #1c2438;
}

.legacy-link-row-hint {
  display: none;
  color: #6d7690;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.35;
}

.legacy-link-row.is-choice .legacy-link-row-hint {
  display: block;
}

.legacy-link-row.is-choice .legacy-link-row-body {
  flex: 0 0 auto;
}

.legacy-link-row-body {
  display: flex;
}

.legacy-link-row-body > .modal-btn {
  flex: 0 0 auto;
  min-width: 110px;
}

.legacy-link-row-active {
  display: flex;
  gap: 8px;
  width: 100%;
}

.legacy-link-row-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 38px;
  border: 1px solid #d6deef;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 0.85rem;
  color: #2f3a55;
  background: #f8faff;
}

.create-customer-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.create-customer-status {
  min-height: 20px;
  margin: -13px 0 0;
  font-size: 0.83rem;
  color: #44506b;
}

.create-customer-status.error {
  color: #b10000;
  margin-top: 16px;
}

.create-customer-status.success {
  color: #00703c;
}

.avatar-modal-card {
  width: min(460px, 100%);
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e4e8f7;
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.24),
    0 4px 14px rgba(0, 0, 0, 0.13);
  padding: 20px;
}

.avatar-modal-card h2 {
  margin: 0;
  font-size: 1.25rem;
}

.avatar-modal-help {
  margin: 8px 0 14px;
  color: #596079;
  font-size: 0.9rem;
}

.avatar-file-dropzone {
  appearance: none;
  width: 100%;
  margin-bottom: 12px;
  border: 1px dashed #d7deec;
  border-radius: 12px;
  background: #fcfdff;
  padding: 20px 14px;
  display: grid;
  justify-items: center;
  gap: 10px;
  color: #2c354f;
  cursor: pointer;
  font: inherit;
  text-align: center;
}

.avatar-file-dropzone:hover,
.avatar-file-dropzone.is-drag-over {
  border-color: #96b5ff;
  background: #f2f7ff;
}

.avatar-file-dropzone:hover .avatar-file-btn {
  background: #0082e6;
}

.avatar-file-dropzone:focus-visible {
  outline: 2px solid #0090ff;
  outline-offset: 2px;
}

.avatar-file-icon {
  color: #6d7a96;
  font-size: 1.35rem;
}

.avatar-file-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  padding: 10px 16px;
  border-radius: 10px;
  background: #0090ff;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 600;
}

.avatar-file-secondary {
  max-width: 100%;
  color: #7a839b;
  font-size: 0.84rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crop-wrapper {
  border: 1px solid #d7ddf4;
  border-radius: 12px;
  overflow: hidden;
  background: #f5f7ff;
}

#crop-canvas {
  width: 100%;
  height: auto;
  display: block;
  touch-action: none;
  cursor: grab;
}

#crop-canvas:active {
  cursor: grabbing;
}

.zoom-label {
  display: block;
  margin: 12px 0 6px;
  font-size: 0.88rem;
  color: #424861;
}

.zoom-range {
  width: 100%;
}

.avatar-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.modal-btn {
  flex: 1;
  border: none;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  color: #ffffff;
  background: #0090ff;
}

.modal-btn:hover {
  background: #0082e6;
}

.modal-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.modal-btn.secondary {
  color: #26314a;
  background: #ffffff;
  border: 1px solid #d6ddff;
}

.personal-row-actions .modal-btn,
.personal-password-reset-actions .modal-btn,
.personal-delete-confirm-actions .modal-btn,
.personal-save-btn,
.personal-password-confirm-btn,
.personal-password-cancel-btn,
.personal-delete-btn,
.personal-delete-confirm-btn,
.personal-delete-cancel-btn {
  flex: 0 0 auto;
  width: auto;
}

.avatar-status {
  min-height: 0px;
  margin: 6px 0 0;
  font-size: 0.86rem;
  color: #394163;
}

.avatar-status.error {
  color: #b10000;
}

.avatar-status.success {
  color: #00703c;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes roi-fade-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
  html.auth-view-app #app-shell {
    display: block;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    background: #ffffff;
    padding-top: env(safe-area-inset-top, 0px);
  }

  html.auth-view-app .page {
    overflow-x: hidden;
    background: #ffffff;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
  }

  html.auth-view-app .page::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: env(safe-area-inset-top, 0px);
    background: var(--surface);
    z-index: 80;
    pointer-events: none;
  }

  .sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 39px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 10px;
    background: var(--background);
    color: var(--text);
    cursor: pointer;
    font-size: 1.15rem;
    z-index: 2;
  }

  .sidebar-toggle:hover {
    background: var(--accent-soft);
    color: var(--accent);
  }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(12, 14, 20, 0.48);
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .sidebar-backdrop[hidden] {
    display: none;
  }

  .app-shell.is-nav-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: min(220px, 72vw);
    height: 100%;
    padding: calc(20px + env(safe-area-inset-top, 0px)) 14px calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: 50;
    overflow: hidden;
    visibility: hidden;
    transform: translateX(-105%);
    transition: transform 220ms ease, visibility 0s linear 220ms;
    box-shadow: none;
  }

  .app-shell.is-nav-open .sidebar {
    top: 0;
    bottom: 0;
    height: auto;
    min-height: 100lvh;
    visibility: visible;
    transform: translateX(0);
    transition: transform 220ms ease, visibility 0s;
    box-shadow: 16px 0 32px rgba(0, 0, 0, 0.28);
  }

  .sidebar-header {
    padding: 0 8px 16px;
  }

  .sidebar-logo {
    width: 87px;
  }

  .sidebar-nav {
    margin-top: 16px;
    gap: 8px;
  }

  .sidebar-item {
    padding: 12px 12px;
    font-size: 1rem;
  }

  .app-main {
    width: 100%;
    min-height: 100%;
    background: #ffffff;
  }

  .topbar {
    height: auto;
    min-height: 64px;
    padding: 10px 12px;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px 13px;
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 30;
  }

  .topbar-crumb {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .topbar-tools {
    flex: 1 1 180px;
    min-width: 0;
  }

  .topbar-search-wrap {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }

  .create-customer-btn {
    height: 36px;
    padding: 0 12px;
    font-size: 13px;
  }

  .topbar-search {
    font-size: 13px;
  }

  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not(.topbar-search),
  textarea:not(.customer-internal-notes-input),
  select {
    font-size: 16px !important;
  }

  .topbar-actions {
    margin-left: 0;
    gap: 16px;
    flex: 0 0 auto;
  }

  .notification-btn {
    width: 38px;
    height: 38px;
    display: none;
    font-size: 1.2rem;
  }

  .avatar-trigger {
    width: 38px;
    height: 38px;
    gap: 6px;
  }

  .avatar-ring {
    width: 38px;
    height: 38px;
  }

  .avatar-chevron {
    display: none;
  }

  .workspace {
    padding: 14px 12px 24px;
  }

  .customer-details-content,
  .customer-details-split {
    grid-template-columns: 1fr;
  }

  .customer-details-block.is-wide .customer-details-fields {
    grid-template-columns: 1fr;
  }

  #customer-details-view .customer-details-view-header h2,
  #material-delivery-view .customer-details-view-header h2 {
    font-size: 1.42rem;
  }

  .sales-view {
    margin-top: 8px;
  }

  .workspace-page-title {
    margin-bottom: 14px;
    font-size: 1.42rem;
  }

  .leverans-workspace-bar {
    margin: -4px 0 14px;
  }

  .roi-status-badge,
  .sales-status-pill,
  #customer-details-view .customer-details-ads-ansvarig.is-unassigned .customer-details-ads-name {
    padding: 8px 11px;
  }

  .sales-kundstatus-skip {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .roi-status-badge {
    justify-content: center;
  }

  .sales-mobile-sorts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
  }

  .sales-mobile-sorts .sales-col-head,
  .sales-mobile-sorts .sales-sort-btn {
    width: auto;
    justify-content: space-between;
    gap: 8px;
    border: 1px solid #e2e7f1;
    border-radius: 999px;
    padding: 7px 10px;
    background: #ffffff;
    color: #52607c;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
  }

  .sales-mobile-sorts .sales-col-head .sales-sort-btn {
    width: auto;
    border: 0;
    padding: 0;
    background: transparent;
  }

  .sales-mobile-sorts .sales-col-head:has([data-sort-active]),
  .sales-mobile-sorts .sales-col-head:has([data-filter-active="true"]),
  .sales-mobile-sorts .sales-sort-btn[data-sort-active="asc"],
  .sales-mobile-sorts .sales-sort-btn[data-sort-active="desc"] {
    border-color: #c9d2e3;
    background: #f8f9fc;
    color: #273048;
  }

  .sales-table-wrap {
    border: 0;
    background: transparent;
    overflow: visible;
  }

  .sales-view .sales-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  .sales-view .sales-table thead {
    display: none;
  }

  .sales-view .sales-table tbody,
  .sales-view .sales-table tr,
  .sales-view .sales-table td {
    display: block;
    width: 100%;
  }

  .sales-view .sales-table tr {
    border: 1px solid #e2e7f1;
    border-radius: 12px;
    background: #ffffff;
    padding: 12px 14px;
  }

  .sales-view .sales-table th,
  .sales-view .sales-table td {
    padding: 8px 0;
    border-bottom: 1px solid #edf0f6;
  }

  .sales-view .sales-table td:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .sales-view .sales-table td:first-child {
    display: block;
    padding: 0 0 10px;
    margin-bottom: 2px;
  }

  .sales-view .sales-table td:first-child::before {
    content: none;
  }

  .sales-view .sales-customer-name {
    width: 100%;
  }

  .sales-view .sales-customer-link {
    font-size: 1.02rem;
  }

  .customer-internal-note {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    padding: 10px 12px;
  }

  .customer-internal-notes-actions {
    justify-content: stretch;
  }

  .customer-internal-notes-submit {
    flex: 1;
  }

  .sales-view .sales-ansvarig {
    width: 100%;
  }

  .sales-view .sales-ansvarig-names {
    overflow-wrap: anywhere;
  }

  .sales-view .sales-table td {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    max-width: none;
  }

  .sales-view .sales-link {
    justify-self: start;
    text-align: left;
  }

  .sales-view .sales-table td::before {
    content: attr(data-label);
    color: #52607c;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .sales-view .sales-empty-row td {
    display: block;
    text-align: center;
    padding: 22px 14px;
  }

  .sales-view .sales-empty-row td::before {
    content: none;
  }

  .sales-link {
    white-space: normal;
    word-break: break-all;
  }

  .personal-view {
    margin-top: 8px;
    gap: 14px;
  }

  .personal-create-card {
    padding: 16px 16px 16px;
  }

  .personal-create-header {
    margin-bottom: 12px;
  }

  .personal-create-grid {
    grid-template-columns: 1fr;
  }

  .personal-create-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .personal-create-footer .personal-field {
    max-width: none;
    flex: 1 1 auto;
  }

  .personal-create-action {
    justify-content: stretch;
  }

  .personal-create-btn {
    width: 100%;
    min-height: 44px;
    margin-left: 0;
  }

  .personal-table-wrap {
    border: 0;
    background: transparent;
    overflow: visible;
  }

  .personal-view .sales-table.personal-table {
    display: block;
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  .personal-view .personal-table thead {
    display: none;
  }

  .personal-view .personal-table tbody,
  .personal-view .personal-table tr,
  .personal-view .personal-table td {
    display: block;
    width: 100%;
  }

  .personal-view .personal-table tr {
    border: 1px solid #e2e7f1;
    border-radius: 12px;
    background: #ffffff;
    padding: 12px 14px;
  }

  .personal-view .personal-table th,
  .personal-view .personal-table td {
    padding: 8px 0;
    border-bottom: 1px solid #edf0f6;
  }

  .personal-view .personal-table td:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .personal-view .personal-table td:first-child {
    padding-top: 0;
  }

  .personal-view .personal-table td {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    justify-items: stretch;
    gap: 6px;
    max-width: none;
  }

  .personal-view .personal-table td::before {
    content: attr(data-label);
    color: #52607c;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .personal-view .personal-table .personal-rank-cell,
  .personal-view .personal-table .personal-action-cell,
  .personal-view .personal-table .personal-admin-cell,
  .personal-view .personal-table .personal-phone-cell {
    width: auto;
    min-width: 0;
  }

  .personal-view .personal-rank-select,
  .personal-view #personal-admin-select {
    min-width: 0;
    width: 100%;
  }

  .personal-view .personal-action-content,
  .personal-view .personal-email-content {
    min-width: 0;
  }

  .personal-view .personal-email-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .personal-view .personal-row-actions {
    width: 100%;
  }

  .personal-view .personal-row-actions .modal-btn,
  .personal-view .personal-password-reset-actions .modal-btn,
  .personal-view .personal-delete-confirm-actions .modal-btn,
  .personal-view .personal-save-btn,
  .personal-view .personal-password-btn,
  .personal-view .personal-password-confirm-btn,
  .personal-view .personal-password-cancel-btn,
  .personal-view .personal-delete-btn,
  .personal-view .personal-delete-confirm-btn,
  .personal-view .personal-delete-cancel-btn {
    flex: 1 1 auto;
    min-height: 40px;
    justify-content: center;
  }

  .personal-view .personal-password-reset,
  .personal-view .personal-delete-confirm {
    margin-top: 8px;
    padding-top: 8px;
  }

  .personal-view .sales-empty-row td {
    display: block;
    text-align: center;
    padding: 22px 14px;
  }

  .personal-view .sales-empty-row td::before {
    content: none;
  }
}

@media (max-width: 520px) {
  .auth-card {
    max-width: 100%;
    padding: 28px;
  }

  .logo {
    width: 96px;
  }

  h1 {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .create-customer-btn-label,
  .legacy-customer-upload-label {
    display: none;
  }

  .create-customer-btn {
    padding: 11px 17px;
  }

  .material-delivery-answers div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .profile-fields-grid {
    grid-template-columns: 1fr;
  }

  .material-upload-header h2 {
    font-size: 1.35rem;
  }

  .create-customer-link-row,
  .material-delivery-link-row {
    flex-direction: column;
  }

  .material-delivery-link-add-btn {
    min-height: 44px;
  }

  .create-customer-modal.is-open .create-customer-modal-card {
    transform: translateY(-75px) scale(1);
  }

  .personal-view .personal-row-actions,
  .personal-view .personal-password-reset-actions,
  .personal-view .personal-delete-confirm-actions {
    flex-direction: column;
  }

  .personal-view .personal-row-actions .modal-btn,
  .personal-view .personal-password-reset-actions .modal-btn,
  .personal-view .personal-delete-confirm-actions .modal-btn,
  .personal-view .personal-save-btn,
  .personal-view .personal-password-btn,
  .personal-view .personal-password-confirm-btn,
  .personal-view .personal-password-cancel-btn,
  .personal-view .personal-delete-btn,
  .personal-view .personal-delete-confirm-btn,
  .personal-view .personal-delete-cancel-btn {
    width: 100%;
  }

  html.customer-portal-mode,
  html.customer-portal-mode body,
  html.customer-portal-mode .customer-portal,
  html.customer-portal-mode .customer-portal-card {
    background: #ffffff;
  }

  .customer-portal {
    padding: env(safe-area-inset-top, 0px) 0 0;
    min-height: 100dvh;
  }

  .customer-portal-card {
    width: 100%;
    padding: 7px 14px 88px;
  }

  .customer-flow-step-label {
    font-size: 0.8rem;
    white-space: normal;
  }

  .customer-logo-section,
  .customer-references-section {
    overflow-x: hidden;
  }

  .customer-flow-progress {
    margin-bottom: 30px;
  }

  .customer-portal-company {
    font-size: 1rem;
  }

  .customer-social-section h2 {
    font-size: 1.75rem;
  }

  .customer-bilder-section h2 {
    font-size: 1.75rem;
  }

  .customer-services-section h2 {
    font-size: 1.75rem;
  }

  .customer-sender-avatar {
    width: 84px;
    height: 84px;
  }

  .customer-sender-intro {
    margin-bottom: 22px;
  }

  .customer-geo-section h2 {
    font-size: 1.75rem;
  }

  .customer-offer-section h2 {
    font-size: 1.75rem;
  }

  .customer-logo-section h2 {
    font-size: 1.75rem;
  }

  .customer-references-section h2 {
    font-size: 1.75rem;
  }

  .customer-misc-section h2 {
    font-size: 1.75rem;
  }

  .customer-contact-section h2 {
    font-size: 1.75rem;
  }

  .customer-image-source-options {
    grid-template-columns: 1fr;
  }

  .customer-upload-dropzone {
    min-height: 140px;
    padding: 14px 12px;
  }

  .customer-intake-footer {
    padding: 0;
  }

  .customer-intake-footer-nav {
    padding: 10px 14px;
  }

  .customer-intake-footer-actions {
    gap: 10px;
  }

  .customer-services-input-row {
    width: 100%;
  }

  .customer-geo-search-row {
    min-width: 100%;
  }

  .customer-geo-controls {
    grid-template-columns: 1fr;
  }

  .customer-geo-radius-control,
  #customer-geo-radius,
  .customer-geo-add-area-btn {
    width: 100%;
  }

  .customer-geo-nationwide-toggle {
    align-items: flex-start;
  }

  .customer-geo-map {
    height: 260px;
  }

  .customer-details-geo-map {
    height: 240px;
  }

  .customer-details-thumbs {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  }

  .customer-image-lightbox-nav {
    width: 40px;
    height: 40px;
  }

  .customer-image-lightbox-prev {
    left: 10px;
  }

  .customer-image-lightbox-next {
    right: 10px;
  }

  #customer-geographic-area {
    width: 100%;
  }

  .customer-offer-options,
  #customer-offer-description {
    width: 100%;
  }

  .customer-offer-options {
    grid-template-columns: 1fr;
  }

  .customer-misc-options {
    grid-template-columns: 1fr;
  }

  .customer-logo-dropzone strong {
    font-size: 1.1rem;
  }

  .customer-logo-dropzone span {
    font-size: 0.9rem;
  }

  .customer-review-actions {
    flex-direction: column;
  }

  .customer-submitted-view h2 {
    font-size: 2rem;
  }

  .customer-submitted-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .customer-submitted-actions .customer-nav-btn {
    width: 100%;
    justify-content: center;
  }

  .customer-summary-item-top {
    align-items: flex-start;
  }
}

.workspace:has(#dashboard-view:not(.hidden)) {
  display: flex;
  flex-direction: column;
  background: var(--background);
  padding: 0px 8px 32px;
}

.trello-view {
  display: flex;
  flex-direction: column;
  gap: 34px;
  min-height: calc(100vh - 72px - 48px);
}

.trello-toolbar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 27px;

  padding: 0 18px;
}

.trello-toolbar-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.trello-toolbar .workspace-page-title {
  margin-bottom: 5px;
}

.trello-toolbar-copy {
  position: relative;
}

.trello-note-bell {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 2;
}

.trello-note-bell[hidden] {
  display: none;
}

.trello-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #5c677a;
  font-size: 0.92rem;
}

.trello-note-dot {
  width: 3px;
  height: 3px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
}

.trello-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.trello-board-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.trello-board-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--muted-text);
  border-radius: 7px;
  height: 36px;
  padding: 0 15px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.trello-board-tabs button i {
  font-size: 0.82rem;
}

.trello-board-tabs button.is-active {
  background: var(--accent);
  color: #fff;
  font-weight: 650;
  box-shadow: var(--shadow);
}

.trello-board-tabs button:hover:not(.is-active) {
  background: var(--accent-soft);
  color: var(--accent);
}

.trello-scope {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  gap: 2px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.trello-scope button,
.trello-archive-btn,
.trello-primary,
.trello-text-btn,
.trello-action-btn,
.trello-menu-item,
.trello-add-card {
  font: inherit;
  cursor: pointer;
}

.trello-scope button {
  border: 0;
  background: transparent;
  color: var(--muted-text);
  border-radius: 5px;
  height: 28px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
}

.trello-scope button.is-active {
  background: var(--accent);
  color: var(--surface);
}

.trello-archive-btn {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 7px;
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: none;
}

.trello-board {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 18px 8px;
  flex: 1;
}

.trello-customer-archive {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(560px, 100%);
  flex: 0 0 min(560px, 100%);
  height: min(680px, calc(100vh - 168px));
  max-height: min(680px, calc(100vh - 168px));
  overflow-y: auto;
}

.trello-archive-customer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: #ffffff;
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 1px rgb(9 30 66 / 13%);
}

.trello-archive-customer:hover {
  background: #f7f8fa;
}

.trello-archive-customer-name {
  color: #172b4d;
  font-size: 0.98rem;
  font-weight: 700;
}

.trello-archive-customer-meta {
  color: #5e6c84;
  font-size: 0.84rem;
}

.trello-follow-stage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 290px;
  flex: 0 0 290px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 16px 16px 18px;
  box-shadow: var(--shadow);
  animation: roi-fade-rise 420ms cubic-bezier(0.2, 0.65, 0.3, 1) both;
}

.trello-add-list-slot {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  align-self: flex-start;
  gap: 10px;
  height: auto;
}

html:not(.customer-portal-mode) .trello-add-list-slot .trello-composer-input {
  min-height: 0;
  height: 40px;
  padding: 8px 12px;
  resize: none;
  flex: 0 0 auto;
}

.trello-follow-stage.is-stacked {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.trello-follow-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.trello-follow-stage[data-task-column] .trello-follow-stage-head {
  cursor: grab;
  touch-action: none;
}

.trello-follow-stage.is-column-dragging {
  opacity: 0.35;
}

.trello-follow-stage-ghost {
  position: fixed;
  z-index: 4800;
  margin: 0;
  pointer-events: none;
  opacity: 0.92;
  overflow: hidden;
  box-shadow: 0 12px 28px rgb(9 30 66 / 28%);
  animation: none;
  transition: none;
}

.trello-follow-stage-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 14px;
  max-height: calc(100vh - 280px);
  overflow-y: auto;
}

.trello-follow-stage.is-drop-target {
  outline: 2px solid #579dff;
}

.trello-follow-stage-cards .trello-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: none;
  cursor: grab;
  touch-action: none;
}

.trello-board.is-follow-readonly .trello-follow-stage-cards .trello-card {
  cursor: pointer;
  touch-action: pan-y;
}

.trello-column-search {
  width: 100%;
  margin-top: 12px;
  border: 0;
  border-radius: 8px;
  background: #f4f6f8;
  box-shadow: inset 0 0 0 1px #e2e6ee;
  padding: 8px 10px;
  color: #172b4d;
  font: inherit;
  font-size: 0.86rem;
}

.trello-column-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}

.trello-column-pager[hidden] {
  display: none;
}

.trello-column-page {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: #f4f6f8;
  color: #172b4d;
  cursor: pointer;
}

.trello-column-page:disabled {
  opacity: 0.4;
  cursor: default;
}

.trello-column-page-label {
  color: #5e6c84;
  font-size: 0.75rem;
}

.trello-follow-stage.is-pause .trello-follow-stage-cards {
  min-height: 72px;
}

.trello-todo-task {
  margin: 2px 0 0;
  color: #172b4d;
  font-size: 0.82rem;
  font-weight: 500;
}

.trello-todo-task i {
  margin-right: 6px;
  color: #5e6c84;
  font-size: 0.72rem;
}

.trello-follow-stage.is-todo .trello-follow-stage-cards:empty {
  display: none;
}

.trello-follow-stage.is-klar .trello-follow-stage-cards {
  min-height: 72px;
}

.trello-follow-stage-cards .trello-composer {
  padding: 0;
}

.trello-add-card-slot {
  min-height: 72px;
  justify-content: center;
}

.trello-add-card-slot i {
  font-size: calc(1em + 1.4px);
}

.trello-pause-history-dialog {
  width: min(520px, 100%);
  padding: 0;
  overflow: hidden;
}

.trello-pause-history {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: min(78vh, 720px);
  overflow: auto;
  padding: 18px 18px 16px;
  background: #f4f6f8;
  border-radius: 16px;
}

.trello-pause-history-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-right: 22px;
}

.trello-pause-history-head .trello-follow-close {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 29px;
  height: 29px;
  font-size: 17px;
}

.trello-pause-history-title {
  display: inline;
  margin: 0;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  color: #172b4d;
  font: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: normal;
  cursor: pointer;
}

.trello-pause-history-title:hover {
  text-decoration: underline;
}

.trello-pause-history-sub {
  margin: 4px 0 0;
  color: #5e6c84;
  font-size: 0.86rem;
}

.trello-pause-history-label {
  margin: 4px 0 0;
  color: #172b4d;
  font-size: 0.95rem;
  font-weight: 700;
}

.trello-pause-history-log,
.trello-pause-history-cases {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trello-pause-history-item,
.trello-pause-history-case {
  background: #ffffff;
  border: 1px solid #e6e8ee;
  border-radius: 12px;
  padding: 10px 12px;
}

.trello-pause-history-meta,
.trello-pause-history-case {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.trello-pause-history-kind,
.trello-pause-history-case-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #eceff3;
  color: #243044;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 700;
}

.trello-pause-history-when {
  color: #636d7b;
  font-size: 0.75rem;
  font-weight: 400;
  text-align: right;
}

.trello-pause-history-text,
.trello-pause-history-empty {
  margin: 14px 0 0;
  color: #172b4d;
  font-size: 0.9rem;
}

.trello-pause-history-text strong {
  font-weight: 700;
}

.trello-pause-history-empty {
  margin-top: 8px;
}

.trello-pause-history-case-title {
  color: #172b4d;
  font-size: 0.9rem;
  font-weight: 600;
}

.trello-follow-stage.is-browse .trello-follow-stage-cards .trello-card {
  cursor: pointer;
  touch-action: auto;
}

.trello-owner-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 3px 8px 3px 3px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
}

.trello-owner-avatar {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  object-fit: cover;
  background: #ffffff;
  flex: 0 0 auto;
}

.dashboard-intro {
  display: grid;
  gap: 4px;
  margin: 0 0 18px;
  padding: 0 18px;
}

.dashboard-kicker {
  margin: 0;
  color: var(--muted-text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-intro .workspace-page-title {
  margin: 0;
}

.dashboard-lead {
  margin: 0;
  color: var(--muted-text);
  font-size: 0.92rem;
  display:none;
}

.trello-follow-stage-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
}

.trello-follow-stage-title::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-1px);
}

.trello-follow-stage[data-follow-phase="contact"] .trello-follow-stage-title::before,
.trello-follow-stage[data-follow-phase="action"] .trello-follow-stage-title::before,
.trello-follow-stage[data-pause-stage="ska-pausas"] .trello-follow-stage-title::before {
  background: var(--status-warm);
}

.trello-follow-stage[data-follow-phase="meeting"] .trello-follow-stage-title::before,
.trello-follow-stage[data-pause-stage="ska-sattas-pa"] .trello-follow-stage-title::before {
  background: var(--status-neutral);
}

.trello-follow-stage[data-follow-phase="hold"] .trello-follow-stage-title::before {
  background: #8b93a7;
}

.trello-follow-cycle.is-hold-reason {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trello-card-company {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.trello-card-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted-text);
  font-size: 0.68rem;
  font-weight: 700;
}

.trello-card-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.trello-card-logo.is-google-logo {
  width: 55%;
  height: 55%;
}

.trello-follow-stage.is-stacked .trello-follow-stage-cards {
  min-height: 160px;
  flex: 1;
}

.trello-follow-stage-sub {
  margin: 3px 0 0;
  color: #707784;
  font-size: 0.9rem;
  font-weight: 400;
}

.trello-follow-stage-mark {
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: var(--background);
  color: var(--muted-text);
  font-size: 0.75rem;
  font-weight: 700;
}

.trello-follow-stage-side {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.trello-follow-stage-remove {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #8b95a7;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.trello-follow-stage-remove:hover {
  background: #f4f6f8;
  color: #172b4d;
}

.trello-confirm-copy {
  margin: 8px 0 0;
  color: #44546f;
  font-size: 0.92rem;
}

.trello-confirm-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

.trello-confirm-delete {
  border: 0;
  border-radius: 6px;
  background: #c4314b;
  color: #ffffff;
  padding: 8px 12px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.trello-list,
.trello-archive {
  width: 272px;
  flex: 0 0 272px;
  background: #f7f8fb;
  border-radius: 12px;
  box-shadow: 0 1px 1px rgb(9 30 66 / 12%);
}

.trello-list {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 168px);
}

.trello-list.is-drop-target {
  outline: 2px solid #579dff;
}

.trello-list.is-dragging {
  opacity: 0.45;
}

.trello-list-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px 6px;
  cursor: grab;
}

.trello-list-grip {
  color: #8b95a7;
  font-size: 0.85rem;
  padding-left: 2px;
}

.trello-list-title,
.trello-list-rename {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 0.98rem;
  font-weight: 700;
  color: #172b4d;
  padding: 4px 6px;
  border-radius: 6px;
}

.trello-list-title {
  cursor: text;
}

.trello-list-title:hover,
.trello-list-rename:focus {
  background: #ffffff;
  outline: none;
}

.trello-list.is-status .trello-list-head {
  cursor: default;
}

.trello-list.is-status .trello-list-title,
.trello-list.is-status .trello-list-title:hover {
  cursor: default;
  background: transparent;
}

.trello-list-count {
  color: #6b778c;
  font-size: 0.86rem;
  font-weight: 600;
}

.trello-icon-btn {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #3e4249;
  cursor: pointer;
}

.trello-icon-btn .fa-xmark {
  font-size: calc(1em + 3px);
}

.trello-icon-btn:hover,
.trello-add-card:hover {
  background: #e6eaf1;
}

.trello-list-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  padding: 4px 8px 8px;
  min-height: 8px;
}

.trello-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 6px rgb(9 30 66 / 8%);
  padding: 12px 10px 12px;
  cursor: pointer;
  color: #172b4d;
}

.trello-card:hover {
  background: #f8fbff;
}

.trello-card.is-dragging {
  opacity: 0.35;
}

.trello-card-ghost {
  position: fixed;
  z-index: 4800;
  margin: 0;
  pointer-events: none;
  opacity: 0.92;
  box-shadow: 0 12px 28px rgb(9 30 66 / 28%);
  transition: none;
}

html:not(.customer-portal-mode) .trello-card.trello-card-ghost {
  transition: none;
}

.trello-status-card {
  cursor: pointer;
  border-left: 4px solid #0c66e4;
}

.trello-status-kicker,
.trello-status-count {
  margin: 0;
  color: #5e6c84;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.trello-status-names {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trello-status-name {
  font-size: 0.84rem;
  color: #172b4d;
}

.trello-status-name.is-empty {
  color: #8b95a7;
}

.trello-status-customer {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 8px;
  background: #f7f8fa;
  padding: 10px 12px;
  margin-bottom: 8px;
  font: inherit;
  font-weight: 600;
  color: #172b4d;
  cursor: pointer;
}

.trello-status-customer:hover {
  background: #e8eef8;
}

.trello-card-labels,
.trello-meta-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.trello-label {
  min-width: 40px;
  max-width: 100%;
  height: 8px;
  border-radius: 4px;
  padding: 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 8px;
  overflow: hidden;
}

.trello-label.is-empty {
  width: 40px;
  padding: 0;
}

.trello-label-lg,
.trello-label-choice {
  height: auto;
  min-height: 28px;
  line-height: 1.2;
  padding: 6px 10px;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.trello-label-choice {
  flex: 1;
}

.trello-label-choice.is-selected {
  box-shadow: inset 0 0 0 2px #172b4d;
}

.trello-card-title-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.trello-card-check {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #1f8a4c;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 0.68rem;
  margin-top: 1px;
}

.trello-card-title,
.trello-card-open {
  flex: 1;
  min-width: 0;
  font-size: 0.92rem;
  line-height: 1.35;
  font-weight: 600;
}

.trello-card-open {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.trello-card-open:hover {
  text-decoration: underline;
}

.trello-follow-title {
  margin: 0;
  padding: 0 18px;
  font-size: 1.15rem;
  color: #172b4d;
}

.trello-archive-btn.is-active {
  background: var(--accent);
  color: var(--surface);
  border-color: var(--accent);
}

.trello-follow-klar {
  align-self: flex-start;
  border: 0;
  border-radius: 4px;
  background: #000000;
  color: #ffffff;
  padding: 6px 22px;
  font: inherit;
  margin-top: 5px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.trello-live-badge {
  margin-left: auto;
  align-self: center;
  border-radius: 999px;
  background: #c4314b;
  color: #ffffff;
  padding: 4px 10px;
  font-size: calc(0.72rem - 0.4px);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.trello-follow-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(15 23 42 / 45%);
  padding: 24px;
  animation: trello-follow-fade 180ms ease;
}

.trello-follow-modal > * {
  animation: trello-follow-pop 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.trello-follow-modal.is-closing {
  animation: trello-follow-fade 160ms ease reverse forwards;
  pointer-events: none;
}

.trello-follow-modal.is-closing > * {
  animation: trello-follow-pop 160ms ease reverse forwards;
}

@keyframes trello-follow-fade {
  from { background-color: rgb(15 23 42 / 0%); }
  to { background-color: rgb(15 23 42 / 45%); }
}

@keyframes trello-follow-pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trello-follow-modal,
  .trello-follow-modal > *,
  .trello-follow-modal.is-closing,
  .trello-follow-modal.is-closing > * {
    animation: none;
  }
}

.trello-follow-dialog {
  width: min(480px, 100%);
  background: #f6f7f9;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgb(0 0 0 / 24%);
  padding: 22px 22px 18px;
  box-sizing: border-box;
}

.trello-follow-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.trello-follow-form-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #172b4d;
}

.trello-follow-form-hint {
  margin: 4px 0 0;
  color: #7b8798;
  font-size: 0.84rem;
}

.trello-follow-date > .trello-follow-form-hint {
  font-weight: 450;
}

.trello-follow-close {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #5e6c84;
  cursor: pointer;
}

.trello-follow-close:hover {
  background: #e8ecf2;
}

.trello-follow-radios {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trello-follow-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 0.95rem;
  color: #172b4d;
  cursor: pointer;
}

.trello-follow-radio-mark {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  box-sizing: border-box;
  border: 2px solid #c5ced9;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.trello-follow-radio.is-selected .trello-follow-radio-mark {
  border-color: #0c66e4;
}

.trello-follow-radio.is-selected .trello-follow-radio-mark::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0c66e4;
}

.trello-follow-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trello-follow-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.trello-follow-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.trello-follow-form .trello-popover-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #172b4d;
}

.trello-follow-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trello-follow-choice {
  border: 1px solid #d5dbe6;
  background: #ffffff;
  border-radius: 999px;
  padding: 7px 12px;
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
}

.trello-follow-choice.is-selected.is-nojd { background: #e5f6ea; border-color: #1f8a4c; }
.trello-follow-choice.is-selected.is-neutral { background: #fff6db; border-color: #c48a12; }
.trello-follow-choice.is-selected.is-risk { background: #ffe8ea; border-color: #c4314b; }
.trello-follow-choice.is-selected { background: #e8eef8; border-color: #0c66e4; }

.trello-follow-note,
.trello-follow-date input,
.trello-follow-when input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d5dbe6;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px 12px;
  font: inherit;
}

.trello-follow-when {
  display: flex;
  gap: 8px;
}

.trello-follow-when input {
  width: auto;
  flex: 1;
  min-width: 0;
}

.trello-follow-label,
.trello-follow-date {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  color: #243044;
  font-size: 0.92rem;
  font-weight: 600;
}

.trello-follow-form .trello-primary {
  width: 100%;
  margin-top: 4px;
}

.trello-follow-form .trello-follow-footer .trello-primary,
.trello-follow-form .trello-follow-footer .trello-follow-save {
  width: auto;
  margin-top: 0;
}

.trello-follow-form .trello-follow-save {
  padding-top: 10px;
  padding-bottom: 10px;
  font-weight: 500;
}

.trello-case-form {
  gap: 16px;
}

.trello-case-control {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e6eaf0;
  background-color: #ffffff;
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  font-size: 0.95rem;
  color: #172b4d;
}

.trello-case-form select.trello-case-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%235e6c84' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.trello-case-form select.trello-case-control:invalid {
  color: #8b95a5;
}

.trello-case-picker {
  position: relative;
}

.trello-case-picker.is-fixed .trello-case-control {
  cursor: pointer;
}

.trello-case-picker .trello-case-control {
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%235e6c84' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.trello-case-picker-list {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 220px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #e6eaf0;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgb(9 30 66 / 12%);
  padding: 4px;
}

.trello-case-picker-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  font-size: 0.92rem;
  color: #172b4d;
  cursor: pointer;
}

.trello-case-picker-avatar {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  object-fit: cover;
  background: #e8edf5;
}

.trello-case-picker-option:hover,
.trello-case-picker-option.is-active {
  background: #f0f4fa;
}

.trello-case-picker-option.is-selected {
  font-weight: 600;
}

.trello-case-picker-empty {
  margin: 0;
  padding: 8px 10px;
  color: #8b95a5;
  font-size: 0.88rem;
}

/* Multi-picker för Ansvarig (max 2 personer) */
.trello-case-multipick .trello-case-multipick-summary {
  width: 100%;
  text-align: left;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%235e6c84' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.trello-case-multipick .trello-case-picker-option.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.trello-multipick-check {
  margin-left: auto;
  color: #2c72e3;
  font-size: 0.85rem;
  flex: 0 0 auto;
}

.trello-multipick-summary-inner {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trello-multipick-summary-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  background: #e8edf5;
}

.trello-multipick-summary-sep {
  color: #5e6c84;
}

.trello-case-save {
  border: 0;
  border-radius: 8px;
  background: #1b2433;
  color: #ffffff;
  padding: 8px 14px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.trello-case-save:hover {
  background: #121822;
}

.trello-support-top {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.trello-support-company-btn {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  font: inherit;
  font-weight: 700;
  color: inherit;
  cursor: pointer;
}

.trello-support-company-btn:hover {
  text-decoration: underline;
}

.trello-support-comment-mark {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  color: #5e6c84;
  font-size: 0.78rem;
  font-weight: 600;
}

.trello-support-dialog {
  width: min(560px, 100%);
}

.trello-support-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.trello-support-thread {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
}

.trello-support-thread-empty {
  margin: 0;
  color: #7b8798;
  font-size: 0.9rem;
}

.trello-support-comment {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.trello-support-comment-avatar {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  object-fit: cover;
  background: #e8edf5;
}

.trello-support-comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
}

.trello-support-comment-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: #172b4d;
}

.trello-support-comment-time {
  font-size: 0.75rem;
  color: #7b8798;
}

.trello-support-comment-text {
  margin: 2px 0 0;
  color: #243044;
  font-size: 0.9rem;
  white-space: pre-wrap;
}

.trello-support-detail > .trello-case-save {
  align-self: flex-start;
}

.trello-support-company {
  font-weight: 700;
}

.trello-support-creator {
  margin: 0 0 4px;
  font-size: 0.72rem;
  color: #6b7280;
  font-weight: 400;
  line-height: 1.3;
}

.trello-support-rubrik {
  margin: 0;
  margin-top: 0;
  padding-bottom: 4px;
  color: #5e6c84;
  font-size: 0.86rem;
}

.trello-support-note {
  margin: 6px 0 0;
  color: #5e6c84;
  font-size: 0.84rem;
  font-weight: 450;
  line-height: 1.4;
  white-space: pre-wrap;
}

.trello-support-assignee,
.trello-support-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  margin-top: 4px;
  font-weight: 600;
  background: #e9e9e9;
  color: #000000;
}

.trello-support-priority {
  align-self: flex-start;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  background: #e8edf5;
  color: #3d4a63;
}

.trello-support-priority.is-medium {
  background: #d7e7ff;
  color: #1d4f91;
}

.trello-support-priority.is-hog {
  background: #ffe7bf;
  color: #8a5a00;
}

.trello-support-priority.is-akut {
  background: #ffd9d4;
  color: #9f2d22;
}

.customer-details-split {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.customer-follow-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: #f4f6f8;
}

.customer-follow-switch button {
  border: 0;
  background: transparent;
  color: #3c4656;
  border-radius: 8px;
  padding: 6px 10px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
}

.customer-follow-switch button.is-active {
  background: #ffffff;
  color: #1b2430;
  font-weight: 600;
  box-shadow: 0 1px 1px rgb(9 30 66 / 8%);
}

.customer-follow-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 332px;
  overflow-y: auto;
}

.customer-follow-up-next,
.customer-follow-up-empty,
.customer-follow-up-meta {
  margin: 0;
  color: #5e6c84;
  font-size: 0.84rem;
  padding-bottom: 3px;
}

.customer-follow-up-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.customer-follow-up-note {
  grid-template-columns: 36px minmax(0, 1fr);
}

.customer-follow-up-note.is-resolved {
  background: #eefaf1;
  border-color: #b7e4c4;
  border-left: 4px solid #1f8a4c;
}

.customer-support-solved {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 2px;
  color: #1f7a3a;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.customer-follow-up-note.is-resolved .customer-follow-up-change {
  font-weight: 700;
  color: #14532d;
}

.customer-follow-up-change + .customer-internal-note-text {
  margin-top: 4px;
}

.customer-follow-up-change-name {
  font-weight: 700;
}

.trello-follow-cycle {
  margin: 8px 0 0;
  color: #5e5e5e;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}

.trello-follow-meeting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: -2px;
}

.trello-follow-meeting .trello-follow-cycle {
  margin: 0;
}

.trello-meeting-clock {
  flex: 0 0 auto;
  width: 25px;
  height: 24px;
  margin-left: auto;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #172b4d;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.trello-meeting-clock:hover {
  background: #e8eef8;
}

.customer-follow-up-entry {
  white-space: pre-wrap;
  border: 1px solid #e6ebf4;
  border-radius: 12px;
  background: #fafbfe;
  padding: 12px 14px;
  color: #172b4d;
}

.trello-card-owner {
  margin-left: auto;
  max-width: 46%;
  color: #5e6c84;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: right;
}

.trello-menu-item.is-selected {
  background: #e8eef8;
}

.trello-card.is-done .trello-card-title {
  color: #3d4a63;
}

.trello-card-badges,
.trello-meta-members {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 9px;
  gap: 10px;
  color: #5e6c84;
  font-size: 0.78rem;
}

.trello-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.trello-badge.is-overdue,
.trello-due-btn.is-overdue {
  color: #b42318;
}

.trello-badge.is-complete,
.trello-complete.is-done {
  color: #1f8a4c;
}

.trello-card-members {
  margin-left: auto;
  display: inline-flex;
}

.trello-member {
  width: 24px;
  height: 24px;
  display: block;
  flex: 0 0 auto;
  border-radius: 999px;
  object-fit: cover;
  background: #d5dbe6 url("/assets/PlaceholderAvatar.png") center / cover no-repeat;
  border: 0;
  box-shadow: none;
  clip-path: inset(8% round 50%);
  transform: scale(1.2);
  margin-left: -6px;
}

.trello-member:first-child,
.trello-member-lg {
  margin-left: 0;
}

.trello-member-lg {
  width: 32px;
  height: 32px;
}

.trello-composer {
  padding: 0 8px 8px;
}

.trello-add-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: #f4f4f4;
  color: #5e6c84;
  border-radius: 8px;
  padding: 8px;
  text-align: left;
}

.trello-composer-form,
.trello-comment-form,
.trello-check-add,
.trello-link-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trello-composer-input,
.trello-description,
.trello-comment-input,
.trello-check-text,
.trello-modal-title,
.trello-label-name,
.trello-date-input,
.trello-checklist-input {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #d5dbe6;
  padding: 8px 10px;
  color: #172b4d;
  resize: vertical;
}

.trello-composer-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.trello-primary {
  border: 0;
  border-radius: 6px;
  background: #0c66e4;
  color: #ffffff;
  padding: 8px 12px;
  font-weight: 600;
}

.trello-text-btn {
  border: 0;
  background: transparent;
  color: #44546f;
  padding: 6px 8px;
  border-radius: 6px;
}

.trello-text-btn:hover {
  background: #e6eaf1;
}

.trello-archive {
  padding: 12px;
  max-height: calc(100vh - 168px);
  overflow: auto;
}

.trello-archive-title,
.trello-side-title,
.trello-section h3,
.trello-popover-title {
  margin: 0;
  font-size: 0.95rem;
}

.trello-archive-row,
.trello-file,
.trello-label-row,
.trello-member-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trello-archive-row,
.trello-file {
  justify-content: space-between;
  padding: 6px 0;
}

.trello-file-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #0c66e4;
  text-decoration: none;
  word-break: break-word;
}

.trello-file-thumb {
  width: 72px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
  flex: 0 0 auto;
  background: #f4f6f8;
}

.trello-file-name {
  min-width: 0;
}

.trello-empty {
  margin: 8px 0 0;
  color: #5e6c84;
  font-size: 0.88rem;
}

.trello-modal {
  position: fixed;
  inset: 0;
  z-index: 4500;
  display: grid;
  place-items: center;
  padding: 28px 16px;
}

.trello-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(16 18 20 / 64%);
}

.trello-modal-dialog {
  position: relative;
  width: min(1040px, 100%);
  max-height: calc(100vh - 56px);
  overflow: auto;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgb(0 0 0 / 28%);
  padding: 16px 18px 22px;
}

.trello-modal-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 8px;
  display: none;
}

.trello-modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 22px;
}

.trello-modal-title-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.trello-complete {
  width: 28px;
  height: 28px;
  margin-top: 6px;
  border-radius: 999px;
  border: 2px solid #c3cad6;
  background: #ffffff;
  color: transparent;
  cursor: pointer;
  flex: 0 0 auto;
}

.trello-complete.is-done {
  background: #1f8a4c;
  border-color: #1f8a4c;
  color: #ffffff;
}

.trello-modal-title {
  font-size: 1.35rem;
  font-weight: 700;
  box-shadow: none;
  padding: 4px 6px;
}

.trello-modal-list-note {
  margin: 2px 0 12px 38px;
  color: #5e6c84;
  font-size: 0.86rem;
}

.trello-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px 38px;
}

.trello-action-btn,
.trello-due-btn,
.trello-member-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 6px;
  background: #f1f2f4;
  color: #172b4d;
  padding: 7px 10px;
  font-weight: 600;
  cursor: pointer;
}

.trello-action-btn:hover,
.trello-due-btn:hover,
.trello-member-add:hover {
  background: #e4e6ea;
}

.trello-member-add {
  width: 32px;
  height: 32px;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
}

.trello-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0 0 16px 38px;
}

.trello-meta-label {
  margin: 0 0 6px;
  color: #5e6c84;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trello-section {
  margin: 0 0 18px;
}

.trello-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 11px;
  color: #172b4d;
}

.trello-section-head h3 {
  flex: 1;
}

.trello-description {
  min-height: 72px;
  background: #f7f8fa;
  box-shadow: none;
}

.trello-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #5e6c84;
  font-size: 0.78rem;
}

.trello-progress-track {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: #e4e6ea;
  overflow: hidden;
}

.trello-progress-bar {
  display: block;
  height: 100%;
  background: #1f8a4c;
}

.trello-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.trello-check-text {
  box-shadow: none;
  background: transparent;
}

.trello-check-text:focus {
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #d5dbe6;
}

.trello-modal-side {
  background: #f7f8fa;
  border-radius: 12px;
  padding: 14px;
  min-height: 100%;
}

.trello-side-title {
  margin-bottom: 12px;
}

.trello-comment-input {
  min-height: 64px;
  background: #ffffff;
}

.trello-activity {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.trello-activity-item {
  display: flex;
  gap: 8px;
}

.trello-activity-item .trello-member {
  margin-left: 0;
}

.trello-activity-text {
  margin: 0;
  color: #172b4d;
  font-size: 0.9rem;
  white-space: pre-wrap;
}

.trello-activity-item.is-activity .trello-activity-text {
  color: #313131;
}

.trello-activity-time {
  display: block;
  margin-top: 2px;
  color: #6b778c;
  font-size: 0.75rem;
}

.trello-popover,
.trello-menu {
  position: fixed;
  z-index: 4600;
  width: 280px;
  max-height: 360px;
  overflow: auto;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgb(0 0 0 / 22%);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trello-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  border-radius: 6px;
  padding: 8px;
  color: #172b4d;
}

.trello-menu-item:hover {
  background: #f1f2f4;
}

.trello-member-option .fa-check {
  margin-left: auto;
  color: #1f8a4c;
}

body.trello-modal-open {
  overflow: hidden;
}

@media (max-width: 860px) {
  .trello-toolbar-row,
  .trello-modal-layout {
    display: flex;
    flex-direction: column;
  }

  .trello-modal-actions,
  .trello-meta-row,
  .trello-modal-list-note {
    margin-left: 0;
  }

  .trello-list,
  .trello-archive {
    max-height: 70vh;
  }
}


/* Staff CRM skin (neutral accent, fade-rise). Space Grotesk stays the typeface.
   Customer forms on html.customer-portal-mode are excluded. */
html:not(.customer-portal-mode) {
  --background: oklch(0.977 0.003 165);
  --surface: oklch(1 0 0);
  --text: oklch(0.26 0.012 165);
  --muted-text: oklch(0.57 0.009 165);
  --border: oklch(0.92 0.005 165);
  --accent: #222222;
  --accent-soft: #f2f2f2;
  --radius: 0.875rem;
  --shadow: 0 4px 20px oklch(0.25 0.02 165 / 0.035), 0 1px 3px oklch(0.25 0.02 165 / 0.025);
  --status-warm: oklch(0.58 0.1 75);
  --status-warm-bg: oklch(0.97 0.028 85);
  --status-neutral: oklch(0.54 0.025 255);
  --status-neutral-bg: oklch(0.96 0.01 255);
}

@keyframes roi-fade-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

html:not(.customer-portal-mode),
html:not(.customer-portal-mode) body {
  background: var(--background);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

html:not(.customer-portal-mode) ::selection {
  background: var(--accent-soft);
  color: var(--accent);
}

html:not(.customer-portal-mode) .bg-glow {
  display: none;
}

html:not(.customer-portal-mode) .page {
  background: var(--background);
}

html:not(.customer-portal-mode) .auth-card,
html:not(.customer-portal-mode) .app-shell,
html:not(.customer-portal-mode) .workspace > div:not(.hidden) {
  animation: roi-fade-rise 500ms cubic-bezier(0.2, 0.65, 0.3, 1) both;
}

html:not(.customer-portal-mode) .auth-card {
  width: min(100%, 384px);
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

html:not(.customer-portal-mode) .auth-card h1 {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

html:not(.customer-portal-mode) .auth-card label,
html:not(.customer-portal-mode) .terms,
html:not(.customer-portal-mode) .status:not(.error) {
  color: var(--muted-text);
}

html:not(.customer-portal-mode) .status.error {
  color: #b10000;
}

html:not(.customer-portal-mode) .auth-card input {
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

html:not(.customer-portal-mode) .auth-card input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

html:not(.customer-portal-mode) .auth-card button,
html:not(.customer-portal-mode) .trello-primary,
html:not(.customer-portal-mode) .trello-case-save,
html:not(.customer-portal-mode) .leverans-workspace-tabs button.is-active {
  background: var(--accent);
  color: var(--surface);
  border-color: transparent;
  border-radius: 8px;
  transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

html:not(.customer-portal-mode) .auth-card button.is-loading {
  color: transparent;
  -webkit-text-fill-color: transparent;
}

html:not(.customer-portal-mode) .auth-card button:hover,
html:not(.customer-portal-mode) .trello-primary:hover {
  background: #111111;
}

html:not(.customer-portal-mode) .auth-card button:active,
html:not(.customer-portal-mode) .trello-primary:active {
  transform: translateY(1px);
}

html:not(.customer-portal-mode) .avatar-modal {
  background: rgb(15 23 42 / 45%);
}

html:not(.customer-portal-mode) .avatar-modal-card {
  width: min(440px, 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgb(0 0 0 / 16%);
  padding: 22px;
}

html:not(.customer-portal-mode) .avatar-modal-card h2 {
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--text);
}

html:not(.customer-portal-mode) .avatar-modal-help {
  margin: 6px 0 16px;
  color: var(--muted-text);
}

html:not(.customer-portal-mode) .avatar-file-dropzone {
  border: 1px dashed var(--border);
  border-radius: 14px;
  background: #fafafa;
  padding: 28px 16px;
  gap: 12px;
}

html:not(.customer-portal-mode) .avatar-file-dropzone:hover,
html:not(.customer-portal-mode) .avatar-file-dropzone.is-drag-over {
  border-color: var(--accent);
  background: var(--accent-soft);
}

html:not(.customer-portal-mode) .avatar-file-dropzone:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

html:not(.customer-portal-mode) .avatar-file-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.95rem;
}

html:not(.customer-portal-mode) .avatar-file-btn {
  min-height: 36px;
  border-radius: 8px;
  background: var(--accent);
  font-weight: 600;
}

html:not(.customer-portal-mode) .avatar-file-dropzone:hover .avatar-file-btn {
  background: #111111;
}

html:not(.customer-portal-mode) .avatar-file-secondary,
html:not(.customer-portal-mode) .zoom-label {
  color: var(--muted-text);
}

html:not(.customer-portal-mode) #avatar-modal .zoom-range {
  accent-color: var(--accent);
}

html:not(.customer-portal-mode) #avatar-modal .crop-wrapper {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fafafa;
}

html:not(.customer-portal-mode) #avatar-modal .modal-btn {
  border-radius: 8px;
  background: var(--accent);
}

html:not(.customer-portal-mode) #avatar-modal .modal-btn:hover {
  background: #111111;
}

html:not(.customer-portal-mode) #avatar-modal .modal-btn.secondary {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
}

html:not(.customer-portal-mode) #avatar-modal .modal-btn.secondary:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

html:not(.customer-portal-mode) .trello-composer-input {
  min-height: 88px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fafafa;
  box-shadow: none;
  padding: 12px;
  color: var(--text);
}

html:not(.customer-portal-mode) .trello-composer-input:focus {
  outline: none;
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

html:not(.customer-portal-mode) .trello-composer-input::placeholder,
html:not(.customer-portal-mode) .trello-modal-title::placeholder,
html:not(.customer-portal-mode) .trello-description::placeholder,
html:not(.customer-portal-mode) .trello-comment-input::placeholder {
  color: #8b919a;
  font-weight: 500;
}

html:not(.customer-portal-mode) .trello-modal-backdrop {
  background: rgb(15 23 42 / 45%);
}

html:not(.customer-portal-mode) .trello-modal-dialog {
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgb(0 0 0 / 16%);
  padding: 28px 20px 28px;
}

html:not(.customer-portal-mode) .trello-complete {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 12px;
  padding: 0;
  border-width: 1.5px;
  border-color: #c8c8c8;
  line-height: 1;
}

html:not(.customer-portal-mode) .trello-complete i {
  font-size: 9px;
}

html:not(.customer-portal-mode) .trello-modal-title {
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fafafa;
  box-shadow: none;
  padding: 10px 12px;
  min-height: 44px;
}

html:not(.customer-portal-mode) .trello-modal-title:focus {
  outline: none;
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

html:not(.customer-portal-mode) .trello-modal-list-note,
html:not(.customer-portal-mode) .trello-modal-actions,
html:not(.customer-portal-mode) .trello-meta-row {
  margin-left: 30px;
}

html:not(.customer-portal-mode) .trello-modal-list-note {
  color: var(--muted-text);
  padding-top: 4px;
}

html:not(.customer-portal-mode) .trello-action-btn,
html:not(.customer-portal-mode) .trello-due-btn {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fafafa;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

html:not(.customer-portal-mode) .trello-action-btn:hover,
html:not(.customer-portal-mode) .trello-due-btn:hover,
html:not(.customer-portal-mode) .trello-member-add:hover {
  background: var(--accent-soft);
}

html:not(.customer-portal-mode) .trello-meta-label,
html:not(.customer-portal-mode) .trello-section-head,
html:not(.customer-portal-mode) .trello-side-title {
  color: var(--text);
}

html:not(.customer-portal-mode) .trello-description,
html:not(.customer-portal-mode) .trello-comment-input {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fafafa;
  box-shadow: none;
  padding: 12px;
  color: var(--text);
}

html:not(.customer-portal-mode) .trello-description:focus,
html:not(.customer-portal-mode) .trello-comment-input:focus {
  outline: none;
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

html:not(.customer-portal-mode) .trello-modal-side {
  background: #f6f6f6;
  border: 1px solid var(--border);
  border-radius: 14px;
}

html:not(.customer-portal-mode) .trello-archive-card {
  display: inline-flex;
  align-items: center;
  margin-top: 4px;
  background: #c5362b;
  color: #ffffff;
  border-radius: 7px;
  padding: 8px 12px;
  font-weight: 500;
}

html:not(.customer-portal-mode) .trello-archive-card:hover {
  background: #a82d24;
  color: #ffffff;
}

html:not(.customer-portal-mode) .feedback-view {
  display: grid;
  gap: 16px;
  width: min(560px, 100%);
}

html:not(.customer-portal-mode) .feedback-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

html:not(.customer-portal-mode) .feedback-card h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--text);
}

html:not(.customer-portal-mode) .feedback-lead {
  margin: 0;
  color: var(--muted-text);
  font-size: 0.92rem;
}

html:not(.customer-portal-mode) .feedback-card textarea {
  width: 100%;
  min-height: 140px;
  margin-top: 4px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fafafa;
  color: var(--text);
  font: inherit;
  resize: vertical;
}

html:not(.customer-portal-mode) .feedback-card textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

html:not(.customer-portal-mode) .feedback-card textarea::placeholder {
  color: #8b919a;
}

html:not(.customer-portal-mode) #feedback-submit {
  justify-self: start;
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  margin-top: 20px;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

html:not(.customer-portal-mode) #feedback-submit:hover {
  background: #111111;
}

html:not(.customer-portal-mode) #feedback-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

html:not(.customer-portal-mode) .feedback-status {
  min-height: 1.2em;
  margin: 0;
  color: var(--muted-text);
  font-size: 0.88rem;
}

html:not(.customer-portal-mode) .feedback-status.is-error {
  color: #b10000;
}

html:not(.customer-portal-mode) .feedback-list {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

html:not(.customer-portal-mode) .feedback-report {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fafafa;
}

html:not(.customer-portal-mode) .feedback-report-check {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  flex: 0 0 22px;
  border: 1.5px solid #c5cad3;
  border-radius: 50%;
  background: #ffffff;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
}

html:not(.customer-portal-mode) .feedback-report-check i {
  font-size: 0.68rem;
}

html:not(.customer-portal-mode) .feedback-report.is-done .feedback-report-check {
  border-color: #9aa3af;
  background: #9aa3af;
}

html:not(.customer-portal-mode) .feedback-report-body {
  display: grid;
  gap: 6px;
  min-width: 0;
}

html:not(.customer-portal-mode) .feedback-report.is-done .feedback-report-meta,
html:not(.customer-portal-mode) .feedback-report.is-done .feedback-report-text {
  color: #9aa3af;
}

html:not(.customer-portal-mode) .feedback-report.is-done .feedback-report-text {
  text-decoration: line-through;
}

html:not(.customer-portal-mode) .feedback-report-meta {
  margin: 0;
  color: var(--muted-text);
  font-size: 0.8rem;
  font-weight: 600;
}

html:not(.customer-portal-mode) .feedback-report-text {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  white-space: pre-wrap;
}

html:not(.customer-portal-mode) .feedback-empty {
  margin: 0;
  color: var(--muted-text);
  font-size: 0.92rem;
}

html:not(.customer-portal-mode) .auth-card button.secondary {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
}

html:not(.customer-portal-mode) .auth-card button.secondary:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

@media (min-width: 861px) {
  html:not(.customer-portal-mode).auth-view-app .page {
    padding: 16px;
  }

  html:not(.customer-portal-mode) .app-shell {
    min-height: calc(100vh - 32px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow: hidden;
  }
}

html:not(.customer-portal-mode) .sidebar {
  background: var(--surface);
  color: var(--text);
  border-right: 1px solid var(--border);
}

@media (min-width: 861px) {
  html:not(.customer-portal-mode).auth-view-app .page {
    height: 100vh;
    min-height: 0;
    overflow: hidden;
  }

  html:not(.customer-portal-mode).auth-view-app .app-shell {
    height: calc(100vh - 32px);
    max-height: calc(100vh - 32px);
    min-height: 0;
  }

  html:not(.customer-portal-mode).auth-view-app .sidebar {
    position: relative;
    top: auto;
    align-self: stretch;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: hidden;
  }

  html:not(.customer-portal-mode).auth-view-app .app-main {
    min-height: 0;
    overflow: hidden;
  }

  html:not(.customer-portal-mode).auth-view-app .workspace {
    min-height: 0;
    overflow: auto;
  }
}

html:not(.customer-portal-mode) .sidebar-header {
  border-bottom-color: var(--border);
}

html:not(.customer-portal-mode) .sidebar-logo {
  filter: brightness(0) saturate(100%);
}

html:not(.customer-portal-mode) .sidebar-item {
  height: 40px;
  color: oklch(0.27 0 0);
  border-radius: 8px;
  transition: background-color 180ms ease, color 180ms ease;
}

html:not(.customer-portal-mode) .sidebar-item:hover,
html:not(.customer-portal-mode) .sidebar-item.active {
  background: var(--accent-soft);
  color: var(--accent);
}

html:not(.customer-portal-mode) .sidebar-item-badge {
  background: var(--surface);
  color: var(--accent);
  border: 1px solid var(--border);
}

html:not(.customer-portal-mode) .topbar {
  height: 64px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

html:not(.customer-portal-mode) .topbar-search {
  border: 0;
  background: transparent;
  color: var(--text);
  height: 100%;
  border-radius: 0;
  box-shadow: none;
}

html:not(.customer-portal-mode) .topbar-search::placeholder {
  color: var(--muted-text);
}

html:not(.customer-portal-mode) .topbar-search:focus {
  box-shadow: none;
}

html:not(.customer-portal-mode) .notification-btn {
  color: var(--accent);
  background: var(--accent-soft);
}

html:not(.customer-portal-mode) .notification-badge {
  box-shadow: 0 0 0 2px var(--surface);
}

html:not(.customer-portal-mode) .avatar-ring {
  border: 0;
  background: var(--accent-soft);
  box-shadow: none;
}

html:not(.customer-portal-mode) .app-main,
html:not(.customer-portal-mode) .workspace {
  background: var(--background);
}

html:not(.customer-portal-mode) .workspace-page-title {
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  display:none;
}

html:not(.customer-portal-mode) .sales-table-wrap,
html:not(.customer-portal-mode) .trello-follow-stage,
html:not(.customer-portal-mode) .create-staff,
html:not(.customer-portal-mode) .personal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: none;
}

html:not(.customer-portal-mode) .sales-table th {
  height: 39px;
  background: var(--background);
  color: var(--muted-text);
  font-size: 11px;
  letter-spacing: 0.04em;
}

html:not(.customer-portal-mode) .sales-table td {
  border-top: 1px solid var(--border);
  border-bottom: 0;
  transition: background-color 180ms ease;
}

html:not(.customer-portal-mode) .sales-table tbody tr:hover td {
  background: var(--background);
}

html:not(.customer-portal-mode) .sales-status-pill,
html:not(.customer-portal-mode) .roi-status-badge {
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent);
  gap: 5px;
}

html:not(.customer-portal-mode) .sales-status-pill::before,
html:not(.customer-portal-mode) .roi-status-badge::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

html:not(.customer-portal-mode) .sales-status-pill.is-granskar,
html:not(.customer-portal-mode) .sales-status-pill.is-vantar,
html:not(.customer-portal-mode) .sales-status-pill.is-nekad,
html:not(.customer-portal-mode) .roi-status-badge.is-waiting,
html:not(.customer-portal-mode) .roi-status-badge.is-reviewing {
  background: var(--status-warm-bg);
  color: var(--status-warm);
}

html:not(.customer-portal-mode) .roi-status-badge.is-review-action,
html:not(.customer-portal-mode) .roi-status-badge.is-reviewing.is-static {
  background: #0090ff;
  color: #ffffff;
}

html:not(.customer-portal-mode) .roi-status-badge.is-review-action::before {
  content: none;
}

html:not(.customer-portal-mode) .roi-status-badge.is-review-action::after {
  width: 5.5px;
  height: 5.5px;
  border-top-color: #ffffff;
  border-right-color: #ffffff;
}

html:not(.customer-portal-mode) .sales-status-pill.is-visa,
html:not(.customer-portal-mode) .sales-status-pill.is-archived,
html:not(.customer-portal-mode) .roi-status-badge.is-sent {
  background: var(--status-neutral-bg);
  color: var(--status-neutral);
}

html:not(.customer-portal-mode) .roi-status-badge,
html:not(.customer-portal-mode) button.roi-status-badge {
  font-weight: 600;
}

html:not(.customer-portal-mode) .roi-status-badge.is-ready,
html:not(.customer-portal-mode) .roi-status-badge.is-correct,
html:not(.customer-portal-mode) .roi-status-badge.is-feedback,
html:not(.customer-portal-mode) .roi-status-badge.is-publish {
  color: #ffffff;
  font-weight: 600;
}

html:not(.customer-portal-mode) .sales-status-pill.is-godkand {
  background: #1f7a3a;
  color: #ffffff;
  cursor: default;
}

html:not(.customer-portal-mode) .sales-status-pill.is-godkand::before,
html:not(.customer-portal-mode) .sales-status-pill.is-godkand::after {
  content: none;
}

html:not(.customer-portal-mode) .roi-status-badge.is-ready {
  background: #222222;
}

html:not(.customer-portal-mode) .roi-status-badge.is-publish {
  background: #0090ff;
}

html:not(.customer-portal-mode) .roi-status-badge.is-correct {
  background: #ff1200;
}

html:not(.customer-portal-mode) .roi-status-badge.is-feedback {
  background: #c5372b;
}

html:not(.customer-portal-mode) .roi-status-badge.is-ready::before,
html:not(.customer-portal-mode) .roi-status-badge.is-correct::before,
html:not(.customer-portal-mode) .roi-status-badge.is-feedback::before,
html:not(.customer-portal-mode) .roi-status-badge.is-publish::before {
  content: none;
}

html:not(.customer-portal-mode) .roi-status-badge.is-ready::after,
html:not(.customer-portal-mode) .roi-status-badge.is-correct::after,
html:not(.customer-portal-mode) .roi-status-badge.is-feedback::after,
html:not(.customer-portal-mode) .roi-status-badge.is-publish::after {
  width: 5.5px;
  height: 5.5px;
  border-top-color: #ffffff;
  border-right-color: #ffffff;
}

html:not(.customer-portal-mode) .roi-status-badge.is-action,
html:not(.customer-portal-mode) .roi-status-badge.is-action-static {
  background: #0090ff;
  color: #ffffff;
}

html:not(.customer-portal-mode) .roi-status-badge.is-action::before,
html:not(.customer-portal-mode) .roi-status-badge.is-action-static::before,
html:not(.customer-portal-mode) .roi-status-badge.is-wait::before,
html:not(.customer-portal-mode) .roi-status-badge.is-done::before,
html:not(.customer-portal-mode) .roi-status-badge.is-live-badge::before,
html:not(.customer-portal-mode) .roi-status-badge.is-offline::before {
  content: none;
}

html:not(.customer-portal-mode) .roi-status-badge.is-action::after {
  display: block;
  width: 5.5px;
  height: 5.5px;
  border-top-color: #ffffff;
  border-right-color: #ffffff;
}

html:not(.customer-portal-mode) .roi-status-badge.is-action-static::after,
html:not(.customer-portal-mode) .roi-status-badge.is-wait::after,
html:not(.customer-portal-mode) .roi-status-badge.is-done::after,
html:not(.customer-portal-mode) .roi-status-badge.is-live-badge::after,
html:not(.customer-portal-mode) .roi-status-badge.is-offline::after {
  display: none;
}

html:not(.customer-portal-mode) .roi-status-badge.is-action-static,
html:not(.customer-portal-mode) .roi-status-badge.is-wait,
html:not(.customer-portal-mode) .roi-status-badge.is-done,
html:not(.customer-portal-mode) .roi-status-badge.is-live-badge,
html:not(.customer-portal-mode) .roi-status-badge.is-offline {
  cursor: help;
}

html:not(.customer-portal-mode) button.roi-status-badge.is-action,
html:not(.customer-portal-mode) button.roi-status-badge.is-done,
html:not(.customer-portal-mode) button.roi-status-badge.is-wait {
  cursor: pointer;
}

html:not(.customer-portal-mode) .roi-status-badge.is-wait {
  background: #eceff3;
  color: #000000;
}

html:not(.customer-portal-mode) .roi-status-badge.is-done {
  background: #00b84a;
  color: #ffffff;
}

html:not(.customer-portal-mode) .roi-status-badge.is-live-badge {
  background: #e11d48;
  color: #ffffff;
}

html:not(.customer-portal-mode) .roi-status-badge.is-offline {
  background: #3f4654;
  color: #ffffff;
}

html:not(.customer-portal-mode) .sales-column-filter-menu .roi-status-badge.is-action::after {
  display: none;
}

.sales-view .roi-status-badge:has(.sales-kundstatus-skip),
#customer-details-view .roi-status-badge:has(.sales-kundstatus-skip) {
  gap: 6px;
}

.sales-view .roi-status-badge .sales-kundstatus-skip,
#customer-details-view .roi-status-badge .sales-kundstatus-skip {
  width: auto;
  height: auto;
  flex: 0 0 auto;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: #000000;
  font-size: 10px;
  line-height: 1;
}

.sales-view .roi-status-badge .sales-kundstatus-skip:hover,
#customer-details-view .roi-status-badge .sales-kundstatus-skip:hover {
  background: transparent;
  color: #000000;
}

.sales-view .roi-status-badge .sales-kundstatus-skip i,
#customer-details-view .roi-status-badge .sales-kundstatus-skip i {
  margin-top: 0;
  transform: none;
}

html:not(.customer-portal-mode) .roi-status-badge.is-sent::after,
#customer-details-view .roi-status-badge.is-sent::after {
  display: none;
}

html:not(.customer-portal-mode) .trello-board > .trello-follow-stage {
  animation: roi-fade-rise 420ms cubic-bezier(0.2, 0.65, 0.3, 1) both;
}

html:not(.customer-portal-mode) .trello-board.is-settled > .trello-follow-stage {
  animation: none;
}

html:not(.customer-portal-mode) .trello-board > .trello-follow-stage:nth-child(2) { animation-delay: 45ms; }
html:not(.customer-portal-mode) .trello-board > .trello-follow-stage:nth-child(3) { animation-delay: 90ms; }
html:not(.customer-portal-mode) .trello-board > .trello-follow-stage:nth-child(4) { animation-delay: 135ms; }
html:not(.customer-portal-mode) .trello-board > .trello-follow-stage:nth-child(5) { animation-delay: 180ms; }
html:not(.customer-portal-mode) .trello-board > .trello-follow-stage:nth-child(6) { animation-delay: 225ms; }

html:not(.customer-portal-mode) .trello-follow-stage-cards .trello-card,
html:not(.customer-portal-mode) .trello-card {
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

html:not(.customer-portal-mode) .trello-follow-stage-cards .trello-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

html:not(.customer-portal-mode) .trello-scope button.is-active,
html:not(.customer-portal-mode) .trello-archive-btn.is-active {
  background: var(--accent);
  color: var(--surface);
}

html:not(.customer-portal-mode) .workspace input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not(.topbar-search),
html:not(.customer-portal-mode) .workspace textarea,
html:not(.customer-portal-mode) .workspace select {
  border-color: var(--border);
  border-radius: 7px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

html:not(.customer-portal-mode) .workspace input:focus,
html:not(.customer-portal-mode) .workspace textarea:focus,
html:not(.customer-portal-mode) .workspace select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

@media (max-width: 860px) {
  html:not(.customer-portal-mode).auth-view-app .page::before {
    background: var(--surface);
  }
}

@media (prefers-reduced-motion: reduce) {
  html:not(.customer-portal-mode) *,
  html:not(.customer-portal-mode) *::before,
  html:not(.customer-portal-mode) *::after {
    animation: none !important;
    transition: none !important;
  }
}

html:not(.customer-portal-mode) .personal-view {
  display: grid;
  gap: 18px;
  margin-top: 2px;
}

html:not(.customer-portal-mode) .personal-page-head,
html:not(.customer-portal-mode) .personal-layout > .personal-create-card,
html:not(.customer-portal-mode) .personal-layout > .personal-directory {
  animation: roi-fade-rise 500ms cubic-bezier(0.2, 0.65, 0.3, 1) both;
}

html:not(.customer-portal-mode) .personal-layout > .personal-create-card { animation-delay: 50ms; }
html:not(.customer-portal-mode) .personal-layout > .personal-directory { animation-delay: 100ms; }

html:not(.customer-portal-mode) .personal-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

html:not(.customer-portal-mode) .personal-page-head .workspace-page-title {
  margin: 0;
}

html:not(.customer-portal-mode) .personal-page-lead {
  margin: 6px 0 0;
  color: var(--muted-text);
  font-size: 0.92rem;
}

html:not(.customer-portal-mode) .personal-count-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

html:not(.customer-portal-mode) .personal-count-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

html:not(.customer-portal-mode) .personal-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

html:not(.customer-portal-mode) .personal-view .personal-create-card {
  height: auto;
  padding: 20px 18px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

html:not(.customer-portal-mode) .personal-view .personal-create-card h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

html:not(.customer-portal-mode) .personal-view .personal-create-lead {
  margin: 6px 0 18px;
  color: var(--muted-text);
  font-size: 0.86rem;
  line-height: 1.45;
}

html:not(.customer-portal-mode) .personal-view .personal-create-grid {
  grid-template-columns: 1fr;
  gap: 14px;
}

html:not(.customer-portal-mode) .personal-view .personal-field span {
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

html:not(.customer-portal-mode) .personal-view .personal-create-grid input:not(.personal-phone-input),
html:not(.customer-portal-mode) .personal-view .personal-create-grid select,
html:not(.customer-portal-mode) .personal-view #personal-admin-select,
html:not(.customer-portal-mode) .personal-view .personal-phone-field,
html:not(.customer-portal-mode) .personal-view .personal-edit input,
html:not(.customer-portal-mode) .personal-view .personal-edit .personal-phone-field,
html:not(.customer-portal-mode) .personal-view .personal-password-reset input {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  box-shadow: none;
}

html:not(.customer-portal-mode) .personal-view #personal-admin-select,
html:not(.customer-portal-mode) .personal-view #personal-admin-select[data-rank] {
  border-radius: 10px;
  background-color: var(--surface);
  color: var(--text);
  font-weight: 500;
}

html:not(.customer-portal-mode) .personal-view .personal-phone-prefix {
  background: transparent;
  border-right-color: var(--border);
  color: var(--muted-text);
}

html:not(.customer-portal-mode) .personal-view .personal-phone-field:focus-within,
html:not(.customer-portal-mode) .personal-view .personal-create-grid input:not(.personal-phone-input):focus,
html:not(.customer-portal-mode) .personal-view .personal-create-grid select:focus,
html:not(.customer-portal-mode) .personal-view #personal-admin-select:focus,
html:not(.customer-portal-mode) .personal-view .personal-edit input:focus,
html:not(.customer-portal-mode) .personal-view .personal-password-reset input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

html:not(.customer-portal-mode) .personal-view .personal-create-btn {
  width: 100%;
  min-height: 44px;
  margin-top: 16px;
  padding: 11px 16px;
  border: 0;
  border-radius: 10px;
  background: oklch(0.32 0.055 165);
  color: #fff;
  font-weight: 700;
  transition: background-color 180ms ease, transform 180ms ease;
}

html:not(.customer-portal-mode) .personal-view .personal-create-btn:hover {
  background: oklch(0.28 0.05 165);
}

html:not(.customer-portal-mode) .personal-view .personal-create-btn:active {
  transform: translateY(1px);
}

html:not(.customer-portal-mode) .personal-directory {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

html:not(.customer-portal-mode) .personal-directory-head {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
}

html:not(.customer-portal-mode) .personal-directory-head h3 {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

html:not(.customer-portal-mode) .personal-directory-head h3 span {
  color: var(--muted-text);
  font-size: 0.86rem;
  font-weight: 600;
}

html:not(.customer-portal-mode) .personal-view .personal-table-wrap {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: auto;
}

html:not(.customer-portal-mode) .personal-view .sales-table.personal-table {
  min-width: 560px;
}

html:not(.customer-portal-mode) .personal-view .sales-table th {
  height: 40px;
  padding: 0 18px;
  background: oklch(0.985 0.004 165);
  color: var(--muted-text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

html:not(.customer-portal-mode) .personal-view .personal-menu-col {
  width: 56px;
}

html:not(.customer-portal-mode) .personal-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html:not(.customer-portal-mode) .personal-view .sales-table td {
  padding: 14px 18px;
  background: var(--surface);
  border-top: 0;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

html:not(.customer-portal-mode) .personal-view .personal-person-row:last-of-type td,
html:not(.customer-portal-mode) .personal-view .sales-table tbody tr:last-child td {
  border-bottom: 0;
}

html:not(.customer-portal-mode) .personal-view .sales-table tbody tr.personal-person-row:hover td {
  background: oklch(0.988 0.004 165);
}

html:not(.customer-portal-mode) .personal-person {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

html:not(.customer-portal-mode) .personal-avatar-btn {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  line-height: 0;
}

html:not(.customer-portal-mode) .personal-avatar-btn:hover .personal-avatar,
html:not(.customer-portal-mode) .personal-avatar-btn:focus-visible .personal-avatar {
  box-shadow: 0 0 0 2px var(--accent);
}

html:not(.customer-portal-mode) .personal-avatar-btn:disabled {
  cursor: default;
}

html:not(.customer-portal-mode) .personal-avatar {
  display: block;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--accent-soft);
}

html:not(.customer-portal-mode) .personal-identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

html:not(.customer-portal-mode) .personal-name {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

html:not(.customer-portal-mode) .personal-view .personal-email-text {
  color: var(--muted-text);
  font-size: 0.8rem;
  font-weight: 500;
}

html:not(.customer-portal-mode) .personal-view .personal-must-change {
  margin-top: 4px;
  background: var(--status-warm-bg);
  color: var(--status-warm);
  font-weight: 600;
}

html:not(.customer-portal-mode) .personal-role {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  background: var(--status-neutral-bg);
  color: var(--status-neutral);
}

html:not(.customer-portal-mode) .personal-role::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: currentColor;
}

html:not(.customer-portal-mode) .personal-view .personal-role:has([data-rank="1"]) {
  background: var(--status-warm-bg);
  color: var(--status-warm);
}

html:not(.customer-portal-mode) .personal-view .personal-role:has([data-rank="2"]),
html:not(.customer-portal-mode) .personal-view .personal-role:has([data-rank="3"]) {
  background: var(--accent-soft);
  color: var(--accent);
}

html:not(.customer-portal-mode) .personal-view .personal-rank-select {
  min-width: 0;
  min-height: 0;
  width: auto;
  margin: 0;
  padding: 0 16px 0 0;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  color: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='currentColor' d='M1.2 1.1 6 6.1l4.8-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 8px 5px;
  background-position: right center;
}

html:not(.customer-portal-mode) .personal-view .personal-rank-select[data-rank] {
  background-color: transparent;
  color: inherit;
  border: 0;
}

html:not(.customer-portal-mode) .personal-menu-wrap {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

html:not(.customer-portal-mode) .personal-kebab {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted-text);
  cursor: pointer;
}

html:not(.customer-portal-mode) .personal-kebab:hover,
html:not(.customer-portal-mode) .personal-kebab[aria-expanded="true"] {
  background: var(--accent-soft);
  color: var(--accent);
}

html:not(.customer-portal-mode) .personal-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 8;
  min-width: 180px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

html:not(.customer-portal-mode) .personal-menu.is-open {
  display: grid;
}

html:not(.customer-portal-mode) .personal-menu button,
html:not(.customer-portal-mode) .personal-menu .personal-password-btn,
html:not(.customer-portal-mode) .personal-menu .personal-delete-btn {
  width: 100%;
  min-height: 36px;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

html:not(.customer-portal-mode) .personal-menu button:hover:not(:disabled) {
  background: var(--accent-soft);
  color: var(--accent);
}

html:not(.customer-portal-mode) .personal-menu .personal-delete-btn {
  color: oklch(0.5 0.14 25);
}

html:not(.customer-portal-mode) .personal-menu .personal-delete-btn:hover:not(:disabled) {
  background: var(--status-warm-bg);
  color: oklch(0.46 0.14 25);
}

html:not(.customer-portal-mode) .personal-view tr[hidden] {
  display: none;
}

html:not(.customer-portal-mode) .personal-view .personal-panel-row td {
  padding: 0 18px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

html:not(.customer-portal-mode) .personal-edit,
html:not(.customer-portal-mode) .personal-view .personal-password-reset,
html:not(.customer-portal-mode) .personal-view .personal-delete-confirm {
  display: none;
}

html:not(.customer-portal-mode) .personal-edit.is-open,
html:not(.customer-portal-mode) .personal-view .personal-password-reset.is-open,
html:not(.customer-portal-mode) .personal-view .personal-delete-confirm.is-open {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 4px 0 0;
  border: 0;
}

html:not(.customer-portal-mode) .personal-edit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

html:not(.customer-portal-mode) .personal-view .personal-save-btn,
html:not(.customer-portal-mode) .personal-view .personal-password-confirm-btn {
  justify-self: start;
  min-height: 36px;
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  background: oklch(0.32 0.055 165);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

html:not(.customer-portal-mode) .personal-view .personal-save-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

html:not(.customer-portal-mode) .personal-menu .personal-menu-item,
html:not(.customer-portal-mode) .personal-menu .personal-password-btn,
html:not(.customer-portal-mode) .personal-menu .personal-delete-btn {
  width: 100%;
  min-height: 36px;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  box-shadow: none;
  font-weight: 600;
  text-align: left;
  justify-self: stretch;
}

html:not(.customer-portal-mode) .personal-menu .personal-delete-btn {
  color: oklch(0.5 0.14 25);
}

html:not(.customer-portal-mode) .personal-edit-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  justify-self: start;
}

html:not(.customer-portal-mode) .personal-view .personal-edit-cancel-btn {
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

html:not(.customer-portal-mode) .personal-view .personal-delete-confirm-btn {
  border: 0;
  border-radius: 8px;
  background: oklch(0.52 0.14 25);
  color: #fff;
}

html:not(.customer-portal-mode) .personal-view .personal-password-cancel-btn,
html:not(.customer-portal-mode) .personal-view .personal-delete-cancel-btn {

  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}

html:not(.customer-portal-mode) .personal-directory-foot {
  margin: 0;
  padding: 14px 18px 16px;
  border-top: 1px solid var(--border);
  color: var(--muted-text);
  font-size: 0.8rem;
}

html:not(.customer-portal-mode) .personal-directory-foot:empty {
  display: none;
}

@media (max-width: 980px) {
  html:not(.customer-portal-mode) .personal-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  html:not(.customer-portal-mode) .personal-view .sales-table.personal-table,
  html:not(.customer-portal-mode) .personal-view .personal-table thead,
  html:not(.customer-portal-mode) .personal-view .personal-table tbody,
  html:not(.customer-portal-mode) .personal-view .personal-table tr,
  html:not(.customer-portal-mode) .personal-view .personal-table td {
    display: revert;
    width: auto;
    padding: revert;
  }

  html:not(.customer-portal-mode) .personal-view .personal-table thead {
    display: table-header-group;
  }

  html:not(.customer-portal-mode) .personal-view .personal-table tbody {
    display: table-row-group;
  }

  html:not(.customer-portal-mode) .personal-view .personal-table tr {
    display: table-row;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  html:not(.customer-portal-mode) .personal-view .personal-table td {
    display: table-cell;
    border-bottom: 1px solid var(--border);
  }

  html:not(.customer-portal-mode) .personal-view .personal-table td::before {
    content: none;
  }

  html:not(.customer-portal-mode) .personal-edit-grid {
    grid-template-columns: 1fr;
  }
}

.workspace:has(#dashboard-view:not(.hidden)),
html:not(.customer-portal-mode) .workspace:has(#dashboard-view:not(.hidden)) {
  background: oklch(0.977 0.003 165);
}

.dashboard-intro .workspace-page-title {
  font-size: 2.35rem;
  letter-spacing: -0.045em;
  color: oklch(0.28 0.03 165);
}

.trello-view {
  gap: 18px;
}

.trello-toolbar {
  gap: 16px;
  width: 100%;
}

.trello-board-tabs {
  width: 100%;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  gap: 10px;
}

html:not(.customer-portal-mode) .trello-view .trello-board-tabs button {
  height: 36px;
  padding: 0 15px;
  border-radius: 7px;
}

html:not(.customer-portal-mode) .trello-view .trello-board-tabs button.is-active {
  background: var(--accent);
  color: #fff;
  border-radius: 7px;
  box-shadow: var(--shadow);
}

html:not(.customer-portal-mode) .trello-view .trello-archive-btn {
  display: inline-flex;
  align-items: center;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: none;
}

html:not(.customer-portal-mode) .trello-view .trello-archive-btn::before {
  content: "+";
  margin-right: 6px;
  font-weight: 700;
}

html:not(.customer-portal-mode) .trello-view .trello-archive-btn:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

html:not(.customer-portal-mode) .trello-view .trello-scope {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: none;
}

html:not(.customer-portal-mode) .trello-view .trello-scope button {
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted-text);
  height: 28px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
}

html:not(.customer-portal-mode) .trello-view .trello-scope button:hover:not(.is-active) {
  background: var(--accent-soft);
  color: var(--accent);
}

html:not(.customer-portal-mode) .trello-view .trello-scope button.is-active {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
}

html:not(.customer-portal-mode) .trello-view .trello-follow-stage.is-stacked {
  height: min(680px, calc(100vh - 168px));
  min-height: min(680px, calc(100vh - 168px));
  max-height: min(680px, calc(100vh - 168px));
  overflow: hidden;
  padding: 0 0 16px;
  border-radius: 14px;
  padding-bottom: 0px !important;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

html:not(.customer-portal-mode) .trello-view .trello-follow-stage-head,
html:not(.customer-portal-mode) .trello-view .trello-column-search {
  flex-shrink: 0;
}

html:not(.customer-portal-mode) .trello-view .trello-follow-stage-head {
  width: 100%;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--border);
}

html:not(.customer-portal-mode) .trello-view .trello-follow-stage-mark {
  border-radius: 5px;
}

html:not(.customer-portal-mode) .trello-view .trello-follow-stage.is-stacked .trello-follow-stage-cards {
  gap: 11px;
  flex: 1;
  min-height: 0;
  max-height: none;
  margin: 0;
  overflow-y: auto;
  padding: 13px;
}

.trello-view .trello-follow-stage.is-todo .trello-follow-stage-cards:empty {
  display: none;
  min-height: 0;
}

.trello-view .trello-support-ticket {
  gap: 0;
  padding: 15px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.trello-view .trello-support-top {
  align-items: center;
}

.trello-view .trello-support-rubrik {
  margin: 12px 0 0;
  padding: 0;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
}

.trello-view .trello-card .trello-support-note {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 6px 0 0;
  color: var(--muted-text);
  font-size: 0.84rem;
  font-weight: 450;
  line-height: 1.4;
  white-space: pre-wrap;
}

.trello-view .trello-support-explanation .trello-support-note {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
}

.trello-view .trello-support-priority {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  border-radius: 5px;
  padding: 4px 7px;
  background: var(--status-neutral-bg);
  color: var(--status-neutral);
}

.trello-view .trello-support-priority::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.trello-support-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.trello-view .trello-support-ticket .trello-owner-badge {
  margin-left: auto;
  padding: 0;
  background: transparent;
  color: var(--muted-text);
}

.trello-view .trello-support-ticket .trello-owner-avatar {
  width: 26px;
  height: 26px;
}

.trello-view .trello-support-priority.is-hog,
.trello-view .trello-support-priority.is-akut {
  background: var(--status-warm-bg);
  color: var(--status-warm);
}

.trello-view .trello-board {
  gap: 16px;
  padding: 4px 18px 24px;
}

.trello-view .trello-column-search {
  width: calc(100% - 26px);
  margin: 12px 13px 0;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--background);
  box-shadow: none;
  color: var(--text);
}

.trello-view .trello-follow-stage-cards .trello-card,
.trello-view .trello-support-ticket {
  color: var(--text);
}

.trello-view .trello-card:hover {
  background: #fff;
}

.trello-view .trello-card-title-row,
.trello-view .trello-card-company {
  width: 100%;
  min-width: 0;
}

.trello-view .trello-card-title,
.trello-view .trello-support-company-btn {
  white-space: normal;
  overflow-wrap: anywhere;
}

.trello-view .trello-follow-stage-cards > .trello-card:not(.trello-support-ticket) {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 15px;
  border-radius: 9px;
  box-shadow: var(--shadow);
}

.trello-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  order: 5;
  width: 100%;
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px solid var(--border);
}

.trello-card-foot-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--muted-text);
  font-size: 12px;
}

.trello-card-foot .trello-owner-badge,
.trello-view .trello-support-ticket .trello-owner-badge {
  position: static;
  align-self: center;
  order: 0;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  margin: 0 0 0 auto;
  padding: 0;
  overflow: hidden;
  border-radius: 50%;
  background: #ffffff;
  font-size: 0;
  color: transparent;
  box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.1);
}

.trello-view .trello-card-foot .trello-owner-avatar,
.trello-view .trello-support-ticket .trello-owner-avatar {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
  transform: scale(1.22);
}

.trello-view .trello-todo-task {
  order: 2;
  margin: 12px 0 0;
  padding-right: 0;
  color: var(--muted-text);
  font-size: 0.84rem;
  font-weight: 500;
}

.trello-view .trello-card-foot .trello-todo-task {
  order: 0;
  margin: 0;
}

.trello-view .trello-follow-cycle,
.trello-view .trello-card-foot .trello-follow-cycle {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding-right: 0;
  color: var(--muted-text);
  font-size: 12px;
  font-weight: 500;
}

.trello-view .trello-todo-task i {
  color: var(--muted-text);
}

/* Task badge on Att göra cards: the whole card opens, so the badge follows it. */
.trello-card-foot .roi-status-badge.trello-todo-badge,
span.roi-status-badge.trello-todo-badge {
  cursor: inherit;
  white-space: nowrap;
}

.trello-view .trello-support-ticket .trello-owner-badge {
  font-size: 0;
  color: transparent;
}

.trello-follow-stage[data-support-stage="waiting"] .trello-follow-stage-title::before,
.trello-follow-stage[data-support-stage="progress"] .trello-follow-stage-title::before {
  background: var(--status-warm);
}

.trello-follow-stage[data-support-stage="solved"] .trello-follow-stage-title::before {
  background: var(--status-neutral);
}

.trello-column-empty {
  flex: 1;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted-text);
  text-align: center;
}

.trello-column-empty p {
  margin: 0;
  font-size: 0.86rem;
}

.trello-column-empty-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
}

#customer-details-view.customer-details-view {
  gap: 0;
  margin-top: 0;
}

#customer-details-view .customer-details-view-header {
  gap: 0;
  margin-bottom: 28px;
}

#customer-details-view .customer-details-back-btn {
  height: 30px;
  margin-bottom: 26px;
  padding: 0;
  border: 0;
  border-radius: 0;
  display: none;
  background: transparent;
  color: var(--muted-text);
  font-size: 11.5px;
  gap: 7px;
}

#customer-details-view .customer-details-back-btn:hover {
  background: transparent;
  color: var(--accent);
}

#customer-details-view .customer-details-kicker {
  margin: 0 0 11px;
  color: var(--muted-text);
  display: none;
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

#customer-details-view .customer-details-heading-row {
  align-items: center;
  gap: 22px;
}

#customer-details-view .customer-details-heading-main {
  gap: 12px;
}

#customer-details-view .customer-details-view-header h2 {
  margin: 0 5px 0 0;
  min-width: 0;
  position: relative;
  z-index: 0;
  font-size: 29px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--text);
  overflow-wrap: anywhere;
}

#customer-details-view .customer-details-meta {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  gap: 12px;
}

#customer-details-view .customer-details-meta .customer-details-field-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#customer-details-view .customer-details-meta-item {
  gap: 0;
}

#customer-details-view .roi-status-badge.is-live-badge {
  font-weight: 600;
}

#customer-details-view .sales-status-pill {
  gap: 6px;
}

#customer-details-view .sales-status-pill .sales-kundstatus-skip {
  width: auto;
  height: auto;
  flex: 0 0 auto;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: #000000;
  font-size: 10px;
  line-height: 1;
}

#customer-details-view .sales-status-pill .sales-kundstatus-skip:hover {
  background: transparent;
  color: #000000;
  opacity: 1;
}

#customer-details-view .sales-status-pill .sales-kundstatus-skip i {
  margin-top: 0;
  transform: none;
}

#customer-details-view button.roi-status-badge {
  position: relative;
  z-index: 2;
  cursor: pointer;
}

#customer-details-view .sales-status-pill.is-godkand {
  background: #1f7a3a;
  color: #ffffff;
  cursor: default;
}

#customer-details-view .sales-status-pill.is-godkand::before,
#customer-details-view .sales-status-pill.is-godkand::after {
  content: none;
}

#customer-details-view .customer-details-heading-actions {
  gap: 9px;
}

#customer-details-view .customer-details-new-material-btn {
  height: 36px;
  margin-left: 0;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  background: #007eff;
  color: var(--surface);
  font-size: 12.5px;
  font-weight: 600;
  gap: 0;
  transform: none;
}

#customer-details-view .customer-details-new-material-btn:hover {
  background: #007eff;
}

#customer-details-view .customer-details-new-material-btn:active {
  transform: none;
}

#customer-details-view .customer-details-new-material-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#customer-details-view .customer-details-dates {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-right: 10px;
}

#customer-details-view .customer-details-dates:not(:has(.customer-details-meta-item:not(.hidden))) {
  display: none;
}

#customer-details-view .customer-details-live-added,
#customer-details-view #customer-details-live-added,
#customer-details-view #customer-details-created {
  gap: 7px;
  margin-right: 0;
  color: var(--muted-text);
  font-size: 10.5px;
}

#customer-details-view #customer-details-live-added .customer-details-field-label,
#customer-details-view #customer-details-created .customer-details-field-label {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

#customer-details-view #customer-details-live-added .customer-details-field-label::before,
#customer-details-view #customer-details-created .customer-details-field-label::before {
  content: "";
  width: 5px;
  margin-top: -2px;
  height: 5px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
  transform: translateY(0.6px);
}

#customer-details-view #customer-details-live-added .customer-details-meta-value,
#customer-details-view #customer-details-created .customer-details-meta-value {
  color: var(--muted-text);
  font-size: 10.5px;
  font-weight: 400;
}

#customer-details-view #customer-details-start-date {
  gap: 7px;
  height: 28px;
  margin-right: 0;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #ffffff;
  color: var(--muted-text);
  font: inherit;
  font-size: 10.5px;
  cursor: pointer;
}

#customer-details-view #customer-details-start-date:hover:not(:disabled) {
  background: #f4f6fb;
}

#customer-details-view #customer-details-start-date:disabled {
  cursor: default;
  border-color: transparent;
  background: transparent;
  padding: 0;
}

#customer-details-view #customer-details-start-date .customer-details-field-label {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

#customer-details-view #customer-details-start-date .customer-details-field-label::before {
  content: "";
  width: 5px;
  margin-top: -2px;
  height: 5px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
  transform: translateY(0.6px);
}

#customer-details-view #customer-details-start-date .customer-details-meta-value {
  color: var(--muted-text);
  font-size: 10.5px;
  font-weight: 400;
}

.create-customer-start-date input,
.start-date-modal-input {
  padding: 0 14px;
}

.create-customer-start-date {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  color: #6b7690;
  font-size: 12px;
  font-weight: 600;
}

.start-date-modal-input {
  width: 100%;
  margin-top: 4px;
}

.start-date-modal-status {
  margin: 8px 0 0;
  color: #8a3414;
  font-size: 12px;
}

.start-date-modal-status:empty {
  display: none;
}


#customer-details-view .customer-details-link-btn,
#customer-details-view .customer-details-archive-btn {
  height: 35px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 500;
  box-shadow: none;
}

#customer-details-view .customer-details-link-btn:hover,
#customer-details-view .customer-details-archive-btn:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

#customer-details-view .customer-details-delete-btn {
  height: 35px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  background: #c5362b;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 500;
  box-shadow: none;
}

#customer-details-view .customer-details-delete-btn:hover {
  background: #a82d24;
  color: #ffffff;
}

#customer-details-view .customer-details-delete-btn:disabled {
  cursor: default;
  opacity: 0.6;
}

#customer-delete-confirm-btn {
  background: #c5362b;
}

#customer-delete-confirm-btn:hover {
  background: #a82d24;
}

#customer-details-view .customer-details-ansvarig-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  width: 100%;
  margin-top: 14px;
}

#customer-details-view .customer-details-ads-wrap {
  position: relative;
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
}

#customer-details-view #customer-details-ads-menu,
#customer-details-view #customer-details-sales-menu {
  left: 0;
  right: auto;
}

#customer-details-view .customer-details-sales-people {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

#customer-details-view .customer-details-sales-avatars {
  display: inline-flex;
  align-items: center;
}

#customer-details-view .customer-details-sales-avatars .ads-ansvarig-avatar {
  box-shadow: 0 0 0 2px #fff;
}

#customer-details-view .customer-details-sales-avatars .ads-ansvarig-avatar + .ads-ansvarig-avatar {
  margin-left: -8px;
}

#customer-details-view .customer-details-sales-name {
  min-width: 0;
}

#customer-details-view .customer-details-ads-wrap > .customer-details-field-label {
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: nowrap;
  border: 0;
  color: oklch(0.39 0 0);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

#customer-details-view .customer-details-ads-ansvarig .ads-ansvarig-avatar {
  order: -1;
  width: 24px;
  height: 24px;
}

#customer-details-view .customer-details-ads-name {
  font-size: 11.5px;
  font-weight: 500;
}

#customer-details-view .customer-details-ads-ansvarig.is-unassigned .customer-details-ads-name {
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent);
}

#customer-details-view .customer-details-split,
#customer-details-view .customer-details-content,
#customer-details-view .customer-details-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 19px;
}

#customer-details-view .customer-details-split {
  margin-bottom: 24px;
}

#customer-details-view .customer-details-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 22px;
}

#customer-details-view .customer-details-block-head {
  gap: 9px;
  margin-bottom: 21px;
}

#customer-details-view .customer-details-block-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: transparent;
  color: var(--muted-text);
  font-size: 16px;
}

#customer-details-view .customer-details-block-icon svg,
#customer-details-view .customer-details-back-btn svg,
#customer-details-view .customer-details-archive-btn svg,
#customer-details-view .customer-details-delete-btn svg,
#customer-details-view .customer-details-link-btn svg,
#customer-details-view .customer-details-file-icon svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

#customer-details-view .customer-details-back-btn svg,
#customer-details-view .customer-details-archive-btn svg,
#customer-details-view .customer-details-delete-btn svg,
#customer-details-view .customer-details-link-btn svg {
  width: 14px;
  height: 14px;
}

#customer-details-view .customer-details-block h3 {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

#customer-details-view .customer-details-field dt,
#customer-details-view .customer-details-fields dt {
  margin-bottom: 6px;
  color: oklch(0.4 0 0);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

#customer-details-view .customer-details-field dd,
#customer-details-view .customer-details-note {
  margin: 0;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

#customer-details-view .customer-details-fields {
  gap: 17px;
}

#customer-details-view .customer-details-field a,
#customer-details-view .customer-details-phone,
#customer-details-view .customer-details-email,
#customer-details-view .customer-details-social-row a {
  color: var(--accent);
}

#customer-details-view .customer-details-chips {
  gap: 7px;
}

#customer-details-view .customer-details-chips li {
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--background);
  color: var(--text);
  padding: 6px 10px;
  font-size: 10.5px;
  font-weight: 500;
}

#customer-details-view .customer-details-choice,
#customer-details-view .customer-details-choice.is-yes,
#customer-details-view .customer-details-choice.is-no {
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 4px 7px;
  font-size: 10.5px;
  font-weight: 500;
}

#customer-details-view .customer-details-empty {
  color: var(--muted-text);
  font-size: 12.5px;
  font-weight: 400;
}

#customer-details-view .customer-geo-areas-list {
  width: 100%;
  gap: 7px;
}

#customer-details-view .customer-geo-areas-list li {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text);
  padding: 6px 10px;
  font-size: 11.5px;
  font-weight: 500;
}

#customer-details-view .customer-details-file,
#customer-details-view .customer-details-file.is-static {
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  color: var(--text);
}

#customer-details-view .customer-details-list li:last-child .customer-details-file {
  border-bottom: 0;
  padding-bottom: 0;
}

#customer-details-view .customer-details-file:hover {
  background: transparent;
}

#customer-details-view .customer-details-file-icon {
  width: 33px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--background);
  color: var(--muted-text);
}

#customer-details-view .sent-material-list .customer-details-thumb {
  aspect-ratio: 3 / 4;
}

#customer-details-view .customer-internal-notes-list,
#customer-details-view .customer-follow-up-list {
  gap: 19px;
}

#customer-details-view .customer-internal-note,
#customer-details-view .customer-follow-up-note {
  grid-template-columns: 29px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

#customer-details-view .customer-internal-note.is-hidden-from-sales,
#customer-details-view .customer-follow-up-note.is-resolved {
  background: transparent;
  border: 0;
  border-left: 0;
}

#customer-details-view .customer-internal-note-avatar {
  width: 29px;
  height: 29px;
}

#customer-details-view .customer-internal-note-name {
  font-size: 12.5px;
  font-weight: 600;
}

#customer-details-view .customer-internal-note:has(.customer-internal-note-visibility) {
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 10px;
  row-gap: 6px;
}

#customer-details-view .customer-internal-note:has(.customer-internal-note-visibility) .customer-internal-note-avatar {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
}

#customer-details-view .customer-internal-note:has(.customer-internal-note-visibility) .customer-internal-note-main {
  display: contents;
}

#customer-details-view .customer-internal-note:has(.customer-internal-note-visibility) .customer-internal-note-meta {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}

#customer-details-view .customer-internal-note:has(.customer-internal-note-visibility) .customer-internal-note-text {
  grid-column: 2;
  grid-row: 2;
  margin-top: 0;
}

#customer-details-view .customer-internal-note-meta {
  align-items: center;
  min-height: 15px;
  line-height: 15px;
}

#customer-details-view .customer-internal-note-name,
#customer-details-view .customer-internal-note-time {
  line-height: 15px;
}

#customer-details-view .customer-internal-note-time {
  margin-left: auto;
  font-size: 10.5px;
}

#customer-details-view .customer-internal-note-visibility {
  grid-column: 3;
  grid-row: 1;
  width: 15px;
  height: 15px;
  margin: 0;
  padding: 0;
  align-self: center;
  border-radius: 4px;
  font-size: 15px;
  line-height: 1;
}

#customer-details-view .customer-internal-note-visibility i {
  font-size: 15px;
  line-height: 1;
  display: block;
}

#customer-details-view .customer-internal-note-text {
  margin-top: 6px;
  color: oklch(0.35 0 0);
  font-size: 12.5px;
  line-height: 1.85;
}

#customer-details-view .customer-internal-notes-form {
  gap: 8px;
  margin-top: 21px;
  padding-top: 19px;
  border-top: 1px solid var(--border);
}

#customer-details-view .customer-internal-notes-label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
}

#customer-details-view .customer-internal-notes-input {
  min-height: 91px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--text);
}

#customer-details-view .customer-internal-notes-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

#customer-details-view .customer-internal-notes-actions {
  align-items: center;
}

#customer-details-view .customer-internal-notes-submit {
  height: 34px;
  margin-top: 0;
  padding: 0 12px;
  border-radius: 7px;
  background: var(--accent);
  color: var(--surface);
  font-size: 12.5px;
  font-weight: 600;
}

#customer-details-view .customer-internal-notes-submit:hover {
  background: #111111;
}

#customer-details-view .customer-internal-notes-visibility {
  width: 34px;
  height: 34px;
  min-width: 34px;
  padding: 0;
  flex: 0 0 34px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--muted-text);
  font-size: 15px;
  line-height: 1;
}

#customer-details-view .customer-internal-notes-visibility i {
  font-size: 15px;
  line-height: 1;
}

#customer-details-view .customer-follow-up {
  padding: 0;
}

#customer-details-view .customer-follow-up .customer-details-block-head {
  align-items: flex-start;
  margin: 0;
  padding: 14px 20px 0;
  border-bottom: 1px solid var(--border);
  gap: 13px;
}

#customer-details-view .customer-follow-up .customer-details-block-icon {
  width: 16px;
  height: 29px;
}

#customer-details-view .customer-follow-switch {
  padding: 0;
  border-radius: 0;
  background: transparent;
  gap: 13px;
}

#customer-details-view .customer-follow-switch button {
  height: 44px;
  padding: 0 3px 13px;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted-text);
  font-size: 12.5px !important;
  font-weight: 500;
  box-shadow: none;
}

#customer-details-view .customer-follow-switch button:hover,
#customer-details-view .customer-follow-switch button.is-active {
  background: transparent;
  color: var(--accent);
  box-shadow: none;
}

#customer-details-view .customer-follow-switch button.is-active {
  border-bottom-color: var(--accent);
}

#customer-details-view .customer-follow-panel {
  gap: 0;
  max-height: none;
  padding: 20px 22px 24px;
}

#customer-details-view .customer-backlog-snapshot {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px 16px;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--background);
}

#customer-details-view .customer-backlog-fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

#customer-details-view .customer-backlog-fact-label {
  color: var(--muted-text);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#customer-details-view .customer-backlog-fact-value {
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

#customer-details-view .customer-backlog-count {
  margin: 0 0 4px;
  color: var(--muted-text);
  font-size: 12px;
}

#customer-details-view .customer-backlog-day {
  margin: 16px 0 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

#customer-details-view .customer-backlog-item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 8px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

#customer-details-view .customer-backlog-when {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 2px;
}

#customer-details-view .customer-backlog-when time {
  color: var(--muted-text);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

#customer-details-view .customer-backlog-category {
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#customer-details-view .customer-backlog-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

#customer-details-view .customer-backlog-head .trello-member {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  flex: 0 0 auto;
}

#customer-details-view .customer-backlog-summary {
  margin: 0;
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.45;
}

#customer-details-view .customer-backlog-summary strong {
  font-weight: 700;
}

#customer-details-view .customer-backlog-note {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
}

#customer-details-view .customer-backlog-details {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 4px 10px;
  margin: 8px 0 0;
}

#customer-details-view .customer-backlog-details dt {
  color: var(--muted-text);
  font-size: 12px;
}

#customer-details-view .customer-backlog-details dd {
  margin: 0;
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.45;
  white-space: pre-wrap;
}

@media (max-width: 720px) {
  #customer-details-view .customer-backlog-item,
  #customer-details-view .customer-backlog-details {
    grid-template-columns: 1fr;
  }
}

#customer-details-view .customer-follow-up-next {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11.5px;
}

#customer-details-view .customer-follow-up-next[hidden],
#customer-details-view .customer-follow-up-next:empty {
  display: none;
}

#customer-details-view .customer-follow-up-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 12px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
}

#customer-details-view .customer-follow-up-status[hidden] {
  display: none;
}

#customer-details-view .customer-follow-up-status.is-nojd {
  background: #e7f6ec;
  color: #1f7a3a;
}

#customer-details-view .customer-follow-up-status.is-neutral {
  background: #fff6db;
  color: #8a6410;
}

#customer-details-view .customer-follow-up-status.is-risk {
  background: #fde8e8;
  color: #b42318;
}

#customer-details-view #customer-follow-up-follow:not(:has(.customer-internal-note)):has(.customer-follow-up-next[hidden]):not(:has(.customer-follow-up-status:not([hidden]))) {
  display: none;
}

#customer-details-view .customer-follow-manual-btn {
  height: 28px;
  margin: 2px 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 7px;
  padding: 0 11px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

#customer-details-view .customer-follow-manual-btn[hidden] {
  display: none;
}

#customer-details-view .customer-follow-manual-btn i {
  font-size: 11px;
}

#customer-details-view .customer-follow-manual-btn:hover {
  background: var(--accent);
  color: #ffffff;
}

#customer-details-view .customer-follow-manual-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.trello-follow-date[hidden],
.trello-follow-note[hidden],
.trello-follow-check[hidden],
.trello-follow-section[hidden],
.trello-follow-label[hidden] {
  display: none;
}

.trello-follow-radio {
  text-align: left;
}

#customer-details-view .customer-follow-up-empty {
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--muted-text);
  font-size: 11.5px;
}

#customer-details-view .customer-feedback-history {
  gap: 18px;
}

#customer-details-view .customer-feedback-history-entry {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

#customer-details-view .customer-feedback-history-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}

#customer-details-view .customer-feedback-history-time,
#customer-details-view .customer-feedback-history-count {
  color: var(--muted-text);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0;
}

#customer-details-view .customer-feedback-history-count {
  margin-left: auto;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 4px 7px;
  font-size: 9.5px;
  font-weight: 500;
}

#customer-details-view .customer-feedback-history-entry .customer-feedback-list li {
  background: transparent;
  color: var(--muted-text);
  font-size: 11.5px;
  line-height: 1.8;
}

#customer-details-view .customer-feedback-done-btn {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 3px;
  border-width: 1.5px;
}

#customer-details-view .customer-feedback-done-btn i {
  font-size: 0.55rem;
}

#customer-details-view .customer-feedback-comment.is-done > span {
  color: var(--muted-text);
}

#customer-details-view .customer-geo-map,
#customer-details-view .customer-details-geo-map {
  margin-top: 14px;
  flex: 1 1 auto;
  height: auto;
  min-height: 240px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--background);
}

@media (max-width: 1100px) {
  #customer-details-view .customer-details-heading-row {
    align-items: flex-start;
  }
}

@media (max-width: 860px) {
  #customer-details-view .customer-details-heading-row,
  #customer-details-view .customer-details-heading-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  #customer-details-view .customer-details-split,
  #customer-details-view .customer-details-content,
  #customer-details-view .customer-details-pair {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  #customer-details-view .customer-details-view-header h2 {
    font-size: 27px;
  }

  #customer-details-view .customer-details-block {
    padding: 19px 17px;
  }

  #customer-details-view .customer-follow-up {
    padding: 0;
  }
}

#material-delivery-view.customer-details-view {
  gap: 0;
  margin-top: 0;
}

#material-delivery-view .customer-details-view-header {
  gap: 0;
  margin-bottom: 28px;
}

#material-delivery-view .customer-details-back-btn {
  height: 30px;
  margin-bottom: 26px;
  padding: 0;
  display: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted-text);
  font-size: 11.5px;
  font-weight: 400;
  gap: 7px;
  box-shadow: none;
}

#material-delivery-view .customer-details-back-btn:hover {
  background: transparent;
  color: var(--accent);
}

#material-delivery-view .customer-details-kicker {
  margin: 0 0 11px;
  color: var(--muted-text);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

#material-delivery-view .customer-details-kicker:has(+ .material-delivery-received:not([hidden])) {
  margin-bottom: 4px;
}

#material-delivery-view .material-delivery-received {
  margin: 0 0 11px;
  color: var(--muted-text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

#material-delivery-view .material-delivery-received[hidden] {
  display: none;
}

#material-delivery-view .customer-details-heading-row {
  align-items: center;
  gap: 22px;
}

#material-delivery-view .customer-details-view-header h2 {
  margin: 0;
  font-size: 29px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.3;
  color: var(--text);
}

#material-delivery-view .material-delivery-send-btn {
  height: 36px;
  margin-left: auto;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  background: #007eff;
  color: var(--surface);
  font-size: 12.5px;
  font-weight: 600;
}

#material-delivery-view .material-delivery-send-btn:hover:not(:disabled) {
  background: #111111;
}

#material-delivery-view .material-delivery-send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

#material-send-confirm-btn {
  background: var(--accent);
  color: var(--surface);
}

#material-send-confirm-btn:hover {
  background: #111111;
}

#material-delivery-view .material-delivery-content {
  gap: 19px;
}

#material-delivery-view .customer-details-block {
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 22px;
}

#material-delivery-view .customer-details-block-head {
  gap: 9px;
  margin-bottom: 21px;
}

#material-delivery-view .customer-details-block-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: transparent;
  color: var(--muted-text);
  font-size: 16px;
}

#material-delivery-view .customer-details-block-icon svg,
#material-delivery-view .customer-details-back-btn svg,
#material-delivery-view .material-upload-icon svg,
#material-delivery-view .material-delivery-link-label svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

#material-delivery-view .customer-details-back-btn svg,
#material-delivery-view .material-upload-icon svg,
#material-delivery-view .material-delivery-link-label svg {
  width: 18px;
  height: 18px;
}

#material-delivery-view .customer-details-block h3 {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

#material-delivery-view .material-upload-dropzone {
  min-height: 132px;
  border: 1px dashed var(--border);
  border-radius: 7px;
  background: var(--background);
  color: var(--text);
  gap: 8px;
  padding: 22px 16px;
}

#material-delivery-view .material-upload-dropzone.is-drag-over {
  border-color: var(--accent);
  background: var(--accent-soft);
}

#material-delivery-view .material-upload-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-text);
  font-size: 16px;
}

#material-delivery-view .material-upload-primary {
  color: var(--text);
  font-size: 14.5px;
  font-weight: 500;
}

#material-delivery-view .material-delivery-link-help {
  margin-top: 14px;
}

#material-delivery-view .material-upload-secondary,
#material-delivery-view .material-delivery-link-help,
#material-delivery-view .material-delivery-link-divider {
  color: var(--muted-text);
  font-size: 12.5px;
  font-weight: 400;
}

#material-delivery-view .material-delivery-link-divider::before,
#material-delivery-view .material-delivery-link-divider::after {
  border-top-color: var(--border);
}

#material-delivery-view .material-delivery-link-label {
  color: var(--text);
  font-size: 12.5px;
  font-weight: 500;
}

#material-delivery-view #material-delivery-link-input,
#material-delivery-view .material-delivery-comment-input {
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  font-size: 11.5px;
  line-height: 1.8;
}

#material-delivery-view #material-delivery-link-input {
  height: 35px;
  padding: 0 12px;
}

#material-delivery-view .material-delivery-comment-input {
  min-height: 91px;
  padding: 10px 12px;
}

#material-delivery-view #material-delivery-link-input:focus,
#material-delivery-view .material-delivery-comment-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

#material-delivery-view .material-delivery-link-add-btn,
#material-delivery-view .material-delivery-history-toggle {
  height: 35px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  font-size: 11.5px;
  font-weight: 500;
}

#material-delivery-view .material-delivery-link-add-btn {
  border: 0;
  background: var(--accent);
  color: var(--surface);
  font-weight: 600;
}

#material-delivery-view .material-delivery-link-add-btn:hover {
  background: #111111;
}

#material-delivery-view .material-delivery-history-toggle:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

#material-delivery-view .material-delivery-comment-label,
#material-delivery-view .customer-details-field dt,
#material-delivery-view .customer-details-fields dt {
  margin-bottom: 6px;
  color: oklch(0.4 0 0);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

#material-delivery-view .customer-details-field dd,
#material-delivery-view .customer-details-note {
  margin: 0;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

#material-delivery-view .customer-details-fields {
  gap: 17px;
}

#material-delivery-view .customer-details-block.is-wide .customer-details-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

#material-delivery-view .material-delivery-answers .customer-details-field,
#material-delivery-view .customer-details-fields > .customer-details-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  min-width: 0;
}

#material-delivery-view .customer-details-field.is-span {
  grid-column: 1 / -1;
}

#material-delivery-view .customer-details-choice,
#material-delivery-view .customer-details-choice.is-yes,
#material-delivery-view .customer-details-choice.is-no {
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 4px 7px;
  font-size: 10.5px;
  font-weight: 500;
}

#material-delivery-view .customer-details-empty {
  color: var(--muted-text);
  font-size: 12.5px;
  font-weight: 400;
}

#material-delivery-view .material-delivery-feedback-list,
#material-delivery-view .customer-feedback-list {
  gap: 10px;
}

#material-delivery-view .material-delivery-feedback-list li,
#material-delivery-view .customer-feedback-list li {
  border-radius: 0;
  background: transparent;
  padding: 0;
  color: var(--muted-text);
  font-size: 11.5px;
  line-height: 1.8;
}

#material-delivery-view .material-delivery-thumbs {
  gap: 12px;
}

#material-delivery-view .material-delivery-thumb {
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: none;
}

#material-delivery-view .material-delivery-correction-item {
  border-color: var(--border);
  border-radius: 7px;
  background: var(--background);
}

@media (max-width: 860px) {
  #material-delivery-view .customer-details-heading-row {
    align-items: flex-start;
  }

  #material-delivery-view .customer-details-view-header h2 {
    font-size: 27px;
  }

  #material-delivery-view .customer-details-block {
    padding: 19px 17px;
  }

  #material-delivery-view .customer-details-block.is-wide .customer-details-fields {
    grid-template-columns: 1fr;
  }
}

html.auth-view-login,
html.auth-view-password-change,
html.auth-view-login body,
html.auth-view-password-change body,
html.auth-view-login .page,
html.auth-view-password-change .page {
  background: #000000 url("/assets/login-bg.webp") center / 100% 100% no-repeat fixed;
  color: #f0f0f0;
  color-scheme: dark;
}

html.auth-view-login .page,
html.auth-view-password-change .page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 32px 24px;
  overflow: hidden;
}

html.auth-view-login:not(.customer-portal-mode) #auth-card {
  width: min(100%, 512px);
  max-width: 512px;
  margin: 0;
  padding: 8px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

html.auth-view-login #auth-card .logo {
  width: 128px;
  height: auto;
  margin: 0 auto 28px;
}

html.auth-view-login #auth-card h1 {
  display: none;
}

html.auth-view-login #auth-card form {
  display: grid;
  gap: 20px;
}

html.auth-view-login #auth-card .auth-field {
  display: grid;
  gap: 8px;
}

html.auth-view-login:not(.customer-portal-mode) #auth-card label {
  margin: 0;
  color: #a1a4a5;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

html.auth-view-login:not(.customer-portal-mode) #auth-card input {
  width: 100%;
  height: 48px;
  min-height: 48px;
  margin: 0;
  padding: 0 16px;
  border: 2px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  background-color: transparent;
  background-image: linear-gradient(104deg, rgba(253, 253, 253, 0.05) 5%, rgba(240, 240, 228, 0.1) 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 400;
  box-shadow: none;
}

html.auth-view-login #auth-card input::placeholder {
  color: #8d9091;
}

html.auth-view-login:not(.customer-portal-mode) #auth-card input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

html.auth-view-login #auth-card input:-webkit-autofill {
  -webkit-text-fill-color: #ffffff;
  caret-color: #ffffff;
  box-shadow: 0 0 0 1000px #111111 inset;
}

html.auth-view-login:not(.customer-portal-mode) #auth-card button {
  width: 100%;
  height: 48px;
  min-height: 48px;
  margin: 0;
  padding: 0 20px;
  border: 2px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  background-color: transparent;
  background-image: linear-gradient(104deg, rgba(253, 253, 253, 0.05) 5%, rgba(240, 240, 228, 0.1) 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.1);
  transform: none;
}

html.auth-view-login:not(.customer-portal-mode) #auth-card button:hover:not(:disabled) {
  background-color: rgba(255, 255, 255, 0.04);
  background-image: linear-gradient(104deg, rgba(253, 253, 253, 0.08) 5%, rgba(240, 240, 228, 0.14) 100%);
}

html.auth-view-login:not(.customer-portal-mode) #auth-card button:active:not(:disabled) {
  transform: none;
}

html.auth-view-login #auth-card #login-btn:disabled:not(.is-loading) {
  opacity: 0.3;
  cursor: not-allowed;
}

html.auth-view-login:not(.customer-portal-mode) #auth-card button.secondary {
  color: #f0f0f0;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.08);
}

html.auth-view-login .status {
  min-height: 0;
  margin: 16px 0 0;
  color: #a1a4a5;
  font-size: 14px;
}

html.auth-view-login .status:empty {
  display: none;
}

html.auth-view-login:not(.customer-portal-mode) .status.error {
  color: #ff5c5c;
}

html.auth-view-login .terms {
  margin: 32px 0 0;
  color: #a1a4a5;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  text-align: center;
}

html.auth-view-password-change:not(.customer-portal-mode) #password-change-card {
  width: min(100%, 512px);
  max-width: 512px;
  margin: 0;
  padding: 8px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

html.auth-view-password-change #password-change-card .logo {
  width: 128px;
  height: auto;
  margin: 0 auto 28px;
}

html.auth-view-password-change #password-change-card h1 {
  margin: 0 0 8px;
  color: #f0f0f0;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.045rem;
  text-align: center;
}

html.auth-view-password-change #password-change-card .password-change-lead {
  margin: 0 0 28px;
  color: #a1a4a5;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

html.auth-view-password-change #password-change-card form {
  display: grid;
  gap: 20px;
}

html.auth-view-password-change #password-change-card .auth-field {
  display: grid;
  gap: 8px;
}

html.auth-view-password-change:not(.customer-portal-mode) #password-change-card label {
  margin: 0;
  color: #a1a4a5;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

html.auth-view-password-change:not(.customer-portal-mode) #password-change-card input {
  width: 100%;
  height: 48px;
  min-height: 48px;
  margin: 0;
  padding: 0 16px;
  border: 2px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  background-color: transparent;
  background-image: linear-gradient(104deg, rgba(253, 253, 253, 0.05) 5%, rgba(240, 240, 228, 0.1) 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 400;
  box-shadow: none;
}

html.auth-view-password-change #password-change-card input::placeholder {
  color: #8d9091;
}

html.auth-view-password-change:not(.customer-portal-mode) #password-change-card input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

html.auth-view-password-change:not(.customer-portal-mode) #password-change-card button {
  width: 100%;
  height: 48px;
  min-height: 48px;
  margin: 0;
  padding: 0 20px;
  border: 2px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  background-color: transparent;
  background-image: linear-gradient(104deg, rgba(253, 253, 253, 0.05) 5%, rgba(240, 240, 228, 0.1) 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.1);
  transform: none;
}

html.auth-view-password-change:not(.customer-portal-mode) #password-change-card button:hover:not(:disabled) {
  background-color: rgba(255, 255, 255, 0.04);
  background-image: linear-gradient(104deg, rgba(253, 253, 253, 0.08) 5%, rgba(240, 240, 228, 0.14) 100%);
}

html.auth-view-password-change:not(.customer-portal-mode) #password-change-card button:active:not(:disabled) {
  transform: none;
}

html.auth-view-password-change:not(.customer-portal-mode) #password-change-card button.secondary,
html.auth-view-password-change:not(.customer-portal-mode) #password-change-card button.secondary:hover {
  color: #f0f0f0;
  background-color: transparent;
  background-image: none;
  border: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

html.auth-view-password-change #password-change-card .status {
  min-height: 0;
  margin: 16px 0 0;
  color: #a1a4a5;
  font-size: 14px;
  text-align: center;
}

html.auth-view-password-change #password-change-card .status:empty {
  display: none;
}

html.auth-view-password-change:not(.customer-portal-mode) #password-change-card .status.error {
  color: #ff5c5c;
}

html:not(.customer-portal-mode) .create-customer-modal {
  background: oklch(0.22 0.012 165 / 0.38);
  backdrop-filter: blur(8px);
}

html:not(.customer-portal-mode) .create-customer-modal-card {
  width: min(420px, 100%);
  padding: 22px 22px 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow:
    0 24px 60px oklch(0.2 0.02 165 / 0.16),
    0 1px 4px oklch(0.2 0.02 165 / 0.05);
}

html:not(.customer-portal-mode) .create-customer-modal-card h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

html:not(.customer-portal-mode) .create-customer-modal .material-send-confirm-text {
  margin: 0;
  color: var(--muted-text);
  font-size: 14px;
  line-height: 1.55;
}

html:not(.customer-portal-mode) .create-customer-modal-card input:not([type="checkbox"]),
html:not(.customer-portal-mode) .create-customer-modal-card select,
html:not(.customer-portal-mode) #create-customer-input,
html:not(.customer-portal-mode) #create-customer-split-select,
html:not(.customer-portal-mode) #create-customer-url {
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fafafa;
  color: var(--text);
}

html:not(.customer-portal-mode) .create-customer-modal-card input:focus,
html:not(.customer-portal-mode) .create-customer-modal-card select:focus,
html:not(.customer-portal-mode) #create-customer-input:focus,
html:not(.customer-portal-mode) #create-customer-split-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

html:not(.customer-portal-mode) .create-customer-link-label,
html:not(.customer-portal-mode) .create-customer-split-toggle {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

html:not(.customer-portal-mode) .create-customer-split-toggle {
  margin-top: 16px;
  margin-bottom: 0;
}

html:not(.customer-portal-mode) .create-customer-modal-actions {
  gap: 8px;
  margin-top: 18px;
}

html:not(.customer-portal-mode) .create-customer-modal .modal-btn {
  min-height: 40px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--surface);
  font-size: 14px;
  font-weight: 600;
}

html:not(.customer-portal-mode) .create-customer-modal .modal-btn:hover {
  background: #111111;
}

html:not(.customer-portal-mode) .create-customer-modal .modal-btn.secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

html:not(.customer-portal-mode) .create-customer-modal .modal-btn.secondary:hover {
  background: var(--accent-soft);
}

html:not(.customer-portal-mode) #customer-delete-confirm-btn {
  background: #c5372b;
}

html:not(.customer-portal-mode) #customer-delete-confirm-btn:hover {
  background: #a82e24;
}

html:not(.customer-portal-mode) .create-customer-status:empty {
  display: none;
}

/* Kunduppföljning hub dialog */
@keyframes trello-hub-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.trello-follow-modal.is-hub {
  background: oklch(0.22 0.012 165 / 0.38);
  backdrop-filter: blur(8px);
  animation: trello-hub-fade 180ms ease;
}

.trello-follow-modal.is-hub.is-closing {
  animation: trello-hub-fade 160ms ease reverse forwards;
}

.trello-follow-hub {
  width: min(460px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 24px 24px 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow:
    0 24px 60px oklch(0.2 0.02 165 / 0.16),
    0 1px 4px oklch(0.2 0.02 165 / 0.05);
}

.trello-follow-hub .trello-follow-hub-form {
  gap: 8px;
}

.trello-follow-hub .trello-follow-head {
  margin-bottom: 8px;
}

.trello-follow-hub .trello-follow-form-title {
  color: var(--text);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.trello-follow-hub .trello-follow-form-hint {
  margin-top: 4px;
  color: var(--muted-text);
  font-size: 13px;
  line-height: 1.45;
}

.trello-follow-hub .trello-follow-close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: var(--muted-text);
}

.trello-follow-hub .trello-follow-close:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.trello-follow-hub .trello-follow-label,
.trello-follow-hub .trello-follow-date {
  gap: 7px;
  color: oklch(0.4 0 0);
  font-size: 12.5px;
  font-weight: 600;
}

.trello-follow-hub .trello-follow-hub-form > .trello-follow-label {
  margin-top: 10px;
}

.trello-follow-hub .trello-follow-hub-form > .trello-follow-date {
  margin-top: 6px;
}

.trello-follow-hub .trello-follow-radios.is-chips {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}

.trello-follow-hub .trello-follow-radios.is-chips .trello-follow-radio {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fafafa;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.trello-follow-hub .trello-follow-radios.is-chips .trello-follow-radio:hover {
  background: var(--accent-soft);
}

.trello-follow-hub .trello-follow-radios.is-chips .trello-follow-radio-mark {
  display: none;
}

.trello-follow-hub .trello-follow-radio,
.trello-follow-hub .trello-follow-check {
  outline: none;
}

.trello-follow-hub .trello-follow-radio:focus,
.trello-follow-hub .trello-follow-radio:focus-visible,
.trello-follow-hub .trello-follow-check:focus,
.trello-follow-hub .trello-follow-check:focus-visible {
  outline: none;
}

.trello-follow-hub .trello-follow-radios.is-chips .trello-follow-radio.is-selected {
  border-color: transparent;
  background: var(--accent);
  color: #ffffff;
  box-shadow: none;
}

.trello-follow-hub .trello-follow-radios.is-cards {
  gap: 8px;
}

.trello-follow-hub .trello-follow-radios.is-cards .trello-follow-radio {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fafafa;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.trello-follow-hub .trello-follow-radios.is-cards .trello-follow-radio:hover {
  background: var(--accent-soft);
}

.trello-follow-hub .trello-follow-radios.is-cards .trello-follow-radio.is-selected {
  border-color: transparent;
  background: var(--accent-soft);
  box-shadow: none;
}

.trello-follow-hub .trello-follow-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.trello-follow-hub .trello-follow-section[hidden],
.trello-follow-hub .trello-follow-check[hidden] {
  display: none;
}

.trello-follow-hub .trello-follow-section > .trello-follow-label {
  margin-top: 10px;
}

.trello-follow-hub .trello-follow-section > .trello-follow-label:first-child {
  margin-top: 0;
}

.trello-follow-hub .trello-follow-check {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fafafa;
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.trello-follow-hub .trello-follow-check:hover {
  background: var(--accent-soft);
}

.trello-follow-hub .trello-follow-check-mark {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  box-sizing: border-box;
  border: 2px solid #c9ccd1;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.trello-follow-hub .trello-follow-check.is-selected {
  border-color: transparent;
  background: var(--accent-soft);
  box-shadow: none;
}

.trello-follow-hub .trello-follow-check.is-selected .trello-follow-check-mark {
  border-color: var(--accent);
  background: var(--accent);
}

.trello-follow-hub .trello-follow-check.is-selected .trello-follow-check-mark::after {
  content: "";
  width: 4px;
  height: 7px;
  margin-top: -1px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.trello-follow-hub .trello-follow-radio-mark {
  border-color: #c9ccd1;
}

.trello-follow-hub .trello-follow-radio.is-selected .trello-follow-radio-mark {
  border-color: var(--accent);
}

.trello-follow-hub .trello-follow-radio.is-selected .trello-follow-radio-mark::after {
  background: var(--accent);
}

.trello-follow-hub .trello-follow-note,
.trello-follow-hub .trello-follow-date input,
.trello-follow-hub .trello-follow-when input {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fafafa;
  padding: 11px 13px;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 400;
}

.trello-follow-hub .trello-follow-note {
  resize: vertical;
  line-height: 1.5;
}

.trello-follow-hub .trello-follow-note:focus,
.trello-follow-hub .trello-follow-date input:focus,
.trello-follow-hub .trello-follow-when input:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: 0;
}

.trello-follow-hub .trello-follow-footer {
  gap: 8px;
  margin-top: 14px;
}

.trello-follow-hub .trello-follow-footer .trello-text-btn,
.trello-follow-hub .trello-follow-footer .trello-follow-save {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.trello-follow-hub .trello-follow-footer .trello-text-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.trello-follow-hub .trello-follow-footer .trello-text-btn:hover {
  background: var(--accent-soft);
}

.trello-follow-hub .trello-follow-footer .trello-follow-save {
  border: 0;
  background: var(--accent);
  color: #ffffff;
  padding-top: 0;
  padding-bottom: 0;
}

.trello-follow-hub .trello-follow-footer .trello-follow-save:hover {
  background: #111111;
}

/* Kortvy (Trello card dialog) */
html:not(.customer-portal-mode) .trello-modal-backdrop {
  background: oklch(0.22 0.012 165 / 0.38);
  backdrop-filter: blur(8px);
}

html:not(.customer-portal-mode) .trello-modal-dialog {
  width: min(980px, 100%);
  padding: 30px 30px 26px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow:
    0 28px 70px oklch(0.2 0.02 165 / 0.18),
    0 1px 4px oklch(0.2 0.02 165 / 0.05);
}

html:not(.customer-portal-mode) .trello-modal-layout {
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.85fr);
  gap: 28px;
}

html:not(.customer-portal-mode) .trello-modal-title-row {
  align-items: center;
  gap: 12px;
}

html:not(.customer-portal-mode) .trello-complete {
  width: 22px;
  height: 22px;
  margin-top: 0;
  border: 1.5px solid #c9ccd1;
  transition: background-color 150ms ease, border-color 150ms ease;
}

html:not(.customer-portal-mode) .trello-complete:hover {
  border-color: var(--accent);
}

html:not(.customer-portal-mode) .trello-complete.is-done {
  border-color: #1f8a4c;
  background: #1f8a4c;
}

html:not(.customer-portal-mode) .workspace .trello-modal-title {
  min-height: 0;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  outline: none;
  color: var(--text);
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.3;
  transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

html:not(.customer-portal-mode) .workspace .trello-modal-title:hover {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

html:not(.customer-portal-mode) .workspace button.trello-modal-title {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

html:not(.customer-portal-mode) .workspace button.trello-modal-title:hover {
  text-decoration: underline;
}

html:not(.customer-portal-mode) .workspace .trello-modal-title:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: none;
}

html:not(.customer-portal-mode) .trello-modal-list-note,
html:not(.customer-portal-mode) .trello-modal-actions,
html:not(.customer-portal-mode) .trello-meta-row {
  margin-left: 34px;
}

html:not(.customer-portal-mode) .trello-modal-list-note {
  display: inline-block;
  margin-top: 6px;
  margin-bottom: 18px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--muted-text);
  font-size: 12px;
  font-weight: 500;
}

html:not(.customer-portal-mode) .trello-modal-actions {
  gap: 8px;
  margin-bottom: 22px;
}

html:not(.customer-portal-mode) .trello-action-btn,
html:not(.customer-portal-mode) .trello-due-btn {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  transition: background-color 150ms ease, border-color 150ms ease;
}

html:not(.customer-portal-mode) .trello-action-btn i,
html:not(.customer-portal-mode) .trello-due-btn i {
  color: var(--muted-text);
  font-size: 13px;
}

html:not(.customer-portal-mode) .trello-action-btn:hover,
html:not(.customer-portal-mode) .trello-due-btn:hover {
  border-color: #d4d4d4;
  background: var(--accent-soft);
}

html:not(.customer-portal-mode) .trello-due-btn.is-overdue {
  border-color: #f0c9c4;
  background: #fdf1ef;
  color: #c5372b;
}

html:not(.customer-portal-mode) .trello-meta-row {
  gap: 28px;
  margin-bottom: 22px;
}

html:not(.customer-portal-mode) .trello-meta-label {
  margin-bottom: 8px;
  color: var(--muted-text);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

html:not(.customer-portal-mode) .trello-meta-block .trello-meta-members {
  margin-top: 0;
  gap: 0;
}

html:not(.customer-portal-mode) .trello-meta-members .trello-member-lg {
  width: 34px;
  height: 34px;
  margin-left: -8px;
  border: 0;
  box-shadow: none;
}

html:not(.customer-portal-mode) .trello-meta-members .trello-member-lg:first-child {
  margin-left: 0;
}

html:not(.customer-portal-mode) .trello-member-add {
  width: 34px;
  height: 34px;
  margin-left: 10px;
  border: 1px dashed #c9ccd1;
  background: transparent;
  color: var(--muted-text);
}

html:not(.customer-portal-mode) .trello-member-add:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

html:not(.customer-portal-mode) .trello-member-face {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  margin-left: -8px;
}

html:not(.customer-portal-mode) .trello-meta-members > .trello-member-face:first-child {
  margin-left: 0;
}

html:not(.customer-portal-mode) .trello-member-face .trello-member-lg {
  margin-left: 0;
}

html:not(.customer-portal-mode) .trello-member-face .trello-member-add.is-remove,
html:not(.customer-portal-mode) .trello-member-face .trello-member-add.is-remove:hover {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  z-index: 2;
}

html:not(.customer-portal-mode) .trello-member-face .trello-member-add.is-remove i {
  font-size: 8px;
  line-height: 1;
}

html:not(.customer-portal-mode) .trello-member-face .trello-member-add.is-remove:hover {
  background: #be123c;
}

.trello-view .trello-card-when {
  margin: 0 0 8px;
  color: var(--muted-text);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
}

.trello-view .trello-card-badges .trello-claim-btn {
  margin-right: auto;
  align-self: center;
  cursor: pointer;
}

.trello-view .trello-follow-stage-cards > .trello-card.is-shared-member .trello-card-badges {
  width: 100%;
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px solid var(--border);
}

.trello-view .trello-follow-stage-cards > .trello-card.is-shared-member .trello-card-members {
  margin-left: auto;
}

.trello-view .trello-follow-stage-cards > .trello-card.is-shared-member .trello-card-members .trello-member {
  width: 26px;
  height: 26px;
  box-shadow: 0 0 0 2px #fff;
}

html:not(.customer-portal-mode) .trello-section {
  margin-bottom: 22px;
}

html:not(.customer-portal-mode) .trello-section-head {
  gap: 9px;
  margin-bottom: 10px;
}

html:not(.customer-portal-mode) .trello-section-head i {
  color: var(--muted-text);
  font-size: 13px;
}

html:not(.customer-portal-mode) .trello-section-head h3,
html:not(.customer-portal-mode) .trello-side-title {
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

html:not(.customer-portal-mode) .trello-description {
  min-height: 112px;
  padding: 13px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.55;
  overflow-y: hidden;
  resize: vertical;
}

html:not(.customer-portal-mode) .trello-modal-dialog .trello-primary {
  min-height: 36px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #ffffff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 150ms ease;
}

html:not(.customer-portal-mode) .trello-modal-dialog .trello-primary:hover {
  background: #111111;
}

html:not(.customer-portal-mode) .trello-description + .trello-primary {
  align-self: flex-start;
  margin-top: 10px;
}

html:not(.customer-portal-mode) .trello-file {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fafafa;
}

html:not(.customer-portal-mode) .trello-file + .trello-file {
  margin-top: 8px;
}

html:not(.customer-portal-mode) .trello-file-link {
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
}

html:not(.customer-portal-mode) .trello-file-thumb {
  border-radius: 8px;
}

html:not(.customer-portal-mode) .trello-modal-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

html:not(.customer-portal-mode) .trello-modal-footer .trello-save-card {
  background: #0c66e4;
  color: #ffffff;
}

html:not(.customer-portal-mode) .trello-modal-footer .trello-save-card:hover {
  background: #0958c7;
}

html:not(.customer-portal-mode) .trello-modal-footer .trello-archive-card {
  min-height: 36px;
  margin-top: 0;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: #fdf1ef;
  color: #c5372b;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  transition: background-color 150ms ease, color 150ms ease;
}

html:not(.customer-portal-mode) .trello-modal-footer .trello-archive-card:hover {
  background: #c5372b;
  color: #ffffff;
}

html:not(.customer-portal-mode) .trello-modal-side {
  display: flex;
  flex-direction: column;
  padding: 22px 20px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fafafa;
}

html:not(.customer-portal-mode) .trello-side-title {
  margin: 0 0 14px;
}

html:not(.customer-portal-mode) .trello-comment-form {
  gap: 10px;
}

html:not(.customer-portal-mode) .trello-comment-input {
  min-height: 76px;
  background: var(--surface);
  font-size: 13.5px;
  line-height: 1.5;
  resize: vertical;
}

html:not(.customer-portal-mode) .trello-comment-form .trello-primary {
  align-self: flex-end;
}

html:not(.customer-portal-mode) .trello-comment-form .trello-primary:disabled,
html:not(.customer-portal-mode) .trello-comment-form .trello-primary:disabled:hover {
  background: #e6e8ec;
  color: #9aa3af;
  cursor: default;
  transform: none;
}

html:not(.customer-portal-mode) .trello-activity {
  gap: 0;
  margin-top: 18px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}

html:not(.customer-portal-mode) .trello-activity-item {
  gap: 10px;
  padding: 12px 0;
}

html:not(.customer-portal-mode) .trello-activity-item + .trello-activity-item {
  border-top: 1px solid #efefef;
}

html:not(.customer-portal-mode) .trello-activity-item .trello-member {
  width: 28px;
  height: 28px;
  border: 0;
  box-shadow: none;
}

html:not(.customer-portal-mode) .trello-activity-text {
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
}

html:not(.customer-portal-mode) .trello-activity-item.is-activity .trello-activity-text {
  color: oklch(0.4 0 0);
}

html:not(.customer-portal-mode) .trello-activity-time {
  margin-top: 3px;
  color: var(--muted-text);
  font-size: 11.5px;
}

html:not(.customer-portal-mode) .trello-popover,
html:not(.customer-portal-mode) .trello-menu {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow:
    0 16px 40px oklch(0.2 0.02 165 / 0.16),
    0 1px 4px oklch(0.2 0.02 165 / 0.05);
}

html:not(.customer-portal-mode) .trello-menu .trello-popover-title {
  color: var(--text);
  font-size: 13.5px;
  font-weight: 650;
}

html:not(.customer-portal-mode) .trello-menu-item {
  border-radius: 10px;
  font-size: 13.5px;
}

html:not(.customer-portal-mode) .trello-menu-item:hover {
  background: var(--accent-soft);
}

html:not(.customer-portal-mode) .trello-menu .trello-date-input {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fafafa;
  font-family: inherit;
}

html:not(.customer-portal-mode) .trello-modal-dialog .trello-status-customer {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fafafa;
  font-size: 13.5px;
}

html:not(.customer-portal-mode) .trello-modal-dialog .trello-status-customer:hover {
  background: var(--accent-soft);
}

@media (max-width: 860px) {
  html:not(.customer-portal-mode) .trello-modal-dialog {
    padding: 24px 18px 20px;
  }

  html:not(.customer-portal-mode) .trello-modal-actions,
  html:not(.customer-portal-mode) .trello-meta-row,
  html:not(.customer-portal-mode) .trello-modal-list-note {
    margin-left: 0;
  }
}

html:not(.customer-portal-mode) .trello-modal-title {
  resize: none;
  overflow: hidden;
}

/* ---- Google-kunder: hemsida + manuella tjänster bredvid Ads-ansvarig ---- */
#customer-details-view .customer-details-google-website {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 260px;
  padding: 5px 11px;
  border: 0;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent);
  font: inherit;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
}

#customer-details-view .customer-details-google-website span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#customer-details-view .customer-details-google-website.is-set {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--border);
  color: var(--text);
}

#customer-details-view .customer-details-google-website.is-set i {
  color: var(--accent);
}

#customer-details-view .customer-details-google-website:hover,
#customer-details-view .customer-details-google-website[aria-expanded="true"] {
  background: var(--accent-soft);
  color: var(--accent);
}

#customer-details-view .customer-details-google-website.is-viewonly:disabled {
  cursor: default;
  opacity: 0.7;
}

#customer-details-view .customer-details-google-website.is-viewonly:not(:disabled) {
  cursor: pointer;
}

#customer-details-view .customer-google-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(320px, 80vw);
  padding: 12px;
  border: 1px solid #e6ebf4;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(20, 28, 45, 0.14);
}

#customer-details-view .customer-google-popover-label {
  color: oklch(0.39 0 0);
  font-size: 11.5px;
  font-weight: 500;
}

#customer-details-view .customer-google-popover-input {
  width: 100%;
  height: 35px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 12.5px;
  box-sizing: border-box;
}

#customer-details-view .customer-google-popover-input:focus {
  outline: none;
  border-color: var(--accent);
}

#customer-details-view .customer-google-popover-status {
  margin: 0;
  min-height: 0;
  color: var(--muted-text);
  font-size: 11px;
}

#customer-details-view .customer-google-popover-status:empty {
  display: none;
}

#customer-details-view .customer-google-popover-status.error {
  color: #c5362b;
}

#customer-details-view .customer-google-popover-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

#customer-details-view .customer-google-popover-save,
#customer-details-view .customer-google-popover-remove,
#customer-details-view .customer-google-popover-open {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 7px;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

#customer-details-view .customer-google-popover-save {
  border: 0;
  background: var(--accent);
  color: #ffffff;
}

#customer-details-view .customer-google-popover-save:disabled,
#customer-details-view .customer-google-popover-remove:disabled {
  cursor: progress;
  opacity: 0.6;
}

#customer-details-view .customer-google-popover-remove,
#customer-details-view .customer-google-popover-open {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

#customer-details-view .customer-google-popover-remove {
  margin-right: auto;
  color: #c5362b;
}

#customer-details-view .customer-google-services-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#customer-details-view .customer-google-service {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--background);
  color: var(--text);
  font-size: 10.5px;
  font-weight: 500;
}

#customer-details-view .customer-google-service-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted-text);
  font-size: 9px;
  cursor: pointer;
}

#customer-details-view .customer-google-service-remove:hover:not(:disabled) {
  background: #e6ebf4;
  color: #c5362b;
}

#customer-details-view .customer-google-service-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px dashed var(--border);
  border-radius: 5px;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 10.5px;
  font-weight: 500;
  cursor: pointer;
}

#customer-details-view .customer-google-service-add:hover {
  background: var(--accent-soft);
}

#customer-details-view .customer-google-service-input {
  width: 150px;
  height: 25px;
  padding: 0 8px;
  border: 1px solid var(--accent);
  border-radius: 5px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 10.5px;
  box-sizing: border-box;
}

#customer-details-view .customer-google-service-input:focus {
  outline: none;
}

#customer-details-view .customer-google-service-empty {
  color: var(--muted-text);
  font-size: 11.5px;
}

#customer-details-view .customer-google-contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#customer-details-view .customer-google-contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#customer-details-view .customer-google-contact-field span {
  color: oklch(0.39 0 0);
  font-size: 11.5px;
  font-weight: 500;
}

#customer-details-view .customer-google-contact-input {
  width: 100%;
  height: 35px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 12.5px;
  box-sizing: border-box;
}

#customer-details-view .customer-google-contact-input:focus {
  outline: none;
  border-color: var(--accent);
}

#customer-details-view .customer-google-contact-input:disabled {
  background: var(--background);
  color: var(--text);
  cursor: default;
}

#customer-details-view .customer-google-contact-status {
  margin: 0;
  color: var(--muted-text);
  font-size: 11.5px;
}

#customer-details-view .customer-google-contact-status:empty {
  display: none;
}

#customer-details-view .customer-google-contact-status.error {
  color: #c5362b;
}

#customer-details-view .customer-google-contact-actions {
  display: flex;
  justify-content: flex-end;
}

#customer-details-view .customer-google-contact-save {
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  background: var(--accent);
  color: #ffffff;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

#customer-details-view .customer-google-contact-save:disabled {
  cursor: progress;
  opacity: 0.6;
}

#customer-details-view .customer-details-block .customer-google-services-list {
  margin: 0;
}

/* Overlord */
html:not(.customer-portal-mode) .overlord-view {
  display: block;
  width: 100%;
}

html:not(.customer-portal-mode) .overlord-view.hidden {
  display: none;
}

html:not(.customer-portal-mode) .overlord-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

html:not(.customer-portal-mode) .overlord-head h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--text);
}

html:not(.customer-portal-mode) .overlord-lead,
html:not(.customer-portal-mode) .overlord-note,
html:not(.customer-portal-mode) .overlord-foot,
html:not(.customer-portal-mode) .overlord-empty {
  margin: 4px 0 0;
  color: var(--muted-text);
  font-size: 0.9rem;
}

html:not(.customer-portal-mode) .overlord-error {
  margin: 0;
  color: #a82d24;
  font-size: 0.9rem;
}

html:not(.customer-portal-mode) .overlord-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

html:not(.customer-portal-mode) .overlord-tabs {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  background: #f1f2f4;
  border-radius: 10px;
}

html:not(.customer-portal-mode) .overlord-tab {
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

html:not(.customer-portal-mode) .overlord-tab.is-active {
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

html:not(.customer-portal-mode) .overlord-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}

html:not(.customer-portal-mode) .overlord-field {
  display: grid;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-text);
}

html:not(.customer-portal-mode) .overlord-field select,
html:not(.customer-portal-mode) .overlord-period-label input {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fafafa;
  color: var(--text);
  font: inherit;
  font-weight: 500;
}

html:not(.customer-portal-mode) .overlord-period {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

html:not(.customer-portal-mode) .overlord-period-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

html:not(.customer-portal-mode) .overlord-step,
html:not(.customer-portal-mode) .overlord-refresh {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

html:not(.customer-portal-mode) .overlord-refresh:disabled {
  opacity: 0.6;
  cursor: default;
}

html:not(.customer-portal-mode) .overlord-scroll {
  overflow-x: auto;
}

html:not(.customer-portal-mode) .overlord-subtitle {
  margin: 8px 0 0;
  font-size: 1rem;
  color: var(--text);
}

html:not(.customer-portal-mode) .overlord-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

html:not(.customer-portal-mode) .overlord-table th {
  padding: 10px 12px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-text);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

html:not(.customer-portal-mode) .overlord-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  white-space: nowrap;
  vertical-align: middle;
}

html:not(.customer-portal-mode) .overlord-table tr.is-team td {
  background: #fafafa;
  font-weight: 650;
}

html:not(.customer-portal-mode) .overlord-name {
  font-weight: 650;
}

html:not(.customer-portal-mode) .overlord-daycell {
  line-height: 1.35;
}

html:not(.customer-portal-mode) .overlord-daycell strong,
html:not(.customer-portal-mode) .overlord-daycell span {
  display: block;
}

html:not(.customer-portal-mode) .overlord-daycell span:not(.overlord-delta) {
  color: var(--muted-text);
  font-size: 0.8rem;
}

html:not(.customer-portal-mode) .overlord-delta {
  font-size: 0.8rem;
  font-weight: 600;
}

html:not(.customer-portal-mode) .overlord-delta.is-up {
  color: #1a8a4a;
}

html:not(.customer-portal-mode) .overlord-delta.is-down {
  color: #c4372b;
}

html:not(.customer-portal-mode) .overlord-delta.is-flat {
  color: var(--muted-text);
}

html:not(.customer-portal-mode) .overlord-name-btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}

html:not(.customer-portal-mode) .overlord-name-btn:hover {
  text-decoration-color: currentColor;
}

html:not(.customer-portal-mode) .overlord-charts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1100px) {
  html:not(.customer-portal-mode) .overlord-charts {
    grid-template-columns: 1fr;
  }
}

html:not(.customer-portal-mode) .overlord-chart {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fafafa;
}

html:not(.customer-portal-mode) .overlord-chart-title {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: var(--text);
}

html:not(.customer-portal-mode) .overlord-bars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  align-items: end;
}

html:not(.customer-portal-mode) .overlord-bar-col {
  display: grid;
  grid-template-rows: auto 140px auto 16px;
  gap: 6px;
  justify-items: center;
  min-width: 0;
}

html:not(.customer-portal-mode) .overlord-bar-track {
  display: flex;
  align-items: flex-end;
  width: 100%;
  max-width: 44px;
  height: 100%;
}

html:not(.customer-portal-mode) .overlord-bar {
  width: 100%;
  border-radius: 6px 6px 2px 2px;
  background: #1f2430;
  min-height: 0;
}

html:not(.customer-portal-mode) .overlord-bar-col.is-today .overlord-bar {
  background: #1663d6;
}

html:not(.customer-portal-mode) .overlord-bar-value {
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--text);
  white-space: nowrap;
}

html:not(.customer-portal-mode) .overlord-bar-label {
  font-size: 0.75rem;
  color: var(--muted-text);
  white-space: nowrap;
}

html:not(.customer-portal-mode) .overlord-detail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

html:not(.customer-portal-mode) .overlord-detail-name {
  margin: 0;
  font-size: 1.15rem;
  color: var(--text);
  margin-right: auto;
}

html:not(.customer-portal-mode) .overlord-back {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

html:not(.customer-portal-mode) .overlord-backlog {
  display: grid;
}

html:not(.customer-portal-mode) .overlord-log-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

html:not(.customer-portal-mode) .overlord-log-badge {
  padding: 3px 10px;
  border-radius: 999px;
  background: #dff5e7;
  color: #1a7a43;
  font-size: 0.75rem;
  font-weight: 700;
}

html:not(.customer-portal-mode) .overlord-log-badge.is-reopened {
  background: #ffe7bf;
  color: #9a5b00;
}

html:not(.customer-portal-mode) .overlord-log-text strong,
html:not(.customer-portal-mode) .overlord-log-text span {
  display: block;
}

html:not(.customer-portal-mode) .overlord-log-text span,
html:not(.customer-portal-mode) .overlord-log-time {
  color: var(--muted-text);
  font-size: 0.8rem;
}

html:not(.customer-portal-mode) .overlord-body {
  display: grid;
  gap: 16px;
}

html:not(.customer-portal-mode) .overlord-detail-head {
  margin-bottom: 4px;
}

html:not(.customer-portal-mode) .overlord-log-badge.is-action {
  background: #d7e7ff;
  color: #2557b8;
}

html:not(.customer-portal-mode) .overlord-log-badge.is-comment {
  background: #ead6ff;
  color: #6b3fb5;
}

html:not(.customer-portal-mode) .overlord-log-text .overlord-log-action {
  color: var(--text);
  font-size: 0.85rem;
  margin: 2px 0;
}

html:not(.customer-portal-mode) .overlord-name-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

html:not(.customer-portal-mode) .overlord-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-left: 8px;
  border-radius: 50%;
  background: #1663d6;
  flex-shrink: 0;
}

html:not(.customer-portal-mode) .overlord-name-wrap .overlord-dot {
  margin-left: 0;
}

html:not(.customer-portal-mode) .overlord-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #eef1f6;
  box-shadow: 0 0 0 1px var(--border);
}

html:not(.customer-portal-mode) .overlord-detail-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

html:not(.customer-portal-mode) .overlord-title {
  margin: 0;
  line-height: 0;
}

html:not(.customer-portal-mode) .overlord-logo {
  display: block;
  height: 44px;
  width: auto;
}

html:not(.customer-portal-mode) .overlord-detail-name .overlord-dot {
  margin-left: -4px;
}

html:not(.customer-portal-mode) .overlord-card.is-detail .overlord-head {
  padding-bottom: 5px;
}


html:not(.customer-portal-mode) .overlord-bar-sub {
  height: 16px;
  font-size: 0.72rem;
  line-height: 16px;
  font-weight: 650;
  color: var(--text);
  white-space: nowrap;
}

html:not(.customer-portal-mode) .overlord-log-badge.is-login {
  background: #d4f6f4;
  color: #0f766e;
}

html:not(.customer-portal-mode) .overlord-bar-col.has-tip {
  position: relative;
  cursor: default;
  outline: none;
}

html:not(.customer-portal-mode) .overlord-bar-tip {
  display: none;
  position: absolute;
  bottom: 46px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  grid-template-rows: repeat(6, auto);
  grid-auto-flow: column;
  column-gap: 16px;
  gap: 2px 16px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #1f2430;
  color: #ffffff;
  font-size: 0.78rem;
  line-height: 1.35;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

html:not(.customer-portal-mode) .overlord-bar-tip span {
  display: block;
}

html:not(.customer-portal-mode) .overlord-bar-tip span:first-child {
  font-weight: 700;
}

html:not(.customer-portal-mode) .overlord-bar-col.has-tip:hover .overlord-bar-tip,
html:not(.customer-portal-mode) .overlord-bar-col.has-tip:focus-visible .overlord-bar-tip {
  display: grid;
}

/* Feedback: prio (Normal / Hög) som superadmin sätter */
html:not(.customer-portal-mode) .feedback-report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

html:not(.customer-portal-mode) .feedback-prio {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 7px;
  overflow: hidden;
  background: #ffffff;
}

html:not(.customer-portal-mode) .feedback-prio-btn {
  border: 0;
  background: transparent;
  padding: 3px 10px;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted-text);
  cursor: pointer;
}

html:not(.customer-portal-mode) .feedback-prio-btn + .feedback-prio-btn {
  border-left: 1px solid var(--border);
}

html:not(.customer-portal-mode) .feedback-prio-btn.is-normal.is-active {
  background: #eef1f6;
  color: #3d4a63;
}

html:not(.customer-portal-mode) .feedback-prio-btn.is-hog.is-active {
  background: #ffe1dd;
  color: #a5271c;
}

html:not(.customer-portal-mode) .feedback-report.is-high-prio {
  border-color: #e9a7a0;
  box-shadow: inset 3px 0 0 #d6453a;
  background: #fff7f6;
}

html:not(.customer-portal-mode) .feedback-compose-prio {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

html:not(.customer-portal-mode) .feedback-compose-prio.hidden {
  display: none;
}

html:not(.customer-portal-mode) .feedback-compose-prio-label {
  color: var(--muted-text);
  font-size: 0.84rem;
  font-weight: 600;
}

/* Supportärenden: Att göra-kort, Hög-prio och fliken Support i kundunderlaget */
html:not(.customer-portal-mode) .trello-support-todo-meta {
  display: flex;
  align-items: center;
  margin-top: 5px;
  gap: 8px;
  flex-wrap: wrap;
}

html:not(.customer-portal-mode) .trello-view .trello-support-priority.is-hog {
  background: #ffe1dd;
  color: #a5271c;
}

html:not(.customer-portal-mode) .trello-case-date {
  max-width: 100%;
}

html:not(.customer-portal-mode) .customer-support-case {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fafafa;
}

html:not(.customer-portal-mode) .customer-support-case + .customer-support-case {
  margin-top: 10px;
}

html:not(.customer-portal-mode) .customer-support-case.is-high {
  border-color: #e9a7a0;
  box-shadow: inset 3px 0 0 #d6453a;
}

html:not(.customer-portal-mode) .customer-support-case.is-solved {
  opacity: 0.7;
}

html:not(.customer-portal-mode) .customer-support-case-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

html:not(.customer-portal-mode) .customer-support-case-title {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text);
}

html:not(.customer-portal-mode) .customer-support-case-note {
  margin: 0;
  color: var(--muted-text);
  font-size: 0.88rem;
  white-space: pre-wrap;
}

html:not(.customer-portal-mode) .customer-support-case-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

html:not(.customer-portal-mode) .customer-support-assign {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  font: inherit;
  font-size: 0.84rem;
  color: var(--muted-text);
  cursor: pointer;
}

html:not(.customer-portal-mode) .customer-support-assign strong {
  color: var(--text);
  font-weight: 650;
}

html:not(.customer-portal-mode) .customer-support-assign i {
  font-size: 0.66rem;
}

html:not(.customer-portal-mode) .customer-support-assign:hover {
  border-color: #b9c0cc;
}

html:not(.customer-portal-mode) .customer-support-case-facts {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--muted-text);
}

html:not(.customer-portal-mode) .customer-support-case-pill {
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.76rem;
  font-weight: 600;
  background: #eef1f6;
  color: #3d4a63;
}

html:not(.customer-portal-mode) .customer-support-case-pill.is-hog {
  background: #ffe1dd;
  color: #a5271c;
}

html:not(.customer-portal-mode) .customer-support-case-pill.is-solved {
  background: #e3f4e8;
  color: #1f7a3d;
}

html:not(.customer-portal-mode) .customer-support-action {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  padding: 5px 10px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

html:not(.customer-portal-mode) .customer-support-action:hover {
  border-color: #b9c0cc;
}

html:not(.customer-portal-mode) .customer-support-date-input {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 8px;
  font: inherit;
  font-size: 0.82rem;
}

html:not(.customer-portal-mode) .customer-support-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 60;
  display: grid;
  min-width: 200px;
  max-height: 240px;
  overflow-y: auto;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

html:not(.customer-portal-mode) .customer-support-menu-item {
  border: 0;
  border-radius: 7px;
  background: transparent;
  padding: 7px 10px;
  text-align: left;
  font: inherit;
  font-size: 0.86rem;
  color: var(--text);
  cursor: pointer;
}

html:not(.customer-portal-mode) .customer-support-menu-item:hover,
html:not(.customer-portal-mode) .customer-support-menu-item.is-selected {
  background: #eef1f6;
}

html:not(.customer-portal-mode) .customer-support-case-thread {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

/* ---------- Förfrågan ---------- */
html:not(.customer-portal-mode) .request-view {
  display: grid;
  gap: 16px;
  width: min(760px, 100%);
  align-content: start;
}

html:not(.customer-portal-mode) .request-view.hidden {
  display: none;
}

.req-view-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.req-head-btns {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.req-visa-alla-btn {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.req-visa-alla-btn:hover {
  background: var(--accent-soft);
}

.req-visa-alla-btn.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.req-head-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.req-view-title,
.req-title {
  margin: 0;
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.req-lead {
  margin: 0;
  color: var(--muted-text);
  font-size: 0.9rem;
}

.req-primary-btn,
.req-ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.req-primary-btn {
  border: 0;
  background: var(--accent);
  color: #ffffff;
}

.req-primary-btn:hover {
  background: #111111;
}

.req-ghost-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.req-ghost-btn:hover {
  background: var(--accent-soft);
}

.req-primary-btn.is-small,
.req-ghost-btn.is-small {
  min-height: 32px;
  padding: 0 12px;
  font-size: 13px;
}

.req-primary-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.req-tabs {
  display: flex;
  gap: 6px;
}

.req-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted-text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.req-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.req-tab-count {
  min-width: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgb(0 0 0 / 8%);
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}

.req-tab.is-active .req-tab-count {
  background: rgb(255 255 255 / 22%);
}

.req-list {
  display: grid;
  gap: 8px;
}

.req-row {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.req-row:hover {
  border-color: #cfd3da;
}

.req-row-top,
.req-row-sub {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.req-row-title {
  min-width: 0;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.req-row-sub,
.req-row-owner {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted-text);
  font-size: 0.84rem;
}

.req-row-owner-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  background: #e8edf5;
}

.req-row-sub > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.req-row-date {
  flex: none;
}

.req-empty-state {
  margin: 0;
  padding: 28px 16px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--muted-text);
  text-align: center;
}

.req-status-pill,
.req-pill {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 650;
  background: var(--accent-soft);
  color: var(--text);
}

.req-pill {
  background: #e8efff;
  color: #2d4fa8;
}

.req-status-pill.is-new {
  background: #fff4dc;
  color: #8a5a00;
}

.req-status-pill.is-opened {
  background: #e8efff;
  color: #2d4fa8;
}

.req-status-pill.is-done {
  background: #e3f6ea;
  color: #1c7a43;
}

/* Dialog */
body.req-modal-open {
  overflow: hidden;
}

.req-modal {
  position: fixed;
  inset: 0;
  z-index: 4600;
  display: grid;
  place-items: center;
  padding: 28px 16px;
}

.req-modal.hidden {
  display: none;
}

.req-backdrop {
  position: absolute;
  inset: 0;
  background: oklch(0.22 0.012 165 / 0.38);
  backdrop-filter: blur(8px);
}

.req-dialog {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100vh - 56px);
  overflow: auto;
  padding: 26px 26px 22px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 28px 70px oklch(0.2 0.02 165 / 0.18), 0 1px 4px oklch(0.2 0.02 165 / 0.05);
}

.req-compose,
.req-detail {
  display: grid;
  gap: 16px;
}

.req-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.req-kicker {
  display: flex;
  align-items: center;
  gap: 6px;
}

.req-icon-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted-text);
  cursor: pointer;
}

.req-icon-btn:hover {
  background: var(--accent-soft);
  color: var(--text);
}

.req-field {
  display: grid;
  gap: 6px;
}

.req-label {
  color: var(--muted-text);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.req-input {
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fafafa;
  color: var(--text);
  font: inherit;
}

.req-input:focus {
  outline: none;
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.req-textarea {
  min-height: 110px;
  resize: vertical;
}

.req-file-input {
  display: none;
}

.req-file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.req-file-list.hidden,
.req-picked.hidden {
  display: none;
}

.req-file-chip,
.req-picked-chip,
.req-person-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 5px 6px 5px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 13px;
}

.req-person-pill {
  padding: 4px 10px 4px 4px;
}

.req-file-name {
  min-width: 0;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.req-chip-remove {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted-text);
  font-size: 11px;
  cursor: pointer;
}

.req-chip-remove:hover {
  background: rgb(0 0 0 / 8%);
  color: var(--text);
}

.req-file-field .req-ghost-btn,
.req-field > .req-ghost-btn {
  justify-self: start;
}

.req-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.req-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.req-group.is-selected {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.req-people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
  max-height: 210px;
  overflow: auto;
  padding: 2px;
}

.req-person {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 8px 4px 6px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}

.req-person:hover {
  background: var(--accent-soft);
}

.req-person.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.req-person-face {
  position: relative;
  display: block;
  width: 44px;
  height: 44px;
}

.req-person-avatar,
.req-pill-avatar {
  display: block;
  border-radius: 50%;
  object-fit: cover;
  background: #e5e7eb;
}

.req-person-avatar {
  width: 44px;
  height: 44px;
}

.req-pill-avatar {
  width: 24px;
  height: 24px;
}

.req-person-check {
  position: absolute;
  right: -3px;
  bottom: -3px;
  display: none;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-size: 9px;
}

.req-person.is-selected .req-person-check {
  display: grid;
}

.req-person-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.req-picked {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.req-empty,
.req-muted {
  margin: 0;
  color: var(--muted-text);
  font-size: 0.84rem;
}

.req-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.req-status {
  flex: 1;
  margin: 0;
  color: #b3261e;
  font-size: 0.84rem;
}

/* Detaljer */
.req-description {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.req-attachments {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}

.req-attachment {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fafafa;
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
}

.req-attachment:hover {
  background: var(--accent-soft);
}

.req-attachment.is-image {
  padding: 0;
  overflow: hidden;
}

.req-attachment-img {
  display: block;
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.req-attachment-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.req-meta {
  display: grid;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.req-meta-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.req-meta-body {
  display: grid;
  gap: 8px;
  position: relative;
}

.req-meta-text {
  font-size: 0.92rem;
}

.req-ansvarig-people {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.req-ansvarig-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.req-date {
  width: auto;
  justify-self: start;
}

.req-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 5;
  display: grid;
  gap: 6px;
  width: min(280px, 100%);
  margin-top: 4px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgb(0 0 0 / 16%);
}

.req-menu-list {
  display: grid;
  max-height: 220px;
  overflow: auto;
}

.req-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  text-align: left;
  cursor: pointer;
}

.req-menu-item:hover {
  background: var(--accent-soft);
}

.req-menu-item > i {
  margin-left: auto;
}

@media (max-width: 640px) {
  .req-view-head {
    flex-direction: column;
  }

  .req-dialog {
    padding: 20px 16px 16px;
  }

  .req-meta-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* Förfrågningskort i Mina uppgifter */
.trello-view .trello-request-card {
  gap: 8px;
}

.trello-request-top,
.trello-request-foot {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trello-request-top .trello-card-check {
  margin-left: auto;
}

.trello-request-new {
  padding: 2px 7px;
  border-radius: 999px;
  background: #fff4dc;
  color: #8a5a00;
  font-size: 11px;
  font-weight: 700;
}

.trello-request-title {
  margin: 0;
  color: #172b4d;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.trello-request-note {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #5e6c84;
  font-size: 0.84rem;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.trello-request-foot {
  color: #5e6c84;
  font-size: 0.8rem;
}

.trello-request-from {
  margin-right: auto;
}

.trello-request-foot .trello-member {
  width: 22px;
  height: 22px;
}

.trello-request-card.is-sealed .trello-request-title,
.trello-request-card.is-sealed .trello-request-note {
  filter: blur(6px);
  opacity: 0.75;
  pointer-events: none;
  user-select: none;
}

.trello-request-card.is-sealed {
  background: linear-gradient(180deg, #ffffff, #f4f6fb);
  box-shadow: 0 0 0 1px #d9e1f5, 0 1px 6px rgb(9 30 66 / 8%);
}

.trello-request-card.is-done .trello-request-title {
  color: #6b778c;
  text-decoration: line-through;
}

.req-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.req-save-btn {
  background: #0089ff;
  border: 0;
  color: #ffffff;
}

.req-save-btn:hover:not(:disabled) {
  background: #007ae6;
}

.req-save-btn:disabled {
  background: var(--accent-soft);
  color: #9ca3af;
  cursor: default;
  opacity: 1;
}

.req-date-label {
  cursor: pointer;
}

.req-danger {
  display: flex;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.req-danger-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #e6b8b3;
  border-radius: 8px;
  background: transparent;
  color: #b3261e;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.req-danger-btn:hover {
  background: #fdecea;
}

.req-danger-btn.is-solid {
  border-color: #b3261e;
  background: #b3261e;
  color: #ffffff;
}

.req-danger-btn.is-solid:hover {
  background: #8f1d17;
}

.req-danger-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.req-danger-confirm {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.req-danger-confirm.hidden,
.req-danger-btn.hidden {
  display: none;
}

.req-danger-text {
  color: #b3261e;
  font-size: 0.86rem;
}

/* Förfrågningskort: deadline överst, badge nederst, ingen beskrivning på kortet */
.trello-request-when {
  color: #5e6c84;
  font-size: 0.8rem;
  font-weight: 600;
}

.trello-request-top {
  justify-content: space-between;
}

.trello-request-foot {
  flex-wrap: wrap;
}

.trello-request-foot .trello-request-from {
  margin-right: 0;
}

.trello-request-foot .trello-member.is-first {
  margin-left: auto;
}

.trello-request-top .trello-request-new,
.trello-request-top .trello-card-check {
  margin-left: auto;
}

/* Oöppnad förfrågan: allt utom deadline (och "Ny") är suddigt */
.trello-request-card.is-sealed .trello-request-foot {
  filter: blur(6px);
  opacity: 0.75;
  pointer-events: none;
  user-select: none;
}

.trello-request-card .trello-request-title {
  padding: 4.7px 0 12.7px;
}

.req-comments {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.req-comment-list {
  display: grid;
  gap: 10px;
  max-height: 260px;
  overflow-y: auto;
}

.req-comment {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f4f5f7;
}

.req-comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
}

.req-comment-time {
  color: #6b7280;
}

.req-comment-text {
  margin: 0;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.req-comment-form {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.req-comment-input {
  min-height: 64px;
}

.req-row-dates {
  display: grid;
  justify-items: end;
  gap: 4px;
  flex: none;
}

.req-row-dates .req-new-deadline {
  margin: 0;
}

.req-new-deadline,
.trello-request-new-deadline {
  display: inline-block;
  width: fit-content;
  margin-top: 5px;
  margin-bottom: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.4;
}

.trello-support-ticket.is-sealed .trello-support-rubrik,
.trello-support-ticket.is-sealed .trello-support-note,
.trello-support-ticket.is-sealed .trello-support-company {
  filter: blur(6px);
  opacity: 0.75;
  user-select: none;
}

.trello-support-ticket.is-sealed {
  background: linear-gradient(180deg, #ffffff, #f4f6fb);
  box-shadow: 0 0 0 1px #d9e1f5, 0 1px 6px rgb(9 30 66 / 8%);
}
