/* =========================================================
   TRIG CRM - CLEAN TRELLO-STYLE JOB ALLOCATION BOARD
   ========================================================= */

#viewJoballocation {
  padding-bottom: 18px;
}

/* Main Trello Canvas Wrapper */
.ja-trello-canvas {
  background: linear-gradient(155deg, #1b2845 0%, #274060 36%, #7d4e57 74%, #c07a53 100%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 125px);
}

/* Top Trello Workspace & Board Header */
.ja-topbar {
  background: rgba(11, 15, 25, 0.42);
  backdrop-filter: blur(12px);
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 1120px) {
  .ja-topbar {
    flex-wrap: wrap;
  }
}

.ja-topbar-left {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.ja-view-dropdown {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}

.ja-view-pill {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.ja-view-pill:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.ja-view-pill.active {
  background: #ffffff;
  color: #172b4d;
  font-weight: 800;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.ja-board-title {
  font-size: 1.12rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.2px;
  margin: 0 4px 0 6px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.ja-star-btn {
  background: rgba(255, 255, 255, 0.16);
  border: none;
  color: #fbbf24;
  border-radius: 6px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
}

.ja-workspace-pill {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ja-topbar-center {
  flex: 1;
  max-width: 280px;
  min-width: 150px;
}

.ja-jump-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  outline: none;
  transition: all 0.18s ease;
}

.ja-jump-input::placeholder {
  color: rgba(255, 255, 255, 0.85);
}

.ja-jump-input:focus {
  background: #ffffff;
  color: #172b4d;
  border-color: #38bdf8;
}

.ja-jump-input:focus::placeholder {
  color: #6b778c;
}

.ja-topbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.ja-top-btn {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.77rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.15s ease;
}

.ja-top-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.ja-top-select {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  border-radius: 6px;
  padding: 6px 9px;
  font-size: 0.76rem;
  font-weight: 700;
  outline: none;
  cursor: pointer;
}

.ja-top-select option {
  color: #172b4d;
  background: #ffffff;
}

/* Optional Active Filter Indicator Strip */
.ja-active-filter-strip {
  background: rgba(15, 23, 42, 0.65);
  color: #e2e8f0;
  padding: 6px 16px;
  font-size: 0.76rem;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ja-clear-filter-btn {
  background: rgba(239, 68, 68, 0.24);
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: #fecaca;
  padding: 2px 9px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

/* Horizontal Kanban Lists Area */
.ja-board-wrap {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 16px;
  align-items: flex-start;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.35) rgba(0, 0, 0, 0.18);
}

.ja-board-wrap::-webkit-scrollbar {
  height: 10px;
}

.ja-board-wrap::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 99px;
}

.ja-board-wrap::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.38);
  border-radius: 99px;
}

/* Classic Crisp Trello List Column */
.ja-column {
  flex: 0 0 264px;
  width: 264px;
  max-height: calc(100vh - 210px);
  background: #f1f2f4;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(9, 30, 66, 0.22);
  color: #172b4d;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}

.ja-column.drag-over {
  background: #e4f0f6;
  box-shadow: 0 0 0 2.5px #0079bf, 0 8px 20px rgba(9, 30, 66, 0.28);
}

.ja-col-accent {
  height: 4px;
  width: 100%;
  border-radius: 12px 12px 0 0;
}

.ja-col-header {
  padding: 10px 12px 6px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ja-col-title-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.ja-col-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: #172b4d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.ja-col-count {
  background: rgba(9, 30, 66, 0.08);
  color: #44546f;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 99px;
}

.ja-col-menu-btn {
  background: transparent;
  border: none;
  color: #44546f;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 900;
}

.ja-col-menu-btn:hover {
  background: rgba(9, 30, 66, 0.09);
  color: #172b4d;
}

.ja-col-sub {
  padding: 0 12px 6px 12px;
  font-size: 0.7rem;
  color: #626f86;
  font-weight: 600;
}

.ja-col-body {
  padding: 2px 8px 6px 8px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 28px;
  scrollbar-width: thin;
  scrollbar-color: rgba(9, 30, 66, 0.2) transparent;
}

.ja-col-body::-webkit-scrollbar {
  width: 6px;
}

.ja-col-body::-webkit-scrollbar-thumb {
  background: rgba(9, 30, 66, 0.22);
  border-radius: 99px;
}

/* Crisp White Trello Card (Zero Unnecessary Clutter) */
.ja-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 9px 10px;
  box-shadow: 0 1px 2px rgba(9, 30, 66, 0.22), 0 0 1px rgba(9, 30, 66, 0.16);
  cursor: pointer;
  position: relative;
  transition: background 0.12s ease, box-shadow 0.12s ease;
  color: #172b4d;
  border: 1px solid transparent;
}

.ja-card:hover {
  background: #f8f9fa;
  border-color: rgba(9, 105, 218, 0.35);
  box-shadow: 0 3px 8px rgba(9, 30, 66, 0.2);
}

.ja-card.dragging {
  opacity: 0.48;
  transform: rotate(2deg);
}

/* Card Quick Hover Stage Arrows */
.ja-card-quick-move {
  position: absolute;
  top: 6px;
  right: 6px;
  display: none;
  gap: 3px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #dfe1e6;
  border-radius: 6px;
  padding: 2px;
  box-shadow: 0 2px 6px rgba(9, 30, 66, 0.18);
  z-index: 3;
}

.ja-card:hover .ja-card-quick-move {
  display: inline-flex;
}

.ja-qm-btn {
  border: none;
  background: transparent;
  color: #44546f;
  width: 22px;
  height: 20px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ja-qm-btn:hover:not(:disabled) {
  background: #e9f2ff;
  color: #0c66e4;
}

.ja-qm-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Colored Trello Label Pills on Card Front */
.ja-card-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
  padding-right: 40px;
}

.ja-label-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  color: #ffffff;
  line-height: 1.35;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ja-label-pill.dark-text {
  color: #172b4d;
}

.ja-card-title {
  font-size: 0.87rem;
  font-weight: 700;
  color: #172b4d;
  line-height: 1.36;
  word-break: break-word;
  padding-right: 10px;
}

.ja-card-sub {
  margin-top: 3px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #44546f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Qty Details, Sizes & Price on Card Front (Only when set) */
.ja-card-meta-line {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.ja-meta-qty,
.ja-meta-size {
  font-size: 0.71rem;
  font-weight: 600;
  color: #44546f;
  background: #f1f2f4;
  padding: 2px 6px;
  border-radius: 4px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ja-meta-size {
  background: #eef2ff;
  color: #4338ca;
}

.ja-meta-price {
  font-size: 0.73rem;
  font-weight: 800;
  color: #0c66e4;
  background: #e9f2ff;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
}

/* Changes Required Indicator on Card Front (Only when non-empty) */
.ja-card-changes-note {
  margin-top: 6px;
  font-size: 0.71rem;
  font-weight: 600;
  color: #92400e;
  background: #fef3c7;
  border-left: 3px solid #f59e0b;
  padding: 4px 6px;
  border-radius: 4px;
  line-height: 1.32;
}

.ja-card-changes-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

/* Clean Card Footer Badges (Received Date, Delivery Date, Sample Link, Attachments, Checklist) */
.ja-card-badges-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin-top: 7px;
  flex-wrap: wrap;
}

.ja-card-badges-left {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.ja-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.69rem;
  font-weight: 700;
  color: #44546f;
  padding: 2px 6px;
  border-radius: 4px;
  background: #f1f2f4;
  text-decoration: none;
}

.ja-badge-recv {
  background: transparent;
  color: #626f86;
  padding: 2px 3px;
}

.ja-badge-date {
  background: #eef2f6;
  color: #172b4d;
}

.ja-badge-date.done {
  background: #61bd4f;
  color: #ffffff;
}

.ja-badge-date.overdue {
  background: #ef4444;
  color: #ffffff;
}

.ja-badge-sample {
  background: #ede9fe;
  color: #6d28d9;
}

.ja-badge-sample:hover {
  background: #ddd6fe;
}

.ja-badge-approved {
  background: #dcfce7;
  color: #166534;
}

.ja-badge-rev {
  background: #ffedd5;
  color: #9a3412;
}

.ja-badge-check.all-done {
  background: #61bd4f;
  color: #ffffff;
}

/* Inline Add Card Composer & Footer */
.ja-col-footer {
  padding: 6px 8px 8px 8px;
}

.ja-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.ja-add-card-trigger {
  flex: 1;
  background: transparent;
  border: none;
  color: #44546f;
  border-radius: 8px;
  padding: 7px 8px;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.14s ease, color 0.14s ease;
}

.ja-add-card-trigger:hover {
  background: rgba(9, 30, 66, 0.08);
  color: #172b4d;
}

.ja-template-btn {
  background: transparent;
  border: none;
  color: #44546f;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
}

.ja-template-btn:hover {
  background: rgba(9, 30, 66, 0.08);
  color: #172b4d;
}

.ja-inline-composer {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ja-inline-textarea {
  width: 100%;
  min-height: 62px;
  border: none;
  border-radius: 8px;
  padding: 9px 10px;
  background: #ffffff;
  color: #172b4d;
  font-size: 0.85rem;
  font-family: inherit;
  box-shadow: 0 1px 2px rgba(9, 30, 66, 0.24);
  resize: vertical;
  outline: none;
}

.ja-inline-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ja-inline-submit {
  background: #0c66e4;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.ja-inline-submit:hover {
  background: #0055cc;
}

.ja-inline-cancel {
  background: transparent;
  border: none;
  color: #44546f;
  font-size: 1.1rem;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ja-inline-cancel:hover {
  background: rgba(9, 30, 66, 0.08);
}

/* Add Another List Card */
.ja-add-list-col {
  flex: 0 0 264px;
  width: 264px;
}

.ja-add-list-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.22);
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(8px);
}

.ja-add-list-btn:hover {
  background: rgba(255, 255, 255, 0.32);
}

.ja-add-list-form {
  background: #f1f2f4;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(9, 30, 66, 0.22);
}

.ja-add-list-input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 2px solid #0c66e4;
  font-size: 0.85rem;
  font-weight: 700;
  color: #172b4d;
  outline: none;
}

/* Process Status Table / List View */
.ja-list-wrap {
  display: none;
  padding: 16px;
  overflow-x: auto;
}

.ja-list-wrap.active {
  display: block;
}

.ja-list-card {
  background: #ffffff;
  border-radius: 12px;
  color: #172b4d;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(9, 30, 66, 0.25);
}

.ja-list-header {
  padding: 14px 18px;
  border-bottom: 1px solid #dfe1e6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.ja-list-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.ja-list-table th {
  text-align: left;
  padding: 10px 12px;
  background: #f7f8f9;
  color: #44546f;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 1px solid #dfe1e6;
}

.ja-list-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f2f4;
  vertical-align: middle;
}

.ja-list-table tr:hover td {
  background: #f7f8f9;
}

.ja-dots-track {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ja-stage-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dfe1e6;
}

.ja-stage-dot.done {
  background: #61bd4f;
}

.ja-stage-dot.current {
  background: #0c66e4;
  box-shadow: 0 0 0 3px rgba(12, 102, 228, 0.24);
  transform: scale(1.15);
}

/* =========================================================
   CLEAN FOCUSED CARD MODAL
   ========================================================= */
.ja-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 15, 30, 0.72);
  backdrop-filter: blur(4px);
  z-index: 10050;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 14px;
  overflow-y: auto;
}

.ja-modal-backdrop.open {
  display: flex;
}

.ja-modal-sheet {
  width: 100%;
  max-width: 680px;
  max-height: calc(100vh - 56px);
  background: #f7f8fa;
  color: #172b4d;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ja-modal-head {
  padding: 13px 18px;
  border-bottom: 1px solid #dfe1e6;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
}

.ja-modal-head-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.ja-modal-heading-txt {
  font-size: 1rem;
  font-weight: 800;
  color: #172b4d;
}

.ja-modal-stage-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ja-modal-list-select {
  border: 1px solid #dfe1e6;
  background: #f1f2f4;
  color: #172b4d;
  border-radius: 6px;
  padding: 4px 9px;
  font-weight: 700;
  font-size: 0.77rem;
  cursor: pointer;
}

.ja-modal-close {
  background: #f1f2f4;
  border: none;
  color: #44546f;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0;
}

.ja-modal-close:hover {
  background: #dfe1e6;
  color: #172b4d;
}

/* Simple Single-Column Form Body */
.ja-modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 15px 18px;
  overflow-y: auto;
  flex: 1;
}

