/* Grouped order number in one cell */
.order-group {
    line-height: 1.35;
}

.order-main {
    font-size: 1.08rem;
    font-weight: 600;
    color: #111827;
}

.order-secondary {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.18rem;
}

/* Tracking link – matches example style */
.tracking-link {
    display: inline-block;
    padding: 0.45rem 1rem;
    background-color: #279989;
    color: white !important;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background-color 0.2s ease, transform 0.1s ease;
    line-height: 1.4;
}

.tracking-link:active {
    transform: translateY(0);
}

.tracking-link:hover {
    background-color: #1e7a6d;          /* darker shade for hover */
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.tracking-na {
    color: #9ca3af;
    font-style: italic;
}

/* Table cell spacing & alignment */
.tinx-cp-table th,
.tinx-cp-table td {
    padding: 14px 16px !important;
    vertical-align: middle;
}

.order-cell {
    font-weight: 500;
}

.tracking-cell {
    text-align: right;
}

/* Light row hover */
.tinx-cp-data-row:hover {
    background-color: #f8fafc;
}

/* Search input polish */
.tinx-cp-search-input {
    width: 100%;
    max-width: 520px;
    padding: 0.75rem 1.1rem;
    font-size: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
}

.tinx-cp-search-input:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}


/* ────────────────────────────────────────────────
   Page header / title + subtitle styling
───────────────────────────────────────────────── */

.tinx-cp-header {
    text-align: left;
	font-size: 15px;
}

.tinx-cp-header h1 {
    font-weight: 700;
    font-size: 25px;   /* ~32px */
    color: #444444;
    margin: 0 0 0.75rem;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.tinx-cp-header p {
    font-size: 15px !important;
    font-weight: 400;
    color: #4b5563;
    margin: 0;
	padding-bottom: 20px;
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .tinx-cp-header h1 {
        font-size: 2rem;
    }
    
    .tinx-cp-header p {
        font-size: 1rem;
    }
}

.tinx-cp-optimo-tracking .tinx-cp-table {
    table-layout: fixed;     /* ← key change: columns respect given widths exactly */
    width: 100%;
}

.tinx-cp-optimo-tracking .tinx-cp-table th,
.tinx-cp-optimo-tracking .tinx-cp-table td {
    overflow: hidden;
    text-overflow: ellipsis;   /* prevents very long external doc numbers from breaking layout */
    white-space: nowrap;
}

@media only screen and (min-width: 1024px) {
  /* Adjust these percentages to taste — total should ≈ 100% */
  .tinx-cp-optimo-tracking .tinx-cp-table th:nth-child(1),
  .tinx-cp-optimo-tracking .tinx-cp-table td:nth-child(1) { /* Order */
      width: 20%;
      min-width: 180px;
  }
  .tinx-cp-optimo-tracking .tinx-cp-table th:nth-child(2),
  .tinx-cp-optimo-tracking .tinx-cp-table td:nth-child(2) { /* External Document Number — let this grow */
      width: 40%; /* ← increased so it takes more space and pushes tracking right */
      min-width: 160px;
  }
  .tinx-cp-optimo-tracking .tinx-cp-table th:nth-child(3),
  .tinx-cp-optimo-tracking .tinx-cp-table td:nth-child(3) { /* Shipment Date */
      width: 20%;
      min-width: 140px;
  }
  .tinx-cp-optimo-tracking .tinx-cp-table th:nth-child(4),
  .tinx-cp-optimo-tracking .tinx-cp-table td:nth-child(4) { /* Tracking Link */
      width: 20%;
      min-width: 120px;
      text-align: center; /* looks better when pushed right */
  }
}