/* This file is reserved for overriding and extending the template styles. */

.traxon-log-detail {
    background: #f8fafc;
    padding: 0.75rem;
}

.traxon-identifier {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    font-size: 0.6875rem;
}

.traxon-json-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 600;
}

.traxon-json-panel {
    max-height: 19rem;
    margin: 0;
    overflow: auto;
    border-radius: 0.25rem;
    padding: 0.75rem;
    background: #0f172a;
    color: #7dd3fc;
    font-size: 0.6875rem;
    line-height: 1.45;
    white-space: pre;
    word-break: normal;
    overflow-wrap: normal;
}

.traxon-json-panel--response {
    background: #1e293b;
    color: #e2e8f0;
    max-height: 11.25rem;
}

.traxon-provider-confirmation {
    margin-top: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    padding: 0.75rem;
    background: #f8fafc;
}

.traxon-callback-timeline {
    position: relative;
    display: grid;
    gap: 0.75rem;
    padding-left: 1rem;
}

.traxon-callback-timeline::before {
    position: absolute;
    top: 0.5rem;
    bottom: 0.5rem;
    left: 0.25rem;
    width: 2px;
    background: #c4b5fd;
    content: "";
}

.traxon-callback-timeline__item {
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    padding: 0.625rem;
    background: #fff;
}

.traxon-callback-timeline__item::before {
    position: absolute;
    top: 0.875rem;
    left: -1.03rem;
    width: 0.625rem;
    height: 0.625rem;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #7c3aed;
    box-shadow: 0 0 0 1px #7c3aed;
    content: "";
}

.traxon-callback-timeline__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.traxon-callback-address {
    margin-top: 0.375rem;
    color: #64748b;
    font-family: var(--bs-font-monospace);
    font-size: 0.6875rem;
    overflow-wrap: anywhere;
}

.traxon-callback-json {
    margin-top: 0.5rem;
}

.traxon-callback-json summary {
    color: #6d28d9;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
}

.traxon-response-message {
    margin: 0.5rem 0;
    border-left: 3px solid #7c3aed;
    padding: 0.375rem 0.625rem;
    background: #fff;
    font-size: 0.8125rem;
    white-space: pre-wrap;
}

.traxon-provider-pending {
    margin-top: 0.75rem;
    color: #64748b;
    font-size: 0.8125rem;
}

.traxon-attempt-list {
    display: grid;
    gap: 0.75rem;
    padding: 0.75rem;
}

.traxon-log-groups {
    display: grid;
    gap: 0.875rem;
    padding: 0.75rem;
}

.traxon-message-group {
    overflow: hidden;
    border: 1px solid #d8b4fe;
    border-radius: 0.625rem;
    background: #faf5ff;
}

.traxon-message-group--hawb {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.traxon-message-group[open] {
    box-shadow: 0 0.25rem 0.875rem rgb(15 23 42 / 8%);
}

.traxon-message-group__summary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 2.5rem 0.75rem 0.875rem;
    cursor: pointer;
    list-style: none;
}

.traxon-message-group__summary::-webkit-details-marker {
    display: none;
}

.traxon-message-group__summary::after {
    position: absolute;
    top: 50%;
    right: 0.875rem;
    color: #64748b;
    content: "›";
    font-size: 1.5rem;
    line-height: 1;
    transform: translateY(-50%);
    transition: transform 0.15s ease;
}

.traxon-message-group[open] > .traxon-message-group__summary::after {
    transform: translateY(-50%) rotate(90deg);
}

.traxon-message-group__heading,
.traxon-message-group__counts {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.traxon-message-group__heading {
    min-width: 0;
}

.traxon-message-group__heading strong,
.traxon-message-group__heading small {
    display: block;
}

.traxon-message-group__heading small {
    margin-top: 0.125rem;
    color: #64748b;
    font-size: 0.75rem;
    overflow-wrap: anywhere;
}

.traxon-message-group__icon {
    display: inline-grid;
    flex: 0 0 2.25rem;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    border-radius: 0.5rem;
    background: #7c3aed;
    color: #fff;
}

.traxon-message-group--hawb .traxon-message-group__icon {
    background: #2563eb;
}

.traxon-message-group > .traxon-attempt-list {
    border-top: 1px solid rgb(148 163 184 / 35%);
    background: #fff;
}

.traxon-group-unmatched {
    border: 1px dashed #f59e0b;
    border-radius: 0.5rem;
    padding: 0.75rem;
    background: #fffbeb;
    color: #475569;
}

.traxon-group-unmatched__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 700;
}