.ja-modal-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ja-field-group.full {
  grid-column: 1 / -1;
}

.ja-required {
  color: #dc2626;
  margin-left: 2px;
}

.ja-more-drawer {
  background: #ffffff;
  border: 1px solid #dfe1e6;
  border-radius: 8px;
  padding: 9px 12px;
}

.ja-more-drawer > summary {
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  color: #44546f;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ja-more-drawer > summary::-webkit-details-marker {
  display: none;
}

.ja-more-drawer[open] > summary {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eef0f4;
  color: #172b4d;
}

.ja-foot-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ja-btn-danger-ghost {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 7px 11px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.ja-btn-danger-ghost:hover {
  background: #fee2e2;
}

.ja-modal-section {
  background: #ffffff;
  border: 1px solid #dfe1e6;
  border-radius: 8px;
  padding: 12px 13px;
}

.ja-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #172b4d;
}

/* Labels Picker Popover Box */
.ja-label-picker {
  display: none;
  margin-top: 9px;
  padding: 10px;
  border: 1px solid #dfe1e6;
  border-radius: 8px;
  background: #f7f8f9;
}

.ja-label-picker.open {
  display: block;
}

.ja-label-swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}

.ja-label-choice {
  border: 2px solid transparent;
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 0.73rem;
  font-weight: 800;
  color: #ffffff;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ja-label-choice.dark-text {
  color: #172b4d;
}

