/* DDU Cut-Off sub-tabs */
#dduPanel .ddu-subtabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid rgba(17, 24, 39, 0.12);
  margin-bottom: 4px;
}
#dduPanel .ddu-subtab {
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  background: none;
  cursor: pointer;
  color: rgba(17, 24, 39, 0.55);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}
#dduPanel .ddu-subtab:hover {
  color: rgba(17, 24, 39, 0.85);
}
#dduPanel .ddu-subtab.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

/* Table styling */
#dduPanel .ddu-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  line-height: 1.4;
}
#dduPanel .ddu-table th {
  text-align: left;
  font-weight: 600;
  font-size: 11px;
  padding: 6px 8px;
  border-bottom: 2px solid rgba(17, 24, 39, 0.18);
  white-space: nowrap;
  color: rgba(17, 24, 39, 0.7);
  position: sticky;
  top: 0;
  background: #faf9f7;
}
#dduPanel .ddu-table td {
  padding: 4px 8px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.05);
  vertical-align: top;
}
#dduPanel .ddu-table .right {
  text-align: right;
}
#dduPanel .ddu-table .mono {
  font-family: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
  font-size: 11px;
}

/* Delivery term group header */
#dduPanel .ddu-table .group-header td {
  font-weight: 700;
  font-size: 12px;
  padding: 10px 8px 5px;
  background: #e4eaf3;
  border-top: 2px solid #a0b4cc;
  border-bottom: none;
  color: #1e3a5f;
  letter-spacing: 0.01em;
}
#dduPanel .ddu-table .group-header td:first-child {
  border-left: 4px solid #5b7ea8;
}
#dduPanel .ddu-table tbody tr:first-child.group-header td {
  border-top: none;
}

/* Data rows — left accent border continues the group */
#dduPanel .ddu-table .data-row td:first-child {
  border-left: 4px solid #c5d3e3;
  padding-left: 14px;
}

/* Customer subtotal */
#dduPanel .ddu-table .cust-subtotal td {
  font-weight: 600;
  font-style: italic;
  background: #f0eeeb;
  color: rgba(17, 24, 39, 0.75);
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  font-size: 11px;
}
#dduPanel .ddu-table .cust-subtotal td:first-child {
  border-left: 4px solid #c5d3e3;
  padding-left: 14px;
}

/* Delivery term subtotal — warm tone, but connected via left border */
#dduPanel .ddu-table .term-subtotal td {
  font-weight: 700;
  background: #f5efe6;
  border-bottom: 2px solid #d4c4a8;
  border-top: 1px solid #d4c4a8;
  color: #5a4a2f;
  font-size: 12px;
}
#dduPanel .ddu-table .term-subtotal td:first-child {
  border-left: 4px solid #5b7ea8;
}

/* Grand total */
#dduPanel .ddu-table .grand-total td {
  font-weight: 700;
  font-size: 13px;
  border-top: 3px double rgba(17, 24, 39, 0.3);
  padding-top: 8px;
  padding-bottom: 8px;
}

/* Stats line */
#dduPanel .ddu-stats {
  font-size: 11px;
  color: rgba(17, 24, 39, 0.5);
  margin-top: 8px;
}
