/* ---------- Cheques module ---------- */
.cheq-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cheq-list-panel .gcc-panel-body {
  padding: 16px 26px 18px;
}

/* List bar + bank breakdown */
.cheq-listbar {
  display: flex;
  gap: 10px;
  align-items: center;
}
.cheq-listbar .gcc-select {
  flex: 0 0 auto;
  min-width: 280px;
}
.cheq-search {
  flex: 1 1 auto;
  min-width: 200px;
}
.cheq-grid-search {
  flex: 0 0 auto;
  min-width: 260px;
}
.cheq-bank-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
}
.cheq-bank-card {
  display: flex;
  flex: 1 1 auto;
  min-width: 130px;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--gcc-border, #e2e8f0);
  border-radius: 8px;
  background: #fff;
}
.cheq-bank-icon {
  font-size: 20px;
  color: #64748b;
}
.cheq-bank-name {
  font-weight: 600;
  font-size: 13px;
  color: #334155;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cheq-bank-count {
  margin-inline-start: 6px;
  font-weight: 400;
  font-size: 11px;
  color: #64748b;
}
.cheq-bank-amount {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}
.cheq-bank-empty {
  color: #94a3b8;
  font-size: 13px;
  padding: 4px 2px;
}

/* List form + per-bank totals (lower row of the unified card) */
.cheq-lower {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--gcc-border, #e2e8f0);
}
.cheq-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}
.cheq-meta-row label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #475569;
  font-weight: 500;
}
.cheq-date {
  width: 150px;
}
.cheq-desc {
  flex: 1 1 auto;
  max-width: 360px;
}
.cheq-flag {
  width: 96px;
}
.cheq-meta-row .gcc-select,
.cheq-meta-row .gcc-input {
  font-size: 13px;
}
.cheq-total {
  width: 110px;
  font-weight: 700;
  background: #f8fafc;
}
.cheq-meta-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* Per-bank total block */
.cheq-bank-side {
  min-width: 650px;
  max-width: 890px;
  background: #f8fafc;
  border: 1px solid var(--gcc-border, #e2e8f0);
  border-radius: 10px;
  padding: 12px 14px;
}
.cheq-bank-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #475569;
  margin-bottom: 10px;
}
.cheq-bank-title i {
  color: #64748b;
  font-size: 15px;
}

/* Grid */
.cheq-grid-panel .gcc-table-scroll {
  max-height: min(1200px, calc(100vh - 180px));
  overflow: auto;
}
.cheq-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.cheq-table th {
  position: sticky;
  top: 0;
  background: #f1f5f9;
  z-index: 2;
  white-space: nowrap;
}
.cheq-table td {
  vertical-align: top;
  padding: 4px 6px;
  border-bottom: 1px solid #eef2f7;
}
.cheq-table td.gcc-num {
  text-align: right;
}
.cheq-table tr.is-expired td {
  background: #fef2f2;
}
.cheq-table tr.collected-row td {
  background: #ecfdf5 !important;
}
.cheq-table tr.row-saving td {
  opacity: 0.55;
}
.cheq-table tr.row-saved td {
  background: #ecfdf5;
  transition: background 0.4s;
}
.cheq-table tr.row-save-error td {
  background: #fee2e2;
}
.cheq-table tr:hover td {
  background: rgba(51, 65, 85, 0.04);
}

