.bwk-crm-wrap {
  --bwk-bg: #f3f7fb;
  --bwk-surface: #ffffff;
  --bwk-surface-soft: #f8fbff;
  --bwk-border: #d9e5f2;
  --bwk-text: #0f1728;
  --bwk-text-soft: #536076;
  --bwk-primary: #0a84ff;
  --bwk-primary-strong: #0061cc;
  --bwk-success: #0ca678;
  --bwk-warning: #c77d00;
  --bwk-danger: #c92a2a;
  --bwk-shadow: 0 12px 28px rgba(12, 44, 85, 0.08);
  --bwk-shadow-soft: 0 6px 16px rgba(13, 35, 68, 0.08);
  font-family: "Segoe UI Variable", "Nunito Sans", "Segoe UI", sans-serif;
  color: var(--bwk-text);
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 18px 0 22px;
  padding: 20px;
  border: 1px solid var(--bwk-border);
  border-radius: 18px;
  background:
    radial-gradient(circle at 10% 0%, rgba(10, 132, 255, 0.09), transparent 40%),
    radial-gradient(circle at 95% 18%, rgba(12, 166, 120, 0.08), transparent 34%),
    var(--bwk-bg);
}

.bwk-crm-wrap.bwk-crm-kanban-wide {
  max-width: none;
  width: 100%;
}

.wp-admin .wrap.bwk-crm-wrap {
  width: calc(100% - 20px);
  margin-right: 20px;
}

.bwk-crm-wrap h1,
.bwk-crm-wrap h2,
.bwk-crm-wrap h3,
.bwk-crm-wrap h4 {
  color: var(--bwk-text);
  letter-spacing: -0.02em;
}

.bwk-crm-wrap h1 {
  margin-bottom: 8px;
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  font-weight: 760;
}

.bwk-crm-wrap h2 {
  font-size: 1.18rem;
  font-weight: 720;
}

.bwk-crm-wrap h3 {
  font-size: 1.02rem;
  font-weight: 700;
}

.bwk-crm-wrap p,
.bwk-crm-wrap label,
.bwk-crm-wrap td,
.bwk-crm-wrap th {
  color: var(--bwk-text-soft);
}

.bwk-crm-board-title {
  margin-top: 30px;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.1);
  color: var(--bwk-primary-strong);
}

.bwk-kanban-board {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-bottom: 24px;
}

.bwk-kanban-column {
  border: 1px solid var(--bwk-border);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  min-height: 240px;
  box-shadow: var(--bwk-shadow-soft);
  animation: bwk-fade-up 0.45s ease both;
}

.bwk-kanban-column:nth-child(2) {
  animation-delay: 0.05s;
}

.bwk-kanban-column:nth-child(3) {
  animation-delay: 0.1s;
}

.bwk-kanban-column:nth-child(4) {
  animation-delay: 0.15s;
}

.bwk-kanban-column > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-bottom: 1px solid var(--bwk-border);
}

.bwk-kanban-column > header h3 {
  margin: 0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bwk-text-soft);
}

.bwk-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.12);
  color: var(--bwk-primary-strong);
  font-size: 12px;
  font-weight: 700;
  padding: 0 8px;
}

.bwk-kanban-cards {
  padding: 12px;
  min-height: 170px;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.bwk-kanban-card {
  border: 1px solid var(--bwk-border);
  border-radius: 12px;
  background: var(--bwk-surface);
  padding: 11px;
  margin-bottom: 10px;
  cursor: grab;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: 0 4px 10px rgba(9, 33, 66, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.bwk-kanban-card:active {
  cursor: grabbing;
}

.bwk-kanban-card:hover {
  transform: translateY(-2px);
  border-color: #bfd6ee;
  box-shadow: 0 10px 18px rgba(9, 33, 66, 0.12);
}

.bwk-kanban-card h4 {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.35;
}

.bwk-kanban-card h4 a {
  color: var(--bwk-text);
  text-decoration: none;
  -webkit-user-drag: none;
}

.bwk-kanban-card h4 a:hover {
  color: var(--bwk-primary-strong);
}

.bwk-kanban-card p {
  margin: 0 0 4px;
  color: var(--bwk-text-soft);
}

.bwk-kanban-card.is-dragging {
  opacity: 0.68;
  box-shadow: 0 12px 24px rgba(7, 28, 54, 0.24);
}

.bwk-kanban-board.is-drag-active .bwk-kanban-cards {
  background: rgba(32, 109, 196, 0.05);
  border-color: rgba(45, 118, 199, 0.22);
}

.bwk-kanban-cards.is-drop-target {
  background: rgba(38, 130, 225, 0.1) !important;
  border-color: rgba(23, 111, 199, 0.48) !important;
  box-shadow: inset 0 0 0 1px rgba(23, 111, 199, 0.28);
}

.bwk-kanban-column.is-drop-target {
  box-shadow: 0 0 0 2px rgba(23, 111, 199, 0.18);
}

.bwk-kanban-card.is-updating {
  opacity: 0.45;
  pointer-events: none;
}

.bwk-scan-form,
.bwk-client-card,
.bwk-client-notes,
.bwk-report-grid {
  border: 1px solid var(--bwk-border);
  border-radius: 14px;
  background: var(--bwk-surface);
  box-shadow: var(--bwk-shadow-soft);
}

.bwk-scan-form {
  width: 100%;
  max-width: none;
  padding: 16px;
}

.bwk-scan-form--compact {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.bwk-scan-upload {
  margin-bottom: 16px;
  border: 1px dashed #b8cfe8;
  border-radius: 12px;
  background: var(--bwk-surface-soft);
  padding: 14px;
}

.bwk-scan-upload label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--bwk-text);
}

#bwk-card-image {
  display: block;
  width: 100%;
  margin: 10px 0 0;
  color: #2f4867;
}

#bwk-card-image::file-selector-button {
  margin-right: 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: linear-gradient(135deg, #2d76c7, #1f5ea7);
  color: #fff;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
}

#bwk-scan-trigger.button {
  width: 100%;
  min-height: 42px;
  margin-top: 10px;
  border-radius: 12px;
  font-weight: 760;
  letter-spacing: 0.01em;
}

#bwk-scan-status {
  margin-top: 10px;
  font-weight: 600;
  min-height: 18px;
}

#bwk-scan-status.bwk-error {
  color: var(--bwk-danger);
}

.bwk-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
}

.bwk-form-grid p {
  margin: 0;
}

.bwk-form-grid p.full,
.bwk-form-grid .full {
  grid-column: 1 / -1;
}

.bwk-form-grid p.description {
  grid-column: 1 / -1;
  margin: -2px 0 2px;
}

.bwk-setting-label {
  display: block;
  margin-bottom: 6px;
  color: var(--bwk-text);
  font-weight: 700;
}

.bwk-settings-inline-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bwk-settings-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #c9ddef;
  border-radius: 10px;
  background: #f7fbff;
  color: #2a4b70;
  font-weight: 700;
}

.bwk-settings-check input[type="checkbox"] {
  margin: 0;
}

.bwk-staff-tab-settings .description {
  margin: 0 0 8px;
}

.bwk-staff-tab-checks {
  gap: 12px;
}

.bwk-settings-check-tab {
  flex: 1 1 230px;
  min-height: 84px;
  align-items: flex-start;
  flex-direction: column;
  gap: 6px;
}

.bwk-settings-check-text {
  line-height: 1.2;
}

.bwk-settings-check-desc {
  display: block;
  color: #5c7390;
  font-weight: 500;
  line-height: 1.3;
}

.bwk-form-grid input,
.bwk-form-grid textarea,
.bwk-form-grid select,
.bwk-client-filter input,
.bwk-client-filter select,
.bwk-client-notes textarea,
.bwk-client-notes select,
.bwk-report-grid select,
.bwk-report-grid input {
  width: 100%;
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid #c5d8ec;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bwk-form-grid textarea,
.bwk-client-notes textarea {
  min-height: 110px;
}

.bwk-form-grid select[multiple] {
  min-height: 140px;
  height: auto;
  padding: 8px;
}

.bwk-form-grid input:focus,
.bwk-form-grid textarea:focus,
.bwk-form-grid select:focus,
.bwk-client-filter input:focus,
.bwk-client-filter select:focus,
.bwk-client-notes textarea:focus,
.bwk-client-notes select:focus,
.bwk-report-grid select:focus,
.bwk-report-grid input:focus {
  border-color: var(--bwk-primary);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.16);
  outline: none;
}

.bwk-client-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--bwk-border);
  border-radius: 12px;
  background: var(--bwk-surface);
  box-shadow: var(--bwk-shadow-soft);
}

.bwk-client-filter select,
.bwk-client-filter input {
  min-width: 150px;
}

.bwk-export-form {
  margin-bottom: 14px;
}

