/* Leopards-style dense Shipper Advice listing. */
.advice-orders-panel--table {
    overflow: hidden;
}

.shipper-advice-table-scroll {
    width: 100%;
    max-height: none;
    height: auto;
    overflow-x: auto;
    overflow-y: visible;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    border-top: 1px solid #d7dce3;
    background: #fff;
}

.shipper-advice-data-table {
    width: 100%;
    min-width: 2480px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    font-size: 11px;
    color: #162033;
}

.shipper-advice-data-table th,
.shipper-advice-data-table td {
    padding: 9px 7px;
    border-right: 1px solid #d7dce3;
    border-bottom: 1px solid #d7dce3;
    vertical-align: top;
    text-align: left;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.shipper-advice-data-table th:first-child,
.shipper-advice-data-table td:first-child {
    border-left: 1px solid #d7dce3;
}

.shipper-advice-data-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    padding-top: 8px;
    padding-bottom: 8px;
    background: #d7d9dc;
    color: #111827;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .01em;
    white-space: normal;
    box-shadow: inset 0 1px rgba(255, 255, 255, .85);
}

.shipper-advice-data-table thead th:last-child {
    right: 0;
    z-index: 5;
    box-shadow: -2px 0 4px rgba(15, 23, 42, .08), inset 0 1px rgba(255, 255, 255, .85);
}

.shipper-advice-data-table tbody tr:nth-child(odd) td {
    background: #f3f4f6;
}

.shipper-advice-data-table tbody tr:nth-child(even) td {
    background: #e9ebed;
}

.shipper-advice-data-table tbody td:last-child {
    position: sticky;
    right: 0;
    z-index: 2;
    box-shadow: -2px 0 4px rgba(15, 23, 42, .08);
}

.shipper-advice-data-table tbody tr:hover td {
    background: #fff0f1;
}

.shipper-advice-data-table .advice-col-sr {
    text-align: center;
    font-weight: 800;
}

.shipper-advice-data-table .advice-cell-cn,
.shipper-advice-data-table .advice-cell-id,
.shipper-advice-data-table .advice-cell-date {
    white-space: nowrap;
    overflow-wrap: normal;
}

.shipper-advice-data-table .advice-cell-cn {
    font-weight: 800;
    color: #0f172a;
}

.shipper-advice-data-table .advice-cell-muted {
    color: #7b8494;
}

.shipper-advice-data-table .advice-cell-status {
    font-weight: 800;
    text-transform: uppercase;
}

.shipper-advice-data-table .advice-cell-description {
    min-width: 140px;
}

.shipper-advice-data-table .advice-table-actions {
    display: grid;
    gap: 5px;
    justify-items: center;
}

.shipper-advice-data-table .advice-icon-button {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 25px;
    min-width: 30px;
    padding: 0;
    border: 0;
    border-radius: 3px;
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .2);
}

.shipper-advice-data-table .advice-icon-button.details,
.shipper-advice-data-table .advice-icon-button.submit {
    background: #e30613;
}

.shipper-advice-data-table .advice-icon-button:not([disabled]):hover {
    background: #b90813;
}

.shipper-advice-data-table .advice-icon-button:focus-visible {
    outline: 3px solid rgba(227, 6, 19, .2);
    outline-offset: 2px;
}

.shipper-advice-data-table .advice-icon-button[disabled] {
    cursor: default;
    opacity: .45;
}

.shipper-advice-data-table .advice-table-empty {
    padding: 32px;
    text-align: center;
    font-size: 14px;
    color: #667085;
    background: #fff !important;
}

.advice-table-legend {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 9px 14px;
    border-top: 1px solid #e3e6ea;
    background: #f8fafc;
    color: #667085;
    font-size: 12px;
}

.advice-table-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.advice-table-legend i {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 18px;
    border-radius: 3px;
    color: #fff;
    font-style: normal;
    font-weight: 900;
}

.advice-table-legend .details,
.advice-table-legend .submit {
    background: #e30613;
}

/* Primary actions follow the Dreams red theme; neutral Cancel/Close stay grey. */
.bulk-advice-sample-button,
.bulk-advice-dialog .dialog-actions .btn:not(.secondary),
dialog.detail-dialog[id^="advice-action-"] .dialog-actions .btn:not(.secondary) {
    border-color: #e30613 !important;
    color: #fff !important;
    background: #e30613 !important;
}

.bulk-advice-sample-button:hover,
.bulk-advice-dialog .dialog-actions .btn:not(.secondary):hover,
dialog.detail-dialog[id^="advice-action-"] .dialog-actions .btn:not(.secondary):hover {
    border-color: #b90813 !important;
    color: #fff !important;
    background: #b90813 !important;
}

@media (max-width: 1199px) {
    .shipper-advice-data-table {
        min-width: 2250px;
    }

    .shipper-advice-data-table th,
    .shipper-advice-data-table td {
        padding: 8px 6px;
    }
}