.traxon-group-unmatched__title > span {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.descartes-log-groups {
    display: grid;
    gap: 0.875rem;
    padding: 0.75rem;
}

.descartes-message-group {
    overflow: hidden;
    border: 1px solid #a7f3d0;
    border-radius: 0.625rem;
    background: #ecfdf5;
}

.descartes-message-group--hawb {
    border-color: #bae6fd;
    background: #f0f9ff;
}

.descartes-message-group[open] {
    box-shadow: 0 0.25rem 0.875rem rgb(15 23 42 / 8%);
}

.descartes-message-group__summary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 2.5rem 0.75rem 0.875rem;
    cursor: pointer;
    list-style: none;
}

.descartes-message-group__summary::-webkit-details-marker,
.descartes-attempt__summary::-webkit-details-marker {
    display: none;
}

.descartes-message-group__summary::after,
.descartes-attempt__summary::after {
    position: absolute;
    top: 50%;
    right: 0.875rem;
    color: #64748b;
    content: "›";
    font-size: 1.5rem;
    line-height: 1;
    transform: translateY(-50%);
    transition: transform 0.15s ease;
}

.descartes-message-group[open] > .descartes-message-group__summary::after,
.descartes-attempt[open] > .descartes-attempt__summary::after {
    transform: translateY(-50%) rotate(90deg);
}

.descartes-message-group__heading,
.descartes-attempt__title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-width: 0;
}

.descartes-message-group__heading strong,
.descartes-message-group__heading small,
.descartes-attempt__title strong,
.descartes-attempt__title small {
    display: block;
}

.descartes-message-group__heading small,
.descartes-attempt__title small {
    margin-top: 0.125rem;
    color: #64748b;
    font-size: 0.75rem;
    overflow-wrap: anywhere;
}

.descartes-message-group__icon,
.descartes-attempt__icon {
    display: inline-grid;
    flex: 0 0 2.25rem;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    border-radius: 0.5rem;
    background: #059669;
    color: #fff;
}

.descartes-message-group--hawb .descartes-message-group__icon {
    background: #0284c7;
}

.descartes-attempt-list {
    display: grid;
    gap: 0.75rem;
    border-top: 1px solid rgb(148 163 184 / 35%);
    padding: 0.75rem;
    background: #fff;
}

.descartes-attempt {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: #fff;
}

.descartes-attempt[open] {
    border-color: #6ee7b7;
    box-shadow: 0 0.25rem 0.75rem rgb(15 23 42 / 6%);
}

.descartes-attempt__summary {
    position: relative;
    display: block;
    padding: 0.75rem 2.25rem 0.75rem 0.75rem;
    cursor: pointer;
    list-style: none;
}

.descartes-attempt__heading {
    display: grid;
    gap: 0.75rem;
}

.descartes-attempt__icon {
    width: 2rem;
    height: 2rem;
    flex-basis: 2rem;
    border-radius: 50%;
    background: #d1fae5;
    color: #047857;
}

.descartes-attempt__icon.is-callback {
    background: #e0f2fe;
    color: #0369a1;
}

.descartes-attempt__body {
    border-top: 1px solid #e2e8f0;
    padding: 0.875rem;
    background: #f8fafc;
}

.descartes-callback-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    border: 1px solid #bae6fd;
    border-radius: 0.5rem;
    padding: 0.625rem 0.75rem;
    background: #f0f9ff;
    color: #075985;
    font-size: 0.8125rem;
}

.descartes-airline-message {
    display: grid;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
    border-left: 3px solid #16a34a;
    padding: 0.625rem 0.75rem;
    background: #f0fdf4;
    color: #166534;
    font-size: 0.8125rem;
}

.descartes-airline-message.is-rejected {
    border-left-color: #dc2626;
    background: #fef2f2;
    color: #991b1b;
}

.descartes-technical-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
    gap: 0.625rem;
}

.descartes-technical-grid > div,
.descartes-endpoint {
    min-width: 0;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    padding: 0.5rem 0.625rem;
    background: #fff;
}

.descartes-technical-grid small,
.descartes-endpoint small {
    display: block;
    margin-bottom: 0.125rem;
    color: #64748b;
    font-size: 0.6875rem;
    font-weight: 700;
}

.descartes-technical-grid strong,
.descartes-technical-grid code,
.descartes-endpoint code {
    font-size: 0.75rem;
    overflow-wrap: anywhere;
}

.descartes-endpoint {
    margin-top: 0.625rem;
}

.descartes-raw-details {
    margin-top: 0.625rem;
}

.descartes-raw-details > summary {
    color: #475569;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
}