.bwk-report-grid {
  width: 100%;
  max-width: none;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
}

.bwk-report-grid p {
  margin: 0;
}

.bwk-report-grid p.full {
  grid-column: 1 / -1;
}

.bwk-client-card,
.bwk-client-notes {
  padding: 14px;
  margin-bottom: 14px;
}

.bwk-client-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.bwk-client-detail-sortable .bwk-detail-card {
  position: relative;
}

.bwk-client-detail-sortable .bwk-detail-card > h2,
.bwk-client-detail-sortable .bwk-detail-card > h3 {
  padding-right: 86px;
}

.bwk-card-drag-handle {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, #0a84ff, #0061cc);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: grab;
  line-height: 1;
}

.bwk-card-drag-handle .dashicons {
  width: 14px;
  height: 14px;
  font-size: 14px;
}

.bwk-card-drag-handle:focus-visible {
  outline: 2px solid #98c7f2;
  outline-offset: 1px;
}

.bwk-client-detail-sortable .bwk-detail-card.is-sorting .bwk-card-drag-handle,
.bwk-card-drag-handle:active {
  cursor: grabbing;
}

.bwk-client-detail-sortable .bwk-detail-card.ui-sortable-helper {
  box-shadow: 0 16px 30px rgba(19, 51, 87, 0.22);
}

.bwk-detail-card-placeholder {
  border: 2px dashed #99c2e8;
  border-radius: 12px;
  min-height: 130px;
  background: rgba(158, 195, 230, 0.2);
}

.bwk-client-detail-grid .bwk-client-card,
.bwk-client-detail-grid .bwk-client-notes {
  margin-bottom: 0;
}

.bwk-client-detail-grid-fixed {
  align-items: stretch;
}

.bwk-client-detail-grid-fixed .bwk-client-detail-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
}

.bwk-client-detail-grid-fixed .bwk-client-detail-col .bwk-client-card,
.bwk-client-detail-grid-fixed .bwk-client-detail-col .bwk-client-notes {
  margin-bottom: 0;
}

.bwk-client-detail-grid-fixed .bwk-client-detail-col-right .bwk-detail-card {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.bwk-client-detail-grid-fixed .bwk-client-detail-col-right .bwk-detail-card form {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.bwk-client-detail-grid-fixed .bwk-client-detail-col-right .bwk-detail-card form > p:last-child {
  margin-top: auto;
}

.bwk-client-detail-grid .bwk-client-notes textarea,
.bwk-client-detail-grid .bwk-client-notes select,
.bwk-client-detail-grid .bwk-action-grid {
  max-width: none;
}

.bwk-client-card p {
  margin: 8px 0;
}

.bwk-client-notes textarea,
.bwk-client-notes select {
  max-width: 540px;
}

.bwk-clients-table {
  margin-top: 10px;
}

.bwk-crm-wrap .bwk-client-timeline-table {
  width: 100%;
  max-width: none;
  table-layout: auto;
  margin-top: 10px;
}

.bwk-crm-wrap .bwk-client-timeline-table td {
  vertical-align: top;
}

.bwk-crm-wrap .bwk-client-timeline-table td:last-child {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.bwk-crm-wrap .widefat {
  border: 1px solid var(--bwk-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--bwk-shadow-soft);
}

.bwk-crm-wrap .widefat thead th {
  background: #edf5ff;
  color: #274261;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bwk-crm-wrap .widefat td,
.bwk-crm-wrap .widefat th {
  border-bottom-color: #e7eef7;
}

.bwk-crm-wrap .widefat tbody tr:hover {
  background: #f8fbff;
}

.bwk-pagination {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0;
}

.bwk-pagination li {
  list-style: none;
}

.bwk-pagination a,
.bwk-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid var(--bwk-border);
  background: #fff;
  color: var(--bwk-text-soft);
  text-decoration: none;
}

.bwk-pagination .current {
  border-color: transparent;
  background: linear-gradient(135deg, var(--bwk-primary), var(--bwk-primary-strong));
  color: #fff;
}

.bwk-crm-wrap .button {
  border-radius: 10px;
  min-height: 36px;
  line-height: 34px;
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #2d76c7, #1f5ea7);
  box-shadow: none;
}

.bwk-crm-wrap .button.button-primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--bwk-primary), var(--bwk-primary-strong));
  color: #fff;
}

.bwk-crm-wrap .button:visited {
  color: #fff;
}

.bwk-crm-wrap .button.button-primary:hover {
  filter: brightness(1.04);
}

.bwk-crm-wrap .button.button-secondary,
.bwk-crm-wrap .button:not(.button-primary) {
  border-color: transparent;
  background: linear-gradient(135deg, #2d76c7, #1f5ea7);
  color: #fff;
}

.bwk-crm-wrap .notice {
  border-radius: 10px;
  box-shadow: var(--bwk-shadow-soft);
}

.bwk-crm-shortcode-wrap {
  width: 100%;
  max-width: none;
  margin: 18px 0 22px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: #cddff1;
  box-shadow: 0 16px 30px rgba(11, 38, 74, 0.12);
}

.bwk-crm-shortcode-wrap::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 96px;
  background:
    radial-gradient(circle at 12% 40%, rgba(10, 132, 255, 0.25), transparent 36%),
    radial-gradient(circle at 88% 0%, rgba(12, 166, 120, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0));
  pointer-events: none;
  z-index: 0;
}

.bwk-crm-shortcode-wrap > * {
  position: relative;
  z-index: 1;
}

.bwk-crm-shortcode-wrap h2 {
  margin-bottom: 6px;
  font-size: clamp(1.32rem, 1.65vw, 1.65rem);
}

.bwk-crm-wrap.bwk-crm-kanban-wide > h1,
.bwk-crm-shortcode-wrap.bwk-staff-dashboard-wrap > h2 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 30px;
  line-height: 1.1;
}

.bwk-shortcode-lead {
  margin: 0 0 14px;
  max-width: 780px;
  color: #365471 !important;
  font-weight: 600;
}