.cheq-no-input {
  font-family: "Courier New", monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.cheq-no-input.is-loading {
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='3'><path d='M12 2a10 10 0 1 0 10 10'/></svg>") no-repeat right 6px center;
  background-size: 12px;
  animation: cheq-spin 0.8s linear infinite;
}
@keyframes cheq-spin {
  to { transform: rotate(360deg); }
}
.cheq-no-input.is-duplicate {
  border-color: #dc2626;
  box-shadow: 0 0 0 1px #dc2626;
}
.cheq-badge-row {
  display: flex;
  gap: 4px;
  margin-top: 2px;
  min-height: 14px;
}
.cheq-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 4px;
  color: #fff;
}
.cheq-badge.dup-badge { background: #dc2626; }
.cheq-badge.nf-badge { background: #f59e0b; }
.d-block { display: block; }
.d-none { display: none !important; }

.supplier-code {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'SFMono-Regular', 'Consolas', monospace;
  font-size: 11.5px;
  font-weight: 600;
  color: #4338ca;
  background: #eef2ff;
  border: 1px solid #dbe1f8;
  border-radius: 999px;
  padding: 1px 9px;
  cursor: pointer;
  transition: all 0.12s ease;
}
.supplier-code::before {
  content: "\f1dd";
  font-family: "bootstrap-icons";
  font-size: 10px;
  opacity: 0.75;
}
.supplier-code:hover {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #fff;
}
.supplier-code:hover::before { opacity: 1; }
.acc-name {
  font-size: 11px;
  color: #475569;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bank-name {
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
}
.activity-e,
.proj-name {
  font-size: 12px;
  color: #334155;
}
.cheq-note {
  font-size: 11px;
  color: #b91c1c;
  font-weight: 500;
  max-width: 150px;
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Tight columns: delete / # / Signed / Collected / Email / Copy */
.cheq-table th.cheq-th-narrow,
.cheq-table th.cheq-th-tight {
  padding-inline: 3px;
  letter-spacing: 0;
}
.cheq-table th.cheq-th-tight {
  font-size: 9px;
  padding-inline: 2px;
}
.cheq-table td.cheq-td-tight {
  padding-inline: 2px;
}
.cheq-table .cheq-td-tight .toggle-flag,
.cheq-table .cheq-td-tight .cheq-mail-btn,
.cheq-table .cheq-td-tight .cheq-copy-btn {
  width: 22px;
  height: 22px;
  font-size: 12px;
  padding: 0;
}
.cheq-table .cheq-del {
  padding: 0 2px;
  font-size: 12px;
}
/* Cheque No cell: let the badge show, keep input usable */
.cheq-table .cheq-no-input {
  width: 100%;
  min-width: 52px;
  padding: 4px 5px;
  font-size: 12px;
}
.cheq-badge-row {
  display: flex;
  gap: 3px;
  margin-top: 2px;
  flex-wrap: wrap;
}
.cheq-badge {
  font-size: 8.5px;
  padding: 0 3px;
}
/* Bank column is narrow: keep only the short code */
.cheq-table .bank-name {
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Per-row collected cell (two toggles) */
.cheq-table .flag-cell {
  white-space: nowrap;
}

.cheq-del {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 14px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
}
.cheq-del:hover {
  color: #dc2626;
  background: #fef2f2;
}

.flag-cell .toggle-flag {
  background: transparent;
  border: none;
  font-size: 16px;
  color: #cbd5e1;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
}
.flag-cell .toggle-flag.active {
  color: #059669;
}
.flag-cell .toggle-flag:hover {
  color: #334155;
}

.cheq-empty {
  padding: 24px !important;
  color: #94a3b8;
}

/* Modal forms */
.cheq-fld {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #475569;
  font-weight: 500;
}
.cheq-fld-row {
  display: flex;
  gap: 12px;
}
.cheq-fld-row label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #475569;
  font-weight: 500;
}
.gcc-modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 22px;
}
.gcc-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border, #e5e7eb);
  background: var(--surface-2, #f8fafc);
  flex-shrink: 0;
}
.gcc-modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 22px;
  border-top: 1px solid var(--border, #e5e7eb);
  background: var(--surface, #fff);
  flex-shrink: 0;
}
.gcc-modal-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 9px;
  background: var(--surface, #fff);
  color: var(--gray-500, #64748b);
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.gcc-modal-close:hover { border-color: var(--danger-500, #f43f5e); color: var(--danger-600, #e11d48); background: var(--danger-50, #fef2f2); }
/* ---------- Cheque details modal (card-based, reference style) ---------- */
.cheq-detail-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cheq-detail-card {
  background: #fff;
  border: 1px solid var(--gcc-border, #e2e8f0);
  border-radius: 10px;
  overflow: hidden;
}
.cheq-detail-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #f8fafc;
  border-bottom: 1px solid var(--gcc-border, #e2e8f0);
  font-weight: 700;
  font-size: 13px;
  color: #0f172a;
}
.cheq-detail-card-head i {
  color: #4f46e5;
  font-size: 15px;
}
.cheq-detail-card-body {
  padding: 14px;
}
.cheq-detail-notes {
  border-color: #dc3545;
  box-shadow: 0 0 0 1px #dc3545 inset;
  background: #dc3545;
  color: #fff;
}
.cheq-detail-notes .cheq-detail-card-head {
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
}
.cheq-detail-notes .cheq-detail-card-head i {
  color: #fff;
}
.cheq-detail-notes .cheq-detail-card-body {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}
.cheq-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
}
.cheq-detail-grid > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cheq-detail-grid .cheq-dl-wide {
  grid-column: 1 / -1;
}
.cheq-dl {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}
.cheq-dv {
  font-size: 13px;
  color: #0f172a;
  font-weight: 500;
  word-break: break-word;
}
.cheq-dv-amount {
  font-size: 14px;
  font-weight: 700;
  color: #4f46e5;
}
.cheq-dv-muted {
  color: #64748b;
  font-weight: 400;
}
.cheq-dl-second {
  margin-top: 12px;
}
.cheq-detail-statuses {
  display: flex;
  justify-content: space-around;
  gap: 10px;
}
.cheq-detail-status {
  text-align: center;
  padding: 8px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
}
.cheq-detail-status span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}
.cheq-detail-status.clickable {
  cursor: pointer;
  border-color: var(--gcc-border, #e2e8f0);
  transition: all 0.15s ease;
}
.cheq-detail-status.clickable:hover {
  background: #f8fafc;
}
.cheq-status-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: var(--gcc-border, #e2e8f0);
  color: #94a3b8;
  transition: all 0.15s ease;
}
.cheq-detail-status.active .cheq-status-icon {
  background: #22c55e;
  color: #fff;
}
.cheq-detail-status.active .cheq-status-icon.signed {
  background: #0ea5e9;
}
.cheq-detail-status.active .cheq-status-icon.cancelled {
  background: #dc2626;
}
.cheq-detail-status.active span {
  color: #0f172a;
}
.cheq-detail-copy-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #334155;
}
.cheq-detail-copy-line > i {
  font-size: 16px;
}
.cheq-detail-actions {
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 900px) {
  .cheq-detail-grid { grid-template-columns: 1fr; }
  .cheq-detail-grid .cheq-dl-wide { grid-column: auto; }
}
.gcc-panel-sub {
  margin-inline-start: 8px;
  font-size: 12px;
  font-weight: 400;
  color: #64748b;
}
.text-danger {
  color: #dc2626;
}

/* Panel loading veil */
.gcc-panel.is-loading {
  position: relative;
}
.gcc-panel.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(248, 250, 252, 0.6);
  z-index: 5;
}

/* Activities / Invoice-files manager modals */
.cheq-mgr-bar {
  display: flex;
  gap: 8px;
  align-items: center;
}
.cheq-mgr-bar .gcc-input {
  flex: 0 1 auto;
  min-width: 260px;
}
.cheq-mgr-bar #invoice-search {
  min-width: 320px;
}
.cheq-mgr-count {
  margin-left: auto;
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
}
.cheq-mgr-scroll {
  max-height: 55vh;
  overflow: auto;
  border: 1px solid var(--gcc-border, #e2e8f0);
  border-radius: 8px;
}
.cheq-mgr-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  white-space: nowrap;
}
.cheq-mgr-table .gcc-input {
  width: 100%;
  padding: 4px 6px;
  font-size: 12.5px;
}
.cheq-mgr-table tr.edit-mode td {
  background: #fefce8;
}
.cheq-mgr-table .gm-supp-no {
  font-family: "Courier New", monospace;
}
.gcc-btn.gcc-sm {
  padding: 3px 7px;
  font-size: 12px;
}
/* Cheques extras: global search page, email panel, copy upload/review */

/* ---------- Search page ---------- */
.cheq-search-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.cheq-search-input-wrap {
  position: relative;
  flex: 1;
  max-width: 560px;
}
.cheq-search-input-wrap > i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  font-size: 15px;
  pointer-events: none;
}
.cheq-search-input {
  padding-left: 36px;
}
.cheq-search-sample {
  display: flex;
  gap: 6px;
  align-items: center;
  color: #6b7280;
  font-size: 12.5px;
  margin-bottom: 8px;
}
.cheq-search-count {
  color: #6b7280;
  font-size: 12.5px;
  margin-bottom: 8px;
}
.cheq-search-scroll {
  max-height: calc(100vh - 300px);
}
.modal-box .cheq-search-scroll {
  max-height: calc(100vh - 230px);
}
.cheq-search-totals {
  margin-top: 10px;
  font-size: 12.5px;
  color: #475569;
  text-align: right;
}
.cheq-search-totals strong { color: #0f172a; }
.cheq-email-edit.collapsed .cheq-email-edit-grid,
.cheq-email-edit.collapsed .cheq-email-hint {
  display: none;
}
.cheq-search-table th,
.cheq-search-table td {
  white-space: nowrap;
}
.cheq-search-table td:nth-child(6) {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cs-status.active {
  color: #16a34a;
}
.cs-status.active[data-field="cancelled"] {
  color: #dc2626;
}
.cheq-search-table tr.collected-row td {
  background: rgba(34, 197, 94, 0.08);
}

.cheq-email-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
}
.cheq-email-title {
  font-weight: 700;
  font-size: 16px;
  margin-right: auto;
}
.cheq-email-title i {
  margin-right: 8px;
  color: #4f46e5;
}
.cheq-email-body {
  flex: 1;
  overflow: auto;
  padding: 16px 20px 24px;
}
.cheq-email-label {
  display: block;
  font-weight: 700;
  font-size: 12.5px;
  margin: 10px 0 4px;
}
.cheq-email-body .gcc-input {
  width: 100%;
}
.cheq-email-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 4px;
  min-height: 22px;
}
.cheq-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #eef2ff;
  border: 1px solid #dbe1f8;
  border-radius: 14px;
  padding: 2px 8px 2px 10px;
  font-size: 12.5px;
}
.cheq-chip-x {
  color: #ef4444;
  cursor: pointer;
}
.cheq-email-hint {
  color: #6b7280;
  font-size: 12px;
  margin-top: 3px;
}
.cheq-email-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  margin: 12px 0;
}
.cheq-email-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0 6px;
}
.cheq-email-edit {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
  margin-bottom: 8px;
}
.cheq-email-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.cheq-email-edit-grid label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
  font-weight: 600;
}
.cheq-email-edit-grid .cheq-edit-full {
  grid-column: 1 / -1;
}
.cheq-email-preview {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.cheq-email-preview iframe {
  width: 100%;
  height: 480px;
  border: 0;
  display: block;
}
.cheq-email-status {
  min-height: 18px;
  font-size: 12.5px;
}

/* ---------- Copy viewer ---------- */
.cheq-copy-view {
  text-align: center;
}
.cheq-copy-img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  width: auto;
  height: auto;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
}
.cheq-copy-thumb {
  text-align: center;
  margin-top: 4px;
  background: #fff;
  border: 1px solid var(--gcc-border, #e2e8f0);
  border-radius: 8px;
  padding: 8px;
  overflow: auto;
  max-height: 420px;
}
.cheq-copy-thumb .cheq-copy-img {
  max-height: 400px;
  display: inline-block;
}
.cheq-copy-none {
  padding: 28px 12px;
  color: #94a3b8;
  font-size: 13px;
}
.cheq-copy-view-foot {
  justify-content: flex-end;
}

/* ---------- Copies upload/review modal ---------- */
.cheq-copies-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.cheq-copies-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 6px;
}
.cheq-copies-count {
  color: #6b7280;
}
.cheq-progress-track {
  height: 8px;
  background: #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
}
.cheq-progress-bar {
  height: 100%;
  background: #4f46e5;
  border-radius: 6px;
  transition: width 0.2s;
}
.cheq-copies-log {
  margin-top: 10px;
  max-height: 200px;
  overflow: auto;
}
.cheq-copies-log-line {
  font-size: 12.5px;
  padding: 2px 0;
}
.cheq-copies-log-line.success { color: #16a34a; }
.cheq-copies-log-line.warn   { color: #b45309; }
.cheq-copies-log-line.error  { color: #dc2626; }
.cheq-copies-summary {
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  margin-bottom: 10px;
}
.cheq-copies-summary.ok   { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.cheq-copies-summary.warn { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.cheq-copies-review {
  max-height: none;
  overflow: auto;
}
.cheq-copies-matched {
  margin-bottom: 6px;
}
.cq-review-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 8px;
  background: #fff;
}
.cq-review-item.ok {
  border-color: #bbf7d0;
  background: #f7fef9;
}
.cq-review-thumb {
  width: 96px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  cursor: pointer;
  flex-shrink: 0;
}
.cq-review-body {
  flex: 1;
  min-width: 0;
}
.cq-review-title {
  font-size: 13px;
}
.cq-review-title.success { color: #166534; }
.cq-review-meta {
  font-size: 12.5px;
  color: #4b5563;
  margin-top: 2px;
}
.cq-review-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 8px;
  flex-wrap: wrap;
}
.cq-candidate-select {
  max-width: 240px;
}
.cheq-copies-error {
  margin-top: 10px;
}

/* ---------- Row status buttons (Email / Copy columns) ---------- */
.cheq-mail-btn,
.cheq-copy-btn {
  width: 28px;
  height: 28px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #cbd5e1;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  padding: 0;
}
.cheq-mail-btn.sent {
  color: #10b981;
}
.cheq-copy-btn.has {
  color: #4f46e5;
}
.cheq-mail-btn:hover {
  border-color: var(--border, #e5e7eb);
  background: var(--surface-2, #f8fafc);
  color: #4f46e5;
}
.cheq-copy-btn:hover {
  border-color: var(--border, #e5e7eb);
  background: var(--surface-2, #f8fafc);
  color: #4f46e5;
}
.cheq-mail-btn:disabled, .cheq-copy-btn:disabled {
  cursor: default;
  opacity: 0.45;
}

/* ---------- Toolbar polish ---------- */
.cheq-meta-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cheq-meta-actions .gcc-btn {
  height: 32px;
}

/* ---------- List selector bar ---------- */
.cheq-listbar {
  align-items: center;
}
.cheq-listbar .gcc-select {
  min-width: 320px;
  font-weight: 600;
}

/* ---------- Table micro-typography ---------- */
.cheq-table .cheq-no-input {
  font-family: 'SFMono-Regular', 'Consolas', monospace;
  font-size: 12px;
  letter-spacing: 0.02em;
  width: 100%;
}
.cheq-table .row-index {
  color: #94a3b8;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.cheq-table td.gcc-num span {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.cheq-table .supplier-code {
  font-family: 'SFMono-Regular', 'Consolas', monospace;
  font-size: 11px;
  color: #4338ca;
}
.cheq-table .supplier-code:hover {
  color: #fff;
}
.cheq-table .acc-name {
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
}
.cheq-table .bank-name {
  display: inline-block;
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}
.cheq-table .issued-desc {
  width: 100%;
}
.cheq-table .cheq-row {
  cursor: pointer;
}
.cheq-table tbody tr:hover .cheq-del {
  opacity: 1;
}
.cheq-table .cheq-del {
  opacity: 0.55;
  transition: opacity 0.12s ease, color 0.12s ease, background 0.12s ease;
}

/* Status pill on Notes */
.cheq-note {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.5;
}