.descartes-raw-details pre {
    max-height: 18rem;
    margin: 0.5rem 0 0;
    overflow: auto;
    border-radius: 0.375rem;
    padding: 0.75rem;
    background: #0f172a;
    color: #bae6fd;
    font-size: 0.6875rem;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.traxon-attempt {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: #fff;
}

.traxon-attempt[open] {
    border-color: #c4b5fd;
    box-shadow: 0 0.25rem 0.75rem rgb(15 23 42 / 6%);
}

.traxon-attempt__summary {
    position: relative;
    display: block;
    padding: 0.75rem 2.25rem 0.75rem 0.75rem;
    cursor: pointer;
    list-style: none;
}

.traxon-attempt__summary::-webkit-details-marker {
    display: none;
}

.traxon-attempt__summary::after {
    position: absolute;
    top: 50%;
    right: 0.85rem;
    color: #64748b;
    content: "›";
    font-size: 1.5rem;
    line-height: 1;
    transform: translateY(-50%);
    transition: transform 0.15s ease;
}

.traxon-attempt[open] > .traxon-attempt__summary::after {
    transform: translateY(-50%) rotate(90deg);
}

.traxon-attempt__heading {
    display: grid;
    gap: 0.75rem;
}

.traxon-attempt__title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-width: 9rem;
}

.traxon-attempt__title small {
    display: block;
    margin-top: 0.125rem;
    color: #64748b;
    font-size: 0.6875rem;
}

.traxon-attempt__icon {
    display: inline-grid;
    flex: 0 0 2rem;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 50%;
    background: #ede9fe;
    color: #6d28d9;
}

.traxon-attempt__flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0.375rem;
}

.traxon-flow-step {
    display: flex;
    align-items: center;
    align-self: stretch;
    gap: 0.5rem;
    min-width: 0;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    padding: 0.5rem;
    background: #f8fafc;
    color: #475569;
}

.traxon-flow-step__number {
    display: inline-grid;
    flex: 0 0 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: rgb(255 255 255 / 80%);
    color: inherit;
    font-size: 0.6875rem;
    font-weight: 700;
}

.traxon-flow-step__content {
    min-width: 0;
}

.traxon-flow-step__content small,
.traxon-flow-step__content strong {
    display: block;
}

.traxon-flow-step__content small {
    margin-bottom: 0.0625rem;
    font-size: 0.625rem;
    font-weight: 500;
    line-height: 1.2;
    opacity: 0.82;
}

.traxon-flow-step__content strong {
    font-size: 0.75rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.traxon-flow-step.is-success {
    border-color: #86efac;
    background: #f0fdf4;
    color: #15803d;
}

.traxon-flow-step.is-warning {
    border-color: #fdba74;
    background: #fff7ed;
    color: #c2410c;
}

.traxon-flow-step.is-danger {
    border-color: #fca5a5;
    background: #fef2f2;
    color: #dc2626;
}

.traxon-flow-step.is-pending {
    border-color: #fde68a;
    background: #fffbeb;
    color: #a16207;
}

.traxon-flow-arrow {
    color: #94a3b8;
}

.traxon-attempt__body {
    border-top: 1px solid #e2e8f0;
    padding: 0.875rem;
    background: #f8fafc;
}

.traxon-callback-timeline__item--send::before {
    background: #2563eb;
    box-shadow: 0 0 0 1px #2563eb;
}

.traxon-callback-timeline__item--pending::before {
    background: #f59e0b;
    box-shadow: 0 0 0 1px #f59e0b;
}

.traxon-event-description {
    margin-top: 0.5rem;
    color: #475569;
    font-size: 0.8125rem;
}

.traxon-response-message--error {
    border-left-color: #dc2626;
    background: #fef2f2;
    color: #991b1b;
}

.traxon-technical-details {
    margin-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 0.625rem;
}

.traxon-technical-details > summary {
    color: #475569;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
}

.traxon-unmatched-callbacks {
    margin: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    padding: 0.75rem;
    background: #f8fafc;
    color: #475569;
}

.traxon-unmatched-callbacks__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.375rem;
    cursor: pointer;
    font-weight: 700;
}

.traxon-unmatched-callbacks__title > span {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.traxon-unmatched-callbacks__item {
    margin-top: 0.5rem;
    border-top: 1px solid #cbd5e1;
    padding-top: 0.5rem;
}

.traxon-unmatched-callbacks__item summary {
    cursor: pointer;
}

@media (max-width: 767.98px) {
    .descartes-message-group__summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .traxon-message-group__summary,
    .traxon-message-group__counts {
        align-items: flex-start;
        flex-direction: column;
    }

    .traxon-attempt__flow {
        grid-template-columns: 1fr;
    }

    .traxon-flow-arrow {
        justify-self: center;
        transform: rotate(90deg);
    }

    .traxon-callback-timeline__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.25rem;
    }
}