.bwk-shortcode-panel {
  border: 1px solid #c9def3;
  border-radius: 14px;
  background: linear-gradient(180deg, #fafdff 0%, #f1f7ff 100%);
  padding: 12px;
  box-shadow: 0 8px 18px rgba(13, 39, 74, 0.08);
}

.bwk-shortcode-form {
  margin-top: 10px;
}

.bwk-crm-shortcode-message {
  border: 1px solid #c3dbf4;
  background: linear-gradient(180deg, #ffffff 0%, #f5faff 100%);
  padding: 14px;
  border-radius: 12px;
  color: #284767;
  box-shadow: 0 10px 18px rgba(12, 44, 85, 0.1);
}

.bwk-shortcode-login .bwk-staff-login-card {
  border: 1px solid #c8dcf0;
  border-radius: 16px;
  padding: 18px 18px 16px;
  background:
    radial-gradient(circle at 90% 8%, rgba(10, 132, 255, 0.15), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
  box-shadow: 0 14px 28px rgba(12, 44, 85, 0.12);
}

.bwk-shortcode-login .bwk-staff-login-card p {
  margin: 0;
}

.bwk-shortcode-login .bwk-staff-login-identity {
  text-align: center;
  margin-bottom: 14px;
}

.bwk-shortcode-login .bwk-staff-login-name {
  margin: 0;
  font-size: 1.38rem;
  line-height: 1.2;
  color: #142b4a !important;
  font-weight: 780;
}

.bwk-shortcode-login .bwk-staff-login-scope {
  margin: 6px 0 0;
  font-size: 1rem;
  line-height: 1.35;
  color: #4e6482 !important;
  font-weight: 650;
}

.bwk-shortcode-login .bwk-staff-open-dashboard {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid #1a8a9d;
  background: linear-gradient(135deg, #1693a8, #117489);
  color: #fff !important;
  font-weight: 740;
  text-decoration: none !important;
  box-shadow: 0 5px 12px rgba(17, 116, 137, 0.2);
  transition: filter 0.16s ease, box-shadow 0.16s ease;
}

.bwk-shortcode-login .bwk-staff-open-dashboard:visited {
  color: #fff !important;
}

.bwk-shortcode-login .bwk-staff-open-dashboard:hover,
.bwk-shortcode-login .bwk-staff-open-dashboard:focus-visible {
  filter: brightness(1.03);
  text-decoration: none !important;
  outline: none;
  box-shadow: 0 8px 16px rgba(17, 116, 137, 0.24);
}

.bwk-shortcode-login .bwk-staff-login-card .login-username label,
.bwk-shortcode-login .bwk-staff-login-card .login-password label {
  display: block;
  margin-bottom: 6px;
  color: #2b4d70;
  font-weight: 760;
}

.bwk-shortcode-login .bwk-staff-login-card input[type="text"],
.bwk-shortcode-login .bwk-staff-login-card input[type="password"] {
  width: 100%;
  max-width: none;
  min-height: 42px;
  border: 1px solid #bfd7ed;
  border-radius: 11px;
  padding: 0 12px;
  background: #fdfefe;
}

.bwk-shortcode-login .bwk-staff-login-card input[type="text"]:focus,
.bwk-shortcode-login .bwk-staff-login-card input[type="password"]:focus {
  border-color: #0a84ff;
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.16);
  outline: none;
}

.bwk-shortcode-login .bwk-staff-login-card input[type="submit"] {
  width: 100%;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: linear-gradient(135deg, #0a84ff, #0061cc);
  color: #fff;
  font-weight: 760;
  text-shadow: none;
  box-shadow: 0 10px 18px rgba(10, 97, 204, 0.28);
}

.bwk-shortcode-login .bwk-staff-login-card input[type="submit"]:hover,
.bwk-shortcode-login .bwk-staff-login-card input[type="submit"]:focus-visible {
  filter: brightness(1.04);
  outline: none;
}

.bwk-shortcode-login.bwk-staff-login-wrap {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.bwk-shortcode-login .bwk-staff-login-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #fff !important;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  box-shadow: 0 4px 10px rgba(26, 42, 65, 0.16);
  transition: filter 0.16s ease, box-shadow 0.16s ease;
}

.bwk-shortcode-login .bwk-staff-login-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 10px;
}

.bwk-shortcode-login .bwk-staff-login-actions .bwk-staff-quick-dashboard {
  border-color: #2d6fa9;
  background: linear-gradient(135deg, #3f7eb6, #2f6798);
}

.bwk-shortcode-login .bwk-staff-login-actions .bwk-staff-quick-logout {
  border-color: #60758d;
  background: linear-gradient(135deg, #7188a2, #5e748c);
}

.bwk-shortcode-login .bwk-staff-login-actions a:visited {
  color: #fff !important;
}

.bwk-shortcode-login .bwk-staff-login-actions a:hover {
  text-decoration: none;
  filter: brightness(1.03);
  box-shadow: 0 7px 14px rgba(26, 42, 65, 0.2);
}

.bwk-shortcode-scan .bwk-scan-upload {
  margin-bottom: 14px;
}

.bwk-shortcode-scan #bwk-scan-status {
  margin-bottom: 0;
  color: #2b4d70;
}

.bwk-shortcode-dashboard .bwk-shortcode-filter {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid #cfe0f2;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
  box-shadow: 0 8px 16px rgba(13, 35, 68, 0.08);
}

.bwk-shortcode-dashboard .bwk-shortcode-filter input,
.bwk-shortcode-dashboard .bwk-shortcode-filter select {
  max-width: none;
}

.bwk-shortcode-dashboard .bwk-shortcode-filter .button {
  width: 100%;
  text-align: center;
}

.bwk-shortcode-section {
  margin-top: 12px;
}

.bwk-shortcode-section .bwk-shortcode-table {
  width: 100%;
  min-width: 760px;
  table-layout: auto;
}

.bwk-shortcode-section {
  overflow-x: auto;
}

.bwk-shortcode-table tbody td:first-child {
  color: #163657;
  font-weight: 700;
}

.bwk-shortcode-table td .button {
  border-radius: 999px;
  padding: 0 12px;
}

.bwk-shortcode-detail .bwk-client-card {
  background:
    radial-gradient(circle at 88% 12%, rgba(10, 132, 255, 0.12), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.bwk-shortcode-detail .bwk-client-card p {
  margin: 8px 0;
}

.bwk-shortcode-detail .bwk-client-notes {
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.bwk-shortcode-detail .bwk-back-dashboard-btn,
.bwk-shortcode-detail .bwk-back-dashboard-btn:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #0b1320 !important;
  border-radius: 10px;
  background: linear-gradient(135deg, #1f2937, #111827) !important;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 760;
  box-shadow: 0 10px 18px rgba(11, 19, 32, 0.28);
}

.bwk-shortcode-detail .bwk-back-dashboard-btn:hover,
.bwk-shortcode-detail .bwk-back-dashboard-btn:focus-visible {
  filter: brightness(1.06);
  color: #fff !important;
  text-decoration: none !important;
  outline: none;
}

.bwk-shortcode-detail .bwk-task-checklist {
  background: linear-gradient(180deg, #f7fbff 0%, #eff6ff 100%);
  border-color: #c6dcf1;
}

@keyframes bwk-fade-up {
  from {
    transform: translateY(10px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes bwk-urgent-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(143, 17, 17, 0.2), 0 6px 12px rgba(143, 17, 17, 0.12);
  }

  50% {
    box-shadow: 0 0 0 2px rgba(143, 17, 17, 0.32), 0 10px 16px rgba(143, 17, 17, 0.2);
  }
}

@media (max-width: 1280px) {
  .bwk-kanban-board {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  }
}

@media (max-width: 980px) {
  .bwk-crm-wrap {
    padding: 14px;
    border-radius: 14px;
  }

  .bwk-kanban-board {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .bwk-form-grid,
  .bwk-report-grid {
    grid-template-columns: 1fr;
  }

  .bwk-client-detail-grid {
    grid-template-columns: 1fr;
  }

  .bwk-client-filter {
    flex-direction: column;
    align-items: flex-start;
  }

  .bwk-client-filter select,
  .bwk-client-filter input {
    width: 100%;
    max-width: 380px;
  }
}

@media (max-width: 620px) {
  .bwk-kanban-board {
    grid-template-columns: 1fr;
  }
}

.bwk-camera-shell {
  border: 1px solid #c5d8ec;
  border-radius: 12px;
  background: linear-gradient(180deg, #f9fcff 0%, #eff6ff 100%);
  padding: 12px;
  margin-bottom: 12px;
}

.bwk-camera-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.bwk-camera-actions .button {
  flex: 1 1 100%;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  font-weight: 730;
  letter-spacing: 0.01em;
}

.bwk-camera-open.button {
  order: 1;
}

.bwk-camera-capture.button.button-primary {
  order: 2;
  flex: 1 1 100%;
  min-height: 48px;
  font-size: 15px;
  font-weight: 760;
  box-shadow: 0 10px 16px rgba(10, 97, 204, 0.2);
}

.bwk-camera-flash.button,
.bwk-camera-stop.button {
  flex: 1 1 calc(50% - 4px);
  min-height: 36px;
  font-size: 13px;
  border-color: #a9c6e3 !important;
  background: linear-gradient(135deg, #6e88a8, #4d6787) !important;
  color: #fff !important;
}

.bwk-camera-flash.button {
  order: 3;
}

.bwk-camera-stop.button {
  order: 4;
}

.bwk-camera-flash.button:disabled,
.bwk-camera-stop.button:disabled {
  display: none !important;
}

.bwk-camera-capture.button.button-primary:disabled {
  opacity: 0.72;
  box-shadow: none;
}

.bwk-camera-flash.is-active {
  border-color: transparent !important;
  background: linear-gradient(135deg, #11b87a, #0e9565) !important;
  color: #fff !important;
}

.bwk-camera-preview {
  width: 100%;
  display: none;
  background: #0b1220;
  border-radius: 10px;
  border: 1px solid #b7cee6;
  max-height: 360px;
  object-fit: cover;
}

.bwk-camera-shell.is-active .bwk-camera-preview {
  display: block;
}

@media (max-width: 620px) {
  .bwk-camera-flash.button,
  .bwk-camera-stop.button {
    flex: 1 1 100%;
  }

  .bwk-shortcode-scan > h2,
  .bwk-staff-dashboard-wrap #bwk-staff-scan > h3 {
    margin: 0 0 10px;
    font-size: 33px !important;
    line-height: 1.08;
    letter-spacing: -0.012em;
  }

  .bwk-shortcode-scan > .bwk-shortcode-lead,
  .bwk-staff-dashboard-wrap #bwk-staff-scan > .bwk-shortcode-lead {
    margin: 0 0 14px;
    max-width: none;
    font-size: 20px !important;
    line-height: 1.34;
    font-weight: 640;
  }
}

.bwk-crm-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  margin: 0 0 18px;
  padding: 0;
  border: 1px solid var(--bwk-border);
  border-radius: 14px;
  overflow: hidden;
  background: #edf4fc;
}

.bwk-crm-tabs .nav-tab {
  margin: 0 !important;
  float: none;
  flex: 1 1 112px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
  background: linear-gradient(135deg, #2d76c7, #1f5ea7);
  color: #fff;
  font-weight: 700;
  padding: 10px 12px;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.bwk-crm-tabs .nav-tab:last-child {
  border-right: 0;
}

.bwk-crm-tabs .nav-tab:hover {
  filter: brightness(1.06);
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.22);
}

.bwk-crm-tabs .nav-tab.nav-tab-active,
.bwk-crm-tabs .nav-tab.nav-tab-active:focus,
.bwk-crm-tabs .nav-tab.nav-tab-active:focus:active,
.bwk-crm-tabs .nav-tab.nav-tab-active:hover {
  border-color: transparent;
  background: linear-gradient(135deg, #0a84ff, #0061cc);
  color: #fff;
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.24);
}

.bwk-live-drawer {
  position: relative;
  z-index: 6;
}

.bwk-live-drawer-trigger {
  position: fixed;
  top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--bwk-live-drawer-offset-top, 14px));
  right: var(--bwk-live-drawer-offset-right, 14px);
  transform: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid #aac8e4;
  border-radius: 12px;
  background: linear-gradient(135deg, #0a84ff, #0061cc);
  color: #fff;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 14px 26px rgba(8, 40, 79, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  z-index: var(--bwk-live-drawer-trigger-z, 20);
}

.bwk-live-drawer-trigger:hover,
.bwk-live-drawer-trigger:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(8, 40, 79, 0.34);
  outline: none;
}

.bwk-live-drawer-trigger-label {
  white-space: nowrap;
}

.bwk-live-drawer-trigger .bwk-live-pill {
  min-width: 22px;
  height: 22px;
  background: rgba(255, 255, 255, 0.26);
  color: #fff;
}

.bwk-live-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 20, 36, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
  z-index: 2147483100;
}

.bwk-live-drawer-panel {
  position: fixed;
  top: var(--wp-admin--admin-bar--height, 0px);
  right: 0;
  width: min(500px, 96vw);
  height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
  display: flex;
  flex-direction: column;
  border-left: 1px solid #b8d3eb;
  background: linear-gradient(180deg, #f8fcff 0%, #edf6ff 100%);
  box-shadow: -20px 0 36px rgba(6, 25, 48, 0.24);
  transform: translateX(102%);
  transition: transform 0.26s ease;
  z-index: 2147483300;
}

.bwk-live-drawer-front .bwk-live-drawer-panel {
  top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--bwk-live-drawer-offset-top, 0px));
  height: calc(100vh - (var(--wp-admin--admin-bar--height, 0px) + var(--bwk-live-drawer-offset-top, 0px)));
}

.bwk-live-drawer-front .bwk-live-drawer-trigger {
  top: max(
    calc(var(--wp-admin--admin-bar--height, 0px) + var(--bwk-live-drawer-offset-top, 14px)),
    calc(env(safe-area-inset-top, 0px) + 8px)
  );
  right: max(var(--bwk-live-drawer-offset-right, 14px), calc(env(safe-area-inset-right, 0px) + 8px));
}

.bwk-live-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #c9dff2;
  background: linear-gradient(180deg, #ffffff 0%, #f3f9ff 100%);
}

.bwk-live-drawer-head h3 {
  margin: 0;
  color: #15385d;
  font-size: 15px;
}

.bwk-live-drawer-close {
  appearance: none;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, #2d76c7, #1f5ea7);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.bwk-live-drawer-close:hover,
.bwk-live-drawer-close:focus-visible {
  filter: brightness(1.06);
  outline: none;
}

.bwk-live-drawer .bwk-live-panels {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 10px;
  margin: 0;
  padding: 12px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.bwk-live-panels {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 12px;
  margin: 0;
  padding: 12px;
}

.bwk-live-drawer.is-open .bwk-live-drawer-overlay {
  opacity: 1;
  pointer-events: auto;
}

.bwk-live-drawer.is-open .bwk-live-drawer-panel {
  transform: translateX(0);
}

.bwk-live-drawer.is-open .bwk-live-drawer-trigger {
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
}

body.bwk-live-drawer-open {
  overflow: hidden;
}

@media (max-width: 980px) {
  .bwk-live-drawer-panel {
    width: min(460px, 100vw);
  }

  .bwk-live-drawer-trigger {
    top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--bwk-live-drawer-offset-top, 12px));
    right: var(--bwk-live-drawer-offset-right, 10px);
  }

  .bwk-live-drawer-front .bwk-live-drawer-trigger {
    top: max(
      calc(var(--wp-admin--admin-bar--height, 0px) + var(--bwk-live-drawer-offset-top, 10px)),
      calc(env(safe-area-inset-top, 0px) + 8px)
    );
    right: max(var(--bwk-live-drawer-offset-right, 10px), calc(env(safe-area-inset-right, 0px) + 8px));
  }

  .bwk-live-drawer-trigger:hover,
  .bwk-live-drawer-trigger:focus-visible {
    transform: translateY(-2px);
  }

  .bwk-live-drawer.is-open .bwk-live-drawer-trigger {
    transform: translateY(4px);
  }
}

@media (max-width: 620px) {
  .bwk-live-drawer-panel {
    width: 100vw;
  }

  .bwk-live-drawer-head {
    padding: 12px;
  }

  .bwk-live-drawer-trigger {
    right: var(--bwk-live-drawer-offset-right, 8px);
    top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--bwk-live-drawer-offset-top, 8px));
    padding: 8px 10px;
    font-size: 11px;
  }

  .bwk-live-drawer-front .bwk-live-drawer-trigger {
    right: max(0px, env(safe-area-inset-right, 0px));
    top: 50%;
    transform: translateY(-50%);
    padding: 10px 8px;
    min-width: 46px;
    max-width: 52px;
    min-height: 148px;
    border-radius: 12px 0 0 12px;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }

  .bwk-live-drawer-front .bwk-live-drawer-trigger-label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    letter-spacing: 0.05em;
    line-height: 1;
    white-space: nowrap;
  }

  .bwk-live-drawer-front .bwk-live-drawer-trigger .bwk-live-pill {
    min-width: 24px;
    height: 24px;
  }

  .bwk-live-drawer-front .bwk-live-drawer-trigger:hover,
  .bwk-live-drawer-front .bwk-live-drawer-trigger:focus-visible {
    transform: translateY(-50%);
  }

  .bwk-live-drawer-front.is-open .bwk-live-drawer-trigger {
    transform: translateY(-50%) translateX(8px);
  }
}

.bwk-live-panel {
  border: 1px solid #cddff1;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
  box-shadow: 0 8px 18px rgba(13, 35, 68, 0.08);
  padding: 16px;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.bwk-live-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.bwk-live-panel-head h3 {
  margin: 0;
  font-size: 1.18rem;
}

.bwk-live-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.16);
  color: #0452ab;
  font-size: 12px;
  font-weight: 800;
}

.bwk-live-compact-note {
  margin: 0 0 12px !important;
  font-size: 13px !important;
  line-height: 1.52;
  color: #617b9a !important;
}

.bwk-live-accordion {
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: none;
  overflow: visible;
  padding-right: 0;
  min-height: 0;
}

.bwk-live-feed-item {
  border: 1px solid #d8e6f4;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
  box-shadow: 0 8px 16px rgba(13, 35, 68, 0.08);
  overflow: visible;
}

.bwk-live-feed-item-unread {
  border-color: #c7dcf4;
  background: linear-gradient(180deg, #ffffff 0%, #f5faff 100%);
}

.bwk-live-feed-item-read {
  border-color: #e2e8f0;
  background: #f2f4f7;
  box-shadow: none;
}

.bwk-live-feed-item-read .bwk-live-jump {
  background: #f2f4f7;
}

.bwk-live-feed-item-read .bwk-live-acc-title {
  color: #66788e;
}

.bwk-live-feed-item-read .bwk-live-acc-title strong {
  color: #576a80;
}

.bwk-live-feed-item-read .bwk-live-acc-meta,
.bwk-live-feed-item-read .bwk-live-acc-location,
.bwk-live-feed-item-read .bwk-live-acc-note {
  color: #7f8fa3 !important;
}

.bwk-live-jump {
  appearance: none;
  width: 100%;
  border: 0;
  margin: 0;
  padding: 14px 15px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 56px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  align-items: flex-start;
  justify-content: flex-start;
  line-height: 1.4;
}

button.bwk-live-jump,
.bwk-live-feed-item button.bwk-live-jump {
  height: auto !important;
  border-radius: 0;
}

.bwk-live-feed-item .bwk-live-jump > span {
  display: block !important;
  width: 100%;
}

.bwk-live-jump:hover,
.bwk-live-jump:focus-visible {
  background: #f2f8ff;
  outline: none;
}

.bwk-live-feed-item-read .bwk-live-jump:hover,
.bwk-live-feed-item-read .bwk-live-jump:focus-visible {
  background: #eceff3;
}

.bwk-live-acc-title {
  display: block;
  margin: 0;
  font-size: 16px;
  line-height: 1.38;
  color: #17385b;
  white-space: normal;
  word-break: break-word;
}

.bwk-live-acc-meta {
  display: block;
  margin-top: 1px;
  font-size: 13px;
  color: #5d7390;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.bwk-live-acc-note {
  display: block;
  margin: 0;
  color: #355678 !important;
  font-size: 13px;
  line-height: 1.58;
}

.bwk-live-acc-location {
  display: block;
  margin: 1px 0 0;
  color: #4f6d90 !important;
  font-size: 13px;
  font-weight: 700;
}

.bwk-live-panel-audit {
  display: none !important;
}

@media (max-width: 620px) {
  .bwk-live-panel {
    padding: 12px;
    border-radius: 12px;
  }

  .bwk-live-accordion {
    gap: 10px;
    margin-top: 6px;
  }

  .bwk-live-feed-item {
    border-radius: 12px;
  }

  .bwk-live-feed-item .bwk-live-jump {
    padding: 12px;
    min-height: 52px;
    gap: 5px;
  }

  .bwk-live-feed-item .bwk-live-acc-title {
    font-size: 15px;
    line-height: 1.35;
  }

  .bwk-live-feed-item .bwk-live-acc-meta,
  .bwk-live-feed-item .bwk-live-acc-location,
  .bwk-live-feed-item .bwk-live-acc-note {
    font-size: 12px;
    line-height: 1.45;
  }
}

.bwk-live-empty {
  margin: 10px 0 0;
  color: #58708f !important;
}

.bwk-notification-read-form {
  margin-top: 12px;
}

.bwk-kanban-board.is-jump-target {
  box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.24);
}

.bwk-kanban-column.is-jump-target {
  box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.34), 0 10px 20px rgba(9, 28, 53, 0.14);
}

.bwk-kanban-cards.is-jump-target {
  background: linear-gradient(180deg, #f7fbff 0%, #eef6ff 100%);
}

.bwk-kanban-card.is-jump-target {
  border-color: #0a84ff;
  box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.28), 0 12px 20px rgba(10, 48, 92, 0.15);
}

.bwk-stage-picker-form,
.bwk-stage-add-form {
  margin-top: 10px;
}

.bwk-stage-table {
  margin-top: 10px;
}

.bwk-stage-inline-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bwk-stage-inline-form input[type="text"] {
  width: 100%;
  min-height: 36px;
  border-radius: 9px;
  border: 1px solid #c5d8ec;
  padding: 0 10px;
}

.bwk-priority-wrap {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #d3e2f2;
}

.bwk-priority-wrap label {
  display: block;
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #4f6885;
  font-weight: 700;
}

.bwk-priority-select {
  width: 100%;
  min-height: 34px;
  border-radius: 9px;
  border: 1px solid #bdd4ea;
  background: #fff;
  color: #1f334a;
}

.bwk-priority-select:focus {
  border-color: var(--bwk-primary);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.16);
  outline: none;
}

.bwk-summary-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.bwk-summary-lead {
  margin: 0 0 12px;
  color: #385a7d !important;
  font-weight: 600;
}

.bwk-summary-card {
  border: 1px solid var(--bwk-border);
  border-radius: 14px;
  background:
    radial-gradient(circle at 85% 10%, rgba(10, 132, 255, 0.16), transparent 45%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  padding: 14px;
  box-shadow: var(--bwk-shadow-soft);
}

.bwk-summary-card h3 {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #365b84;
}

.bwk-summary-card p {
  margin: 8px 0 0;
  font-size: clamp(1.4rem, 2vw, 2rem);
  color: #0f253e;
  font-weight: 760;
}

.bwk-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 14px;
}

.bwk-summary-insights {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.bwk-summary-insight {
  border: 1px solid #cbdff2;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
  padding: 12px 14px;
  box-shadow: 0 7px 16px rgba(13, 35, 68, 0.08);
}

.bwk-summary-insight h3 {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #3a5f87;
}

.bwk-summary-insight p {
  margin: 8px 0 2px;
  font-size: 1.1rem;
  line-height: 1.25;
  font-weight: 760;
  color: #102a46;
}

.bwk-summary-insight small {
  color: #587595;
  font-size: 11px;
}

.bwk-summary-grid .bwk-summary-chart-card {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.bwk-summary-grid .bwk-summary-chart-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.bwk-summary-chart-wrap {
  position: relative;
  height: clamp(220px, 30vh, 320px);
  min-height: 220px;
  max-height: 320px;
}

.bwk-summary-chart-wrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
}

.bwk-staff-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  margin-bottom: 6px;
  border: 1px solid #dce9f7;
  border-radius: 10px;
  background: #f8fbff;
}

.bwk-staff-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.bwk-staff-delete-form {
  margin: 0;
}

.bwk-staff-delete-btn.button.button-small {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #d23f3f, #a32020);
}

.bwk-staff-delete-btn.button.button-small:hover,
.bwk-staff-delete-btn.button.button-small:focus-visible {
  filter: brightness(1.06);
}

.bwk-staff-self-note {
  font-size: 11px;
  font-weight: 700;
}

.bwk-staff-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.bwk-staff-status-active {
  background: #e9fbf3;
  border-color: #bdeed7;
  color: #056242;
}

.bwk-staff-status-probation {
  background: #edf5ff;
  border-color: #c7dcfb;
  color: #1b4c8c;
}

.bwk-staff-status-offday {
  background: #fff6de;
  border-color: #f7e0a3;
  color: #9d6700;
}

.bwk-staff-status-on_leave {
  background: #f5f0ff;
  border-color: #dacbff;
  color: #5d36b3;
}

.bwk-staff-status-blocked,
.bwk-staff-status-resigned {
  background: #ffe6e6;
  border-color: #f7bdbd;
  color: #9d1d1d;
}

.bwk-staff-share-card {
  border-color: #bfe2cf;
  background:
    radial-gradient(circle at 92% 14%, rgba(12, 166, 120, 0.18), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #f4fff9 100%);
}

.bwk-staff-share-card h3 {
  color: #0d5f45;
}

.bwk-staff-share-card p {
  margin: 8px 0;
}

.bwk-staff-share-card code {
  background: #eef7ff;
  border: 1px solid #c9ddef;
  border-radius: 7px;
  padding: 1px 6px;
  color: #21466f;
}

.bwk-whatsapp-share-btn.button.button-primary {
  background: linear-gradient(135deg, #11b87a, #0e9565);
}

.bwk-whatsapp-share-btn.button.button-primary:hover {
  filter: brightness(1.04);
}

.bwk-client-notes h3,
.bwk-client-card h3 {
  margin-top: 0;
}

.bwk-client-notes form p,
.bwk-client-card form p {
  margin: 8px 0;
}

.bwk-client-notes form label,
.bwk-client-card form label {
  display: block;
  color: var(--bwk-text-soft);
  font-weight: 600;
}

.bwk-client-notes select,
.bwk-client-notes input[type="text"],
.bwk-client-notes textarea {
  width: 100%;
  max-width: none;
}

.bwk-clients-table td .button {
  margin-right: 4px;
}

@media (max-width: 1100px) {
  .bwk-summary-cards {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .bwk-summary-insights {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .bwk-summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .bwk-crm-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .bwk-crm-tabs::-webkit-scrollbar {
    height: 7px;
  }

  .bwk-crm-tabs::-webkit-scrollbar-track {
    background: #e7eff8;
  }

  .bwk-crm-tabs::-webkit-scrollbar-thumb {
    background: #b4c9df;
    border-radius: 999px;
  }

  .bwk-crm-tabs .nav-tab {
    flex: 0 0 auto;
    min-width: 136px;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  .bwk-summary-cards {
    grid-template-columns: 1fr;
  }

  .bwk-summary-insights {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .bwk-crm-tabs .nav-tab {
    min-width: 124px;
  }
}

.bwk-staff-login-wrap {
  max-width: none;
  width: 100%;
}

.bwk-staff-login-card {
  border: 1px solid var(--bwk-border);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: var(--bwk-shadow-soft);
  padding: 16px;
}

.bwk-staff-login-card .login-username,
.bwk-staff-login-card .login-password,
.bwk-staff-login-card .login-remember,
.bwk-staff-login-card .login-submit {
  margin: 0 0 10px;
}

.bwk-staff-login-card .login-username label,
.bwk-staff-login-card .login-password label {
  display: block;
  margin-bottom: 5px;
  font-weight: 700;
  color: #284768;
}

.bwk-staff-login-card input[type="text"],
.bwk-staff-login-card input[type="password"] {
  width: 100%;
  max-width: 360px;
  min-height: 40px;
  border: 1px solid #c5d8ec;
  border-radius: 10px;
}

.bwk-staff-login-card input[type="submit"] {
  border-color: transparent;
  background: linear-gradient(135deg, #0a84ff, #0061cc);
  color: #fff;
  border-radius: 10px;
  min-height: 36px;
  padding: 0 14px;
}

.bwk-staff-login-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.bwk-staff-login-actions a {
  color: #0a63c8;
  text-decoration: none;
  font-weight: 600;
}

.bwk-staff-login-actions a:hover {
  text-decoration: underline;
}

.bwk-staff-dashboard-wrap {
  max-width: none;
  width: 100%;
}

.bwk-staff-dashboard-nav {
  margin-bottom: 12px;
}

.bwk-staff-dashboard-nav .nav-tab,
.bwk-shortcode-dashboard .bwk-staff-dashboard-nav .nav-tab {
  min-height: 96px !important;
  padding-top: 30px !important;
  padding-bottom: 30px !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
  line-height: 1.15 !important;
  text-decoration: none !important;
}

.bwk-staff-dashboard-nav .nav-tab:visited,
.bwk-staff-dashboard-nav .nav-tab:hover,
.bwk-staff-dashboard-nav .nav-tab:focus-visible,
.bwk-shortcode-dashboard .bwk-staff-dashboard-nav .nav-tab:visited,
.bwk-shortcode-dashboard .bwk-staff-dashboard-nav .nav-tab:hover,
.bwk-shortcode-dashboard .bwk-staff-dashboard-nav .nav-tab:focus-visible {
  text-decoration: none !important;
}

.bwk-staff-dashboard-wrap #bwk-staff-kanban,
.bwk-staff-dashboard-wrap #bwk-staff-clients,
.bwk-staff-dashboard-wrap #bwk-staff-scan,
.bwk-staff-dashboard-wrap #bwk-staff-departments,
.bwk-staff-dashboard-wrap #bwk-staff-staff,
.bwk-staff-dashboard-wrap #bwk-staff-summary,
.bwk-staff-dashboard-wrap #bwk-staff-reports {
  scroll-margin-top: 18px;
}

.bwk-staff-dashboard-wrap .notice {
  margin: 10px 0;
}

.bwk-staff-dashboard-wrap .bwk-client-filter {
  margin-top: 8px;
  margin-bottom: 10px;
  padding: 10px;
  gap: 7px;
  border-radius: 11px;
}

.bwk-staff-dashboard-wrap .bwk-client-notes,
.bwk-staff-dashboard-wrap .bwk-client-card {
  margin-top: 10px;
}

.bwk-staff-dashboard-wrap .bwk-client-notes form,
.bwk-staff-dashboard-wrap .bwk-client-card form {
  max-width: none;
}

.bwk-staff-dashboard-wrap .bwk-shortcode-section {
  margin-top: 10px;
}

.bwk-staff-dashboard-wrap .bwk-shortcode-lead {
  margin-bottom: 10px;
  font-size: 13px;
}

.bwk-staff-dashboard-wrap #bwk-staff-summary {
  margin-top: 18px;
}

.bwk-staff-dashboard-wrap #bwk-staff-summary > h3 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 1.8vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 820;
  color: #102742;
}

.bwk-staff-dashboard-wrap #bwk-staff-summary .bwk-summary-lead {
  margin: 0 0 18px;
  max-width: 78ch;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 620;
  color: #45688b !important;
}

.bwk-staff-dashboard-wrap #bwk-staff-summary .bwk-summary-cards {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.bwk-staff-dashboard-wrap #bwk-staff-summary .bwk-summary-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #c7ddf2;
  border-radius: 16px;
  padding: 18px 20px;
  background: linear-gradient(145deg, #ffffff 0%, #f4f9ff 100%);
  box-shadow: 0 12px 26px rgba(9, 32, 60, 0.08);
}

.bwk-staff-dashboard-wrap #bwk-staff-summary .bwk-summary-card h3 {
  margin: 0 !important;
  font-size: clamp(0.98rem, 1.2vw, 1.28rem) !important;
  line-height: 1.14 !important;
  letter-spacing: 0.01em !important;
  font-weight: 780 !important;
  text-transform: none !important;
  color: #132a45 !important;
}

.bwk-staff-dashboard-wrap #bwk-staff-summary .bwk-summary-card p {
  margin: 10px 0 0 !important;
  font-size: clamp(1.65rem, 1.9vw, 2.1rem) !important;
  line-height: 1 !important;
  font-weight: 830 !important;
  letter-spacing: -0.03em !important;
  color: #0b223d !important;
}

.bwk-staff-dashboard-wrap #bwk-staff-summary .bwk-summary-insights {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.bwk-staff-dashboard-wrap #bwk-staff-summary .bwk-summary-insight {
  border: 1px solid #d0e2f4;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
  box-shadow: 0 9px 20px rgba(9, 32, 60, 0.07);
  padding: 16px 18px;
}

.bwk-staff-dashboard-wrap #bwk-staff-summary .bwk-summary-insight h3 {
  margin: 0 !important;
  font-size: 11px !important;
  font-weight: 760 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.09em;
  color: #4f7092 !important;
}