.ja-label-choice.active {
  box-shadow: 0 0 0 2px #172b4d;
}

/* Tailored Order Details Grid (Dates, Qty, Price, Customer) */
.ja-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}

@media (max-width: 560px) {
  .ja-details-grid {
    grid-template-columns: 1fr;
  }
}

.ja-field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ja-field-lbl {
  font-size: 0.69rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #626f86;
  letter-spacing: 0.35px;
}

.ja-price-wrap {
  display: flex;
  align-items: center;
  border: 1px solid #cfd5df;
  border-radius: 6px;
  background: #ffffff;
  overflow: hidden;
}

.ja-price-wrap:focus-within {
  border-color: #0c66e4;
}

.ja-price-prefix {
  padding: 7px 9px;
  background: #f1f2f4;
  color: #44546f;
  font-weight: 800;
  font-size: 0.82rem;
  border-right: 1px solid #dfe1e6;
}

.ja-price-input {
  border: none !important;
  border-radius: 0 !important;
  flex: 1;
}

.ja-input-clean,
.ja-select-clean,
.ja-textarea-clean {
  width: 100%;
  background: #ffffff;
  border: 1px solid #cfd5df;
  border-radius: 6px;
  padding: 7px 9px;
  font-size: 0.82rem;
  color: #172b4d;
  font-family: inherit;
  outline: none;
}

