body {
  background: #f5f7fb;
  color: #15202b;
}

.card {
  border-radius: 1rem;
}

.table > :not(caption) > * > * {
  padding: 0.9rem 0.75rem;
}

.sticky-preview {
  position: sticky;
  top: 84px;
}

.preserve-linebreak {
  white-space: pre-line;
}

.invoice-preview {
  background: #fff;
  border: 1px solid #dde7ec;
  border-radius: 1rem;
  padding: 1rem;
  color: #15202b;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 2px solid var(--brand-color, #0c7195);
  padding-bottom: 0.9rem;
  margin-bottom: 1rem;
}

.preview-company {
  flex: 1 1 auto;
  min-width: 0;
}

.preview-meta-card {
  flex: 0 0 300px;
  background: #f7fafc;
  border: 1px solid #dbe6eb;
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
  color: #15202b;
}

.preview-title {
  color: var(--brand-color, #0c7195);
  font-size: 1.2rem;
  font-weight: 700;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.preview-box {
  border: 1px solid #dbe6eb;
  border-radius: 0.85rem;
  padding: 0.85rem;
  background: #fff;
}

.preview-table {
  margin-bottom: 0.5rem;
}

.preview-table thead th {
  background: var(--brand-color, #0c7195);
  color: #fff;
  font-size: 0.75rem;
  white-space: nowrap;
}

.preview-table tbody td,
.preview-table tbody th,
.preview-total-table td,
.preview-total-table th {
  color: #15202b !important;
}

.preview-table tbody tr:nth-child(even) td {
  background: #fbfdfe;
}

.preview-logo {
  max-height: 54px;
  max-width: 180px;
  margin-bottom: 0.5rem;
  object-fit: contain;
}

.preview-total-table {
  border: 1px solid #dbe6eb;
  border-radius: 0.85rem;
  overflow: hidden;
}

.badge.text-bg-light {
  background: #f3f5f7 !important;
}

.navbar .nav-link.active {
  font-weight: 600;
}

.build-badge {
  font-size: 0.74rem;
  color: #5b6775;
  border: 1px solid #dde7ec;
  background: #f8fbfd;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  margin-left: 0.5rem;
}

.preset-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  border: 1px solid #dde7ec;
  background: #fff;
}

.preset-pill form {
  margin: 0;
}

@media (max-width: 991px) {
  .sticky-preview {
    position: static;
  }

  .preview-header,
  .preview-grid {
    display: block;
  }

  .preview-meta-card {
    margin-top: 1rem;
    width: 100%;
  }

  .build-badge {
    display: none;
  }
}

.support-table th,
.support-table td {
  vertical-align: top;
}

.support-address-cell {
  max-width: 260px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.inline-edit-row td {
  background: #f9fbfd;
  border-top: 0;
}

.support-edit-form {
  border: 1px solid #dfe8ee;
  background: #ffffff;
  border-radius: 0.9rem;
  padding: 1rem;
}

.status-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #c8ced6;
  margin-right: 0.35rem;
}

.status-dot.ok {
  background: #198754;
}

.support-table-wrap {
  min-height: 240px;
}


.auth-page {
  background: radial-gradient(circle at top left, #eaf7ff, #f5f7fb 45%, #ffffff);
  min-height: 100vh;
}

.auth-card {
  border-radius: 1.25rem;
}

.support-panel .table {
  font-size: 0.94rem;
}

.support-wide-table {
  min-width: 1500px;
}

.support-wide-table th {
  font-size: 0.82rem;
  white-space: nowrap;
  color: #344054;
  background: #f8fafc;
  position: sticky;
  top: 0;
  z-index: 1;
}

.support-wide-table td {
  min-width: 130px;
}

.support-wide-table th:nth-child(2),
.support-wide-table td:nth-child(2) {
  min-width: 150px;
}

.support-wide-table th:nth-child(3),
.support-wide-table td:nth-child(3) {
  min-width: 260px;
}

.support-wide-table th:nth-child(4),
.support-wide-table td:nth-child(4) {
  min-width: 340px;
}

.support-wide-table th:nth-child(9),
.support-wide-table td:nth-child(9) {
  min-width: 210px;
}

.support-panel .form-control-sm,
.support-panel .form-select-sm {
  font-size: 0.9rem;
  min-height: 34px;
}

.support-panel .small,
.support-edit-form .small {
  font-size: 0.82rem;
}

.support-edit-form {
  font-size: 0.94rem;
}

.table-responsive {
  scrollbar-width: thin;
}

/* v1.7.1 support panel readability fixes */
.support-panel {
  font-size: 1rem;
}

.support-panel .table {
  font-size: 1rem;
}

.support-wide-table {
  min-width: 1820px;
}

.support-wide-table th {
  font-size: 0.92rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.support-wide-table td {
  min-width: 160px;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.support-wide-table th:nth-child(2),
.support-wide-table td:nth-child(2) {
  min-width: 180px;
}

.support-wide-table th:nth-child(3),
.support-wide-table td:nth-child(3) {
  min-width: 330px;
}

.support-wide-table th:nth-child(4),
.support-wide-table td:nth-child(4) {
  min-width: 420px;
}

.support-wide-table th:nth-child(6),
.support-wide-table td:nth-child(6) {
  min-width: 150px;
}

.support-wide-table th:nth-child(7),
.support-wide-table td:nth-child(7) {
  min-width: 260px;
}

.support-wide-table th:nth-child(9),
.support-wide-table td:nth-child(9) {
  min-width: 260px;
}

.support-address-cell {
  max-width: 420px;
  font-size: 1rem;
  line-height: 1.45;
}

.support-panel .small,
.support-edit-form .small {
  font-size: 0.88rem;
}

.support-panel .btn-sm {
  font-size: 0.88rem;
  padding: 0.38rem 0.6rem;
}

.support-panel .badge {
  font-size: 0.82rem;
}

/* v1.7.2 audit/user attribution visibility */
.user-activity-cell {
  min-width: 220px;
  line-height: 1.45;
  white-space: nowrap;
}
.support-wide-table {
  min-width: 2100px;
}
.support-wide-table th:nth-child(8),
.support-wide-table td:nth-child(8) {
  min-width: 260px;
}
.support-wide-table th:nth-child(9),
.support-wide-table td:nth-child(9) {
  min-width: 260px;
}

/* v1.7.3 multi-select filters */
.multi-filter {
  min-height: 86px;
  font-size: 0.92rem;
}
.multi-filter option:checked {
  font-weight: 600;
}

/* v1.8.6 live sync progress */
.sync-progress-panel {
  background: #f8fbfc;
  border: 1px solid rgba(12, 113, 149, 0.18);
  border-radius: 14px;
  padding: 14px;
}
.sync-progress-panel .progress {
  background: rgba(12, 113, 149, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

/* v1.10.7 sortable order/support tables */
.sort-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}
.sort-link:hover {
  color: #0c7195;
  text-decoration: underline;
}
.workflow-badge {
  text-transform: capitalize;
}
.label-canvas-wrap{overflow:auto;background:#f3f4f6;border-radius:16px;padding:18px;min-height:660px}.label-canvas{position:relative;background:#fff;color:#000;border:2px solid #111;box-shadow:0 12px 30px rgba(0,0,0,.12);margin:auto;touch-action:none}.label-element{position:absolute;border:1px dashed #111;background:#fff;color:#000;padding:2px 4px;cursor:move;overflow:hidden;user-select:none;font-family:Arial,Helvetica,sans-serif}.label-element.selected{outline:3px solid #0d6efd}.label-element[data-type="line"]{background:#000;border:0;padding:0}.label-element[data-type="box"]{background:transparent;border:2px solid #000}.label-element[data-type="barcode"]{font-family:"Courier New",monospace;letter-spacing:2px;text-align:center}.label-element[data-type="qr"]{display:flex;align-items:center;justify-content:center;font-weight:700}.label-field-btn{text-align:left}.resize-handle{position:absolute;right:-4px;bottom:-4px;width:12px;height:12px;background:#111;border-radius:2px;cursor:nwse-resize}
.label-element[data-type="image"]{display:flex;align-items:center;justify-content:center;padding:0;background:#fff}
.label-element[data-type="image"] img{width:100%;height:100%;object-fit:contain;filter:grayscale(1) contrast(2)}
.label-element[data-type="customText"]{white-space:pre-wrap}

.settings-card {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  margin-bottom: 14px;
  overflow: hidden;
}
.settings-card > summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 700;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  list-style: none;
}
.settings-card > summary::-webkit-details-marker { display: none; }
.settings-card > summary::after { content: '▾'; float: right; color: #64748b; }
.settings-card:not([open]) > summary::after { content: '▸'; }
.settings-card-body {
  padding: 16px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}
.bulk-ship-now-group .input-group-text { font-weight: 700; }

/* v1.10.27 compact order/support tables to reduce right-scroll */
.table-responsive {
  overflow-x: auto;
}
#bulkActionsForm table,
.support-wide-table {
  min-width: 1120px !important;
  table-layout: auto;
}
#bulkActionsForm table th,
#bulkActionsForm table td,
.support-wide-table th,
.support-wide-table td {
  white-space: normal;
  overflow-wrap: anywhere;
  min-width: 0 !important;
}
#bulkActionsForm table th:nth-child(2),
#bulkActionsForm table td:nth-child(2),
.support-wide-table th:nth-child(2),
.support-wide-table td:nth-child(2) {
  min-width: 180px !important;
  max-width: 260px;
}
#bulkActionsForm table th:nth-child(4),
#bulkActionsForm table td:nth-child(4),
.support-wide-table th:nth-child(4),
.support-wide-table td:nth-child(4) {
  max-width: 260px;
}
.user-activity-cell {
  white-space: normal !important;
  min-width: 150px !important;
}
@media (min-width: 1200px) {
  #bulkActionsForm table th:nth-child(9),
  #bulkActionsForm table td:nth-child(9),
  #bulkActionsForm table th:nth-child(10),
  #bulkActionsForm table td:nth-child(10),
  #bulkActionsForm table th:nth-child(12),
  #bulkActionsForm table td:nth-child(12),
  #bulkActionsForm table th:nth-child(13),
  #bulkActionsForm table td:nth-child(13),
  .support-wide-table th:nth-child(9),
  .support-wide-table td:nth-child(9),
  .support-wide-table th:nth-child(10),
  .support-wide-table td:nth-child(10) {
    display: none;
  }
}

.smart-filter-card {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  margin-bottom: 10px;
  overflow: hidden;
}
.smart-filter-card > summary {
  cursor: pointer;
  font-weight: 700;
  padding: 10px 14px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  list-style: none;
}
.smart-filter-card > summary::-webkit-details-marker { display: none; }
.smart-filter-card > summary::after { content: '▾'; float: right; color: #64748b; }
.smart-filter-card:not([open]) > summary::after { content: '▸'; }
.smart-filter-card .smart-filter-body {
  padding: 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}
.smart-filter-form .multi-filter { min-height: 78px; }

.sla-timeline { min-width: 150px; border-left: 3px solid #dee2e6; padding-left: .45rem; }
.sla-timeline .progress { background: rgba(0,0,0,.08); }
.sla-danger { border-left-color: var(--bs-danger); }
.sla-warning { border-left-color: var(--bs-warning); }
.sla-success { border-left-color: var(--bs-success); }
.sla-secondary { border-left-color: var(--bs-secondary); }
.report-toolbar { background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: .75rem; padding: .75rem; box-shadow: 0 .25rem .75rem rgba(15,23,42,.04); }