.bwk-staff-dashboard-wrap #bwk-staff-summary .bwk-summary-insight p {
  margin: 10px 0 3px !important;
  font-size: clamp(1.02rem, 1.25vw, 1.26rem) !important;
  line-height: 1.22 !important;
  font-weight: 760 !important;
  letter-spacing: -0.012em !important;
  color: #132b48 !important;
}

.bwk-staff-dashboard-wrap #bwk-staff-summary .bwk-summary-insight small {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #6783a3 !important;
}

.bwk-staff-dashboard-wrap #bwk-staff-summary .bwk-summary-grid {
  gap: 16px;
}

.bwk-staff-dashboard-wrap #bwk-staff-summary .bwk-summary-grid .bwk-summary-chart-card {
  border-radius: 16px;
  border: 1px solid #cfe0f2;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
  box-shadow: 0 10px 22px rgba(9, 32, 60, 0.08);
  padding: 18px;
}

.bwk-staff-dashboard-wrap #bwk-staff-summary .bwk-summary-grid .bwk-summary-chart-card h3 {
  margin: 0 0 10px !important;
  font-size: clamp(1rem, 1.2vw, 1.2rem) !important;
  line-height: 1.18 !important;
  font-weight: 790 !important;
  letter-spacing: -0.01em !important;
  color: #132b48 !important;
}