.ja-input-clean:focus,
.ja-select-clean:focus,
.ja-textarea-clean:focus {
  border-color: #0c66e4;
}

.ja-icon-mini {
  background: #ffffff;
  border: 1px solid #dfe1e6;
  color: #44546f;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.ja-icon-mini:hover {
  background: #ebecf0;
  color: #172b4d;
}

/* Sample Design Share Section */
.ja-sample-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

.ja-sample-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  align-items: center;
}

.ja-sample-btn {
  border: 1px solid #dfe1e6;
  background: #f7f8f9;
  color: #172b4d;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}

.ja-sample-btn:hover {
  background: #e9f2ff;
  border-color: #93c5fd;
  color: #0c66e4;
}

.ja-sample-btn.wa-share {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.ja-sample-btn.wa-share:hover {
  background: #bbf7d0;
}

.ja-sample-btn.copied {
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
}

.ja-sample-preview {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.ja-sample-preview img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
}

/* Attachments (Files & Links) */
.ja-attach-upload-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 10px;
  background: #f8fafc;
  border: 1px dashed #94a3b8;
  border-radius: 7px;
  margin-bottom: 8px;
}

.ja-upload-trigger-btn {
  background: #0c66e4;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 6px 11px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ja-upload-trigger-btn:hover {
  background: #0055cc;
}

.ja-attach-link-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 6px;
}

