body.module-transport {
    --module-accent: #d99b00;
    --module-accent-rgb: 217, 155, 0;
    --module-accent-strong: #7a5200;
    --module-accent-soft: #fff7d6;
}

body.module-fulfillment {
    --module-accent: #405189;
    --module-accent-rgb: 64, 81, 137;
    --module-accent-strong: #304171;
    --module-accent-soft: #edf0fa;
}

body.module-inbound {
    --module-accent: #299cdb;
    --module-accent-rgb: 41, 156, 219;
    --module-accent-strong: #17658f;
    --module-accent-soft: #eaf7fd;
}

.module-page-title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.module-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 2.25rem;
    border-radius: 0.5rem;
    color: var(--module-accent-strong);
    background-color: var(--module-accent-soft);
    font-size: 1.125rem;
}

.module-title-kicker {
    margin-bottom: 0.125rem;
    color: var(--module-accent-strong);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
}

body.module-transport #transportsCard,
body.module-fulfillment #fulfillmentOrdersCard,
body.module-inbound #inboundCard,
.module-summary-card {
    border-top: 3px solid var(--module-accent);
}

body.module-transport .card > .card-header,
body.module-fulfillment .card > .card-header,
body.module-inbound #inboundCard > .card-header {
    background-color: var(--module-accent-soft);
    border-bottom-color: rgba(var(--module-accent-rgb), 0.18);
}

body.module-transport .table > thead > tr > th,
body.module-fulfillment .table > thead > tr > th,
body.module-inbound #inboundCard .table > thead > tr > th {
    color: var(--module-accent-strong) !important;
    background-color: var(--module-accent-soft) !important;
    border-bottom-color: rgba(var(--module-accent-rgb), 0.28);
}

body.module-transport .audit-event-dot,
body.module-fulfillment .audit-event-dot {
    background-color: var(--module-accent);
    box-shadow: 0 0 0 1px rgba(var(--module-accent-rgb), 0.25);
}

.entity-ref {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 600;
    text-decoration: none;
}

.entity-ref:hover {
    text-decoration: underline;
}

.entity-ref-transport {
    color: #7a5200;
}

.entity-ref-fulfillment {
    color: #405189;
}

.entity-ref-related {
    padding: 0.2rem 0.45rem;
    border-radius: 0.375rem;
    text-decoration: none;
}

.entity-ref-related.entity-ref-transport {
    background-color: #fff7d6;
}

.entity-ref-related.entity-ref-fulfillment {
    background-color: #edf0fa;
}

.entity-ref-related:hover {
    text-decoration: none;
    filter: brightness(0.97);
}

.btn-module-primary {
    color: #fff;
    background-color: var(--module-accent);
    border-color: var(--module-accent);
}

.btn-module-primary:hover,
.btn-module-primary:focus {
    color: #fff;
    background-color: var(--module-accent-strong);
    border-color: var(--module-accent-strong);
}

[data-bs-theme="dark"] body.module-transport {
    --module-accent: #e0a916;
    --module-accent-strong: #ffd866;
    --module-accent-soft: #3a2e0c;
}

[data-bs-theme="dark"] body.module-fulfillment {
    --module-accent: #7185d5;
    --module-accent-strong: #aebdff;
    --module-accent-soft: #202a4d;
}

[data-bs-theme="dark"] body.module-inbound {
    --module-accent: #58b9eb;
    --module-accent-strong: #92d7f8;
    --module-accent-soft: #163447;
}

[data-bs-theme="dark"] .entity-ref-transport {
    color: #ffd866;
}

[data-bs-theme="dark"] .entity-ref-fulfillment {
    color: #aebdff;
}

[data-bs-theme="dark"] .entity-ref-related.entity-ref-transport {
    background-color: #3a2e0c;
}

[data-bs-theme="dark"] .entity-ref-related.entity-ref-fulfillment {
    background-color: #202a4d;
}

@media (max-width: 575.98px) {
    .module-page-title {
        margin-bottom: 0.5rem;
    }
}