.bwk-staff-dashboard-wrap #bwk-staff-summary .bwk-summary-chart-wrap {
  height: clamp(250px, 34vh, 360px);
  min-height: 250px;
  max-height: 360px;
}

@media (max-width: 980px) {
  .bwk-staff-dashboard-wrap #bwk-staff-summary .bwk-summary-cards,
  .bwk-staff-dashboard-wrap #bwk-staff-summary .bwk-summary-insights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bwk-staff-dashboard-wrap #bwk-staff-summary .bwk-summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .bwk-staff-dashboard-wrap #bwk-staff-summary .bwk-summary-cards,
  .bwk-staff-dashboard-wrap #bwk-staff-summary .bwk-summary-insights {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .bwk-staff-dashboard-wrap #bwk-staff-summary .bwk-summary-card {
    padding: 15px 16px;
  }

  .bwk-staff-dashboard-wrap #bwk-staff-summary .bwk-summary-card h3 {
    font-size: clamp(0.98rem, 4.3vw, 1.2rem) !important;
  }

  .bwk-staff-dashboard-wrap #bwk-staff-summary .bwk-summary-card p {
    font-size: clamp(1.45rem, 8.5vw, 1.9rem) !important;
  }

  .bwk-staff-dashboard-wrap #bwk-staff-summary .bwk-summary-chart-wrap {
    height: 240px;
    min-height: 240px;
    max-height: 240px;
  }
}