@media (max-width: 540px) {
  .ja-attach-link-row {
    grid-template-columns: 1fr;
  }
}

.ja-attach-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.ja-attach-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  background: #f7f8f9;
  border: 1px solid #e4e6ea;
  border-radius: 6px;
}

.ja-attach-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.ja-attach-thumb {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid #cbd5e1;
  flex-shrink: 0;
  background: #ffffff;
}

.ja-attach-icon {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  background: #e9f2ff;
  color: #0c66e4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.ja-attach-name {
  font-size: 0.79rem;
  font-weight: 700;
  color: #0c66e4;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

.ja-attach-name:hover {
  text-decoration: underline;
}

.ja-attach-sub {
  font-size: 0.68rem;
  color: #626f86;
}

.ja-upload-status {
  font-size: 0.73rem;
  font-weight: 700;
  color: #0c66e4;
}

/* Checklist Items */
.ja-progress-track {
  width: 100%;
  height: 7px;
  background: #dfe1e6;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 8px;
}

.ja-progress-fill {
  height: 100%;
  background: #61bd4f;
  border-radius: 99px;
  transition: width 0.2s ease;
}

.ja-chk-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 6px;
  border-radius: 5px;
}

.ja-chk-item:hover {
  background: #f7f8f9;
}

.ja-chk-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.81rem;
  color: #172b4d;
  cursor: pointer;
  flex: 1;
}

.ja-chk-left.done span {
  text-decoration: line-through;
  color: #626f86;
}

/* Right Trello Modal Action Sidebar */
.ja-modal-side {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ja-side-heading {
  font-size: 0.67rem;
  font-weight: 800;
  color: #626f86;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  margin-top: 4px;
  margin-bottom: 1px;
}

.ja-side-btn {
  width: 100%;
  background: #e4e6ea;
  border: none;
  color: #172b4d;
  border-radius: 6px;
  padding: 7px 9px;
  font-size: 0.77rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  transition: background 0.14s ease;
}

.ja-side-btn:hover {
  background: #d7dbe2;
}

.ja-side-btn.wa {
  background: #dcfce7;
  color: #166534;
}

.ja-side-btn.wa:hover {
  background: #bbf7d0;
}

.ja-side-btn.danger {
  background: #fee2e2;
  color: #991b1b;
}

.ja-side-btn.danger:hover {
  background: #fecaca;
}

.ja-activity-item {
  padding: 6px 9px;
  border-left: 3px solid #0c66e4;
  background: #f7f8f9;
  border-radius: 4px;
  margin-bottom: 5px;
}

.ja-activity-text {
  font-size: 0.78rem;
  font-weight: 600;
  color: #172b4d;
}

.ja-activity-meta {
  font-size: 0.67rem;
  color: #626f86;
  margin-top: 2px;
}

.ja-modal-foot {
  padding: 12px 18px;
  background: #ffffff;
  border-top: 1px solid #dfe1e6;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  z-index: 20;
}

.ja-btn-primary {
  background: #0c66e4;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 0.83rem;
  font-weight: 800;
  cursor: pointer;
}

.ja-btn-primary:hover {
  background: #0055cc;
}

.ja-btn-ghost {
  background: #f1f2f4;
  color: #172b4d;
  border: 1px solid #dfe1e6;
  border-radius: 6px;
  padding: 7px 13px;
  font-size: 0.81rem;
  font-weight: 700;
  cursor: pointer;
}

.ja-btn-ghost:hover {
  background: #e4e6ea;
}

/* Client Approval Portal Card inside Modal */
.ja-approval-card {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 8px;
  padding: 12px 13px;
}

.ja-approval-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 99px;
}

.ja-approval-pill.pending {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.ja-approval-pill.approved {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.ja-approval-pill.changes_requested {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.ja-approval-url-row {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.ja-approval-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.ja-approval-btn-copy {
  background: #16a34a;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.77rem;
  font-weight: 800;
  cursor: pointer;
}

.ja-approval-btn-copy:hover {
  background: #15803d;
}

.ja-approval-feedback-note {
  margin-top: 8px;
  padding: 7px 9px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  font-size: 0.76rem;
  color: #1e293b;
}