.bwk-staff-dashboard-wrap .bwk-crm-board-title {
  margin-top: 16px;
  margin-bottom: 10px;
  padding: 5px 11px;
  font-size: 1.01rem;
}

.bwk-staff-dashboard-wrap .bwk-kanban-board {
  gap: 10px;
  margin-bottom: 14px;
}

.bwk-staff-dashboard-wrap .bwk-kanban-column {
  min-height: 170px;
}

.bwk-staff-dashboard-wrap .bwk-kanban-cards {
  min-height: 110px;
  padding: 8px;
  gap: 6px;
}

.bwk-staff-dashboard-wrap .bwk-kanban-card {
  border-radius: 10px;
  padding: 8px 9px;
}

.bwk-staff-dashboard-wrap .bwk-card-top h4 {
  font-size: 12.5px;
  line-height: 1.26;
}

.bwk-staff-dashboard-wrap .bwk-kanban-card p {
  font-size: 12px;
  line-height: 1.24;
}

.bwk-staff-dashboard-wrap .bwk-shortcode-table td,
.bwk-staff-dashboard-wrap .bwk-shortcode-table th {
  padding-top: 10px;
  padding-bottom: 10px;
}

.bwk-staff-dashboard-wrap #bwk-staff-clients .bwk-shortcode-table {
  width: 100%;
}

.bwk-staff-dashboard-wrap #bwk-staff-clients .bwk-shortcode-table th:last-child,
.bwk-staff-dashboard-wrap #bwk-staff-clients .bwk-shortcode-table td:last-child {
  min-width: 136px;
  white-space: nowrap;
}

.bwk-staff-dashboard-wrap #bwk-staff-clients .bwk-view-detail-btn,
.bwk-staff-dashboard-wrap #bwk-staff-clients .bwk-view-detail-btn:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  line-height: 1;
  font-size: 13px;
  font-weight: 720;
  text-decoration: none !important;
  white-space: nowrap;
}

.bwk-staff-dashboard-wrap #bwk-staff-clients .bwk-view-detail-btn:hover,
.bwk-staff-dashboard-wrap #bwk-staff-clients .bwk-view-detail-btn:focus-visible {
  text-decoration: none !important;
}

.bwk-staff-dashboard-wrap .bwk-shortcode-table td small {
  font-size: 11px;
  line-height: 1.2;
}

.bwk-staff-scan-section .bwk-scan-form {
  margin-top: 8px;
  padding: 12px;
}

.bwk-staff-scan-section .bwk-scan-upload {
  padding: 12px;
  margin-bottom: 12px;
}

.bwk-staff-scan-section .bwk-form-grid {
  gap: 10px;
}

.bwk-shortcode-steps {
  margin: 8px 0 0;
  padding-left: 18px;
}

.bwk-shortcode-steps li {
  margin-bottom: 8px;
}

/* Compact kanban mode */
.bwk-kanban-board {
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-bottom: 18px;
}

.bwk-kanban-column {
  min-height: 190px;
  border-radius: 12px;
  overflow: hidden;
}

.bwk-kanban-column > header {
  min-height: 42px;
  padding: 9px 10px;
}

.bwk-kanban-column > header h3 {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.bwk-count {
  min-width: 22px;
  height: 22px;
  font-size: 11px;
  padding: 0 7px;
}

.bwk-kanban-cards {
  min-height: 120px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.bwk-kanban-card {
  padding: 8px 9px;
  margin-bottom: 0;
  border-radius: 10px;
}

.bwk-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.bwk-card-top h4 {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  line-height: 1.28;
}

.bwk-kanban-card p {
  margin: 2px 0 0;
  line-height: 1.25;
  font-size: 12px;
}

.bwk-kanban-card p.company {
  color: #233d5a;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bwk-kanban-card p.meta {
  font-size: 11px;
  color: #607693;
}

.bwk-kanban-card .bwk-priority-wrap {
  display: none;
}

.bwk-priority-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  flex: 0 0 auto;
  margin-top: 1px;
  border: 1px solid transparent;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.bwk-priority-text {
  display: inline-block;
}

.bwk-priority-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

.bwk-priority-badge.bwk-priority-low {
  background: #e0f2ff;
  border-color: #b7e4ff;
  color: #075985;
}

.bwk-priority-badge.bwk-priority-medium {
  background: #fff2d6;
  border-color: #f9d58a;
  color: #9a5b00;
}

.bwk-priority-badge.bwk-priority-high {
  background: #ffe3ea;
  border-color: #fec9d5;
  color: #b42343;
}

.bwk-priority-badge.bwk-priority-urgent {
  background: #fee2e2;
  border-color: #f7b1b1;
  color: #991b1b;
  box-shadow: 0 0 0 1px rgba(153, 27, 27, 0.16);
}

.bwk-priority-badge.bwk-priority-urgent .bwk-priority-icon {
  background: #b91c1c;
  color: #fff;
}

.bwk-priority-badge.bwk-priority-urgent .bwk-priority-text {
  letter-spacing: 0.05em;
}

.bwk-remark-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bwk-remark-badge .bwk-remark-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.bwk-remark-badge.bwk-remark-won {
  background: #e6fbf1;
  border-color: #bcecd7;
  color: #0b6e4e;
}

.bwk-remark-badge.bwk-remark-failed {
  background: #fee9e9;
  border-color: #f4c0c0;
  color: #a12020;
}

.bwk-remark-badge.bwk-remark-urgent {
  background: linear-gradient(180deg, #fee2e2 0%, #ffd7d7 100%);
  border-color: #f4a8a8;
  color: #8f1111;
  box-shadow: 0 0 0 1px rgba(143, 17, 17, 0.2), 0 6px 12px rgba(143, 17, 17, 0.12);
}

.bwk-remark-badge.bwk-remark-urgent .bwk-remark-icon {
  background: #b91c1c;
  color: #fff;
}

.bwk-remark-badge.bwk-remark-urgent {
  animation: bwk-urgent-pulse 1.8s ease-in-out infinite;
}

.bwk-kanban-card.bwk-card-status-won {
  position: relative;
  overflow: hidden;
  padding-top: 30px;
  border-color: #9bdcc2;
  box-shadow: 0 0 0 1px rgba(11, 110, 78, 0.16), 0 6px 12px rgba(9, 33, 66, 0.08);
}

.bwk-kanban-card.bwk-card-status-won:hover {
  border-color: #76d0ac;
  box-shadow: 0 0 0 1px rgba(11, 110, 78, 0.2), 0 12px 18px rgba(9, 33, 66, 0.12);
}

.bwk-kanban-card.bwk-card-status-failed {
  position: relative;
  overflow: hidden;
  padding-top: 30px;
  border-color: #f0b1b1;
  box-shadow: 0 0 0 1px rgba(161, 32, 32, 0.13), 0 6px 12px rgba(9, 33, 66, 0.08);
}

.bwk-kanban-card.bwk-card-status-failed:hover {
  border-color: #e59090;
  box-shadow: 0 0 0 1px rgba(161, 32, 32, 0.2), 0 12px 18px rgba(9, 33, 66, 0.12);
}

.bwk-kanban-card.bwk-card-status-won::before,
.bwk-kanban-card.bwk-card-status-failed::before {
  content: attr(data-result-label);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 22px;
  display: flex;
  align-items: center;
  padding: 0 9px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
}

.bwk-kanban-card.bwk-card-status-won::before {
  background: linear-gradient(180deg, #e6fbf1 0%, #d5f5e7 100%);
  border-bottom-color: #b4e8d0;
  color: #0f6b4f;
}

.bwk-kanban-card.bwk-card-status-failed::before {
  background: linear-gradient(180deg, #feecec 0%, #fedddd 100%);
  border-bottom-color: #f3c2c2;
  color: #9d1d1d;
}

.bwk-card-result {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-top: 4px;
}

.bwk-card-result .bwk-remark-badge {
  min-height: 18px;
  padding: 0 7px;
  font-size: 10px;
}

.bwk-card-failed-reason {
  margin: 0;
  font-size: 11px;
  line-height: 1.3;
  color: #9d1d1d !important;
  word-break: break-word;
}

.bwk-card-failed-reason strong {
  font-weight: 800;
}

.bwk-kanban-column.bwk-stage-won > header {
  background: linear-gradient(180deg, #e6fbf1 0%, #d6f6ea 100%);
  border-bottom-color: #b3e8d4;
}

.bwk-kanban-column.bwk-stage-won > header h3 {
  color: #0b5f45;
}

.bwk-kanban-column.bwk-stage-won > header .bwk-count {
  background: rgba(6, 95, 70, 0.14);
  color: #065f46;
}

.bwk-kanban-column.bwk-stage-failed > header {
  background: linear-gradient(180deg, #feecec 0%, #fddede 100%);
  border-bottom-color: #f3c2c2;
}

.bwk-kanban-column.bwk-stage-failed > header h3 {
  color: #8f1d1d;
}

.bwk-kanban-column.bwk-stage-failed > header .bwk-count {
  background: rgba(143, 29, 29, 0.13);
  color: #8f1d1d;
}

.bwk-kanban-column.bwk-stage-handover > header {
  background: linear-gradient(180deg, #e9fbf0 0%, #d8f5e6 100%);
  border-bottom-color: #b6e6cb;
}

.bwk-kanban-column.bwk-stage-handover > header h3 {
  color: #0f6b4f;
}

.bwk-kanban-column.bwk-stage-handover > header .bwk-count {
  background: rgba(15, 107, 79, 0.14);
  color: #0f6b4f;
}

.bwk-handover-dropzone {
  min-height: 210px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 12px 16px 12px 12px;
}

.bwk-handover-card {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid #addfc2;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfffd 0%, #eefaf3 100%);
  padding: 14px 16px 14px 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 8px 18px rgba(15, 96, 70, 0.12);
}

.bwk-handover-title {
  margin: 0 0 10px;
  color: #0f704f !important;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 12px;
}

.bwk-handover-label {
  display: block;
  margin: 0 0 6px;
  color: #285f4b !important;
  font-size: 12px;
  font-weight: 700;
}

.bwk-handover-select-wrap {
  position: relative;
}

.bwk-handover-select-wrap::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #15674b;
  border-bottom: 2px solid #15674b;
  transform: translateY(-60%) rotate(45deg);
  pointer-events: none;
}

.bwk-handover-target {
  appearance: none;
  width: 100%;
  min-height: 42px;
  border: 1px solid #a9d9bf;
  border-radius: 11px;
  padding: 0 36px 0 12px;
  background: #fff;
  color: #1d3d32;
  font-weight: 700;
}

.bwk-handover-target:focus {
  border-color: #2db87d;
  box-shadow: 0 0 0 3px rgba(45, 184, 125, 0.22);
  outline: none;
}

.bwk-handover-help {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.35;
  color: #3c6a58 !important;
}

.bwk-handover-undo {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(15, 112, 79, 0.3);
}

.bwk-handover-undo-btn {
  width: 100%;
  min-height: 36px;
  border-color: transparent !important;
  color: #fff !important;
  background: linear-gradient(135deg, #1d8c64, #14744f) !important;
  font-weight: 700;
}

.bwk-handover-undo-btn:hover:not(:disabled),
.bwk-handover-undo-btn:focus:not(:disabled) {
  filter: brightness(1.06);
}

.bwk-handover-undo-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.bwk-handover-undo-meta {
  margin: 7px 0 0;
  font-size: 11px;
  color: #2f6a54 !important;
}

.bwk-handover-undo:not(.is-active) .bwk-handover-undo-meta:empty {
  display: none;
}

@media (max-width: 1280px) {
  .bwk-kanban-board {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  }
}

@media (max-width: 980px) {
  .bwk-kanban-board {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

@media (max-width: 620px) {
  .bwk-kanban-board {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

/* Action taken checklist layout */
.bwk-action-grid {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bwk-action-grid p {
  margin: 0;
}

.bwk-field-label {
  display: block;
  margin-bottom: 4px;
  color: var(--bwk-text-soft);
  font-weight: 700;
}

.bwk-failed-reason-wrap,
.bwk-urgent-reason-wrap {
  border: 1px solid #d8e6f4;
  border-radius: 10px;
  background: #f8fbff;
  padding: 10px;
}

.bwk-failed-reason-wrap.is-active {
  border-color: #f2c1c1;
  background: #fff6f6;
}

.bwk-urgent-reason-wrap.is-active {
  border-color: #f4b2b2;
  background: #fff1f1;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.08);
}

.bwk-urgent-reason-wrap .bwk-field-label {
  color: #8a1818;
}

.bwk-urgent-reason-input {
  border-color: #efb1b1 !important;
}

.bwk-task-checklist {
  border: 1px solid #cfe0f2;
  border-radius: 12px;
  background: #f7fbff;
  padding: 10px;
}

.bwk-task-checklist-label {
  display: block;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #33577f;
}

.bwk-task-list {
  margin-bottom: 8px;
}

.bwk-task-row {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 8px;
  align-items: center;
  margin: 0 0 7px;
}

.bwk-task-row:last-child {
  margin-bottom: 0;
}

.bwk-task-row input[type="text"] {
  max-width: none;
}

.bwk-task-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 24px;
  height: 24px;
  border: 1px solid #bcd4ea;
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}

.bwk-task-check input[type="checkbox"] {
  position: absolute;
  inset: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.bwk-task-right {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 6px;
  background: #d9e9f8;
  color: transparent;
  font-size: 13px;
  line-height: 1;
  transition: background 0.16s ease, color 0.16s ease;
}

.bwk-task-check input[type="checkbox"]:checked + .bwk-task-right {
  background: #0ca678;
  color: #fff;
}

.bwk-task-add {
  border-color: #bcd4ea !important;
  color: #1d4f80 !important;
  background: #ffffff !important;
}

.bwk-task-add:hover,
.bwk-task-add:focus {
  border-color: #8ab4de !important;
  color: #12385a !important;
  background: #f2f8ff !important;
}

.bwk-task-log-list {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.bwk-task-log-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0 0 3px;
}

.bwk-task-log-item:last-child {
  margin-bottom: 0;
}

.bwk-task-log-mark {
  display: inline-block;
  min-width: 14px;
  color: #68809f;
}

.bwk-task-log-item.is-done .bwk-task-log-mark {
  color: #0ca678;
}

.bwk-task-log-item.is-done .bwk-task-log-text {
  text-decoration: line-through;
  opacity: 0.8;
}

.bwk-kanban-card:focus-visible {
  outline: 2px solid #0a84ff;
  outline-offset: 2px;
}

.bwk-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(9, 20, 35, 0.48);
  backdrop-filter: blur(2px);
}

.bwk-modal-overlay.is-open {
  display: flex;
}

.bwk-modal-dialog {
  width: min(760px, calc(100vw - 24px));
  max-height: 88vh;
  border: 1px solid #c9dcef;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 30px 50px rgba(8, 25, 45, 0.24);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.bwk-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #d8e7f5;
  background: linear-gradient(180deg, #fbfdff 0%, #f3f8fe 100%);
}

.bwk-modal-title {
  margin: 0;
  font-size: 1.02rem;
}

.bwk-modal-subtitle {
  margin: 3px 0 0;
  font-size: 12px;
  color: #516b8a;
}

.bwk-modal-close {
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: linear-gradient(135deg, #2d76c7, #1f5ea7);
  color: #fff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  padding: 0;
}

.bwk-modal-close:hover {
  filter: brightness(1.06);
}

.bwk-modal-body {
  padding: 14px;
  overflow: auto;
}

.bwk-modal-loading,
.bwk-modal-error {
  margin: 0;
}

.bwk-modal-error {
  color: #b32626;
}

.bwk-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 8px;
}

.bwk-modal-field {
  border: 1px solid #d9e6f3;
  border-radius: 10px;
  background: #f9fcff;
  padding: 8px 9px;
}

.bwk-modal-field-label {
  display: block;
  margin: 0 0 3px;
  font-size: 11px;
  color: #577091;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.bwk-modal-field-value {
  margin: 0;
  color: #203750;
}

.bwk-modal-actions {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}

.bwk-modal-control-card {
  margin-top: 10px;
  border: 1px solid #d6e5f3;
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f9ff 100%);
  padding: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.bwk-modal-priority-label,
.bwk-modal-stage-label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 7px;
  color: #2f4f72;
  font-weight: 760;
  letter-spacing: 0.01em;
}

.bwk-modal-control-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.bwk-modal-priority-select,
.bwk-modal-stage-select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #b8cfe6;
  border-radius: 10px;
  background: #fff;
  color: #1d3552;
  padding: 0 12px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.bwk-modal-priority-select:focus,
.bwk-modal-stage-select:focus {
  outline: none;
  border-color: #4f96dd;
  box-shadow: 0 0 0 3px rgba(79, 150, 221, 0.16);
}

.bwk-modal-btn.button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.01em;
  color: #fff !important;
  text-shadow: none;
  box-shadow: 0 8px 14px rgba(25, 73, 126, 0.18);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.bwk-modal-btn.button:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.bwk-modal-btn.button:active {
  transform: translateY(0);
}

.bwk-modal-btn.button:disabled {
  opacity: 0.68;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.bwk-modal-btn-primary.button {
  background: linear-gradient(135deg, #0a84ff, #0061cc);
}

.bwk-modal-btn-stage.button {
  background: linear-gradient(135deg, #2d76c7, #1f5ea7);
}

.bwk-modal-priority-msg,
.bwk-modal-stage-msg {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #446689;
}

.bwk-modal-priority-msg.is-error,
.bwk-modal-stage-msg.is-error {
  color: #bc2f2f;
}

.bwk-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid #d8e7f5;
  background: #f8fbff;
}

.bwk-dept-delete-modal .bwk-modal-dialog {
  width: min(520px, calc(100vw - 24px));
}

.bwk-dept-delete-summary {
  margin: 0 0 10px;
  color: #1f3c5e !important;
}

.bwk-dept-delete-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (max-width: 760px) {
  .bwk-modal-grid {
    grid-template-columns: 1fr;
  }

  .bwk-modal-dialog {
    max-height: 92vh;
  }

  .bwk-modal-control-row {
    grid-template-columns: 1fr;
  }

  .bwk-modal-btn.button {
    width: 100%;
  }
}

.bwk-load-more-wrap {
  padding: 0 8px 8px;
}

.bwk-load-more-cards {
  width: 100%;
  min-height: 32px;
  border-radius: 10px;
  border-color: transparent;
  background: linear-gradient(135deg, #2d76c7, #1f5ea7);
  color: #fff;
  font-weight: 700;
}

.bwk-load-more-cards:hover {
  filter: brightness(1.06);
}

.bwk-load-more-cards:disabled {
  opacity: 0.65;
  cursor: wait;
}
