/*
 * BADICOM Design System
 * Reusable components
 *
 * Boutons, cartes, badges, formulaires et alertes.
 */


/*
 * ----------------------------------------------------------
 * Buttons
 * ----------------------------------------------------------
 */

.btn {
    display: inline-flex;
    min-height: var(--control-height-md);
    align-items: center;
    justify-content: center;
    gap: var(--space-2);

    padding:
        0
        var(--space-4);

    border: 1px solid transparent;
    border-radius: var(--radius-md);

    background: transparent;

    color: var(--color-text);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    line-height: 1;

    text-decoration: none;

    transition:
        background-color var(--transition-fast),
        border-color var(--transition-fast),
        color var(--transition-fast),
        box-shadow var(--transition-fast),
        transform var(--transition-fast);
}

.btn:hover {
    text-decoration: none;
}

.btn:active {
    transform: translateY(1px);
}

.btn:disabled,
.btn[aria-disabled="true"] {
    opacity: 0.55;
    pointer-events: none;
}


/*
 * Button sizes
 */

.btn--sm {
    min-height: var(--control-height-sm);

    padding:
        0
        var(--space-3);

    font-size: var(--font-size-xs);
}

.btn--lg {
    min-height: var(--control-height-lg);

    padding:
        0
        var(--space-5);

    font-size: var(--font-size-md);
}


/*
 * Primary
 */

.btn--primary {
    border-color: var(--color-primary-800);
    background: var(--color-primary-800);
    color: var(--color-white);
}

.btn--primary:hover {
    border-color: var(--color-primary-900);
    background: var(--color-primary-900);
    color: var(--color-white);
}


/*
 * Secondary
 */

.btn--secondary {
    border-color: var(--color-border-strong);
    background: var(--color-white);
    color: var(--color-gray-700);
}

.btn--secondary:hover {
    border-color: var(--color-gray-400);
    background: var(--color-gray-50);
    color: var(--color-gray-900);
}


/*
 * Ghost
 */

.btn--ghost {
    color: var(--color-gray-600);
}

.btn--ghost:hover {
    background: var(--color-gray-100);
    color: var(--color-gray-900);
}


/*
 * Danger
 */

.btn--danger {
    border-color: var(--color-danger);
    background: var(--color-danger);
    color: var(--color-white);
}

.btn--danger:hover {
    border-color: #a92f2f;
    background: #a92f2f;
    color: var(--color-white);
}


/*
 * Icon button
 */

.btn--icon {
    width: var(--control-height-md);
    padding: 0;
}


/*
 * ----------------------------------------------------------
 * Cards
 * ----------------------------------------------------------
 */

.card {
    overflow: hidden;

    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);

    background: var(--color-surface);

    box-shadow: var(--shadow-card);
}

.card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);

    padding:
        var(--space-5)
        var(--space-5)
        var(--space-4);

    border-bottom: 1px solid var(--color-border);
}

.card__body {
    padding: var(--space-5);
}

.card__footer {
    padding:
        var(--space-4)
        var(--space-5);

    border-top: 1px solid var(--color-border);

    background: var(--color-surface-muted);
}

.card__title {
    margin: 0;

    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
}

.card__subtitle {
    margin:
        var(--space-1)
        0
        0;

    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}


/*
 * ----------------------------------------------------------
 * KPI card
 * ----------------------------------------------------------
 */

.kpi-card {
    display: flex;
    min-height: 8.5rem;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--space-4);

    padding: var(--space-5);

    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);

    background: var(--color-surface);

    box-shadow: var(--shadow-card);
}

.kpi-card__label {
    color: var(--color-text-muted);

    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
}

.kpi-card__value {
    margin: 0;

    color: var(--color-text-strong);

    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    line-height: 1;
}

.kpi-card__meta {
    color: var(--color-text-muted);
    font-size: var(--font-size-xs);
}


/*
 * ----------------------------------------------------------
 * Badges
 * ----------------------------------------------------------
 */

.badge {
    display: inline-flex;
    min-height: 1.625rem;
    align-items: center;
    gap: var(--space-1);

    padding:
        var(--space-1)
        var(--space-2);

    border: 1px solid transparent;
    border-radius: var(--radius-full);

    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    line-height: 1;
    white-space: nowrap;
}

.badge--neutral {
    border-color: var(--color-gray-200);
    background: var(--color-gray-100);
    color: var(--color-gray-700);
}

.badge--info {
    border-color: #c9e3f7;
    background: var(--color-info-soft);
    color: #18598e;
}

.badge--success {
    border-color: #c7ead8;
    background: var(--color-success-soft);
    color: #176845;
}

.badge--warning {
    border-color: #f4d7a6;
    background: var(--color-warning-soft);
    color: #9a5506;
}

.badge--danger {
    border-color: #f0caca;
    background: var(--color-danger-soft);
    color: #9d2d2d;
}

.badge--logistics {
    border-color: #c9e3f7;
    background: var(--color-logistics-soft);
    color: var(--color-logistics);
}

.badge--fleet {
    border-color: #c7ead8;
    background: var(--color-fleet-soft);
    color: var(--color-fleet);
}


/*
 * ----------------------------------------------------------
 * Forms
 * ----------------------------------------------------------
 */

.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: inline-block;

    margin-bottom: var(--space-2);

    color: var(--color-gray-700);

    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
}

.form-required {
    color: var(--color-danger);
}

.form-control {
    display: block;

    width: 100%;
    min-height: var(--control-height-md);

    padding:
        0.625rem
        var(--space-3);

    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);

    background: var(--color-white);
    color: var(--color-text);

    font-size: var(--font-size-sm);

    box-shadow: var(--shadow-xs);

    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast),
        background-color var(--transition-fast);
}

.form-control:hover {
    border-color: var(--input-border-hover);
}

.form-control:focus {
    border-color: var(--input-border-focus);

    box-shadow:
        0 0 0 3px
        rgb(40 120 189 / 0.13);
}

.form-control::placeholder {
    color: var(--color-text-subtle);
}

.form-control:disabled,
.form-control[readonly] {
    background: var(--color-gray-100);
    color: var(--color-text-muted);
}

textarea.form-control {
    min-height: 7rem;
}

.form-help {
    margin-top: var(--space-2);

    color: var(--color-text-muted);
    font-size: var(--font-size-xs);
}

.form-error {
    margin-top: var(--space-2);

    color: var(--color-danger);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
}

.form-control.is-invalid {
    border-color: var(--color-danger);
}


/*
 * ----------------------------------------------------------
 * Alerts
 * ----------------------------------------------------------
 */

.alert {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);

    padding:
        var(--space-4)
        var(--space-5);

    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);

    background: var(--color-white);

    font-size: var(--font-size-sm);
}

.alert__content {
    min-width: 0;
    flex: 1;
}

.alert__title {
    margin-bottom: var(--space-1);

    font-weight: var(--font-weight-semibold);
}

.alert--info {
    border-color: #c9e3f7;
    background: var(--color-info-soft);
    color: #18598e;
}

.alert--success {
    border-color: #c7ead8;
    background: var(--color-success-soft);
    color: #176845;
}

.alert--warning {
    border-color: #f4d7a6;
    background: var(--color-warning-soft);
    color: #8b4b05;
}

.alert--danger {
    border-color: #f0caca;
    background: var(--color-danger-soft);
    color: #942929;
}


/*
 * ----------------------------------------------------------
 * Content helpers
 * ----------------------------------------------------------
 */

.text-muted {
    color: var(--color-text-muted);
}

.text-small {
    font-size: var(--font-size-sm);
}

.text-strong {
    color: var(--color-text-strong);
    font-weight: var(--font-weight-semibold);
}

.content-stack > * + * {
    margin-top: var(--space-4);
}


/*
 * ----------------------------------------------------------
 * Responsive components
 * ----------------------------------------------------------
 */

@media (max-width: 47.9375rem) {
    .btn--mobile-full {
        width: 100%;
    }

    .card__header {
        flex-direction: column;
    }

    .card__header,
    .card__body,
    .card__footer {
        padding-left: var(--space-4);
        padding-right: var(--space-4);
    }

    .kpi-card {
        min-height: 7.5rem;
        padding: var(--space-4);
    }
}


/*
 * ----------------------------------------------------------
 * Responsive grids
 * ----------------------------------------------------------
 */

.grid {
    display: grid;
    gap: var(--space-5);
}

.grid--kpi {
    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );
}

.grid--2 {
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );
}

.section-block {
    margin-top: var(--space-8);
}

.section-heading {
    margin-bottom: var(--space-4);
}

.section-heading__title {
    margin-bottom: var(--space-1);

    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
}

.section-heading__description {
    margin: 0;

    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

.status-list {
    display: grid;
    gap: var(--space-3);

    margin: 0;
    padding: 0;

    list-style: none;
}

.status-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);

    padding-bottom: var(--space-3);

    border-bottom: 1px solid var(--color-border);
}

.status-list__item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.status-list__label {
    min-width: 0;

    color: var(--color-text);
    font-size: var(--font-size-sm);
}

.status-list__value {
    flex-shrink: 0;
}

@media (max-width: 63.9375rem) {
    .grid--kpi {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }
}

@media (max-width: 47.9375rem) {
    .grid--kpi,
    .grid--2 {
        grid-template-columns: 1fr;
    }

    .grid {
        gap: var(--space-4);
    }

    .section-block {
        margin-top: var(--space-6);
    }
}


/*
 * ----------------------------------------------------------
 * Module identity
 * ----------------------------------------------------------
 */

.module-heading {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
}

.module-heading__code {
    display: inline-flex;
    min-width: 3.25rem;
    height: 2.25rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;

    margin-top: 0.1rem;

    border: 1px solid var(--color-primary-200);
    border-radius: var(--radius-md);

    background: var(--color-primary-50);
    color: var(--color-primary-800);

    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;

    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.045em;
}

.module-placeholder {
    max-width: 58rem;
}

.module-placeholder .card__body {
    display: flex;
    align-items: flex-start;
    gap: var(--space-5);

    padding: var(--space-6);
}

.module-placeholder__icon {
    display: inline-flex;
    width: 4rem;
    height: 4rem;
    flex: 0 0 4rem;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--color-primary-200);
    border-radius: var(--radius-xl);

    background: var(--color-primary-50);
    color: var(--color-primary-800);

    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;

    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.05em;
}

.module-placeholder__permission {
    display: inline-flex;

    margin-top: var(--space-5);

    padding:
        var(--space-2)
        var(--space-3);

    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);

    background: var(--color-gray-50);
    color: var(--color-text-muted);

    font-size: var(--font-size-xs);
}

.module-placeholder__permission code {
    margin-left: var(--space-2);

    color: var(--color-primary-800);
    font-weight: var(--font-weight-semibold);
}

@media (max-width: 47.9375rem) {
    .module-heading {
        gap: var(--space-3);
    }

    .module-placeholder .card__body {
        flex-direction: column;

        padding: var(--space-4);
    }

    .module-placeholder__icon {
        width: 3.25rem;
        height: 3.25rem;
        flex-basis: 3.25rem;
    }
}


/* ==========================================================
 * Data register / operational tables
 * ========================================================== */

.container-register .card__body {
    padding: var(--space-6);
}

.data-toolbar {
    display: grid;
    grid-template-columns:
        minmax(260px, 1fr)
        minmax(190px, 240px)
        auto;
    gap: var(--space-4);
    align-items: end;
}

.data-toolbar__field {
    min-width: 0;
}

.data-toolbar__field--search {
    min-width: 260px;
}

.data-toolbar__actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-height: var(--control-height);
}

.containers-filter-reset {
    color: var(--color-primary-700);
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.containers-filter-reset:hover {
    text-decoration: underline;
}

.data-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    margin-top: var(--space-5);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-gray-200);
    color: var(--color-gray-600);
    font-size: var(--font-size-sm);
}

.data-summary strong {
    color: var(--color-gray-900);
    font-size: var(--font-size-lg);
}

.data-empty-state {
    display: flex;
    align-items: flex-start;
    gap: var(--space-5);
    margin-top: var(--space-6);
    padding:
        clamp(28px, 5vw, 52px)
        clamp(20px, 5vw, 48px);
    border: 1px dashed var(--color-gray-300);
    border-radius: var(--radius-lg);
    background: var(--color-gray-50);
}

.data-empty-state__mark {
    display: grid;
    place-items: center;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    background: var(--color-primary-900);
    color: #fff;
    font-size: var(--font-size-sm);
    font-weight: 800;
    letter-spacing: 0.08em;
}

.data-empty-state h2 {
    margin: 0 0 var(--space-2);
    color: var(--color-gray-900);
    font-size: var(--font-size-lg);
}

.data-empty-state p {
    max-width: 680px;
    margin: 0;
    color: var(--color-gray-600);
    line-height: 1.6;
}

.data-empty-state__hint {
    margin-top: var(--space-3) !important;
    color: var(--color-primary-700) !important;
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.data-table-wrap {
    width: 100%;
    margin-top: var(--space-5);
    overflow-x: auto;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
}

.data-table {
    width: 100%;
    min-width: 1180px;
    border-collapse: collapse;
    background: #fff;
}

.data-table th,
.data-table td {
    padding:
        var(--space-3)
        var(--space-4);
    border-bottom: 1px solid var(--color-gray-200);
    text-align: left;
    vertical-align: middle;
}

.data-table th {
    background: var(--color-gray-50);
    color: var(--color-gray-600);
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.data-table td {
    color: var(--color-gray-700);
    font-size: var(--font-size-sm);
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.data-table tbody tr:hover {
    background: var(--color-gray-50);
}

.data-table__primary,
.data-table__secondary {
    display: block;
}

.data-table__primary {
    color: var(--color-gray-900);
    font-weight: 650;
    white-space: nowrap;
}

.data-table__secondary {
    margin-top: 3px;
    color: var(--color-gray-500);
    font-size: var(--font-size-xs);
}

@media (max-width: 900px) {
    .data-toolbar {
        grid-template-columns: 1fr 1fr;
    }

    .data-toolbar__actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .container-register .card__body {
        padding: var(--space-4);
    }

    .data-toolbar {
        grid-template-columns: 1fr;
    }

    .data-toolbar__field--search {
        min-width: 0;
    }

    .data-toolbar__actions {
        grid-column: auto;
        align-items: stretch;
        flex-direction: column;
    }

    .data-toolbar__actions .btn {
        width: 100%;
    }

    .data-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .data-empty-state {
        flex-direction: column;
    }
}


/* ==========================================================
 * Business forms
 * ========================================================== */

.business-form-card {
    max-width: 1180px;
}

.business-form-card .card__body {
    padding: var(--space-6);
}

.business-form-section + .business-form-section {
    margin-top: var(--space-7);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-gray-200);
}

.business-form-section__header {
    margin-bottom: var(--space-5);
}

.business-form-section__header h2 {
    margin: 0;
    color: var(--color-gray-900);
    font-size: var(--font-size-lg);
}

.business-form-section__header p {
    margin:
        var(--space-1)
        0
        0;
    color: var(--color-gray-600);
    font-size: var(--font-size-sm);
}

.business-form-grid {
    display: grid;
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );
    gap:
        var(--space-1)
        var(--space-5);
}

.business-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-3);
    margin-top: var(--space-7);
    padding-top: var(--space-5);
    border-top: 1px solid var(--color-gray-200);
}

.business-form-lock-note {
    margin:
        var(--space-3)
        0
        0;
    color: var(--color-gray-500);
    font-size: var(--font-size-xs);
    text-align: right;
}

@media (max-width: 700px) {
    .business-form-card .card__body {
        padding: var(--space-4);
    }

    .business-form-grid {
        grid-template-columns: 1fr;
    }

    .business-form-actions {
        flex-direction: column-reverse;
    }

    .business-form-actions .btn {
        width: 100%;
    }

    .business-form-lock-note {
        text-align: left;
    }
}


/* ==========================================================
 * Supplier creation wizard
 * ========================================================== */

.supplier-wizard {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    background: var(--color-white);
    box-shadow: var(--shadow-card);
}

.supplier-wizard__header {
    padding:
        var(--space-6)
        var(--space-7);
    border-bottom: 1px solid var(--color-gray-200);
    background: var(--color-gray-50);
}

.supplier-wizard__intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);
}

.supplier-wizard__identity {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.supplier-wizard__mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--color-primary-900);
    color: var(--color-white);
    font-size: var(--font-size-xs);
    font-weight: 800;
    letter-spacing: 0.08em;
}

.supplier-wizard__eyebrow,
.supplier-step-heading__eyebrow {
    display: block;
    margin-bottom: 2px;
    color: var(--color-primary-700);
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.supplier-wizard__identity h2 {
    margin: 0;
    color: var(--color-gray-900);
    font-size: var(--font-size-lg);
}

.supplier-wizard__counter {
    display: flex;
    align-items: baseline;
    gap: var(--space-2);
    padding:
        var(--space-2)
        var(--space-3);
    border: 1px solid var(--color-gray-200);
    border-radius: 999px;
    background: var(--color-white);
    color: var(--color-gray-500);
    font-size: var(--font-size-xs);
}

.supplier-wizard__counter strong {
    color: var(--color-primary-900);
    font-size: var(--font-size-sm);
}

.supplier-wizard__progress {
    position: relative;
    margin-top: var(--space-6);
}

.supplier-wizard__track {
    position: absolute;
    top: 17px;
    right: 6%;
    left: 6%;
    height: 2px;
    overflow: hidden;
    background: var(--color-gray-200);
}

.supplier-wizard__fill {
    display: block;
    width: 0;
    height: 100%;
    background: var(--color-primary-800);
    transition: width 260ms ease;
}

.supplier-wizard__steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-3);
    margin: 0;
    padding: 0;
    list-style: none;
}

.supplier-wizard__step {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    min-width: 0;
}

.supplier-wizard__step-number {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border: 2px solid var(--color-gray-300);
    border-radius: 50%;
    background: var(--color-white);
    color: var(--color-gray-500);
    font-size: var(--font-size-xs);
    font-weight: 800;
    transition:
        border-color 200ms ease,
        background-color 200ms ease,
        color 200ms ease;
}

.supplier-wizard__step.is-active
.supplier-wizard__step-number,
.supplier-wizard__step.is-complete
.supplier-wizard__step-number {
    border-color: var(--color-primary-800);
    background: var(--color-primary-900);
    color: var(--color-white);
}

.supplier-wizard__step-copy {
    display: block;
    min-width: 0;
    padding-top: 2px;
}

.supplier-wizard__step-copy strong,
.supplier-wizard__step-copy small {
    display: block;
}

.supplier-wizard__step-copy strong {
    color: var(--color-gray-700);
    font-size: var(--font-size-sm);
}

.supplier-wizard__step-copy small {
    margin-top: 2px;
    color: var(--color-gray-500);
    font-size: var(--font-size-xs);
}

.supplier-wizard__step.is-active
.supplier-wizard__step-copy strong {
    color: var(--color-primary-900);
}

.supplier-wizard__body {
    padding:
        clamp(24px, 4vw, 48px)
        clamp(20px, 5vw, 64px);
}

.supplier-wizard__panel {
    animation: supplierWizardPanelIn 220ms ease;
}

@keyframes supplierWizardPanelIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.supplier-step-heading {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    margin-bottom: var(--space-7);
}

.supplier-step-heading__number {
    display: grid;
    place-items: center;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    border-radius: var(--radius-lg);
    background: var(--color-primary-900);
    color: var(--color-white);
    font-size: var(--font-size-lg);
    font-weight: 800;
    letter-spacing: 0.05em;
}

.supplier-step-heading h2 {
    margin: 0;
    color: var(--color-gray-900);
    font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.supplier-step-heading p {
    max-width: 680px;
    margin:
        var(--space-1)
        0
        0;
    color: var(--color-gray-600);
    line-height: 1.55;
}

.supplier-wizard__grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap:
        var(--space-2)
        var(--space-6);
}

.supplier-wizard__field--wide {
    grid-column: 1 / -1;
}

.supplier-wizard__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    margin-top: var(--space-7);
    padding-top: var(--space-5);
    border-top: 1px solid var(--color-gray-200);
}

.supplier-wizard__helper,
.supplier-wizard__secure {
    color: var(--color-gray-500);
    font-size: var(--font-size-xs);
}

.supplier-wizard__final {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.supplier-review {
    overflow: hidden;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-xl);
    background: var(--color-gray-50);
}

.supplier-review__hero {
    display: grid;
    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-5);
    border-bottom: 1px solid var(--color-gray-200);
    background: var(--color-white);
}

.supplier-review__mark {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--color-primary-900);
    color: var(--color-white);
    font-size: var(--font-size-xs);
    font-weight: 800;
}

.supplier-review__label {
    display: block;
    color: var(--color-gray-500);
    font-size: var(--font-size-xs);
}

.supplier-review__hero strong {
    display: block;
    margin-top: 2px;
    color: var(--color-gray-900);
    font-size: var(--font-size-lg);
}

.supplier-review__hero small {
    display: block;
    margin-top: 2px;
    color: var(--color-gray-500);
}

.supplier-review__grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--color-gray-200);
}

.supplier-review__item {
    min-width: 0;
    padding: var(--space-4);
    background: var(--color-white);
}

.supplier-review__item--wide {
    grid-column: 1 / -1;
}

.supplier-review__item span,
.supplier-review__item strong {
    display: block;
}

.supplier-review__item span {
    margin-bottom: var(--space-1);
    color: var(--color-gray-500);
    font-size: var(--font-size-xs);
}

.supplier-review__item strong {
    overflow-wrap: anywhere;
    color: var(--color-gray-800);
    font-size: var(--font-size-sm);
    font-weight: 650;
}

@media (max-width: 800px) {
    .supplier-wizard__header {
        padding: var(--space-5);
    }

    .supplier-wizard__steps {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        gap: var(--space-4);
    }

    .supplier-wizard__track {
        display: none;
    }

    .supplier-wizard__grid {
        grid-template-columns: 1fr;
    }

    .supplier-wizard__field--wide {
        grid-column: auto;
    }
}

@media (max-width: 520px) {
    .supplier-wizard__intro {
        align-items: flex-start;
        flex-direction: column;
    }

    .supplier-wizard__counter {
        align-self: flex-start;
    }

    .supplier-wizard__step-copy small {
        display: none;
    }

    .supplier-step-heading {
        flex-direction: column;
    }

    .supplier-step-heading__number {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        font-size: var(--font-size-md);
    }

    .supplier-wizard__actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .supplier-wizard__actions .btn {
        width: 100%;
    }

    .supplier-wizard__helper {
        text-align: left;
    }

    .supplier-wizard__final {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .supplier-review__hero {
        grid-template-columns:
            auto
            minmax(0, 1fr);
    }

    .supplier-review__hero .badge {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .supplier-review__grid {
        grid-template-columns: 1fr;
    }

    .supplier-review__item--wide {
        grid-column: auto;
    }
}


/* ==========================================================
 * Compact supplier wizard
 * ========================================================== */

.supplier-create-page-header {
    margin-bottom: var(--space-4);
}

.supplier-create-page-header
.app-page-description {
    margin-top: 3px;
}

.supplier-wizard__body {
    padding:
        clamp(28px, 4vw, 46px)
        clamp(24px, 5vw, 64px);
}

.supplier-step-heading {
    margin-bottom: var(--space-6);
}

.supplier-step-heading__number {
    width: 54px;
    height: 54px;
    flex-basis: 54px;

    border-radius: 14px;

    box-shadow:
        0 8px 20px
        rgb(9 45 79 / 0.12);
}

.supplier-step-heading__eyebrow {
    margin-bottom: 4px;
}

@media (max-width: 520px) {
    .supplier-create-page-header {
        margin-bottom: var(--space-3);
    }

    .supplier-create-page-header
    .app-page-description {
        display: none;
    }

    .supplier-wizard__body {
        padding:
            var(--space-5)
            var(--space-4);
    }

    .supplier-step-heading {
        margin-bottom: var(--space-5);
    }

    .supplier-step-heading__number {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }
}


/* ==========================================================
 * Final compact supplier wizard
 * ========================================================== */

.supplier-create-page-header {
    margin-bottom: var(--space-3);
}

.supplier-wizard {
    margin-top: 0;
}

.supplier-wizard__body {
    padding-top: clamp(26px, 3vw, 40px);
}

.supplier-step-heading {
    margin-bottom: var(--space-5);
}

@media (max-width: 520px) {
    .supplier-create-page-header {
        padding-bottom: var(--space-2);
        margin-bottom: var(--space-2);
    }

    .supplier-wizard__body {
        padding-top: var(--space-5);
    }
}


/* ==========================================================
 * Supplier create minimal toolbar
 * ========================================================== */

.supplier-create-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: var(--space-3);
}

@media (max-width: 520px) {
    .supplier-create-toolbar {
        margin-bottom: var(--space-3);
    }

    .supplier-create-toolbar .btn {
        min-height: 38px;
        padding:
            var(--space-2)
            var(--space-3);
    }
}


/* ==========================================================
 * Supplier generated code / international phone
 * ========================================================== */

.supplier-generated-code {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-height: var(--control-height);
    padding:
        var(--space-2)
        var(--space-3);
    border: 1px dashed var(--color-gray-300);
    border-radius: var(--radius-md);
    background: var(--color-gray-50);
}

.supplier-generated-code__icon {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: var(--color-primary-900);
    color: var(--color-white);
    font-size: var(--font-size-xs);
    font-weight: 800;
    letter-spacing: 0.06em;
}

.supplier-generated-code strong,
.supplier-generated-code small {
    display: block;
}

.supplier-generated-code strong {
    color: var(--color-gray-800);
    font-size: var(--font-size-sm);
}

.supplier-generated-code small {
    margin-top: 2px;
    color: var(--color-gray-500);
    font-size: var(--font-size-xs);
}

.supplier-phone-control {
    display: grid;
    grid-template-columns:
        auto
        minmax(0, 1fr);
}

.supplier-phone-control__dial {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    padding:
        0
        var(--space-3);
    border:
        1px solid
        var(--color-gray-300);
    border-right: 0;
    border-radius:
        var(--radius-md)
        0
        0
        var(--radius-md);
    background: var(--color-gray-50);
    color: var(--color-primary-900);
    font-weight: 700;
}

.supplier-phone-control .form-control {
    border-radius:
        0
        var(--radius-md)
        var(--radius-md)
        0;
}

.supplier-phone-control:focus-within
.supplier-phone-control__dial {
    border-color: var(--color-primary-500);
    background: var(--color-primary-50);
}

@media (max-width: 520px) {
    .supplier-phone-control__dial {
        min-width: 76px;
    }
}


/* ==========================================================
 * BADICOM responsive record pattern
 * Desktop table + mobile cards + detail modal
 * ========================================================== */

.record-row {
    cursor: pointer;
    transition:
        background 160ms ease,
        box-shadow 160ms ease;
}

.record-row:hover,
.record-row:focus-visible {
    background: var(--color-gray-50);
}

.record-row:focus-visible {
    outline: 2px solid var(--color-primary-500);
    outline-offset: -2px;
}

.record-actions-column {
    width: 92px;
    text-align: right;
}

.record-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-2);
}

.record-icon-button {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    background: var(--color-white);
    color: var(--color-primary-900);
    cursor: pointer;
    transition:
        background 160ms ease,
        border-color 160ms ease,
        transform 160ms ease;
}

.record-icon-button:hover {
    background: var(--color-primary-50);
    border-color: var(--color-primary-300);
    transform: translateY(-1px);
}

.record-icon-button svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.record-icon-button--danger {
    color: var(--color-danger-600, #b42318);
}

.record-icon-button--danger:hover {
    background: #fff5f5;
    border-color: #fecaca;
}

.record-mobile-list {
    display: none;
}

.record-mobile-card {
    width: 100%;
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto;
    align-items: center;
    gap: var(--space-4);
    padding:
        var(--space-4)
        var(--space-4);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    background: var(--color-white);
    text-align: left;
    cursor: pointer;
    box-shadow:
        0 4px 14px rgb(15 23 42 / 0.04);
}

.record-mobile-card__main {
    min-width: 0;
}

.record-mobile-card__main strong,
.record-mobile-card__main span,
.record-mobile-card__main small {
    display: block;
}

.record-mobile-card__main strong {
    overflow: hidden;
    color: var(--color-gray-900);
    font-size: var(--font-size-sm);
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.record-mobile-card__main span {
    margin-top: 5px;
    color: var(--color-gray-700);
    font-size: var(--font-size-sm);
}

.record-mobile-card__main small {
    margin-top: 3px;
    color: var(--color-gray-500);
    font-size: var(--font-size-xs);
}

.record-mobile-card__arrow {
    color: var(--color-gray-400);
    font-size: 1.65rem;
    font-weight: 300;
    line-height: 1;
}

.record-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-5);
    background:
        rgb(2 18 34 / 0.58);
    backdrop-filter: blur(3px);
}

.record-modal[hidden] {
    display: none;
}

.record-modal__panel {
    width: min(720px, 100%);
    max-height: min(86vh, 820px);
    overflow: hidden;
    border: 1px solid var(--color-gray-200);
    border-radius: 20px;
    background: var(--color-white);
    box-shadow:
        0 30px 80px
        rgb(2 18 34 / 0.24);
}

.record-modal__panel--confirm {
    width: min(510px, 100%);
}

.record-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
    padding:
        var(--space-5)
        var(--space-6);
    border-bottom: 1px solid var(--color-gray-200);
}

.record-modal__eyebrow {
    display: block;
    margin-bottom: 4px;
    color: var(--color-primary-700);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.record-modal__eyebrow--danger {
    color: var(--color-danger-600, #b42318);
}

.record-modal__header h2 {
    margin: 0;
    color: var(--color-gray-900);
    font-size: clamp(1.15rem, 3vw, 1.45rem);
}

.record-modal__code {
    display: block;
    margin-top: 5px;
    color: var(--color-gray-500);
    font-size: var(--font-size-xs);
    font-weight: 700;
}

.record-modal__close {
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--color-gray-200);
    border-radius: 50%;
    background: var(--color-white);
    color: var(--color-gray-600);
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
}

.record-modal__body {
    max-height: calc(86vh - 176px);
    overflow-y: auto;
    padding: var(--space-6);
}

.record-detail-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    background: var(--color-gray-200);
}

.record-detail-item {
    min-width: 0;
    padding: var(--space-4);
    background: var(--color-white);
}

.record-detail-item--wide {
    grid-column: 1 / -1;
}

.record-detail-item span,
.record-detail-item strong {
    display: block;
}

.record-detail-item span {
    margin-bottom: 5px;
    color: var(--color-gray-500);
    font-size: var(--font-size-xs);
}

.record-detail-item strong {
    overflow-wrap: anywhere;
    color: var(--color-gray-800);
    font-size: var(--font-size-sm);
    font-weight: 650;
    white-space: pre-line;
}

.record-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding:
        var(--space-4)
        var(--space-6);
    border-top: 1px solid var(--color-gray-200);
    background: var(--color-gray-50);
}

.record-modal__actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.record-danger-button {
    border-color: #b42318;
    background: #b42318;
    color: #fff;
}

.record-danger-button:hover {
    background: #912018;
    color: #fff;
}

.record-delete-message {
    margin-top: 0;
    color: var(--color-gray-800);
    line-height: 1.6;
}

.record-delete-warning {
    margin:
        var(--space-4)
        0
        0;
    padding: var(--space-4);
    border: 1px solid #fed7aa;
    border-radius: var(--radius-md);
    background: #fff7ed;
    color: #9a3412;
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

body.record-modal-open {
    overflow: hidden;
}

.supplier-edit-card {
    overflow: hidden;
}

.supplier-edit-identity {
    margin-bottom: var(--space-6);
    padding: var(--space-4);
    border: 1px dashed var(--color-gray-300);
    border-radius: var(--radius-lg);
    background: var(--color-gray-50);
}

.supplier-edit-identity span,
.supplier-edit-identity strong,
.supplier-edit-identity small {
    display: block;
}

.supplier-edit-identity span {
    color: var(--color-gray-500);
    font-size: var(--font-size-xs);
}

.supplier-edit-identity strong {
    margin-top: 3px;
    color: var(--color-primary-900);
    font-size: var(--font-size-lg);
}

.supplier-edit-identity small {
    margin-top: 4px;
    color: var(--color-gray-500);
}

.supplier-edit-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-3);
    padding:
        var(--space-4)
        var(--space-5);
    border-top: 1px solid var(--color-gray-200);
    background: var(--color-gray-50);
}

@media (max-width: 760px) {
    .supplier-desktop-view {
        display: none;
    }

    .record-mobile-list {
        display: grid;
        gap: var(--space-3);
    }

    .record-modal {
        align-items: flex-end;
        padding: 0;
    }

    .record-modal__panel {
        width: 100%;
        max-height: 92vh;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius:
            20px
            20px
            0
            0;
    }

    .record-modal__body {
        max-height: calc(92vh - 178px);
        padding: var(--space-4);
    }

    .record-modal__header {
        padding:
            var(--space-4)
            var(--space-4);
    }

    .record-modal__footer {
        padding:
            var(--space-3)
            var(--space-4);
    }

    .record-detail-grid {
        grid-template-columns: 1fr;
    }

    .record-detail-item--wide {
        grid-column: auto;
    }
}

@media (max-width: 520px) {
    .record-mobile-card {
        padding:
            14px
            15px;
    }

    .record-modal__footer {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .record-modal__actions {
        display: grid;
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .record-modal__footer .btn,
    .record-modal__footer form,
    .record-modal__footer form .btn {
        width: 100%;
    }

    .supplier-edit-footer {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .supplier-edit-footer .btn {
        width: 100%;
    }
}


/* ==========================================================
 * BADICOM Record UI V2
 * Premium business register
 * ========================================================== */

.record-page-header {
    margin-bottom: var(--space-4);
}


/* KPI ------------------------------------------------------ */

.record-kpi-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.record-kpi-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-4);
    min-width: 0;
    padding:
        18px
        20px;
    overflow: hidden;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f9fbfd 100%
        );
    box-shadow:
        0 5px 18px
        rgb(15 23 42 / 0.045);
}

.record-kpi-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 72px;
    height: 72px;
    border-radius: 0 0 0 100%;
    background:
        rgb(15 63 104 / 0.035);
    pointer-events: none;
}

.record-kpi-card__mark {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: var(--color-primary-900);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.04em;
}

.record-kpi-card--success
.record-kpi-card__mark {
    background: #087a55;
}

.record-kpi-card--neutral
.record-kpi-card__mark {
    background: #64748b;
}

.record-kpi-card--info
.record-kpi-card__mark {
    background: #155eaa;
}

.record-kpi-card__value,
.record-kpi-card__label {
    display: block;
}

.record-kpi-card__value {
    color: var(--color-gray-900);
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    font-weight: 800;
    line-height: 1.05;
}

.record-kpi-card__label {
    margin-top: 5px;
    color: var(--color-gray-500);
    font-size: var(--font-size-xs);
    font-weight: 600;
}


/* Registry heading ---------------------------------------- */

.record-register-card {
    overflow: hidden;
}

.record-toolbar-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

.record-toolbar-heading__eyebrow {
    display: block;
    margin-bottom: 3px;
    color: var(--color-primary-700);
    font-size: 0.66rem;
    font-weight: 850;
    letter-spacing: 0.13em;
}

.record-toolbar-heading h2 {
    margin: 0;
    color: var(--color-gray-900);
    font-size: 1.08rem;
}

.record-toolbar-heading__count {
    padding:
        6px
        10px;
    border: 1px solid var(--color-gray-200);
    border-radius: 999px;
    background: var(--color-gray-50);
    color: var(--color-gray-600);
    font-size: var(--font-size-xs);
    font-weight: 650;
}


/* Search --------------------------------------------------- */

.record-toolbar {
    padding-bottom: var(--space-5);
    border-bottom: 1px solid var(--color-gray-200);
}

.record-search-control {
    position: relative;
}

.record-search-control__icon {
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    color: var(--color-gray-400);
    transform: translateY(-50%);
    pointer-events: none;
}

.record-search-control__icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.record-search-control .form-control {
    padding-left: 42px;
}


/* Premium table ------------------------------------------- */

.record-table-wrap {
    margin-top: var(--space-5);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.record-table {
    border: 0;
}

.record-table thead th {
    background: #f7f9fc;
    color: #526176;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.025em;
}

.record-table tbody tr {
    position: relative;
}

.record-row:hover,
.record-row:focus-visible {
    background: #f8fbff;
    box-shadow:
        inset 3px 0 0
        var(--color-primary-700);
}

.record-table-identity strong,
.record-table-identity span {
    display: block;
}

.record-table-identity strong {
    color: var(--color-gray-900);
    font-weight: 750;
}

.record-table-identity span {
    margin-top: 4px;
    color: var(--color-gray-500);
    font-size: var(--font-size-xs);
    font-weight: 650;
}

.record-country-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding:
        5px
        9px;
    border: 1px solid #dbe5f0;
    border-radius: 999px;
    background: #f8fbff;
    color: var(--color-gray-700);
    font-size: var(--font-size-xs);
}

.record-country-chip b {
    color: var(--color-primary-900);
    font-size: 0.67rem;
    letter-spacing: 0.04em;
}

.record-phone {
    color: var(--color-gray-800);
    font-weight: 650;
}


/* Mobile cards -------------------------------------------- */

.record-mobile-card {
    position: relative;
    border-left:
        3px solid
        var(--color-primary-700);
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        border-color 160ms ease;
}

.record-mobile-card:active {
    transform: scale(0.992);
}

.record-mobile-card__phone {
    font-weight: 650;
}

.record-mobile-card__country {
    color: var(--color-gray-500);
}


/* Premium detail modal ------------------------------------ */

.record-modal__panel--premium {
    width: min(760px, 100%);
}

.record-modal__header--premium {
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fbfcfe 100%
        );
}

.record-modal__identity {
    min-width: 0;
    flex: 1;
}

.record-modal__title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap:
        var(--space-2)
        var(--space-3);
}

.record-modal__status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding:
        3px
        9px;
    border: 1px solid #d7dee7;
    border-radius: 999px;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 750;
}

.record-modal__status.is-active {
    border-color: #b7e4d3;
    background: #ecfdf5;
    color: #087a55;
}

.record-modal__status.is-inactive {
    border-color: #dce2e9;
    background: #f1f5f9;
    color: #64748b;
}

.record-modal__body--premium {
    background: #f7f9fc;
}

.record-detail-section + .record-detail-section {
    margin-top: var(--space-4);
}

.record-detail-section {
    overflow: hidden;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    background: var(--color-white);
}

.record-detail-section__header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding:
        14px
        16px;
    border-bottom: 1px solid var(--color-gray-200);
    background: #fbfcfe;
}

.record-detail-section__header > span {
    display: grid;
    place-items: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--color-primary-900);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 850;
}

.record-detail-section__header h3 {
    margin: 0;
    color: var(--color-gray-900);
    font-size: var(--font-size-sm);
}

.record-detail-section__header p {
    margin:
        2px
        0
        0;
    color: var(--color-gray-500);
    font-size: var(--font-size-xs);
}

.record-detail-section__grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
}

.record-detail-field {
    min-width: 0;
    padding:
        14px
        16px;
    border-bottom: 1px solid var(--color-gray-200);
}

.record-detail-field:nth-child(odd) {
    border-right: 1px solid var(--color-gray-200);
}

.record-detail-field--wide {
    grid-column: 1 / -1;
    border-right: 0 !important;
}

.record-detail-section__grid
.record-detail-field:last-child {
    border-bottom: 0;
}

.record-detail-field span,
.record-detail-field strong {
    display: block;
}

.record-detail-field span {
    margin-bottom: 5px;
    color: var(--color-gray-500);
    font-size: var(--font-size-xs);
}

.record-detail-field strong {
    overflow-wrap: anywhere;
    color: var(--color-gray-850, #1e293b);
    font-size: var(--font-size-sm);
    font-weight: 700;
    line-height: 1.5;
    white-space: pre-line;
}


/* Responsive ---------------------------------------------- */

@media (max-width: 1024px) {
    .record-kpi-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .record-page-header {
        margin-bottom: var(--space-3);
    }

    .record-kpi-grid {
        gap: var(--space-2);
    }

    .record-kpi-card {
        padding:
            14px
            13px;
        gap: var(--space-3);
    }

    .record-kpi-card__mark {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        border-radius: 11px;
    }

    .record-kpi-card__value {
        font-size: 1.25rem;
    }

    .record-kpi-card__label {
        font-size: 0.7rem;
    }

    .record-toolbar-heading {
        align-items: flex-start;
        margin-bottom: var(--space-4);
    }

    .record-modal__body--premium {
        padding: var(--space-3);
    }

    .record-detail-section__grid {
        grid-template-columns: 1fr;
    }

    .record-detail-field,
    .record-detail-field:nth-child(odd) {
        border-right: 0;
    }

    .record-detail-field--wide {
        grid-column: auto;
    }
}

@media (max-width: 520px) {
    .record-toolbar-heading__count {
        display: none;
    }

    .record-kpi-card__mark {
        display: none;
    }

    .record-kpi-card {
        min-height: 76px;
    }

    .record-detail-section__header p {
        display: none;
    }
}


/* ==========================================================
 * BADICOM Record Form UI v1
 * Shared create / edit form language
 * ========================================================== */

.record-form-page {
    padding-bottom: var(--space-4);
}

.record-form-page__header {
    margin-bottom: var(--space-4);
}

.record-form-page__eyebrow {
    display: block;
    margin-bottom: 3px;
    color: var(--color-primary-700);
    font-size: 0.65rem;
    font-weight: 850;
    letter-spacing: 0.13em;
}

.record-form {
    display: grid;
    gap: var(--space-4);
}

.record-form-hero {
    display: grid;
    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto;
    align-items: center;
    gap: var(--space-4);
    padding:
        20px
        22px;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f7fafe 100%
        );
    box-shadow:
        0 7px 24px
        rgb(15 23 42 / 0.05);
}

.record-form-hero__mark {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 15px;
    background: var(--color-primary-900);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.06em;
}

.record-form-hero__identity {
    min-width: 0;
}

.record-form-hero__label,
.record-form-hero__identity strong,
.record-form-hero__code {
    display: block;
}

.record-form-hero__label {
    color: var(--color-primary-700);
    font-size: 0.65rem;
    font-weight: 850;
    letter-spacing: 0.12em;
}

.record-form-hero__identity strong {
    margin-top: 4px;
    overflow: hidden;
    color: var(--color-gray-900);
    font-size: 1.15rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.record-form-hero__code {
    margin-top: 4px;
    color: var(--color-gray-500);
    font-size: var(--font-size-xs);
    font-weight: 700;
}

.record-form-hero__meta {
    display: grid;
    justify-items: end;
    gap: 6px;
}

.record-form-hero__meta small {
    color: var(--color-gray-500);
    font-size: 0.68rem;
}


/* Sections ------------------------------------------------- */

.record-form-section {
    overflow: hidden;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-xl);
    background: #fff;
    box-shadow:
        0 5px 18px
        rgb(15 23 42 / 0.035);
}

.record-form-section__header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding:
        15px
        18px;
    border-bottom: 1px solid var(--color-gray-200);
    background:
        linear-gradient(
            180deg,
            #fbfcfe 0%,
            #f8fafc 100%
        );
}

.record-form-section__number {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--color-primary-900);
    color: #fff;
    font-size: 0.66rem;
    font-weight: 850;
}

.record-form-section__header h2 {
    margin: 0;
    color: var(--color-gray-900);
    font-size: var(--font-size-sm);
}

.record-form-section__header p {
    margin:
        2px
        0
        0;
    color: var(--color-gray-500);
    font-size: var(--font-size-xs);
}

.record-form-section__body {
    padding:
        20px
        22px
        22px;
}


/* Grid ----------------------------------------------------- */

.record-form-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap:
        var(--space-5)
        var(--space-6);
}

.record-form-stack {
    display: grid;
    gap: var(--space-5);
}

.record-form-field {
    min-width: 0;
}

.record-form-field--wide {
    grid-column: 1 / -1;
}

.record-form-field .form-label {
    margin-bottom: 7px;
}

.record-form-field textarea.form-control {
    min-height: 94px;
    resize: vertical;
    line-height: 1.55;
}

.record-form-helper {
    display: block;
    margin-top: 6px;
    color: var(--color-gray-500);
    font-size: 0.7rem;
    line-height: 1.45;
}


/* Immutable identifier ------------------------------------ */

.record-form-readonly {
    display: flex;
    align-items: center;
    min-height: var(--control-height);
    overflow: hidden;
    border: 1px dashed var(--color-gray-300);
    border-radius: var(--radius-md);
    background: var(--color-gray-50);
}

.record-form-readonly > span {
    display: grid;
    place-items: center;
    align-self: stretch;
    min-width: 64px;
    padding:
        0
        var(--space-3);
    background: var(--color-primary-900);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.05em;
}

.record-form-readonly strong {
    padding:
        0
        var(--space-4);
    color: var(--color-gray-800);
    font-size: var(--font-size-sm);
}


/* Actions -------------------------------------------------- */

.record-form-actions {
    position: sticky;
    bottom: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);
    padding:
        15px
        18px;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-xl);
    background:
        rgb(255 255 255 / 0.96);
    box-shadow:
        0 -6px 24px
        rgb(15 23 42 / 0.06);
    backdrop-filter: blur(10px);
}

.record-form-actions__info {
    min-width: 0;
}

.record-form-actions__info span,
.record-form-actions__info small {
    display: block;
}

.record-form-actions__info span {
    color: var(--color-primary-900);
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.08em;
}

.record-form-actions__info small {
    margin-top: 2px;
    color: var(--color-gray-500);
    font-size: 0.68rem;
}

.record-form-actions__buttons {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: var(--space-3);
}


/* Responsive ---------------------------------------------- */

@media (max-width: 760px) {
    .record-form-page__header {
        margin-bottom: var(--space-3);
    }

    .record-form-hero {
        grid-template-columns:
            auto
            minmax(0, 1fr);
        padding:
            16px
            17px;
    }

    .record-form-hero__mark {
        width: 46px;
        height: 46px;
        border-radius: 13px;
    }

    .record-form-hero__meta {
        grid-column: 1 / -1;
        justify-items: start;
        padding-top: 2px;
    }

    .record-form-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .record-form-field--wide {
        grid-column: auto;
    }

    .record-form-section__body {
        padding:
            17px
            17px
            19px;
    }

    .record-form-actions {
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius:
            16px
            16px
            0
            0;
    }
}

@media (max-width: 520px) {
    .record-form-page__eyebrow,
    .record-form-section__header p,
    .record-form-actions__info {
        display: none;
    }

    .record-form-section__header {
        padding:
            13px
            15px;
    }

    .record-form-section__number {
        width: 31px;
        height: 31px;
        flex-basis: 31px;
    }

    .record-form-actions {
        padding:
            12px
            14px;
    }

    .record-form-actions__buttons {
        display: grid;
        grid-template-columns:
            minmax(0, 0.8fr)
            minmax(0, 1.35fr);
        width: 100%;
    }

    .record-form-actions__buttons .btn {
        width: 100%;
        min-height: 44px;
    }
}


/* ==========================================================
 * BADICOM Record Form Wizard v1
 * ========================================================== */

.supplier-wizard--record {
    overflow: hidden;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-xl);
    background: #fff;
    box-shadow:
        0 7px 26px
        rgb(15 23 42 / 0.05);
}

.supplier-wizard--record
.supplier-wizard__body {
    padding:
        var(--space-4)
        var(--space-5)
        var(--space-5);
}


/* Progress ------------------------------------------------- */

.supplier-record-progress {
    padding:
        18px
        22px
        16px;
    border-bottom: 1px solid var(--color-gray-200);
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f8fafc 100%
        );
}

.supplier-record-progress__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.supplier-record-progress__eyebrow {
    display: block;
    margin-bottom: 3px;
    color: var(--color-primary-700);
    font-size: 0.64rem;
    font-weight: 850;
    letter-spacing: 0.12em;
}

.supplier-record-progress__top strong {
    color: var(--color-gray-900);
    font-size: var(--font-size-sm);
}

.supplier-record-progress__counter {
    flex: 0 0 auto;
    padding:
        6px
        10px;
    border: 1px solid var(--color-gray-200);
    border-radius: 999px;
    background: #fff;
    color: var(--color-gray-500);
    font-size: 0.7rem;
}

.supplier-record-progress__counter b {
    margin-left: 3px;
    color: var(--color-primary-900);
}

.supplier-record-progress__bar {
    height: 4px;
    margin:
        var(--space-4)
        0;
    overflow: hidden;
    border-radius: 999px;
    background: var(--color-gray-200);
}

.supplier-record-progress__bar > span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background:
        linear-gradient(
            90deg,
            var(--color-primary-900),
            #1f6fb2
        );
    transition: width 260ms ease;
}

.supplier-record-progress__steps {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: var(--space-3);
    margin: 0;
    padding: 0;
    list-style: none;
}

.supplier-record-progress__step {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    min-width: 0;
    padding:
        8px
        10px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
}

.supplier-record-progress__step > span {
    display: grid;
    place-items: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--color-gray-100);
    color: var(--color-gray-500);
    font-size: 0.65rem;
    font-weight: 850;
}

.supplier-record-progress__step strong,
.supplier-record-progress__step small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.supplier-record-progress__step strong {
    color: var(--color-gray-600);
    font-size: 0.72rem;
}

.supplier-record-progress__step small {
    margin-top: 1px;
    color: var(--color-gray-400);
    font-size: 0.64rem;
}

.supplier-record-progress__step.is-active {
    border-color: #d8e5f2;
    background: #f7fbff;
}

.supplier-record-progress__step.is-active > span,
.supplier-record-progress__step.is-complete > span {
    background: var(--color-primary-900);
    color: #fff;
}

.supplier-record-progress__step.is-active strong {
    color: var(--color-primary-900);
}

.supplier-record-progress__step.is-complete strong {
    color: var(--color-gray-700);
}


/* Panels --------------------------------------------------- */

.supplier-wizard--record
.record-form-section {
    box-shadow: none;
}

.supplier-record-step-label {
    display: block;
    margin-bottom: 2px;
    color: var(--color-primary-700);
    font-size: 0.62rem;
    font-weight: 850;
    letter-spacing: 0.11em;
}


/* Generated identity -------------------------------------- */

.record-form-generated {
    display: grid;
    grid-template-columns:
        auto
        minmax(0, 1fr);
    align-items: center;
    min-height: var(--control-height);
    overflow: hidden;
    border: 1px dashed var(--color-gray-300);
    border-radius: var(--radius-md);
    background: var(--color-gray-50);
}

.record-form-generated > span {
    display: grid;
    place-items: center;
    align-self: stretch;
    min-width: 68px;
    background: var(--color-primary-900);
    color: #fff;
    font-size: 0.67rem;
    font-weight: 850;
    letter-spacing: 0.05em;
}

.record-form-generated > div {
    min-width: 0;
    padding:
        8px
        13px;
}

.record-form-generated strong,
.record-form-generated small {
    display: block;
}

.record-form-generated strong {
    color: var(--color-gray-800);
    font-size: var(--font-size-sm);
}

.record-form-generated small {
    margin-top: 2px;
    color: var(--color-gray-500);
    font-size: 0.68rem;
}


/* Wizard actions ------------------------------------------ */

.supplier-record-actions {
    margin-top: 0;
    padding:
        14px
        18px;
    border-top: 1px solid var(--color-gray-200);
    background: #fbfcfe;
}


/* Premium review ------------------------------------------ */

.supplier-review--record {
    display: grid;
    gap: var(--space-3);
    padding: var(--space-3);
    border: 0;
    background: #f7f9fc;
}

.supplier-review--record
.supplier-review__hero {
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
}

.supplier-review-section {
    overflow: hidden;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    background: #fff;
}

.supplier-review-section > header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding:
        12px
        14px;
    border-bottom: 1px solid var(--color-gray-200);
    background: #fbfcfe;
}

.supplier-review-section > header > span {
    display: grid;
    place-items: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--color-primary-900);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 850;
}

.supplier-review-section > header strong,
.supplier-review-section > header small {
    display: block;
}

.supplier-review-section > header strong {
    color: var(--color-gray-900);
    font-size: var(--font-size-sm);
}

.supplier-review-section > header small {
    margin-top: 1px;
    color: var(--color-gray-500);
    font-size: 0.68rem;
}

.supplier-review-section__grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
}

.supplier-review-section__grid > div {
    min-width: 0;
    padding:
        13px
        15px;
    border-bottom: 1px solid var(--color-gray-200);
}

.supplier-review-section__grid > div:nth-child(odd) {
    border-right: 1px solid var(--color-gray-200);
}

.supplier-review-section__wide {
    grid-column: 1 / -1;
    border-right: 0 !important;
}

.supplier-review-section__grid > div:last-child {
    border-bottom: 0;
}

.supplier-review-section__grid span,
.supplier-review-section__grid strong {
    display: block;
}

.supplier-review-section__grid span {
    margin-bottom: 4px;
    color: var(--color-gray-500);
    font-size: var(--font-size-xs);
}

.supplier-review-section__grid strong {
    overflow-wrap: anywhere;
    color: var(--color-gray-800);
    font-size: var(--font-size-sm);
    font-weight: 700;
    white-space: pre-line;
}


/* Edit form sticky actions:
 * normal desktop / sticky mobile only
 * --------------------------------------------------------- */

.record-form-actions {
    position: static;
}

@media (max-width: 760px) {
    .record-form-actions {
        position: sticky;
        bottom: 0;
    }
}


/* Responsive wizard --------------------------------------- */

@media (max-width: 760px) {
    .supplier-create-record-header
    .app-page-description {
        max-width: 450px;
    }

    .supplier-wizard--record
    .supplier-wizard__body {
        padding:
            var(--space-3);
    }

    .supplier-record-progress {
        padding:
            14px
            15px;
    }

    .supplier-record-progress__steps {
        gap: 5px;
    }

    .supplier-record-progress__step {
        justify-content: center;
        padding:
            6px
            4px;
    }

    .supplier-record-progress__step > div {
        display: none;
    }

    .supplier-record-progress__step > span {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .supplier-review-section__grid {
        grid-template-columns: 1fr;
    }

    .supplier-review-section__grid > div,
    .supplier-review-section__grid > div:nth-child(odd) {
        border-right: 0;
    }

    .supplier-review-section__wide {
        grid-column: auto;
    }

    .supplier-record-actions {
        position: sticky;
        bottom: 0;
        z-index: 12;
        margin:
            0
            -1px
            -1px;
        background:
            rgb(255 255 255 / 0.96);
        backdrop-filter: blur(10px);
    }
}

@media (max-width: 520px) {
    .supplier-create-record-header
    .record-form-page__eyebrow,
    .supplier-create-record-header
    .app-page-description {
        display: none;
    }

    .supplier-record-progress__top > div {
        display: none;
    }

    .supplier-record-progress__top {
        justify-content: flex-end;
    }

    .supplier-record-progress__bar {
        margin:
            10px
            0
            12px;
    }

    .supplier-record-progress__steps {
        grid-template-columns:
            repeat(4, 1fr);
    }

    .supplier-wizard--record
    .record-form-section__header p,
    .supplier-record-step-label {
        display: none;
    }

    .supplier-record-actions {
        align-items: stretch;
        flex-direction: row;
        gap: var(--space-2);
    }

    .supplier-record-actions .btn {
        flex: 1 1 0;
        width: auto;
        min-height: 44px;
    }

    .supplier-record-actions
    .supplier-wizard__helper,
    .supplier-record-actions
    .supplier-wizard__secure {
        display: none;
    }

    .supplier-wizard__final {
        flex: 1 1 auto;
        width: auto;
    }

    .supplier-wizard__final .btn {
        width: 100%;
    }
}


/* ==========================================================
 * Purchase orders Record UI
 * ========================================================== */

.record-desktop-view {
    display: block;
}

.record-modal__status.is-success {
    border-color: #b7e4d3;
    background: #ecfdf5;
    color: #087a55;
}

.record-modal__status.is-info {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #155eaa;
}

.record-modal__status.is-warning {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #9a3412;
}

.record-modal__status.is-neutral {
    border-color: #dce2e9;
    background: #f1f5f9;
    color: #64748b;
}

.record-modal-readonly-note {
    color: var(--color-gray-500);
    font-size: var(--font-size-xs);
    font-weight: 650;
}

@media (max-width: 760px) {
    .record-desktop-view {
        display: none;
    }

    .order-mobile-card {
        min-width: 0;
    }
}

@media (max-width: 520px) {
    .record-modal-readonly-note {
        display: none;
    }
}


/* ==========================================================
 * Purchase orders - actions column fit
 * ========================================================== */

.record-table .record-actions-column {
    width: 112px;
    min-width: 112px;
}

.record-table td.record-actions {
    width: 112px;
    min-width: 112px;
    padding-right: 16px;
    white-space: nowrap;
}


/* ==========================================================
 * Purchase orders - desktop actions cell correction
 * Keep TD in table layout, align buttons inside
 * ========================================================== */

.record-table td.record-actions {
    display: table-cell;
    width: 118px;
    min-width: 118px;
    padding-right: 14px;
    text-align: right;
    white-space: nowrap;
    vertical-align: middle;
}

.record-table td.record-actions .record-icon-button {
    display: inline-grid;
    margin-left: 6px;
    vertical-align: middle;
}

.record-table td.record-actions .record-icon-button:first-child {
    margin-left: 0;
}


/* ==========================================================
 * Purchase orders - definitive desktop actions layout
 * ========================================================== */

.orders-record-table th.record-actions-column {
    width: 102px;
    min-width: 102px;
    padding-right: 14px;
    text-align: right;
}

.orders-record-table td.record-actions {
    display: table-cell;
    width: 102px;
    min-width: 102px;
    padding:
        10px
        14px
        10px
        8px;
    vertical-align: middle;
}

.order-actions-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    width: 100%;
    min-width: 74px;
}

.order-actions-group .record-icon-button {
    display: inline-grid;
    flex:
        0
        0
        34px;
    width: 34px;
    height: 34px;
    margin: 0;
}


/* ==========================================================
 * Purchase orders - final desktop table sizing
 * Prevent right-edge clipping of Actions column
 * ========================================================== */

.orders-record-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.orders-record-table th:nth-child(1),
.orders-record-table td:nth-child(1) {
    width: 22%;
}

.orders-record-table th:nth-child(2),
.orders-record-table td:nth-child(2) {
    width: 20%;
}

.orders-record-table th:nth-child(3),
.orders-record-table td:nth-child(3) {
    width: 11%;
}

.orders-record-table th:nth-child(4),
.orders-record-table td:nth-child(4) {
    width: 14%;
}

.orders-record-table th:nth-child(5),
.orders-record-table td:nth-child(5) {
    width: 10%;
}

.orders-record-table th:nth-child(6),
.orders-record-table td:nth-child(6) {
    width: 10%;
}

.orders-record-table th:nth-child(7),
.orders-record-table td:nth-child(7) {
    width: 13%;
}

.orders-record-table th.record-actions-column,
.orders-record-table td.record-actions {
    min-width: 0;
}

.order-actions-group {
    justify-content: flex-end;
    padding-right: 2px;
}


/* ==========================================================
 * Shipments - Create form responsive correction
 * Scoped to the Expéditions creation page.
 * ========================================================== */

.shipment-create-page,
.shipment-create-page .record-form {
    min-width: 0;
}

/*
 * This hero contains only:
 * 1. identity/content
 * 2. initial status badge
 */
.shipment-create-hero {
    grid-template-columns:
        minmax(0, 1fr)
        auto;
}

.shipment-create-hero > div {
    min-width: 0;
}

.shipment-create-hero h2,
.shipment-create-hero p {
    max-width: 100%;
    overflow-wrap: break-word;
}

/*
 * The generic form component expects
 * .record-form-section__body.
 * The current shipment form uses its grid/stack directly,
 * therefore restore the intended inner spacing here.
 */
.shipment-create-page
.record-form-section
> .record-form-grid,
.shipment-create-page
.record-form-section
> .record-form-stack {
    padding:
        20px
        22px
        22px;
}

/*
 * Eligibility warning must remain visible on mobile.
 * Do not reuse .record-modal-readonly-note because that
 * generic class is hidden below 520px.
 */
.shipment-create-eligibility {
    padding:
        16px
        18px;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-lg);
    background: #eff6ff;
    color: var(--color-gray-700);
    font-size: var(--font-size-sm);
    line-height: 1.55;
}

.shipment-create-eligibility strong {
    display: block;
    margin-bottom: 5px;
    color: var(--color-primary-900);
}

.shipment-create-eligibility p {
    margin:
        0
        0
        var(--space-3);
}

@media (max-width: 760px) {

    .shipment-create-hero {
        grid-template-columns:
            minmax(0, 1fr);
    }

    .shipment-create-hero .badge {
        justify-self: start;
        max-width: 100%;
    }

    .shipment-create-page
    .record-form-section
    > .record-form-grid,
    .shipment-create-page
    .record-form-section
    > .record-form-stack {
        padding:
            17px
            17px
            19px;
    }

    .shipment-create-eligibility {
        padding:
            15px
            16px;
    }
}

@media (max-width: 520px) {

    .shipment-create-hero {
        padding:
            17px
            18px;
    }

    .shipment-create-hero h2 {
        font-size: 1.35rem;
        line-height: 1.25;
    }

    .shipment-create-hero p {
        line-height: 1.55;
    }

    .shipment-create-eligibility {
        display: block;
        font-size: var(--font-size-xs);
    }
}


/* ==========================================================
 * Shipments - eligibility message typography
 * Keep status emphasis inline inside explanatory text.
 * ========================================================== */

.shipment-create-eligibility > strong {
    display: block;
    margin-bottom: 5px;
    color: var(--color-primary-900);
}

.shipment-create-eligibility p strong {
    display: inline;
    margin: 0;
    color: inherit;
}

/* ==========================================================
 * Shipments Record UI - desktop actions
 * ========================================================== */

.shipments-record-table th.record-actions-column,
.shipments-record-table td.record-actions {
    width: 112px;
    min-width: 112px;
}

.shipments-record-table th.record-actions-column {
    text-align: right;
}

.shipments-record-table td.record-actions {
    padding-right: 14px;
    text-align: right;
    white-space: nowrap;
    vertical-align: middle;
}


/* ==========================================================
 * Container Record UI
 * ========================================================== */

.container-history-list {
    display: grid;
    gap: 0;
}

.container-history-item {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border, #dfe6ef);
}

.container-history-item:last-child {
    border-bottom: 0;
}

.container-history-item__marker {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    color: var(--color-primary, #0b355f);
}

.container-history-item__content {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.container-history-item__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.container-history-item__top time,
.container-history-item__content span,
.container-history-item__content small {
    color: var(--color-text-muted, #66758a);
}

.container-history-item__content p {
    margin: 3px 0 0;
}

.container-history-empty {
    margin: 0;
    padding: 14px 0;
    color: var(--color-text-muted, #66758a);
}

@media (max-width: 760px) {
    .container-history-item__top {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}


/* ==========================================================
 * Record modal footer — mobile actions
 * ========================================================== */

@media (max-width: 760px) {

    .record-modal__footer {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 10px;
        align-items: center;
    }

    .record-modal__footer > .btn {
        width: 100%;
        min-width: 0;
    }

    .record-modal__footer .record-modal__actions {
        display: contents;
    }

    .record-modal__footer .record-modal__actions > .btn {
        width: 100%;
        min-width: 0;
    }

}

@media (max-width: 420px) {

    .record-modal__footer {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

}


/* ==========================================================
 * Container detail — 3 actions
 * ========================================================== */

@media (max-width: 760px) {

    .record-modal__footer--triple {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr)
            minmax(0, 1fr);
    }

    .record-modal__footer--triple
    .record-danger-button {
        width: 100%;
        min-width: 0;
    }

}

@media (max-width: 420px) {

    .record-modal__footer--triple {
        grid-template-columns:
            1fr 1fr;
    }

    .record-modal__footer--triple
    .record-danger-button {
        grid-column: 1 / -1;
    }

}


/* ==========================================================
 * Containers — status workflow
 * ========================================================== */

.container-status-action {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

.container-status-action__button {
    min-width: 210px;
}

.container-status-modal__panel {
    width: min(
        680px,
        calc(100vw - 32px)
    );
}

.container-status-form {
    display: grid;
    gap: 18px;
}

.container-status-transition {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto
        minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    padding: 18px;
    border:
        1px solid
        var(--color-border, #dce3ec);
    border-radius:
        var(--radius-lg, 16px);
    background:
        var(--color-surface-soft, #f8fafc);
}

.container-status-transition > div {
    min-width: 0;
}

.container-status-transition span {
    display: block;
    margin-bottom: 4px;
    color:
        var(--color-text-muted, #66758a);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.container-status-transition strong {
    display: block;
    overflow-wrap: anywhere;
    color:
        var(--color-text, #172033);
    font-size: 1rem;
}

.container-status-transition__arrow {
    margin: 0 !important;
    color:
        var(--color-primary-600, #2563eb) !important;
    font-size: 1.4rem !important;
}

.container-status-readonly-value {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding:
        10px
        12px;
    border:
        1px solid
        var(--color-border, #dce3ec);
    border-radius:
        var(--radius-md, 10px);
    background:
        var(--color-surface-soft, #f8fafc);
    color:
        var(--color-text, #172033);
    font-weight: 700;
}

@media (max-width: 760px) {

    .container-status-action {
        justify-content: stretch;
    }

    .container-status-action__button {
        width: 100%;
        min-width: 0;
    }

    .container-status-modal__panel {
        width: 100%;
    }

}

@media (max-width: 520px) {

    .container-status-transition {
        grid-template-columns:
            minmax(0, 1fr);
        gap: 10px;
        padding: 15px;
    }

    .container-status-transition__arrow {
        transform:
            rotate(90deg);
        justify-self: start;
    }

}


/* ==========================================================
 * Containers — workflow rule note must stay visible on mobile
 * ========================================================== */

.container-status-rule-note {
    display: block;
}

@media (max-width: 520px) {

    .record-modal-readonly-note.container-status-rule-note {
        display: block;
        padding:
            13px
            14px;
        font-size: 0.82rem;
        line-height: 1.5;
    }

}


/* ==========================================================
 * Container detail — primary workflow action in header
 * ========================================================== */

.container-record-header__status-action {
    display: flex;
    align-items: center;
    flex:
        0
        0
        auto;
    margin-left: auto;
}

.container-record-header__status-action .btn {
    min-width: 205px;
    white-space: nowrap;
}

.record-modal__header--premium
> .record-modal__close {
    flex:
        0
        0
        auto;
    margin-left: 12px;
}


/*
 * Mobile:
 * identity + close button stay on first row,
 * workflow action becomes a full-width second row.
 */
@media (max-width: 760px) {

    .record-modal__header--premium {
        flex-wrap: wrap;
    }

    .record-modal__header--premium
    .record-modal__identity {
        flex:
            1
            1
            calc(100% - 58px);
        min-width: 0;
    }

    .record-modal__header--premium
    > .record-modal__close {
        margin-left: auto;
    }

    .container-record-header__status-action {
        order: 3;
        flex:
            1
            0
            100%;
        width: 100%;
        margin:
            14px
            0
            0;
    }

    .container-record-header__status-action .btn {
        width: 100%;
        min-width: 0;
    }

}


/* ==========================================================
 * Container detail mobile
 * Keep header + workflow action + footer permanently visible
 * Only the detail body must scroll.
 * ========================================================== */

@media (max-width: 760px) {

    [data-container-record-modal]
    .record-modal__panel--premium {
        display: flex;
        flex-direction: column;

        width: 100%;
        height: 100dvh;
        max-height: 100dvh;

        overflow: hidden;
    }


    /*
     * Header including:
     * - container identity
     * - status badge
     * - close button
     * - primary "Mettre à jour le statut" action
     */
    [data-container-record-modal]
    .record-modal__header--premium {
        flex:
            0
            0
            auto;

        position: relative;
        z-index: 5;

        background: #ffffff;
    }


    /*
     * The business detail is the ONLY scrolling area.
     */
    [data-container-record-modal]
    .record-modal__body--premium {
        flex:
            1
            1
            auto;

        min-height: 0;
        max-height: none;

        overflow-x: hidden;
        overflow-y: auto;

        overscroll-behavior:
            contain;
    }


    /*
     * Actions must never disappear below the viewport.
     */
    [data-container-record-modal]
    .record-modal__footer {
        flex:
            0
            0
            auto;

        position: relative;
        bottom: auto;
        z-index: 6;

        width: 100%;

        background: #ffffff;
        border-top:
            1px solid
            var(
                --color-border,
                #dce3ec
            );
    }


    /*
     * Preserve the validated 3-action layout.
     */
    [data-container-record-modal]
    .record-modal__footer--triple {
        display: grid;

        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr)
            minmax(0, 1fr);

        gap: 10px;
    }


    [data-container-record-modal]
    .record-modal__footer--triple
    > .btn,

    [data-container-record-modal]
    .record-modal__footer--triple
    .record-modal__actions
    > .btn,

    [data-container-record-modal]
    .record-modal__footer--triple
    .record-danger-button {
        width: 100%;
        min-width: 0;
    }

}


/*
 * Very narrow phones:
 * Fermer + Modifier first row,
 * Supprimer full width second row.
 */
@media (max-width: 420px) {

    [data-container-record-modal]
    .record-modal__footer--triple {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr);
    }

    [data-container-record-modal]
    .record-modal__footer--triple
    .record-danger-button {
        grid-column:
            1 / -1;
    }

}


/* ==========================================================
 * Containers — status source timezone
 * ========================================================== */

.container-status-timezone-note {
    display: grid;
    gap: 4px;
    padding:
        13px
        15px;
    border:
        1px solid
        var(--color-border, #dce3ec);
    border-radius:
        var(--radius-md, 10px);
    background:
        var(--color-surface-soft, #f8fafc);
}

.container-status-timezone-note > span {
    color:
        var(--color-text-muted, #66758a);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.container-status-timezone-note > strong {
    color:
        var(--color-text, #172033);
}

.container-status-timezone-note > small {
    color:
        var(--color-text-muted, #66758a);
    line-height: 1.45;
}


/* ==========================================================
 * Containers — protected deletion visibility
 * ========================================================== */

/*
 * Le backend reste l'autorité finale.
 *
 * Cette règle évite simplement de proposer une action
 * impossible lorsqu'un événement opérationnel existe déjà.
 */
[data-container-delete-allowed="0"]
[data-container-delete-open] {
    display: none !important;
}

/* ==========================================================
 * Shipments — shared maritime workflow
 * ========================================================== */

.shipment-record-header__maritime-action {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    margin-left: auto;
}

.shipment-record-header__maritime-action .btn {
    min-width: 245px;
    white-space: nowrap;
}


/* Historique maritime partagé */

.shipment-maritime-history-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.shipment-maritime-history-empty {
    margin: 0;
    padding: 14px 0;
    color: var(--color-text-muted, #66758a);
}

.shipment-maritime-history-item {
    display: grid;
    gap: 9px;
    padding: 14px 16px;
    border:
        1px solid
        var(--color-border, #dce3ec);
    border-radius:
        var(--radius-md, 10px);
    background:
        var(--color-surface-soft, #f8fafc);
}

.shipment-maritime-history-item__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.shipment-maritime-history-item__top strong {
    color:
        var(--color-text, #172033);
}

.shipment-maritime-history-item__top span {
    flex: 0 0 auto;
    color:
        var(--color-text-muted, #66758a);
    font-size: 0.82rem;
    font-weight: 700;
}

.shipment-maritime-history-item__content {
    display: grid;
    gap: 4px;
}

.shipment-maritime-history-item__content p {
    margin: 0;
}

.shipment-maritime-history-item__content small {
    color:
        var(--color-text-muted, #66758a);
    line-height: 1.45;
}

.shipment-maritime-history-item__notes {
    margin-top: 4px !important;
    color:
        var(--color-text, #172033);
}


/*
 * Mobile :
 * - identité + fermeture première ligne
 * - action maritime seconde ligne
 * - corps uniquement scrollable
 * - footer toujours visible
 */
@media (max-width: 760px) {

    .shipment-record-header__maritime-action {
        order: 3;
        flex: 1 0 100%;
        width: 100%;
        margin:
            14px
            0
            0;
    }

    .shipment-record-header__maritime-action .btn {
        width: 100%;
        min-width: 0;
    }


    [data-shipment-record-modal]
    .record-modal__panel--premium {
        display: flex;
        flex-direction: column;

        width: 100%;
        height: 100dvh;
        max-height: 100dvh;

        overflow: hidden;
    }


    [data-shipment-record-modal]
    .record-modal__header--premium {
        flex: 0 0 auto;
        position: relative;
        z-index: 5;
        background: #ffffff;
    }


    [data-shipment-record-modal]
    .record-modal__body--premium {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;

        overflow-x: hidden;
        overflow-y: auto;

        overscroll-behavior: contain;
    }


    [data-shipment-record-modal]
    .record-modal__footer {
        flex: 0 0 auto;
        position: relative;
        z-index: 6;

        width: 100%;
        background: #ffffff;

        border-top:
            1px solid
            var(--color-border, #dce3ec);
    }


    .shipment-maritime-history-item__top {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}

/* ==========================================================
 * Shipment cargo multi-selection
 * ========================================================== */

.shipment-cargo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.shipment-cargo-choice {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 76px;
    padding: 14px 16px;
    border: 1px solid var(--border-color, #d8e1ec);
    border-radius: 12px;
    background: var(--surface, #fff);
    cursor: pointer;
    transition:
        border-color .15s ease,
        background-color .15s ease,
        box-shadow .15s ease;
}

.shipment-cargo-choice:hover {
    border-color: #9bb8d6;
}

.shipment-cargo-choice:has(input:checked) {
    border-color: #174d7d;
    background: #f5f9fd;
    box-shadow: 0 0 0 1px rgba(23, 77, 125, .08);
}

.shipment-cargo-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.shipment-cargo-choice__control {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border: 1.5px solid #9fb0c2;
    border-radius: 6px;
    background: #fff;
}

.shipment-cargo-choice input:checked
+ .shipment-cargo-choice__control {
    border-color: #0b3762;
    background:
        #0b3762
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
        center / 13px 13px
        no-repeat;
}

.shipment-cargo-choice__content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.shipment-cargo-choice__content strong {
    font-size: .95rem;
    line-height: 1.3;
}

.shipment-cargo-choice__content small {
    color: var(--text-muted, #718096);
    font-size: .75rem;
    letter-spacing: .03em;
}

@media (max-width: 720px) {
    .shipment-cargo-grid {
        grid-template-columns: 1fr;
    }

    .shipment-cargo-choice {
        min-height: 68px;
        padding: 12px 14px;
    }
}


/* ==========================================================
 * Shipment grouped containers
 * ========================================================== */

.shipment-container-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.shipment-container-toolbar > div {
    min-width: 0;
}

.shipment-container-toolbar strong {
    display: block;
    margin-bottom: 4px;
}

.shipment-container-toolbar p {
    margin: 0;
    color: var(--text-muted, #6f7f92);
    font-size: .88rem;
    line-height: 1.45;
}

.shipment-container-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 28px 20px;
    border: 1px dashed #b9c8d9;
    border-radius: 14px;
    background: #fafcfe;
    text-align: center;
}

.shipment-container-empty[hidden] {
    display: none;
}

.shipment-container-empty span {
    color: var(--text-muted, #6f7f92);
    font-size: .86rem;
}

.shipment-container-list {
    display: grid;
    gap: 18px;
}

.shipment-container-card {
    overflow: hidden;
    border: 1px solid #d9e3ee;
    border-radius: 14px;
    background: #fff;
}

.shipment-container-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 18px;
    border-bottom: 1px solid #e1e8f0;
    background: #f8fafc;
}

.shipment-container-card__eyebrow {
    display: block;
    margin-bottom: 2px;
    color: #59708a;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
}

.shipment-container-card__remove {
    border: 0;
    background: transparent;
    color: #a23c3c;
    font: inherit;
    font-size: .84rem;
    font-weight: 600;
    cursor: pointer;
}

.shipment-container-card__remove:hover {
    text-decoration: underline;
}

.shipment-container-card__body {
    padding: 18px;
}

.shipment-container-custom-cargo[hidden] {
    display: none;
}

.shipment-container-cargo-options {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.shipment-container-cargo-option {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 11px;
    border: 1px solid #d4deea;
    border-radius: 9px;
    background: #fff;
    cursor: pointer;
}

.shipment-container-cargo-option:has(input:checked) {
    border-color: #174d7d;
    background: #f3f8fc;
}

.shipment-container-custom-empty {
    margin: 0;
    color: var(--text-muted, #6f7f92);
    font-size: .85rem;
}


/* Review */

.shipment-container-review-list {
    display: grid;
    gap: 10px;
    padding: 14px 16px 16px;
}

.shipment-container-review-card {
    padding: 14px;
    border: 1px solid #dde6ef;
    border-radius: 11px;
    background: #fff;
}

.shipment-container-review-card > strong {
    display: block;
    margin-bottom: 10px;
}

.shipment-container-review-card__meta {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
}

.shipment-container-review-card__meta span {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.shipment-container-review-card__meta small {
    color: var(--text-muted, #6f7f92);
}

.shipment-container-review-empty {
    padding: 14px;
    color: var(--text-muted, #6f7f92);
}


@media (max-width: 720px) {

    .shipment-container-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .shipment-container-toolbar .btn {
        width: 100%;
    }

    .shipment-container-card__header {
        padding: 14px;
    }

    .shipment-container-card__body {
        padding: 14px;
    }

    .shipment-container-review-card__meta {
        grid-template-columns: 1fr;
    }

    .shipment-container-cargo-options {
        flex-direction: column;
    }

    .shipment-container-cargo-option {
        width: 100%;
    }
}


/* ==========================================================
 * Shipment container accordion / ribbon
 * ========================================================== */

.shipment-container-toolbar
[data-shipment-container-add] {
    min-width: 210px;
    font-weight: 700;
}

.shipment-container-card__toggle {
    flex: 1 1 auto;
    min-width: 0;
    cursor: pointer;
    outline: none;
}

.shipment-container-card__toggle:focus-visible {
    border-radius: 6px;
    box-shadow:
        0 0 0 3px
        rgba(23, 77, 125, .15);
}

.shipment-container-card__ruban-summary {
    display: none;
    overflow: hidden;
    margin-top: 4px;
    color: #60748a;
    font-size: .78rem;
    font-weight: 500;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/*
 * Etat replié :
 * seule la barre d'identité reste visible.
 */
.shipment-container-card.is-collapsed {
    border-color: #cbd9e7;
    box-shadow:
        0 2px 5px
        rgba(15, 51, 84, .04);
}

.shipment-container-card.is-collapsed
.shipment-container-card__header {
    padding-top: 11px;
    padding-bottom: 11px;
    border-bottom: 0;
    background: #f5f8fb;
}

.shipment-container-card.is-collapsed
.shipment-container-card__body {
    display: none;
}

.shipment-container-card.is-collapsed
.shipment-container-card__ruban-summary {
    display: block;
}

.shipment-container-card.is-collapsed
.shipment-container-card__eyebrow {
    margin-bottom: 0;
}


/*
 * La fiche ouverte reste bien identifiable.
 */
.shipment-container-card:not(.is-collapsed) {
    border-color: #b9cde0;
    box-shadow:
        0 3px 10px
        rgba(15, 51, 84, .04);
}


/* Mobile */

@media (max-width: 720px) {

    .shipment-container-toolbar
    [data-shipment-container-add] {
        width: 100%;
        min-width: 0;
    }

    .shipment-container-card.is-collapsed
    .shipment-container-card__header {
        align-items: center;
        padding: 11px 13px;
    }

    .shipment-container-card__ruban-summary {
        max-width: 280px;
        white-space: normal;
    }

}

/*
 * ----------------------------------------------------------
 * BADICOM Telex Release UI
 * ----------------------------------------------------------
 */

.record-telex-link {
    text-decoration: none;
}

.record-telex-link:hover {
    text-decoration: none;
}

.record-detail-empty {
    margin: 0;
    padding:
        14px
        16px;
    color: var(--color-gray-600);
    font-size: var(--font-size-sm);
    line-height: 1.5;
}


/*
 * ----------------------------------------------------------
 * Shipment lifecycle deletion lock
 * ----------------------------------------------------------
 *
 * L'absence d'URL de suppression indique qu'une expédition
 * est déjà engagée dans son historique maritime.
 */
.record-row[data-record-delete-url=""]
[data-delete-open] {
    display: none;
}


/* ==========================================================
   Shipment maritime event documents
   ========================================================== */

.shipment-maritime-file-field {
    margin-top: 0.25rem;
}

.shipment-maritime-history-documents {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.65rem;
}

.shipment-maritime-history-documents__title {
    flex-basis: 100%;
    font-weight: 600;
}

.shipment-maritime-document-link {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 0.45rem 0.65rem;
    border: 1px solid var(--border-color, #d9dee7);
    border-radius: 0.55rem;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.shipment-maritime-add-documents {
    margin-top: 0.7rem;
}

@media (max-width: 767px) {
    .shipment-maritime-history-documents {
        align-items: stretch;
    }

    .shipment-maritime-document-link,
    .shipment-maritime-add-documents {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================
   Container empty-return EIR documents
   ========================================================== */

.container-eir-field {
    margin-top: 0.25rem;
}

.container-eir-documents {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.65rem;
}

.container-eir-documents__title {
    flex-basis: 100%;
    font-weight: 600;
}

.container-eir-document-link {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 0.45rem 0.65rem;
    border: 1px solid var(--border-color, #d9dee7);
    border-radius: 0.55rem;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.container-eir-add {
    margin-top: 0.7rem;
}

@media (max-width: 767px) {
    .container-eir-documents {
        align-items: stretch;
    }

    .container-eir-document-link,
    .container-eir-add {
        width: 100%;
        justify-content: center;
    }
}



/* ==========================================================
   BADICOM UI V2 — EXPEDITIONS
   ========================================================== */


/* Sidebar icons ------------------------------------------- */

.app-nav__icon {
    display: grid;
    place-items: center;

    flex: 0 0 34px;

    width: 34px;
    height: 34px;

    padding: 0;

    border:
        1px solid
        rgb(148 163 184 / 0.20);

    border-radius: 10px;

    background:
        rgb(255 255 255 / 0.035);

    color: #a9c5e2;

    font-size: 0;
}

.app-nav__icon svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;

    transition:
        transform 160ms ease;
}

.app-nav__link:hover
.app-nav__icon {
    color: #d7ebff;

    border-color:
        rgb(96 165 250 / 0.36);

    background:
        rgb(59 130 246 / 0.10);
}

.app-nav__link.is-active
.app-nav__icon {
    color: #fff;

    border-color:
        rgb(96 165 250 / 0.55);

    background:
        linear-gradient(
            145deg,
            #1f6fb2,
            #154e84
        );

    box-shadow:
        0 6px 14px
        rgb(0 0 0 / 0.16);
}

.app-nav__link:hover
.app-nav__icon svg {
    transform:
        scale(1.08)
        translateY(-1px);
}


/* Topbar search ------------------------------------------- */

.app-topbar__start {
    flex: 1 1 auto;

    min-width: 0;
}

.app-topbar-search {
    display: flex;
    align-items: center;

    width:
        min(
            540px,
            45vw
        );

    height: 42px;

    margin-left:
        var(--space-3);

    overflow: hidden;

    border:
        1px solid
        #dce5ef;

    border-radius: 12px;

    background:
        #f6f9fc;

    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease;
}

.app-topbar-search:focus-within {
    border-color:
        var(--color-primary-500);

    background: #fff;

    box-shadow:
        0 0 0 3px
        rgb(40 120 189 / 0.12);
}

.app-topbar-search__icon {
    display: grid;
    place-items: center;

    flex: 0 0 42px;

    color: #71859b;
}

.app-topbar-search__icon svg,
.app-topbar-search__submit svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.8;
    stroke-linecap: round;
}

.app-topbar-search input {
    min-width: 0;

    flex: 1 1 auto;

    height: 100%;

    padding: 0 8px 0 0;

    border: 0;
    outline: 0;

    background: transparent;

    color:
        var(--color-gray-900);

    font: inherit;

    font-size:
        var(--font-size-sm);
}

.app-topbar-search input::placeholder {
    color: #91a1b3;
}

.app-topbar-search__submit {
    display: grid;
    place-items: center;

    flex: 0 0 44px;

    align-self: stretch;

    border: 0;

    border-left:
        1px solid
        #e0e8f0;

    background: transparent;

    color:
        var(--color-primary-700);

    cursor: pointer;

    transition:
        background 150ms ease,
        color 150ms ease;
}

.app-topbar-search__submit:hover {
    background:
        var(--color-primary-700);

    color: #fff;
}


/* Page heading -------------------------------------------- */

.shipments-page-v2
.shipments-page-heading__icon {
    display: grid;
    place-items: center;

    width: 46px;
    height: 46px;

    border: 0;

    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            var(--color-primary-900),
            var(--color-primary-600)
        );

    color: #fff;

    box-shadow:
        0 10px 22px
        rgb(8 42 78 / 0.18);
}

.shipments-page-v2
.shipments-page-heading__icon svg {
    width: 24px;
    height: 24px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* KPI cards ----------------------------------------------- */

.shipments-page-v2
.record-kpi-grid {
    gap: 16px;
}

.shipments-page-v2
.record-kpi-card {
    --kpi-accent:
        #123f6e;

    --kpi-soft:
        #edf5fc;

    position: relative;

    min-height: 116px;

    overflow: hidden;

    padding:
        20px
        21px;

    border:
        1px solid
        #dde6ef;

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            #fff 0%,
            #fbfdff 65%,
            var(--kpi-soft) 100%
        );

    box-shadow:
        0 8px 24px
        rgb(15 23 42 / 0.055);

    transition:
        transform 170ms ease,
        box-shadow 170ms ease,
        border-color 170ms ease;
}

.shipments-page-v2
.record-kpi-card::before {
    content: "";

    position: absolute;

    right: -50px;
    bottom: -70px;

    width: 145px;
    height: 145px;

    border-radius: 50%;

    background:
        color-mix(
            in srgb,
            var(--kpi-accent) 9%,
            transparent
        );
}

.shipments-page-v2
.record-kpi-card::after {
    content: "";

    position: absolute;

    right: 16px;
    bottom: 12px;

    width: 76px;
    height: 22px;

    border-top:
        2px solid
        color-mix(
            in srgb,
            var(--kpi-accent) 22%,
            transparent
        );

    border-radius: 50%;
}

.shipments-page-v2
.record-kpi-card:hover {
    transform:
        translateY(-3px);

    border-color:
        color-mix(
            in srgb,
            var(--kpi-accent) 24%,
            #dde6ef
        );

    box-shadow:
        0 15px 34px
        rgb(15 23 42 / 0.09);
}

.shipments-page-v2
.record-kpi-card--neutral {
    --kpi-accent: #64748b;
    --kpi-soft: #f1f5f9;
}

.shipments-page-v2
.record-kpi-card--info {
    --kpi-accent: #1167b1;
    --kpi-soft: #eaf5ff;
}

.shipments-page-v2
.record-kpi-card--warning {
    --kpi-accent: #b66512;
    --kpi-soft: #fff3e3;
}

.shipments-page-v2
.record-kpi-card__mark {
    position: relative;
    z-index: 2;

    display: grid;
    place-items: center;

    flex: 0 0 52px;

    width: 52px;
    height: 52px;

    border: 0;

    border-radius: 15px;

    background:
        linear-gradient(
            145deg,
            var(--kpi-accent),
            color-mix(
                in srgb,
                var(--kpi-accent) 75%,
                #071b31
            )
        );

    color: #fff;

    font-size: 0;

    box-shadow:
        0 8px 18px
        color-mix(
            in srgb,
            var(--kpi-accent) 20%,
            transparent
        );
}

.shipments-page-v2
.record-kpi-card__mark svg {
    width: 26px;
    height: 26px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;

    transition:
        transform 170ms ease;
}

.shipments-page-v2
.record-kpi-card:hover
.record-kpi-card__mark svg {
    transform:
        translateY(-2px)
        scale(1.05);
}

.shipments-page-v2
.record-kpi-card__value {
    position: relative;
    z-index: 2;

    color:
        var(--kpi-accent);

    font-size: 1.85rem;
    line-height: 1;
}

.shipments-page-v2
.record-kpi-card__label {
    position: relative;
    z-index: 2;

    margin-top: 6px;

    font-size: 0.82rem;
    font-weight: 720;
}


/* Maritime register --------------------------------------- */

.shipments-page-v2
.record-register-card {
    border:
        1px solid
        #dce5ee;

    border-radius: 19px;

    box-shadow:
        0 10px 30px
        rgb(15 23 42 / 0.055);
}

.shipments-page-v2
.record-toolbar-heading__eyebrow {
    color:
        var(--color-primary-600);

    font-weight: 850;

    letter-spacing:
        0.13em;
}


/* Responsive ---------------------------------------------- */

@media (max-width: 1024px) {

    .app-topbar-search {
        width:
            min(
                430px,
                42vw
            );
    }
}


@media (max-width: 760px) {

    .app-topbar-search {
        flex: 1 1 auto;

        width: auto;
        min-width: 0;

        height: 40px;

        margin-left:
            var(--space-2);
    }

    .app-topbar-search input {
        font-size: 0.78rem;
    }

    .app-topbar-search__icon {
        flex-basis: 36px;
    }

    .app-topbar-search__submit {
        flex-basis: 38px;
    }

    .shipments-page-v2
    .record-kpi-card {
        min-height: 94px;

        padding:
            14px
            13px;
    }

    .shipments-page-v2
    .record-kpi-card__mark {
        display: grid;

        flex-basis: 42px;

        width: 42px;
        height: 42px;

        border-radius: 12px;
    }

    .shipments-page-v2
    .record-kpi-card__mark svg {
        width: 21px;
        height: 21px;
    }

    .shipments-page-v2
    .record-kpi-card__value {
        font-size: 1.4rem;
    }
}


@media (max-width: 520px) {

    /*
     * Sur téléphone étroit, garder le topbar lisible :
     * recherche via la page elle-même.
     */
    .app-topbar-search {
        display: none;
    }
}


@media (prefers-reduced-motion: reduce) {

    .app-nav__icon svg,
    .shipments-page-v2
    .record-kpi-card,
    .shipments-page-v2
    .record-kpi-card__mark svg {
        transition: none;
    }

    .shipments-page-v2
    .record-kpi-card:hover,
    .shipments-page-v2
    .record-kpi-card:hover
    .record-kpi-card__mark svg {
        transform: none;
    }
}


/* ==========================================================
   BADICOM UI V2.1 — MAQUETTE LOGISTIQUE
   Sidebar claire + header + KPI illustrés
   ========================================================== */


/* Shell clair --------------------------------------------- */

.app-sidebar {
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f8fbff 100%
        );

    color: #16324d;

    border-right:
        1px solid #e1e9f1;

    box-shadow:
        5px 0 22px
        rgb(15 52 86 / 0.035);
}

.app-sidebar__brand {
    min-height: 82px;

    background: #ffffff;

    border-bottom:
        1px solid #e7edf3;
}

.app-brand {
    color: #0b3e73;
}

.app-brand__mark--logo {
    width: 52px;
    height: 44px;

    padding: 0;

    border: 0;

    background: transparent;

    box-shadow: none;
}

.app-brand__mark--logo img {
    display: block;

    width: 52px;
    height: 44px;

    object-fit: contain;
}

.app-brand__name {
    color: #093a6d;

    font-size: 1.16rem;

    letter-spacing: .035em;
}

.app-brand__tagline {
    color: #71869a;

    font-size: .54rem;

    font-weight: 750;

    letter-spacing: .035em;
}

.app-nav__label {
    color: #8497aa;

    font-weight: 760;

    letter-spacing: .085em;
}

.app-nav__link {
    position: relative;

    color: #193750;

    border-radius: 10px;

    transition:
        color 150ms ease,
        background 150ms ease,
        transform 150ms ease;
}

.app-nav__link:hover {
    color: #075ca8;

    background: #f0f7fe;

    transform: translateX(2px);
}

.app-nav__link.is-active {
    color: #075ca8;

    background:
        linear-gradient(
            90deg,
            #e2f1ff 0%,
            #edf7ff 100%
        );

    box-shadow: none;
}

.app-nav__link.is-active::before {
    content: "";

    position: absolute;

    left: -12px;
    top: 8px;
    bottom: 8px;

    width: 4px;

    border-radius:
        0
        5px
        5px
        0;

    background:
        #0877d1;
}

.app-nav__icon {
    border: 0;

    background: transparent;

    color: #0a4b84;

    box-shadow: none;
}

.app-nav__link:hover
.app-nav__icon {
    border-color: transparent;

    background: #e6f3ff;

    color: #0873c8;
}

.app-nav__link.is-active
.app-nav__icon {
    border-color: transparent;

    background: #dceeff;

    color: #075fa9;

    box-shadow: none;
}


/* Sidebar footer ------------------------------------------ */

.app-sidebar-info {
    border:
        1px solid #dce8f3;

    background:
        linear-gradient(
            145deg,
            #eef7ff,
            #f8fbff
        );

    color: #315875;
}

.app-sidebar-info__label {
    color: #1685c7;
}


/* Header maquette ----------------------------------------- */

.app-topbar {
    min-height: 74px;

    background:
        rgb(255 255 255 / .97);

    border-bottom:
        1px solid #e7edf3;

    box-shadow:
        0 4px 18px
        rgb(16 56 91 / .045);

    backdrop-filter:
        blur(12px);
}

.is-shipments-index
.app-topbar__start {
    flex: 1 1 auto;
}

.is-shipments-index
.app-topbar-search {
    width:
        min(
            560px,
            48vw
        );

    height: 44px;

    margin-left: 0;

    border:
        1px solid #dbe6ef;

    border-radius: 11px;

    background: #f4f8fc;
}

.is-shipments-index
.app-topbar-search:focus-within {
    background: #fff;

    border-color: #77b5e9;
}

.is-shipments-index
.app-topbar-search__submit {
    color: #075a9d;
}

.is-shipments-index
.app-environment {
    display: none;
}

.is-shipments-index
.app-topbar
a[href="/admin/settings"] {
    display: none;
}

.app-topbar-notification {
    position: relative;

    display: grid;
    place-items: center;

    width: 40px;
    height: 40px;

    border-radius: 50%;

    color: #153e65;

    text-decoration: none;

    transition:
        color 150ms ease,
        background 150ms ease;
}

.app-topbar-notification:hover {
    color: #0872c6;

    background: #edf6ff;
}

.app-topbar-notification svg {
    width: 21px;
    height: 21px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.8;

    stroke-linecap: round;
    stroke-linejoin: round;
}

.app-user__avatar {
    border:
        1px solid #dce9f4;

    background: #edf7ff;

    color: #074f8f;
}

.app-user__name {
    color: #172d42;
}

.app-user__role {
    color: #718397;
}


/* Page background ----------------------------------------- */

.app-content {
    background:
        linear-gradient(
            180deg,
            #f7fbff 0%,
            #fbfdff 100%
        );
}


/* Breadcrumb ---------------------------------------------- */

.shipments-breadcrumb {
    display: flex;
    align-items: center;

    gap: 9px;

    margin-bottom: 18px;

    color: #8091a4;

    font-size: .78rem;
}

.shipments-breadcrumb a {
    color: #71869b;

    text-decoration: none;
}

.shipments-breadcrumb a:hover {
    color: #0870c2;
}

.shipments-breadcrumb strong {
    color: #8091a4;

    font-weight: 600;
}


/* Titre page exactement style maquette ------------------- */

.shipments-page-v2
.shipments-page-heading__icon {
    display: none;
}

.shipments-page-v2
.module-heading {
    gap: 0;
}

.shipments-page-v2
.app-page-title {
    color: #082d57;

    font-size: clamp(
        1.8rem,
        2.4vw,
        2.35rem
    );

    font-weight: 820;

    letter-spacing: -.03em;
}

.shipments-page-v2
.app-page-description {
    margin-top: 4px;

    color: #637c96;

    font-size: .93rem;
}


/* Actions page -------------------------------------------- */

.shipments-page-v2
.app-page-header__actions {
    gap: 12px;
}

.shipments-page-v2
.app-page-header__actions
.btn {
    min-height: 46px;

    gap: 9px;

    padding:
        0
        18px;

    border-radius: 9px;

    font-weight: 700;
}

.shipments-page-v2
.app-page-header__actions
.btn--secondary {
    border-color: #cfdce8;

    background: #fff;

    color: #0b355e;

    box-shadow:
        0 4px 12px
        rgb(15 53 87 / .04);
}

.shipments-page-v2
.app-page-header__actions
.btn--primary {
    background:
        linear-gradient(
            180deg,
            #0b5596,
            #073f74
        );

    box-shadow:
        0 8px 18px
        rgb(7 66 120 / .18);
}

.shipments-import-button {
    border:
        1px solid #c9e3fb;

    background:
        linear-gradient(
            180deg,
            #e9f5ff,
            #deefff
        );

    color: #0870c2;

    cursor: default;
}

.shipments-action-icon {
    width: 20px;
    height: 20px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.8;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* KPI illustrés ------------------------------------------- */

.shipments-page-v2
.record-kpi-grid {
    gap: 18px;

    margin-top: 22px;
}

.shipments-page-v2
.record-kpi-card {
    position: relative;

    display: block;

    min-height: 162px;

    padding:
        23px
        22px;

    overflow: hidden;

    border:
        1px solid #e0e8ef;

    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            #fff 0%,
            #fbfdff 100%
        );

    box-shadow:
        0 8px 22px
        rgb(19 54 86 / .07);
}

.shipments-page-v2
.record-kpi-card::before,
.shipments-page-v2
.record-kpi-card::after {
    display: none;
}

.shipments-page-v2
.record-kpi-card__mark {
    display: none;
}

.shipments-page-v2
.record-kpi-card > div {
    position: relative;

    z-index: 3;

    width: 58%;
}

.shipments-page-v2
.record-kpi-card__value {
    display: block;

    color: #06478b;

    font-size: 3rem;

    font-weight: 850;

    line-height: .95;

    letter-spacing: -.045em;
}

.shipments-page-v2
.record-kpi-card__label {
    display: block;

    margin-top: 5px;

    color: #06417c;

    font-size: 1.28rem;

    font-weight: 820;
}

.shipments-page-v2
.record-kpi-card--neutral
.record-kpi-card__value,
.shipments-page-v2
.record-kpi-card--neutral
.record-kpi-card__label,
.shipments-page-v2
.record-kpi-card--warning
.record-kpi-card__value,
.shipments-page-v2
.record-kpi-card--warning
.record-kpi-card__label {
    color: #a95308;
}

.shipment-kpi__description {
    display: block;

    margin-top: 18px;

    color: #66798d;

    font-size: .77rem;

    line-height: 1.35;
}

.shipment-kpi__illustration {
    position: absolute;

    z-index: 1;

    right: 4px;
    bottom: 0;

    width: 53%;
    height: 92%;

    object-fit: contain;
    object-position:
        right
        bottom;

    pointer-events: none;

    transition:
        transform 220ms ease;
}

.shipments-page-v2
.record-kpi-card:hover
.shipment-kpi__illustration {
    transform:
        translateY(-2px)
        scale(1.025);
}


/* Register ----------------------------------------------- */

.shipments-page-v2
.record-register-card {
    margin-top: 22px;

    border:
        1px solid #e0e8f0;

    border-radius: 14px;

    background: #fff;

    box-shadow:
        0 9px 26px
        rgb(15 52 86 / .055);
}


/* Mobile -------------------------------------------------- */

@media (max-width: 760px) {

    .app-sidebar {
        background: #fff;

        color: #16324d;
    }

    .app-sidebar__brand {
        background: #fff;
    }

    .app-nav__link {
        color: #173750;
    }

    .app-nav__label {
        color: #8497aa;
    }

    .shipments-breadcrumb {
        margin-bottom: 12px;
    }

    .shipments-page-v2
    .record-kpi-card {
        min-height: 116px;

        padding:
            17px
            15px;
    }

    .shipments-page-v2
    .record-kpi-card > div {
        width: 62%;
    }

    .shipments-page-v2
    .record-kpi-card__value {
        font-size: 1.85rem;
    }

    .shipments-page-v2
    .record-kpi-card__label {
        font-size: .88rem;
    }

    .shipment-kpi__description {
        display: none;
    }

    .shipment-kpi__illustration {
        right: -5px;

        width: 52%;
        height: 88%;
    }

    .shipments-page-v2
    .app-page-header__actions {
        gap: 8px;
    }

    .shipments-page-v2
    .app-page-header__actions
    .btn {
        min-height: 42px;

        padding:
            0
            12px;
    }

    .shipments-page-v2
    .app-page-header__actions
    .shipments-action-icon {
        width: 17px;
        height: 17px;
    }
}


@media (max-width: 520px) {

    .shipments-breadcrumb {
        display: none;
    }

    .shipments-page-v2
    .record-kpi-card__value {
        font-size: 1.65rem;
    }

    .shipments-page-v2
    .record-kpi-card__label {
        max-width: 88px;

        font-size: .8rem;
    }

    .shipment-kpi__illustration {
        width: 56%;
    }
}


/* ==========================================================
   BADICOM UI V2.3 — ALIGNEMENT MAQUETTE
   ========================================================== */


/* ----------------------------------------------------------
   SHELL
   ---------------------------------------------------------- */

.app-sidebar {
    display: flex;
    flex-direction: column;

    background:
        linear-gradient(
            180deg,
            #fbfdff 0%,
            #f5f9fc 58%,
            #edf5fa 100%
        );

    border-right:
        1px solid #dce7ef;

    box-shadow:
        4px 0 20px
        rgb(20 59 92 / 0.035);

    color: #163954;
}


.app-sidebar__brand {
    flex: 0 0 auto;

    min-height: 74px;

    padding:
        10px
        20px;

    background:
        rgb(255 255 255 / 0.82);

    border-bottom:
        1px solid #e4ecf2;
}


.app-brand {
    gap: 8px;
}


.app-brand__mark--logo {
    width: 42px;
    height: 38px;
}


.app-brand__mark--logo img {
    width: 42px;
    height: 38px;
}


.app-brand__name {
    font-size: 1.08rem;
    font-weight: 850;

    color: #073b70;
}


.app-brand__tagline {
    color: #7790a4;

    font-size: .49rem;

    letter-spacing: .025em;
}


/*
 * Tous les modules restent accessibles.
 * Seule la zone menu scrolle.
 */
.app-sidebar__inner {
    flex:
        1
        1
        auto;

    min-height: 0;

    overflow-y: auto;
    overflow-x: hidden;

    background:
        linear-gradient(
            180deg,
            rgb(255 255 255 / .34),
            rgb(230 242 250 / .20)
        );
}


.app-nav__label {
    color: #8398aa;

    font-size: .68rem;

    letter-spacing: .075em;
}


.app-nav__link {
    color: #163c59;

    border-radius: 8px;

    font-weight: 650;
}


.app-nav__link:hover {
    color: #075fa8;

    background: #edf6fc;

    transform: none;
}


.app-nav__link.is-active {
    color: #0865b2;

    background:
        linear-gradient(
            90deg,
            #e3f2ff 0%,
            #edf7ff 100%
        );

    box-shadow: none;
}


.app-nav__link.is-active::before {
    left: -12px;

    width: 4px;

    background: #0878d2;
}


.app-nav__icon,
.app-nav__link:hover
.app-nav__icon {
    border: 0;

    background: transparent;

    color: #084f89;

    box-shadow: none;
}


.app-nav__link.is-active
.app-nav__icon {
    border: 0;

    background: transparent;

    color: #0765ad;

    box-shadow: none;
}


/* ----------------------------------------------------------
   BAS DE SIDEBAR = VISUEL PORTUAIRE
   ---------------------------------------------------------- */

.app-sidebar__footer {
    position: relative;

    flex:
        0
        0
        286px;

    min-height: 286px;

    padding: 0;

    overflow: hidden;

    border-top:
        1px solid
        rgb(124 169 199 / .22);

    background:
        linear-gradient(
            180deg,
            rgb(255 255 255 / .04),
            rgb(1 54 88 / .16)
        ),
        url("/assets/illustrations/sidebar-port-scene.svg")
        center
        center
        /
        cover
        no-repeat;
}


.app-sidebar-info {
    position: absolute;

    inset:
        auto
        0
        0;

    min-height: 142px;

    padding:
        46px
        20px
        20px;

    border: 0;
    border-radius: 0;

    background:
        linear-gradient(
            180deg,
            transparent,
            rgb(4 48 77 / .82)
        );

    color: #fff;
}


.app-sidebar-info__label {
    display: none;
}


.app-sidebar-info__value {
    display: block;

    margin: 0;

    color: #fff;

    font-size: .93rem;
    font-weight: 760;

    line-height: 1.28;

    text-shadow:
        0
        1px
        4px
        rgb(0 0 0 / .20);
}


.app-sidebar-info__line {
    display: block;

    width: 28px;
    height: 3px;

    margin-top: 13px;

    border-radius: 2px;

    background: #fff;
}


/* ----------------------------------------------------------
   HEADER
   ---------------------------------------------------------- */

.app-topbar {
    min-height: 70px;

    background: #fff;

    border-bottom:
        1px solid #e7edf3;

    box-shadow:
        0
        3px
        15px
        rgb(17 55 88 / .035);
}


.is-shipments-index
.app-topbar-search {
    width:
        min(
            570px,
            47vw
        );

    height: 43px;

    background: #f4f8fb;

    border-color: #dbe6ef;
}


/* ----------------------------------------------------------
   PAGE
   ---------------------------------------------------------- */

.app-content {
    background:
        linear-gradient(
            180deg,
            #f5faff 0%,
            #eef6fb 100%
        );
}


.shipments-page-v2
.app-page-header {
    margin-bottom: 16px;
}


.shipments-page-v2
.record-kpi-grid {
    gap: 16px;

    margin-top: 16px;
}


/* ----------------------------------------------------------
   KPI — EXACTEMENT UNE SEULE LIGNE
   ---------------------------------------------------------- */

.shipments-page-v2
.record-kpi-card {
    position: relative;

    display: grid;

    /*
     * Très important :
     * texte ET illustration sont sur la même ligne.
     */
    grid-template-columns:
        minmax(0, 48%)
        minmax(0, 52%);

    grid-template-rows:
        1fr;

    align-items: stretch;

    min-height: 148px;
    height: 148px;

    padding:
        16px
        13px
        13px
        20px;

    overflow: hidden;

    border:
        1px solid #dde7ef;

    border-radius: 13px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f8fbfe
        );

    box-shadow:
        0
        7px
        20px
        rgb(19 56 88 / .055);

    transform: none;
}


.shipments-page-v2
.record-kpi-card:hover {
    transform: translateY(-2px);
}


/*
 * Groupe chiffre / titre / description.
 */
.shipments-page-v2
.record-kpi-card > div {
    position: relative;

    z-index: 3;

    grid-column: 1;
    grid-row: 1;

    display: flex;
    flex-direction: column;

    align-items: flex-start;

    width: 100%;
    height: 100%;

    padding:
        2px
        0
        1px;

    min-width: 0;
}


/*
 * Illustration :
 * même ligne que le contenu, colonne droite.
 */
.shipment-kpi__illustration {
    position: relative;

    z-index: 2;

    grid-column: 2;
    grid-row: 1;

    align-self: center;
    justify-self: stretch;

    right: auto;
    bottom: auto;

    width: 100%;
    height: 112px;

    max-width: none;

    object-fit: contain;

    object-position:
        center
        center;

    pointer-events: none;

    transform: none;
}


.shipments-page-v2
.record-kpi-card:hover
.shipment-kpi__illustration {
    transform:
        translateY(-1px)
        scale(1.015);
}


.shipments-page-v2
.record-kpi-card__value {
    display: block;

    color: #064a91;

    font-size: 2.55rem;
    font-weight: 850;

    line-height: .92;

    letter-spacing: -.04em;
}


.shipments-page-v2
.record-kpi-card__label {
    display: block;

    max-width: 160px;

    margin-top: 5px;

    color: #073f7a;

    font-size: 1.05rem;
    font-weight: 820;

    line-height: 1.1;
}


/*
 * Comme dans la maquette :
 * description alignée vers le bas de la carte.
 */
.shipment-kpi__description {
    display: block;

    margin-top: auto;

    max-width: 150px;

    color: #63798c;

    font-size: .68rem;

    line-height: 1.25;
}


/* tons des cartes */

.shipments-page-v2
.record-kpi-card--neutral {
    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #fcfbf8 62%,
            #fff5e8 100%
        );
}


.shipments-page-v2
.record-kpi-card--info {
    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #f8fcff 62%,
            #eaf5ff 100%
        );
}


.shipments-page-v2
.record-kpi-card--warning {
    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #fffdf9 62%,
            #fff2df 100%
        );
}


.shipments-page-v2
.record-kpi-card--neutral
.record-kpi-card__value,
.shipments-page-v2
.record-kpi-card--neutral
.record-kpi-card__label,
.shipments-page-v2
.record-kpi-card--warning
.record-kpi-card__value,
.shipments-page-v2
.record-kpi-card--warning
.record-kpi-card__label {
    color: #a95206;
}


/* ----------------------------------------------------------
   REGISTRE
   ---------------------------------------------------------- */

.shipments-page-v2
.record-register-card {
    margin-top: 20px;

    background: #fff;

    border:
        1px solid #dfe8ef;

    border-radius: 13px;

    box-shadow:
        0
        8px
        24px
        rgb(19 55 87 / .045);
}


/* ----------------------------------------------------------
   MOBILE
   ---------------------------------------------------------- */

@media (max-width: 760px) {

    /*
     * Le grand visuel sidebar est réservé au desktop/tablette.
     */
    .app-sidebar__footer {
        display: none;
    }


    .app-sidebar__inner {
        flex: 1 1 auto;
    }


    .shipments-page-v2
    .record-kpi-grid {
        gap: 12px;
    }


    .shipments-page-v2
    .record-kpi-card {
        grid-template-columns:
            minmax(0, 52%)
            minmax(0, 48%);

        grid-template-rows: 1fr;

        min-height: 108px;
        height: 108px;

        padding:
            12px
            8px
            10px
            13px;
    }


    .shipments-page-v2
    .record-kpi-card > div {
        grid-column: 1;
        grid-row: 1;

        padding: 1px 0;
    }


    .shipment-kpi__illustration {
        grid-column: 2;
        grid-row: 1;

        align-self: center;

        width: 100%;
        height: 82px;

        max-width: none;
    }


    .shipments-page-v2
    .record-kpi-card__value {
        font-size: 1.75rem;
    }


    .shipments-page-v2
    .record-kpi-card__label {
        max-width: 105px;

        font-size: .78rem;

        line-height: 1.08;
    }


    .shipment-kpi__description {
        display: none;
    }

}


@media (max-width: 420px) {

    .shipments-page-v2
    .record-kpi-card {
        min-height: 100px;
        height: 100px;

        padding:
            10px
            6px
            9px
            11px;
    }


    .shipments-page-v2
    .record-kpi-card__value {
        font-size: 1.55rem;
    }


    .shipments-page-v2
    .record-kpi-card__label {
        font-size: .72rem;
    }


    .shipment-kpi__illustration {
        height: 72px;
    }

}


/* ==========================================================
   BADICOM UI V2.4 — DENSITE + TOOLBAR + NAVIGATION
   ========================================================== */


/* ----------------------------------------------------------
   Fond général légèrement plus soutenu
   ---------------------------------------------------------- */

.app-content {
    background:
        radial-gradient(
            circle at 18% 4%,
            rgb(124 184 224 / 0.16),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            #edf6fc 0%,
            #e6f1f8 100%
        );
}


/* Sidebar un peu plus dense sans devenir sombre */

.app-sidebar {
    background:
        linear-gradient(
            180deg,
            #f3f8fc 0%,
            #eaf3f9 48%,
            #e0edf5 100%
        );

    border-right:
        1px solid #ccdce8;
}


.app-sidebar__brand {
    background:
        linear-gradient(
            180deg,
            #f8fbfd,
            #edf5fa
        );
}


.app-sidebar__inner {
    background:
        linear-gradient(
            180deg,
            rgb(239 247 252 / .82),
            rgb(223 237 246 / .70)
        );
}


/* ----------------------------------------------------------
   Menu : police + icônes légèrement agrandies
   ---------------------------------------------------------- */

.app-nav__link {
    min-height: 45px;

    gap: 11px;

    font-size: .92rem;

    font-weight: 700;
}


.app-nav__link > span:last-child {
    font-size: .92rem;

    line-height: 1.2;
}


.app-nav__icon {
    flex-basis: 37px;

    width: 37px;
    height: 37px;
}


.app-nav__icon svg {
    width: 20px;
    height: 20px;

    stroke-width: 1.8;
}


.app-nav__label {
    font-size: .70rem;

    font-weight: 800;
}


/* ----------------------------------------------------------
   Registre Expéditions : toolbar sur une ligne desktop
   ---------------------------------------------------------- */

@media (min-width: 900px) {

    .shipments-page-v2
    .data-toolbar {
        display: grid;

        grid-template-columns:
            minmax(300px, 1.55fr)
            minmax(170px, .44fr)
            minmax(170px, .44fr)
            auto;

        gap: 12px;

        align-items: end;
    }


    /*
     * Empêche le champ recherche de reprendre
     * toute la largeur via les anciennes règles.
     */
    .shipments-page-v2
    .data-toolbar__field--search {
        grid-column: auto !important;

        min-width: 0;
    }


    .shipments-page-v2
    .data-toolbar__field {
        min-width: 0;
    }


    /*
     * Le bouton Rechercher devient le 4e élément.
     * Fonctionne qu'il soit direct ou dans un wrapper actions.
     */
    .shipments-page-v2
    .data-toolbar > .btn,
    .shipments-page-v2
    .data-toolbar__actions {
        grid-column: auto !important;

        align-self: end;

        margin: 0;
    }


    .shipments-page-v2
    .data-toolbar__actions {
        display: flex;

        align-items: flex-end;

        gap: 8px;

        width: auto;
    }


    .shipments-page-v2
    .data-toolbar .btn {
        min-width: 122px;
        height: 44px;

        padding:
            0
            17px;

        white-space: nowrap;
    }


    .shipments-page-v2
    .data-toolbar .form-control {
        height: 44px;
    }

}


/* Desktop très large : proportions proches de la maquette */

@media (min-width: 1350px) {

    .shipments-page-v2
    .data-toolbar {
        grid-template-columns:
            minmax(360px, 1.7fr)
            215px
            215px
            125px;
    }

}


/* ----------------------------------------------------------
   Register légèrement moins blanc
   ---------------------------------------------------------- */

.shipments-page-v2
.record-register-card {
    background:
        linear-gradient(
            180deg,
            #fbfdfe 0%,
            #f6fafc 100%
        );

    border-color:
        #d2e0ea;
}


/* KPI : juste un peu plus de contraste */

.shipments-page-v2
.record-kpi-card {
    border-color:
        #d3e1eb;

    box-shadow:
        0
        7px
        20px
        rgb(16 55 86 / .07);
}


/* ----------------------------------------------------------
   Mobile : conserver le formulaire vertical
   ---------------------------------------------------------- */

@media (max-width: 899px) {

    .shipments-page-v2
    .data-toolbar {
        display: grid;

        grid-template-columns: 1fr;
    }


    .shipments-page-v2
    .data-toolbar__field--search,
    .shipments-page-v2
    .data-toolbar__field,
    .shipments-page-v2
    .data-toolbar > .btn,
    .shipments-page-v2
    .data-toolbar__actions {
        grid-column: 1;
    }


    .app-nav__link {
        font-size: .94rem;
    }


    .app-nav__link > span:last-child {
        font-size: .94rem;
    }


    .app-nav__icon svg {
        width: 20px;
        height: 20px;
    }

}


/* ==========================================================
   BADICOM UI V2.5 — KPI ILLUSTRATIONS
   Agrandissement visuel sans modifier les cards
   ========================================================== */


/*
 * Les dimensions de .record-kpi-card restent strictement
 * inchangées.
 *
 * Seules les illustrations gagnent en présence visuelle.
 */
.shipments-page-v2
.shipment-kpi__illustration {
    width: 112%;

    height: 124px;

    justify-self: center;

    object-fit: contain;

    object-position:
        center
        center;

    transform:
        translateX(2px)
        scale(1.03);

    transform-origin:
        center
        center;
}


/*
 * Hover très discret : ne pas faire grossir davantage
 * l'illustration pour éviter tout effet de débordement.
 */
.shipments-page-v2
.record-kpi-card:hover
.shipment-kpi__illustration {
    transform:
        translateX(2px)
        translateY(-1px)
        scale(1.04);
}


/* Desktop large */

@media (min-width: 1350px) {

    .shipments-page-v2
    .shipment-kpi__illustration {
        width: 116%;

        height: 126px;
    }

}


/* Mobile */

@media (max-width: 760px) {

    .shipments-page-v2
    .shipment-kpi__illustration {
        width: 108%;

        height: 88px;

        transform:
            translateX(1px)
            scale(1.02);
    }


    .shipments-page-v2
    .record-kpi-card:hover
    .shipment-kpi__illustration {
        transform:
            translateX(1px)
            scale(1.02);
    }

}


/* Très petits écrans */

@media (max-width: 420px) {

    .shipments-page-v2
    .shipment-kpi__illustration {
        width: 106%;

        height: 78px;
    }

}


/* ==========================================================
   BADICOM UI V2.6 — BRAND SIZE TUNING
   Logo + texte BADICOM légèrement agrandis
   ========================================================== */

.app-sidebar .app-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
}

.app-sidebar .app-brand__mark {
    width: 2.55rem;
    min-width: 2.55rem;
    max-width: 2.55rem;
}

.app-sidebar .app-brand__mark img,
.app-sidebar .app-brand__mark svg {
    width: 100%;
    height: auto;
    display: block;
}

.app-sidebar .app-brand__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.08rem;
    min-width: 0;
}

.app-sidebar .app-brand__name {
    font-size: 1.68rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.app-sidebar .app-brand__subtitle {
    font-size: 0.72rem;
    line-height: 1.1;
    letter-spacing: 0.04em;
}

@media (max-width: 760px) {
    .app-sidebar .app-brand {
        gap: 0.75rem;
    }

    .app-sidebar .app-brand__mark {
        width: 2.35rem;
        min-width: 2.35rem;
        max-width: 2.35rem;
    }

    .app-sidebar .app-brand__name {
        font-size: 1.52rem;
    }

    .app-sidebar .app-brand__subtitle {
        font-size: 0.68rem;
    }
}


/* ==========================================================
   BADICOM UI V2.7 — FILTER TOOLBAR COMPACT
   Recherche + Statut + Telex + actions sur une seule ligne
   ========================================================== */

@media (min-width: 1180px) {

    .shipments-page-v2
    .data-toolbar {
        display: grid;

        grid-template-columns:
            minmax(320px, 1fr)
            210px
            210px
            245px;

        column-gap: 12px;
        row-gap: 0;

        align-items: end;

        width: 100%;
    }


    /*
     * Recherche volontairement moins dominante.
     */
    .shipments-page-v2
    .data-toolbar__field--search {
        min-width: 0;

        grid-column: 1;
    }


    .shipments-page-v2
    .data-toolbar__field--search
    .form-control {
        width: 100%;
    }


    /*
     * Les deux selects gardent une largeur fixe
     * et parfaitement alignée.
     */
    .shipments-page-v2
    .data-toolbar__field:nth-of-type(2) {
        grid-column: 2;
    }


    .shipments-page-v2
    .data-toolbar__field:nth-of-type(3) {
        grid-column: 3;
    }


    /*
     * Rechercher + Réinitialiser dans la même colonne.
     */
    .shipments-page-v2
    .data-toolbar__actions {
        grid-column: 4 !important;

        display: flex;

        align-items: center;
        justify-content: flex-start;

        gap: 10px;

        width: 245px;

        margin: 0;
    }


    .shipments-page-v2
    .data-toolbar__actions
    .btn {
        flex:
            0
            0
            130px;

        min-width: 130px;
        width: 130px;

        height: 44px;

        padding:
            0
            15px;
    }


    .shipments-page-v2
    .containers-filter-reset {
        display: inline-flex;

        flex:
            0
            0
            auto;

        align-items: center;
        justify-content: center;

        min-height: 44px;

        padding:
            0
            3px;

        color:
            var(--color-primary-700);

        font-size: .82rem;

        font-weight: 700;

        line-height: 1;

        white-space: nowrap;

        text-decoration: none;
    }


    .shipments-page-v2
    .containers-filter-reset:hover {
        color:
            var(--color-primary-900);

        text-decoration: underline;
    }

}


/*
 * Sur écrans desktop moyens, on réduit encore
 * légèrement les selects pour conserver la ligne.
 */
@media (min-width: 1180px) and (max-width: 1450px) {

    .shipments-page-v2
    .data-toolbar {
        grid-template-columns:
            minmax(280px, 1fr)
            180px
            180px
            230px;

        column-gap: 10px;
    }


    .shipments-page-v2
    .data-toolbar__actions {
        width: 230px;

        gap: 8px;
    }


    .shipments-page-v2
    .data-toolbar__actions
    .btn {
        flex-basis: 120px;

        min-width: 120px;
        width: 120px;
    }

}


/*
 * Tablette et mobile :
 * conserver l'organisation verticale actuelle.
 */
@media (max-width: 1179px) {

    .shipments-page-v2
    .data-toolbar__actions {
        width: 100%;
    }


    .shipments-page-v2
    .containers-filter-reset {
        display: inline-flex;

        margin-top: 4px;

        font-weight: 700;
    }

}

/* ==========================================================
   BADICOM SETTINGS GEO V1.0
   Paramètres > Référentiels géographiques > Ports
   ========================================================== */

.settings-home,
.settings-geo-page {
    display: grid;
    gap: 1.35rem;
}

.settings-home {
    padding-bottom: 1rem;
}


/* ==========================================================
   PAGE PARAMETRES
   ========================================================== */

.settings-section {
    display: grid;
    gap: 1rem;
}

.settings-section__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
}

.settings-section__eyebrow,
.settings-detail-modal__eyebrow {
    display: block;
    margin-bottom: .3rem;

    color: #3970ba;

    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.settings-section__header h2 {
    margin: 0;

    color: #142b4a;

    font-size: 1.25rem;
    line-height: 1.2;
}

.settings-section__header p {
    margin: .42rem 0 0;

    color: #66758b;

    font-size: .86rem;
    line-height: 1.5;
}


/* ----------------------------------------------------------
   CARTES MODULES
   ---------------------------------------------------------- */

.settings-module-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 1rem;
}

.settings-module-card {
    position: relative;

    display: flex;

    min-width: 0;
    min-height: 132px;

    align-items: center;

    gap: 1rem;

    padding: 1.1rem 1.15rem;

    border: 1px solid #d8e5f4;
    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #f8fbff 100%
        );

    color: inherit;

    text-decoration: none;

    box-shadow:
        0 8px 24px
        rgba(42, 74, 116, .065);

    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

a.settings-module-card:hover {
    border-color: #9fc1ed;

    box-shadow:
        0 12px 30px
        rgba(42, 74, 116, .11);

    transform:
        translateY(-2px);
}

.settings-module-card--future {
    background:
        linear-gradient(
            145deg,
            #fbfdff 0%,
            #f4f8fd 100%
        );
}

.settings-module-card__icon {
    display: inline-flex;

    flex: 0 0 52px;

    width: 52px;
    height: 52px;

    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            #e9f3ff 0%,
            #dcecff 100%
        );

    color: #2467ba;
}

.settings-module-card__content {
    display: grid;

    flex: 1;

    min-width: 0;

    gap: .35rem;
}

.settings-module-card__content strong {
    color: #172c48;

    font-size: 1rem;
    font-weight: 800;
}

.settings-module-card__content small {
    color: #6a788d;

    font-size: .78rem;
    line-height: 1.5;
}

.settings-module-card__arrow {
    display: inline-flex;

    flex: 0 0 auto;

    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    border-radius: 10px;

    background: #edf5ff;

    color: #4280ce;

    font-size: 1rem;
    font-weight: 800;
}


/* ==========================================================
   PAGE PORTS
   ========================================================== */

.settings-breadcrumb {
    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: .45rem;

    color: #7b899d;

    font-size: .76rem;
}

.settings-breadcrumb a {
    color: #3976c4;

    font-weight: 700;

    text-decoration: none;
}

.settings-breadcrumb a:hover {
    text-decoration: underline;
}

.settings-breadcrumb strong {
    color: #344b68;
}


/* ----------------------------------------------------------
   HEADER PORTS
   ---------------------------------------------------------- */

.settings-geo-header {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 1rem;
}

.settings-geo-header__main {
    display: flex;

    align-items: center;

    gap: .9rem;
}

.settings-geo-header__icon {
    display: inline-flex;

    width: 50px;
    height: 50px;

    flex: 0 0 50px;

    align-items: center;
    justify-content: center;

    border-radius: 15px;

    background:
        linear-gradient(
            145deg,
            #e9f3ff,
            #dcecff
        );

    color: #2468bb;
}

.settings-geo-header h1 {
    margin: 0;

    color: #142a48;

    font-size: 1.5rem;
    line-height: 1.2;
}

.settings-geo-header p {
    margin: .3rem 0 0;

    color: #69788c;

    font-size: .84rem;
    line-height: 1.45;
}

.settings-geo-header__actions {
    display: flex;

    align-items: center;

    gap: .7rem;
}


/* ----------------------------------------------------------
   KPI PORTS
   ---------------------------------------------------------- */

.settings-geo-kpis {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: .85rem;
}

.settings-geo-kpi {
    display: grid;

    min-width: 0;
    min-height: 108px;

    align-content: center;

    gap: .15rem;

    padding: .95rem 1rem;

    border: 1px solid #dce7f5;
    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #f4f9ff 100%
        );

    box-shadow:
        0 6px 18px
        rgba(48, 79, 118, .055);
}

.settings-geo-kpi__label {
    color: #718097;

    font-size: .72rem;
    font-weight: 750;
}

.settings-geo-kpi strong {
    color: #143967;

    font-size: 1.7rem;
    line-height: 1.05;
}

.settings-geo-kpi small {
    color: #8290a3;

    font-size: .7rem;
    line-height: 1.35;
}


/* ----------------------------------------------------------
   REGISTRE
   ---------------------------------------------------------- */

.settings-geo-registry {
    overflow: hidden;

    border:
        1px solid
        #dce6f2;
}

.settings-geo-registry__head {
    display: flex;

    justify-content: space-between;
    align-items: center;

    padding:
        1rem
        1.1rem
        .65rem;
}

.settings-geo-registry__head h2 {
    margin: 0;

    color: #172f4e;

    font-size: 1rem;
}

.settings-geo-registry__head p {
    margin: .25rem 0 0;

    color: #8390a2;

    font-size: .73rem;
}


/* ----------------------------------------------------------
   FILTRES PORTS
   ---------------------------------------------------------- */

.settings-geo-toolbar {
    display: grid;

    grid-template-columns:
        minmax(300px, 1fr)
        210px
        175px
        210px;

    gap: .75rem;

    align-items: end;

    padding:
        .75rem
        1.1rem
        1rem;

    border-bottom:
        1px solid
        #e4ebf5;
}

.settings-geo-field {
    display: grid;

    min-width: 0;

    gap: .35rem;
}

.settings-geo-field > span {
    color: #617087;

    font-size: .69rem;
    font-weight: 750;
}

.settings-geo-field .form-control {
    width: 100%;
}

.settings-geo-toolbar__actions {
    display: flex;

    min-height: 44px;

    align-items: center;

    gap: .65rem;
}

.settings-geo-reset {
    color: #346fb8;

    font-size: .78rem;
    font-weight: 750;

    white-space: nowrap;

    text-decoration: none;
}

.settings-geo-reset:hover {
    text-decoration: underline;
}


/* ----------------------------------------------------------
   TABLE PORTS
   ---------------------------------------------------------- */

.settings-ports-table {
    width: 100%;
}

.settings-ports-table td {
    vertical-align: middle;
}

.settings-port-code {
    color: #245f9f;

    font-size: .76rem;
    font-weight: 800;

    letter-spacing: .03em;
}

.settings-port-location {
    display: block;

    color: #253b58;

    font-weight: 700;
}

.settings-ports-table td small {
    display: block;

    margin-top: .15rem;

    color: #8490a1;
}

.settings-ports-table__detail {
    width: 72px;

    text-align: center;
}

.settings-port-detail-button {
    display: inline-flex;

    width: 34px;
    height: 34px;

    align-items: center;
    justify-content: center;

    border:
        1px solid
        #d9e5f4;

    border-radius: 10px;

    background: #f7faff;

    color: #3974bc;

    cursor: pointer;
}

.settings-port-detail-button:hover {
    border-color: #a8c6eb;

    background: #edf5ff;
}


/* ----------------------------------------------------------
   MOBILE PORTS
   ---------------------------------------------------------- */

.settings-ports-mobile {
    display: none;
}


/* ----------------------------------------------------------
   EMPTY
   ---------------------------------------------------------- */

.settings-geo-empty {
    display: grid;

    min-height: 210px;

    place-content: center;

    gap: .35rem;

    padding: 2rem;

    text-align: center;
}

.settings-geo-empty strong {
    color: #273d59;
}

.settings-geo-empty p {
    margin: 0;

    color: #8490a1;

    font-size: .82rem;
}


/* ==========================================================
   MODAL DETAIL PORT
   ========================================================== */

.settings-modal-open {
    overflow: hidden;
}

.settings-detail-modal[hidden] {
    display: none !important;
}

.settings-detail-modal {
    position: fixed;

    z-index: 1200;

    inset: 0;

    display: grid;

    place-items: center;

    padding: 1.25rem;
}

.settings-detail-modal__backdrop {
    position: absolute;

    inset: 0;

    background:
        rgba(
            16,
            34,
            58,
            .42
        );

    backdrop-filter:
        blur(2px);
}

.settings-detail-modal__panel {
    position: relative;

    z-index: 1;

    width:
        min(
            680px,
            100%
        );

    max-height:
        calc(
            100vh - 2.5rem
        );

    overflow: auto;

    border:
        1px solid
        #d7e3f2;

    border-radius: 20px;

    background: #fff;

    box-shadow:
        0 28px 70px
        rgba(
            20,
            42,
            72,
            .23
        );
}

.settings-detail-modal__header {
    display: flex;

    justify-content: space-between;
    align-items: flex-start;

    gap: 1rem;

    padding:
        1.15rem
        1.2rem;

    border-bottom:
        1px solid
        #e4ebf4;
}

.settings-detail-modal__header h2 {
    margin: 0;

    color: #172f4e;

    font-size: 1.18rem;
}

.settings-detail-modal__close {
    display: inline-flex;

    width: 36px;
    height: 36px;

    align-items: center;
    justify-content: center;

    border: 0;

    border-radius: 11px;

    background: #f0f5fb;

    color: #536781;

    font-size: 1.3rem;

    cursor: pointer;
}

.settings-detail-modal__body {
    display: grid;

    gap: 1rem;

    padding: 1.2rem;
}

.settings-detail-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: .75rem;
}

.settings-detail-grid > div,
.settings-detail-coordinates {
    display: grid;

    min-width: 0;

    gap: .25rem;

    padding:
        .85rem
        .9rem;

    border:
        1px solid
        #e1e9f3;

    border-radius: 13px;

    background: #f9fbfe;
}

.settings-detail-grid span,
.settings-detail-coordinates > span {
    color: #7d8999;

    font-size: .67rem;
    font-weight: 750;

    text-transform: uppercase;

    letter-spacing: .04em;
}

.settings-detail-grid strong,
.settings-detail-coordinates strong {
    color: #223a58;

    font-size: .88rem;

    overflow-wrap: anywhere;
}

.settings-detail-coordinates small {
    color: #8490a0;

    font-size: .72rem;
    line-height: 1.45;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1179px) {

    .settings-module-grid {
        grid-template-columns: 1fr;
    }

    .settings-geo-toolbar {
        grid-template-columns:
            1fr
            1fr;
    }

    .settings-geo-toolbar__actions {
        grid-column:
            1 / -1;
    }
}


@media (max-width: 760px) {

    .settings-home,
    .settings-geo-page {
        gap: 1.05rem;
    }

    .settings-section__header {
        align-items: flex-start;
    }

    .settings-module-grid {
        gap: .75rem;
    }

    .settings-module-card {
        min-height: 106px;

        padding: .9rem;
    }

    .settings-module-card__icon {
        flex-basis: 46px;

        width: 46px;
        height: 46px;

        border-radius: 14px;
    }

    .settings-module-card__content strong {
        font-size: .92rem;
    }

    .settings-module-card__content small {
        font-size: .73rem;
    }


    .settings-geo-header {
        align-items: flex-start;

        flex-direction: column;
    }

    .settings-geo-header__actions {
        width: 100%;

        flex-wrap: wrap;
    }

    .settings-geo-kpis {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .settings-geo-kpi {
        min-height: 94px;
    }

    .settings-geo-toolbar {
        grid-template-columns: 1fr;

        padding-inline: .85rem;
    }

    .settings-geo-toolbar__actions {
        grid-column: auto;

        align-items: stretch;

        flex-direction: column;
    }

    .settings-geo-toolbar__actions .btn {
        width: 100%;
    }

    .settings-geo-reset {
        align-self: center;

        padding: .35rem;
    }

    .settings-ports-desktop {
        display: none;
    }

    .settings-ports-mobile {
        display: grid;

        gap: .55rem;

        padding: .7rem;
    }

    .settings-port-card {
        display: flex;

        width: 100%;

        align-items: center;
        justify-content: space-between;

        gap: .75rem;

        padding:
            .85rem
            .9rem;

        border:
            1px solid
            #dfe8f4;

        border-radius: 14px;

        background: #fff;

        color: inherit;

        font: inherit;

        text-align: left;

        cursor: pointer;
    }

    .settings-port-card:hover {
        border-color: #b8cde8;

        background: #f9fbff;
    }

    .settings-port-card__main {
        display: grid;

        min-width: 0;

        gap: .22rem;
    }

    .settings-port-card__main strong {
        overflow: hidden;

        color: #203853;

        font-size: .86rem;

        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .settings-port-card__main small {
        overflow: hidden;

        color: #7b8898;

        font-size: .72rem;

        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .settings-port-card__meta {
        display: inline-flex;

        flex: 0 0 auto;

        align-items: center;

        gap: .45rem;

        color: #5b7290;
    }


    .settings-detail-modal {
        align-items: end;

        padding: 0;
    }

    .settings-detail-modal__panel {
        width: 100%;

        max-height: 86vh;

        border-radius:
            20px
            20px
            0
            0;
    }

    .settings-detail-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 420px) {

    .settings-geo-kpis {
        gap: .55rem;
    }

    .settings-geo-kpi {
        padding: .75rem;
    }

    .settings-geo-kpi strong {
        font-size: 1.42rem;
    }

    .settings-module-card {
        gap: .7rem;

        padding: .8rem;
    }

    .settings-module-card__arrow {
        width: 26px;
        height: 26px;
    }
}


/* ==========================================================
   BADICOM SETTINGS PORTS V1.1 — CREATE / EDIT
   ========================================================== */

.settings-port-form {
    display: grid;
    gap: 0;
    overflow: hidden;
}

.settings-port-form__section {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
    border-bottom: 1px solid #e3ebf4;
}

.settings-port-form__section-head {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
}

.settings-port-form__section-head > span {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eaf3ff;
    color: #2b6dbd;
    font-size: .72rem;
    font-weight: 800;
}

.settings-port-form__section-head h2 {
    margin: 0;
    color: #1c3453;
    font-size: .98rem;
}

.settings-port-form__section-head p {
    margin: .2rem 0 0;
    color: #7b8899;
    font-size: .74rem;
}

.settings-port-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem 1rem;
}

.settings-port-form .form-field {
    display: grid;
    gap: .35rem;
}

.settings-port-form .form-label {
    color: #5e6f86;
    font-size: .72rem;
    font-weight: 750;
}

.settings-port-form textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.settings-port-form__footer {
    display: flex;
    justify-content: flex-end;
    gap: .7rem;
    padding: 1rem 1.25rem;
    background: #f8fbff;
}

.settings-port-action-button {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    margin-right: .3rem;
    border: 1px solid #d9e5f4;
    border-radius: 10px;
    background: #f7faff;
    color: #3974bc;
    text-decoration: none;
}

.settings-port-action-button:hover {
    border-color: #a8c6eb;
    background: #edf5ff;
}

.settings-detail-modal__footer {
    display: flex;
    justify-content: flex-end;
    padding: 1rem 1.2rem;
    border-top: 1px solid #e4ebf4;
    background: #f8fbff;
}

@media (max-width: 760px) {

    .settings-port-form__grid {
        grid-template-columns: 1fr;
    }

    .settings-port-form__footer {
        flex-direction: column-reverse;
    }

    .settings-port-form__footer .btn {
        width: 100%;
    }

    .settings-detail-modal__footer .btn {
        width: 100%;
    }
}


/* ==========================================================
   BADICOM SETTINGS PORTS V1.2 — CLICKABLE DESKTOP ROW
   ========================================================== */

.settings-ports-table__actions {
    width: 82px;
    text-align: center;
}

.settings-port-row {
    cursor: pointer;
}

.settings-port-row > td {
    transition:
        background-color .16s ease,
        border-color .16s ease;
}

.settings-port-row:hover > td {
    background: #f4f8fe;
}

.settings-port-row:focus {
    outline: none;
}

.settings-port-row:focus-visible > td {
    background: #eef6ff;
}

.settings-port-row:focus-visible > td:first-child {
    box-shadow:
        inset 3px 0 0
        #3479c7;
}

.settings-port-row .settings-port-action-button {
    position: relative;
    z-index: 2;
}

.settings-port-row:hover
.settings-port-action-button {
    border-color: #bad1ed;
    background: #fff;
}


/*
 * Ancienne colonne Détail :
 * conservée sans effet au cas où une règle antérieure
 * la référence encore ailleurs.
 */
.settings-ports-table__detail {
    width: 82px;
    text-align: center;
}


/* ==========================================================
   BADICOM SETTINGS PORTS V1.3 — DELETE
   ========================================================== */

.settings-ports-table__actions {
    width: 108px;
}

.settings-ports-table__actions > * {
    vertical-align: middle;
}

.settings-port-delete-form {
    display: inline-flex;
    margin: 0;
}

.settings-port-delete-button {
    display: inline-flex;

    width: 34px;
    height: 34px;

    align-items: center;
    justify-content: center;

    margin-left: .25rem;

    border: 1px solid #f0d1d5;
    border-radius: 10px;

    background: #fff8f8;
    color: #be4450;

    cursor: pointer;
}

.settings-port-delete-button:hover {
    border-color: #e7aeb5;
    background: #fff0f1;
    color: #a92c38;
}

.settings-detail-modal__footer {
    align-items: center;
    gap: .65rem;
}

.settings-detail-delete-form {
    margin: 0;
}

.settings-port-delete-cta {
    display: inline-flex;

    min-height: 42px;

    align-items: center;
    justify-content: center;

    padding: 0 1rem;

    border: 1px solid #efc7cc;
    border-radius: 10px;

    background: #fff5f6;
    color: #ad3440;

    font: inherit;
    font-size: .82rem;
    font-weight: 750;

    cursor: pointer;
}

.settings-port-delete-cta:hover {
    border-color: #e6aeb5;
    background: #ffebed;
}


/* Notifications */

.settings-geo-notice {
    display: flex;

    align-items: flex-start;

    gap: .55rem;

    padding: .8rem 1rem;

    border: 1px solid;
    border-radius: 13px;

    font-size: .8rem;
    line-height: 1.45;
}

.settings-geo-notice strong {
    flex: 0 0 auto;
}

.settings-geo-notice--success {
    border-color: #bfe5d1;
    background: #f0fbf5;
    color: #19633e;
}

.settings-geo-notice--warning {
    border-color: #eedba7;
    background: #fffaf0;
    color: #77591b;
}

.settings-geo-notice--danger {
    border-color: #edc7cc;
    background: #fff5f6;
    color: #9e3540;
}


@media (max-width: 760px) {

    .settings-detail-modal__footer {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .settings-detail-delete-form {
        width: 100%;
    }

    .settings-port-delete-cta,
    .settings-detail-modal__footer .btn {
        width: 100%;
    }

    .settings-geo-notice {
        flex-direction: column;
    }
}

/* ==========================================================
   BADICOM SETTINGS LOCATIONS V1.0
   ========================================================== */

.settings-location-toolbar {
    grid-template-columns:
        minmax(280px, 1fr)
        170px
        190px
        155px
        200px;
}

.settings-location-row {
    cursor: pointer;
}

.settings-location-row > td {
    transition:
        background-color .16s ease;
}

.settings-location-row:hover > td {
    background: #f4f8fe;
}

.settings-location-row:focus {
    outline: none;
}

.settings-location-row:focus-visible > td {
    background: #eef6ff;
}

.settings-locations-mobile {
    display: none;
}

.settings-location-card {
    color: inherit;
}


@media (max-width: 1179px) {

    .settings-location-toolbar {
        grid-template-columns:
            1fr
            1fr;
    }

    .settings-location-toolbar
    .settings-geo-toolbar__actions {
        grid-column:
            1 / -1;
    }
}


@media (max-width: 760px) {

    .settings-location-toolbar {
        grid-template-columns: 1fr;
    }

    .settings-location-toolbar
    .settings-geo-toolbar__actions {
        grid-column: auto;
    }

    .settings-locations-desktop {
        display: none;
    }

    .settings-locations-mobile {
        display: grid;

        gap: .55rem;

        padding: .7rem;
    }

    .settings-location-card {
        display: flex;

        width: 100%;

        align-items: center;
        justify-content: space-between;

        gap: .75rem;

        padding:
            .85rem
            .9rem;

        border:
            1px solid
            #dfe8f4;

        border-radius: 14px;

        background: #fff;

        font: inherit;

        text-align: left;

        cursor: pointer;
    }

    .settings-location-card__main {
        display: grid;

        min-width: 0;

        gap: .22rem;
    }

    .settings-location-card__main strong {
        overflow: hidden;

        color: #203853;

        font-size: .86rem;

        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .settings-location-card__main small {
        overflow: hidden;

        color: #7b8898;

        font-size: .72rem;

        text-overflow: ellipsis;
        white-space: nowrap;
    }
}


/* ==========================================================
   BADICOM SHIPMENT MAP V1.0
   ========================================================== */

[data-shipment-record-modal]
.record-modal__panel--premium {
    width:
        min(
            1180px,
            calc(100vw - 48px)
        );

    max-width: 1180px;
}


.shipment-map-card {
    display: grid;
    gap: 16px;

    margin-bottom: 18px;
    padding: 18px;

    border:
        1px solid
        #d9e7f5;

    border-radius: 18px;

    background:
        linear-gradient(
            180deg,
            #f8fbff 0%,
            #eef6fd 100%
        );

    box-shadow:
        0 12px 30px
        rgba(35, 78, 121, .08);
}


.shipment-map-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}


.shipment-map-card__eyebrow {
    display: block;

    margin-bottom: 4px;

    color: #2772bf;

    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
}


.shipment-map-card__title {
    margin: 0;

    color: #173b63;

    font-size: 1.08rem;
    line-height: 1.3;
}


.shipment-map-card__header p {
    max-width: 680px;

    margin:
        5px
        0
        0;

    color: #708198;

    font-size: .75rem;
    line-height: 1.5;
}


.shipment-map-card__status {
    display: grid;

    flex: 0 0 auto;

    justify-items: end;

    gap: 6px;
}


.shipment-map-card__status strong {
    color: #193d64;

    font-size: .78rem;
}


.shipment-map-position-badge {
    display: inline-flex;

    min-height: 28px;

    align-items: center;

    padding:
        0
        10px;

    border:
        1px solid
        #bdd8f4;

    border-radius: 999px;

    background: #eaf4ff;

    color: #2468ad;

    font-size: .69rem;
    font-weight: 800;
}


.shipment-map-route-cards {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 10px;
}


.shipment-map-route-point {
    display: flex;
    align-items: center;

    min-width: 0;

    gap: 10px;

    padding:
        10px
        12px;

    border:
        1px solid
        #dbe8f5;

    border-radius: 14px;

    background:
        rgba(
            255,
            255,
            255,
            .86
        );
}


.shipment-map-route-point__icon {
    display: inline-flex;

    width: 36px;
    height: 36px;

    flex: 0 0 36px;

    align-items: center;
    justify-content: center;

    border-radius: 11px;

    font-size: 1rem;
}


.shipment-map-route-point__icon--origin {
    background: #e6f2ff;
}


.shipment-map-route-point__icon--discharge {
    background: #eaf7f4;
}


.shipment-map-route-point__icon--final {
    background: #fff4e6;
}


.shipment-map-route-point > div {
    display: grid;

    min-width: 0;

    gap: 2px;
}


.shipment-map-route-point small {
    color: #8190a4;

    font-size: .63rem;
    font-weight: 700;
    text-transform: uppercase;
}


.shipment-map-route-point strong {
    overflow: hidden;

    color: #173b63;

    font-size: .82rem;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.shipment-map-route-point span:not(
    .shipment-map-route-point__icon
) {
    color: #718297;

    font-size: .7rem;
}


.shipment-map-stage {
    position: relative;

    min-height: 390px;

    overflow: hidden;

    border:
        1px solid
        #d5e4f2;

    border-radius: 16px;

    background:
        #dcebf6;
}


.shipment-map-canvas {
    width: 100%;
    height: 390px;

    background:
        #dcebf6;
}


.shipment-map-unavailable {
    display: grid;

    min-height: 390px;

    align-content: center;
    justify-items: center;

    gap: 5px;

    padding: 24px;

    color: #65788f;

    text-align: center;
}


.shipment-map-unavailable[hidden] {
    display: none;
}


.shipment-map-unavailable strong {
    color: #24496f;
}


.shipment-map-tile-warning {
    position: absolute;
    z-index: 800;

    top: 12px;
    left: 50%;

    transform:
        translateX(-50%);

    padding:
        7px
        10px;

    border:
        1px solid
        #e8d4a8;

    border-radius: 9px;

    background:
        rgba(
            255,
            249,
            232,
            .96
        );

    color: #765b20;

    font-size: .68rem;

    box-shadow:
        0 5px 15px
        rgba(33, 53, 75, .12);
}


.shipment-map-tile-warning[hidden] {
    display: none;
}


.shipment-map-vessel-card {
    position: absolute;
    z-index: 750;

    right: 14px;
    bottom: 14px;

    display: grid;

    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto;

    align-items: center;

    min-width:
        min(
            520px,
            calc(100% - 28px)
        );

    gap: 10px;

    padding:
        10px
        12px;

    border:
        1px solid
        rgba(
            196,
            216,
            235,
            .94
        );

    border-radius: 14px;

    background:
        rgba(
            255,
            255,
            255,
            .94
        );

    backdrop-filter:
        blur(9px);

    box-shadow:
        0 10px 25px
        rgba(22, 54, 85, .16);
}


.shipment-map-vessel-card__icon {
    display: inline-flex;

    width: 40px;
    height: 40px;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #e7f2ff;

    font-size: 1.15rem;
}


.shipment-map-vessel-card__identity {
    display: grid;
    min-width: 0;
    gap: 1px;
}


.shipment-map-vessel-card__identity small {
    color: #2c74bb;

    font-size: .63rem;
    font-weight: 800;
    text-transform: uppercase;
}


.shipment-map-vessel-card__identity strong {
    overflow: hidden;

    color: #173b63;

    font-size: .8rem;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.shipment-map-vessel-card__identity span {
    color: #74849a;

    font-size: .67rem;
}


.shipment-map-vessel-card__progress {
    display: grid;
    justify-items: end;
    gap: 1px;
}


.shipment-map-vessel-card__progress strong {
    color: #174a7c;

    font-size: .86rem;
}


.shipment-map-vessel-card__progress span {
    color: #7a899b;

    font-size: .62rem;
    white-space: nowrap;
}


.shipment-map-card__footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap:
        8px
        18px;

    color: #718297;

    font-size: .66rem;
}


.shipment-map-card__footer > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}


.shipment-map-legend-line {
    display: inline-block;

    width: 24px;

    border-top:
        2px dashed
        #2875c7;
}


.shipment-map-legend-line--land {
    border-top-color:
        #c9822a;
}


.shipment-map-card__disclaimer {
    margin-left: auto;

    font-weight: 650;
}


/* Leaflet */

.shipment-map-canvas.leaflet-container {
    font-family: inherit;

    background: #dcebf6;
}


.shipment-map-leaflet-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    border: 0;
    background: transparent;
}


.shipment-map-leaflet-icon > span {
    display: flex;

    width: 34px;
    height: 34px;

    align-items: center;
    justify-content: center;

    border:
        2px solid
        #fff;

    border-radius: 50%;

    background: #1767aa;

    box-shadow:
        0 5px 14px
        rgba(20, 58, 93, .25);

    font-size: .92rem;
}


.shipment-map-leaflet-icon--discharge > span {
    background: #228b7a;
}


.shipment-map-leaflet-icon--final > span {
    background: #d98928;
}


.shipment-map-leaflet-icon--ship > span {
    width: 44px;
    height: 44px;

    background: #0e4f87;

    box-shadow:
        0 7px 20px
        rgba(13, 63, 105, .34);

    font-size: 1.2rem;
}


.shipment-map-tooltip {
    border:
        1px solid
        #d8e4ef !important;

    border-radius:
        8px !important;

    background:
        rgba(
            255,
            255,
            255,
            .96
        ) !important;

    color:
        #173b63 !important;

    font-family:
        inherit !important;

    font-size:
        .68rem !important;

    font-weight:
        750 !important;

    box-shadow:
        0 4px 12px
        rgba(26, 57, 86, .12) !important;
}


.shipment-map-tooltip--ship {
    color:
        #0e4f87 !important;
}


/* Mobile */

@media (max-width: 760px) {

    [data-shipment-record-modal]
    .record-modal__panel--premium {
        width: 100%;
        max-width: none;
    }


    .shipment-map-card {
        gap: 12px;

        margin:
            0
            0
            14px;

        padding: 12px;

        border-radius: 15px;
    }


    .shipment-map-card__header {
        display: grid;
        gap: 10px;
    }


    .shipment-map-card__status {
        justify-items: start;
    }


    .shipment-map-route-cards {
        grid-template-columns: 1fr;
    }


    .shipment-map-route-point {
        padding:
            9px
            10px;
    }


    .shipment-map-stage {
        min-height: 330px;
    }


    .shipment-map-canvas {
        height: 330px;
    }


    .shipment-map-unavailable {
        min-height: 330px;
    }


    .shipment-map-vessel-card {
        right: 8px;
        bottom: 8px;
        left: 8px;

        grid-template-columns:
            auto
            minmax(0, 1fr);

        min-width: 0;

        padding:
            9px
            10px;
    }


    .shipment-map-vessel-card__progress {
        grid-column:
            1 / -1;

        justify-items: start;

        padding-left: 50px;
    }


    .shipment-map-vessel-card__progress span {
        white-space: normal;
    }


    .shipment-map-card__footer {
        display: grid;
        gap: 6px;
    }


    .shipment-map-card__disclaimer {
        margin-left: 0;
    }
}


/* ==========================================================
   BADICOM SHIPMENT MODAL V1.1 — HERO MAP
   Carte = élément principal
   ========================================================== */


/* ----------------------------------------------------------
   Statut expédition dans le header
   ---------------------------------------------------------- */

[data-shipment-record-modal]
.record-modal__header
[data-record-field="status"] {
    display: inline-flex;

    min-height: 28px;

    align-items: center;
    justify-content: center;

    padding:
        0
        12px;

    border:
        1px solid
        #e66e11;

    border-radius:
        999px;

    background:
        #ef6c00;

    color:
        #fff;

    font-weight:
        800;

    box-shadow:
        0 4px 10px
        rgba(239, 108, 0, .15);
}


/* ----------------------------------------------------------
   Carte Hero
   ---------------------------------------------------------- */

.shipment-map-card--hero {
    display: grid;

    gap: 12px;

    padding: 12px;

    background:
        linear-gradient(
            180deg,
            #f8fbff 0%,
            #eef6fd 100%
        );
}


.shipment-map-card--hero
.shipment-map-stage {
    order: 1;

    min-height: 430px;
}


.shipment-map-card--hero
.shipment-map-canvas {
    height: 430px;
}


.shipment-map-card--hero
.shipment-map-unavailable {
    min-height: 430px;
}


/* ----------------------------------------------------------
   ETA orange en overlay carte
   ---------------------------------------------------------- */

.shipment-map-eta-card {
    position: absolute;

    z-index: 850;

    top: 14px;
    right: 14px;

    display: inline-flex;

    align-items: center;

    gap: 7px;

    min-height: 38px;

    padding:
        0
        13px;

    border:
        1px solid
        rgba(255, 255, 255, .8);

    border-radius:
        11px;

    background:
        #ef6c00;

    color:
        #fff;

    box-shadow:
        0 8px 20px
        rgba(193, 87, 0, .24);

    white-space: nowrap;
}


.shipment-map-eta-card__icon {
    display: inline-flex;

    align-items: center;
    justify-content: center;
}


.shipment-map-eta-card strong {
    color: #fff;

    font-size: .76rem;
    font-weight: 800;
}


/* ----------------------------------------------------------
   Route cards SOUS la carte
   ---------------------------------------------------------- */

.shipment-map-card--hero
.shipment-map-route-cards {
    order: 2;

    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 10px;
}


.shipment-map-card--hero
.shipment-map-route-point {
    min-height: 76px;

    background:
        rgba(255, 255, 255, .94);
}


.shipment-map-card--hero
.shipment-map-route-point strong {
    font-size: .82rem;
}


.shipment-map-card--hero
.shipment-map-route-point__icon--final {
    color: #d66b08;

    background: #fff0df;
}


/* ----------------------------------------------------------
   Ancien bloc texte supérieur masqué
   ---------------------------------------------------------- */

.shipment-map-compat-fields {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    overflow: hidden !important;

    clip:
        rect(
            0,
            0,
            0,
            0
        ) !important;

    white-space: nowrap !important;
}


/* ----------------------------------------------------------
   Carte Leaflet plus dominante
   ---------------------------------------------------------- */

.shipment-map-card--hero
.leaflet-control-zoom {
    margin:
        12px
        0
        0
        12px;
}


.shipment-map-card--hero
.shipment-map-vessel-card {
    max-width: 520px;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 760px) {

    .shipment-map-card--hero {
        gap: 10px;

        padding:
            10px;

        border-radius:
            14px;
    }


    /*
     * Carte immédiatement visible après le header.
     */

    .shipment-map-card--hero
    .shipment-map-stage {
        min-height: 360px;

        border-radius:
            14px;
    }


    .shipment-map-card--hero
    .shipment-map-canvas {
        height: 360px;
    }


    .shipment-map-card--hero
    .shipment-map-unavailable {
        min-height: 360px;
    }


    /*
     * ETA compacte
     */

    .shipment-map-eta-card {
        top: 10px;
        right: 10px;

        min-height: 34px;

        padding:
            0
            10px;

        border-radius:
            9px;
    }


    .shipment-map-eta-card strong {
        font-size:
            .69rem;
    }


    /*
     * Les trois étapes restent sur UNE ligne.
     *
     * Défilement horizontal naturel si l'écran
     * n'est pas suffisamment large.
     */

    .shipment-map-card--hero
    .shipment-map-route-cards {
        display: flex;

        width: 100%;

        gap: 8px;

        overflow-x: auto;
        overflow-y: hidden;

        padding:
            1px
            1px
            5px;

        scroll-snap-type:
            x proximity;

        scrollbar-width:
            thin;
    }


    .shipment-map-card--hero
    .shipment-map-route-point {
        flex:
            0
            0
            168px;

        min-width:
            168px;

        min-height:
            72px;

        padding:
            8px
            9px;

        scroll-snap-align:
            start;
    }


    .shipment-map-card--hero
    .shipment-map-route-point__icon {
        width: 32px;
        height: 32px;

        flex-basis: 32px;
    }


    .shipment-map-card--hero
    .shipment-map-route-point small {
        font-size:
            .57rem;
    }


    .shipment-map-card--hero
    .shipment-map-route-point strong {
        font-size:
            .74rem;
    }


    .shipment-map-card--hero
    .shipment-map-route-point
    span:not(
        .shipment-map-route-point__icon
    ) {
        font-size:
            .63rem;
    }


    /*
     * Header status orange.
     */

    [data-shipment-record-modal]
    .record-modal__header
    [data-record-field="status"] {
        min-height: 26px;

        padding:
            0
            10px;

        font-size:
            .68rem;
    }


    /*
     * Footer actions :
     * une seule rangée Fermer / Modifier / Supprimer.
     */

    [data-shipment-record-modal]
    .record-modal__footer {
        display: grid;

        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );

        align-items: stretch;

        gap: 8px;

        padding:
            10px
            16px;
    }


    [data-shipment-record-modal]
    .record-modal__footer
    > * {
        min-width: 0;

        width: 100%;

        margin: 0;
    }


    [data-shipment-record-modal]
    .record-modal__footer
    form {
        display: block;

        width: 100%;
    }


    [data-shipment-record-modal]
    .record-modal__footer
    .btn,
    [data-shipment-record-modal]
    .record-modal__footer
    button {
        width: 100%;

        min-width: 0;

        min-height: 44px;

        padding:
            0
            8px;

        font-size:
            .73rem;

        white-space: nowrap;
    }

}


/* Très petits écrans */

@media (max-width: 390px) {

    .shipment-map-card--hero
    .shipment-map-route-point {
        flex-basis:
            154px;

        min-width:
            154px;
    }


    [data-shipment-record-modal]
    .record-modal__footer {
        gap: 6px;

        padding:
            9px
            10px;
    }


    [data-shipment-record-modal]
    .record-modal__footer
    .btn,
    [data-shipment-record-modal]
    .record-modal__footer
    button {
        padding:
            0
            5px;

        font-size:
            .68rem;
    }

}


/* ==========================================================
   BADICOM SHIPMENT MODAL V1.2 — BUSINESS SUMMARY
   ========================================================== */


/* Ne plus répéter CMD / fournisseur dans le header détail */

[data-shipment-record-modal]
.record-modal__code {
    display: none;
}


/* ----------------------------------------------------------
   Telex alert
   ---------------------------------------------------------- */

.shipment-v12-telex-alert {
    display: grid;

    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 12px;

    margin:
        2px
        0
        14px;

    padding:
        12px
        14px;

    border:
        1px solid
        #f3c27d;

    border-radius:
        14px;

    background:
        #fff8ed;
}


.shipment-v12-telex-alert[hidden] {
    display: none;
}


.shipment-v12-telex-alert__icon {
    display: inline-flex;

    width: 34px;
    height: 34px;

    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background:
        #ea6b08;

    color: #fff;

    font-size: 1rem;
    font-weight: 900;
}


.shipment-v12-telex-alert__content {
    min-width: 0;
}


.shipment-v12-telex-alert__content strong {
    display: block;

    color: #c85300;

    font-size: .79rem;
}


.shipment-v12-telex-alert__content p {
    margin:
        3px
        0
        0;

    color: #745d45;

    font-size: .69rem;
    line-height: 1.4;
}


.shipment-v12-telex-alert__action {
    min-height: 38px;

    white-space: nowrap;
}


/* ----------------------------------------------------------
   3 blocs essentiels
   ---------------------------------------------------------- */

.shipment-v12-summary-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 10px;

    margin-bottom: 12px;
}


.shipment-v12-summary-card {
    min-width: 0;

    overflow: hidden;

    border:
        1px solid
        #dbe6f1;

    border-radius:
        14px;

    background: #fff;
}


.shipment-v12-summary-card__header {
    display: flex;

    min-height: 48px;

    align-items: center;

    gap: 8px;

    padding:
        10px
        12px;

    color: #163d68;

    list-style: none;

    cursor: pointer;
}


.shipment-v12-summary-card__header::-webkit-details-marker,
.shipment-v12-events__title::-webkit-details-marker {
    display: none;
}


.shipment-v12-summary-card__header strong {
    min-width: 0;

    font-size: .74rem;
    font-weight: 800;

    text-transform: uppercase;
}


.shipment-v12-summary-card__icon {
    display: inline-flex;

    width: 30px;
    height: 30px;

    flex:
        0
        0
        30px;

    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background:
        #eaf4ff;

    color: #176fbe;

    font-weight: 900;
}


.shipment-v12-summary-card__count {
    display: inline-flex;

    min-width: 25px;
    height: 25px;

    align-items: center;
    justify-content: center;

    margin-left: auto;

    padding:
        0
        7px;

    border-radius:
        999px;

    background:
        #edf3f9;

    color: #567087;

    font-size: .66rem;
    font-weight: 800;
}


.shipment-v12-summary-card__chevron {
    margin-left: auto;

    color: #58718c;

    transition:
        transform
        .16s ease;
}


.shipment-v12-summary-card[open]
.shipment-v12-summary-card__chevron,
.shipment-v12-events[open]
.shipment-v12-summary-card__chevron {
    transform:
        rotate(
            180deg
        );
}


.shipment-v12-summary-card__content {
    padding:
        0
        12px
        12px;
}


.shipment-v12-summary-row {
    display: grid;

    grid-template-columns:
        minmax(0, .9fr)
        minmax(0, 1.2fr);

    gap: 8px;

    align-items: center;

    min-height: 29px;

    border-top:
        1px solid
        #edf1f5;
}


.shipment-v12-summary-row span {
    color: #718299;

    font-size: .68rem;
}


.shipment-v12-summary-row strong {
    overflow-wrap: anywhere;

    color: #173b63;

    font-size: .69rem;
    font-weight: 750;
}


.shipment-v12-telex-value {
    color:
        #d45c04 !important;
}


.shipment-v12-telex-value::before {
    content: '';

    display: inline-block;

    width: 7px;
    height: 7px;

    margin-right: 5px;

    border-radius: 50%;

    background:
        #ed6c02;
}


/* ----------------------------------------------------------
   Conteneurs
   ---------------------------------------------------------- */

.shipment-v12-container-list {
    display: grid;

    gap: 5px;

    margin-top: 7px;
}


.shipment-v12-container-row {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 8px;

    padding:
        7px
        9px;

    border-radius:
        8px;

    background:
        #f2f6fa;
}


.shipment-v12-container-row strong {
    color: #315778;

    font-size: .68rem;
}


.shipment-v12-container-row span {
    flex: 0 0 auto;

    color: #7a8999;

    font-size: .64rem;
}


/* ----------------------------------------------------------
   Marchandise
   ---------------------------------------------------------- */

.shipment-v12-cargo-list {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    padding-top: 5px;
}


.shipment-v12-cargo-pill {
    display: inline-flex;

    min-height: 30px;

    align-items: center;

    padding:
        0
        10px;

    border:
        1px solid
        #dce8f4;

    border-radius:
        999px;

    background:
        #f3f8fd;

    color: #315a80;

    font-size: .68rem;
    font-weight: 750;
}


.shipment-v12-empty {
    margin: 0;

    color: #8492a4;

    font-size: .68rem;
}


/* ----------------------------------------------------------
   Events maritimes
   ---------------------------------------------------------- */

.shipment-v12-events {
    overflow: hidden;

    margin-bottom: 4px;

    border:
        1px solid
        #dbe6f1;

    border-radius:
        14px;

    background: #fff;
}


.shipment-v12-events__title {
    display: flex;

    min-height: 50px;

    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding:
        9px
        12px;

    color: #173d67;

    list-style: none;

    cursor: pointer;
}


.shipment-v12-events__title > div {
    display: flex;

    align-items: center;

    gap: 8px;
}


.shipment-v12-events__title strong {
    font-size: .76rem;
    font-weight: 800;

    text-transform: uppercase;
}


.shipment-v12-events__content {
    padding:
        0
        12px
        12px;
}


.shipment-v12-events__header {
    display: grid;

    grid-template-columns:
        150px
        1.2fr
        1fr
        110px;

    gap: 12px;

    padding:
        8px
        10px;

    border-radius:
        8px
        8px
        0
        0;

    background:
        #f0f5fa;

    color: #48617c;

    font-size: .65rem;
    font-weight: 800;

    text-transform: uppercase;
}


/*
 * On conserve le renderer historique existant,
 * y compris documents et audit.
 */

.shipment-v12-events-list
.shipment-maritime-history-item {
    display: grid;

    grid-template-columns:
        150px
        1.2fr
        1fr
        110px;

    gap:
        5px
        12px;

    align-items: start;

    margin: 0;

    padding:
        10px;

    border:
        0;

    border-bottom:
        1px solid
        #e5edf4;

    border-radius: 0;

    background: #fff;
}


.shipment-v12-events-list
.shipment-maritime-history-item__top,
.shipment-v12-events-list
.shipment-maritime-history-item__content {
    display: contents;
}


.shipment-v12-events-list
.shipment-maritime-history-item__top
> span {
    grid-column: 1;
    grid-row: 1;

    color: #526d87;

    font-size: .66rem;
}


.shipment-v12-events-list
.shipment-maritime-history-item__top
> strong {
    grid-column: 2;
    grid-row: 1;

    color: #173d67;

    font-size: .69rem;
}


.shipment-v12-events-list
.shipment-maritime-history-item__content
> p:first-child {
    grid-column: 3;
    grid-row: 1;

    margin: 0;

    color: #415e79;

    font-size: .67rem;
}


.shipment-v12-events-list
.shipment-maritime-history-item::after {
    content:
        'Enregistré';

    grid-column: 4;
    grid-row: 1;

    justify-self: start;

    display: inline-flex;

    min-height: 24px;

    align-items: center;

    padding:
        0
        8px;

    border-radius:
        999px;

    background:
        #e7f7ef;

    color:
        #168158;

    font-size: .62rem;
    font-weight: 800;
}


.shipment-v12-events-list
.shipment-maritime-history-item__content
> small,
.shipment-v12-events-list
.shipment-maritime-history-item__notes,
.shipment-v12-events-list
.shipment-maritime-history-documents,
.shipment-v12-events-list
.shipment-maritime-history-item__content
> button {
    grid-column:
        1 / -1;
}


.shipment-v12-events-list
.shipment-maritime-history-item__content
> small {
    margin-top: 2px;

    color: #8a96a4;

    font-size: .6rem;
}


.shipment-v12-events-list
.shipment-maritime-history-item__notes {
    margin:
        3px
        0
        0;

    color: #66778a;

    font-size: .64rem;
}


.shipment-v12-events-list
.shipment-maritime-history-empty {
    margin: 0;

    padding: 22px;

    color: #8290a0;

    text-align: center;

    font-size: .7rem;
}


/* ==========================================================
   DESKTOP : les 4 sections restent visibles
   ========================================================== */

@media (min-width: 761px) {

    .shipment-v12-summary-card
    > .shipment-v12-summary-card__content {
        display: block !important;
    }


    .shipment-v12-events
    > .shipment-v12-events__content {
        display: block !important;
    }


    .shipment-v12-summary-card__chevron {
        display: none;
    }


    .shipment-v12-summary-card__header,
    .shipment-v12-events__title {
        cursor: default;
    }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 760px) {

    .shipment-v12-telex-alert {
        grid-template-columns:
            auto
            minmax(0, 1fr);

        gap:
            9px
            10px;

        margin:
            2px
            2px
            10px;

        padding:
            10px;
    }


    .shipment-v12-telex-alert__action {
        grid-column:
            1 / -1;

        width: 100%;
    }


    .shipment-v12-summary-grid {
        grid-template-columns: 1fr;

        gap: 7px;

        margin:
            0
            2px
            8px;
    }


    .shipment-v12-summary-card__header {
        min-height: 48px;
    }


    .shipment-v12-summary-card__header strong {
        font-size: .72rem;
    }


    .shipment-v12-summary-card__content {
        padding:
            0
            11px
            11px;
    }


    .shipment-v12-events {
        margin:
            0
            2px
            4px;
    }


    .shipment-v12-events__header {
        display: none;
    }


    .shipment-v12-events__content {
        padding:
            0
            10px
            10px;
    }


    .shipment-v12-events-list
    .shipment-maritime-history-item {
        display: block;

        margin-bottom: 8px;

        padding: 10px;

        border:
            1px solid
            #e0e9f2;

        border-radius:
            10px;

        background:
            #f9fbfd;
    }


    .shipment-v12-events-list
    .shipment-maritime-history-item__top,
    .shipment-v12-events-list
    .shipment-maritime-history-item__content {
        display: block;
    }


    .shipment-v12-events-list
    .shipment-maritime-history-item__top {
        margin-bottom: 6px;
    }


    .shipment-v12-events-list
    .shipment-maritime-history-item__top
    > strong,
    .shipment-v12-events-list
    .shipment-maritime-history-item__top
    > span {
        display: block;

        margin-bottom: 2px;
    }


    .shipment-v12-events-list
    .shipment-maritime-history-item__content
    > p:first-child {
        margin:
            5px
            0;

        font-size: .67rem;
    }


    .shipment-v12-events-list
    .shipment-maritime-history-item::after {
        margin-top: 7px;
    }

}


/* ==========================================================
   BADICOM SHIPMENT LIST V2.1 — OPERATIONAL PILOT
   ========================================================== */


/* ----------------------------------------------------------
   Desktop table
   ---------------------------------------------------------- */

.shipments-pilot-table {
    table-layout: fixed;
}


.shipments-pilot-table th:nth-child(1) {
    width: 15%;
}

.shipments-pilot-table th:nth-child(2) {
    width: 20%;
}

.shipments-pilot-table th:nth-child(3) {
    width: 17%;
}

.shipments-pilot-table th:nth-child(4) {
    width: 18%;
}

.shipments-pilot-table th:nth-child(5) {
    width: 12%;
}

.shipments-pilot-table th:nth-child(6) {
    width: 11%;
}

.shipments-pilot-table th:nth-child(7) {
    width: 7%;
}


.shipment-pilot-row {
    position: relative;
}


.shipment-pilot-row--attention {
    box-shadow:
        inset 4px 0 0
        #f28a18;
}


.shipment-pilot-row--attention:hover {
    background:
        #fffaf3;
}


.shipment-pilot-cell {
    vertical-align: middle;
}


.shipment-pilot-cell--reference,
.shipment-pilot-cell--vessel,
.shipment-pilot-cell--route,
.shipment-pilot-cell--eta {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
}


.shipment-pilot-reference {
    color:
        #073f78;
}


.shipment-pilot-bl {
    margin-top: 3px;
}


.shipment-pilot-container-count {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    margin-top: 7px;

    color:
        #698097;

    font-size:
        .68rem;

    font-weight:
        700;
}


.shipment-pilot-container-count svg {
    width: 14px;
    height: 14px;

    fill: none;

    stroke:
        currentColor;

    stroke-width:
        1.7;
}


.shipment-pilot-line {
    display: block;

    margin-top: 3px;

    color:
        #526f8c;

    font-size:
        .7rem;

    font-weight:
        700;
}


/* ----------------------------------------------------------
   Itinéraire
   ---------------------------------------------------------- */

.shipment-pilot-route {
    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 5px;

    color:
        #254e74;

    font-size:
        .74rem;
}


.shipment-pilot-route__origin {
    color:
        #466984;
}


.shipment-pilot-route__arrow {
    color:
        #2285d4;

    font-weight:
        900;
}


.shipment-pilot-route strong {
    color:
        #0c416f;
}


.shipment-pilot-final {
    display: block;

    margin-top: 6px;
}


/* ----------------------------------------------------------
   ETA
   ---------------------------------------------------------- */

.shipment-pilot-eta-label {
    display: block;

    margin-bottom: 1px;

    color:
        #71869a;

    font-size:
        .61rem;

    font-weight:
        800;

    letter-spacing:
        .04em;

    text-transform:
        uppercase;
}


.shipment-pilot-eta-date {
    display: block;

    color:
        #083d70;

    font-size:
        .9rem;

    font-weight:
        850;
}


.shipment-pilot-etd {
    display: block;

    margin-top: 2px;

    font-size:
        .64rem;
}


.shipment-pilot-estimate {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    min-height: 38px;

    margin-top: 7px;

    padding:
        5px
        9px;

    border:
        1px solid
        #d9e6f2;

    border-radius:
        10px;

    background:
        #f4f8fc;

    color:
        #315c80;
}


.shipment-pilot-estimate__icon {
    display: inline-flex;

    width: 24px;
    height: 24px;

    flex:
        0 0 24px;

    align-items: center;
    justify-content: center;

    border-radius:
        7px;

    background:
        rgba(
            255,
            255,
            255,
            .7
        );
}


.shipment-pilot-estimate__icon svg {
    width: 14px;
    height: 14px;

    fill: none;

    stroke:
        currentColor;

    stroke-width:
        1.8;
}


.shipment-pilot-estimate > span:last-child {
    display: grid;

    line-height:
        1.05;
}


.shipment-pilot-estimate strong {
    font-size:
        .7rem;

    font-weight:
        850;
}


.shipment-pilot-estimate small {
    margin-top: 3px;

    color:
        currentColor;

    font-size:
        .57rem;

    opacity:
        .78;
}


.shipment-pilot-estimate--normal {
    border-color:
        #d7e5f2;

    background:
        #f3f8fd;

    color:
        #326388;
}


.shipment-pilot-estimate--watch {
    border-color:
        #bcdcf6;

    background:
        #edf7ff;

    color:
        #176fae;
}


.shipment-pilot-estimate--near {
    border-color:
        #f3c16f;

    background:
        #fff4df;

    color:
        #c96000;
}


.shipment-pilot-estimate--critical,
.shipment-pilot-estimate--today {
    border-color:
        #f0a26f;

    background:
        #fff0e7;

    color:
        #d04a00;
}


.shipment-pilot-estimate--overdue {
    border-color:
        #efaaa7;

    background:
        #fff0ef;

    color:
        #b62621;
}


.shipment-pilot-estimate--arrived {
    border-color:
        #addfc7;

    background:
        #edf9f3;

    color:
        #13754d;
}


.shipment-pilot-estimate--unknown {
    color:
        #75879a;
}


/* ----------------------------------------------------------
   Telex
   ---------------------------------------------------------- */

.shipment-pilot-telex {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    color:
        #a85b00;

    text-decoration:
        none;
}


.shipment-pilot-telex__icon {
    display: inline-flex;

    width: 26px;
    height: 26px;

    flex:
        0 0 26px;

    align-items: center;
    justify-content: center;

    border-radius:
        8px;

    background:
        #fff1df;

    color:
        #db6d00;

    font-weight:
        900;
}


.shipment-pilot-telex > span:last-child {
    display: grid;
}


.shipment-pilot-telex strong {
    font-size:
        .69rem;
}


.shipment-pilot-telex small {
    margin-top: 2px;

    color:
        #d45b00;

    font-size:
        .59rem;

    font-weight:
        800;
}


.shipment-pilot-telex--critical
.shipment-pilot-telex__icon {
    background:
        #f47818;

    color:
        #fff;

    box-shadow:
        0 4px 10px
        rgba(
            244,
            120,
            24,
            .22
        );
}


.shipment-pilot-telex--confirmed {
    color:
        #14754e;
}


.shipment-pilot-telex--confirmed
.shipment-pilot-telex__icon {
    background:
        #e8f7ef;

    color:
        #118057;
}


/* ----------------------------------------------------------
   Statuts métier
   ---------------------------------------------------------- */

.shipment-pilot-status {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    min-height: 34px;

    padding:
        4px
        8px
        4px
        5px;

    border:
        1px solid
        #d8e5f1;

    border-radius:
        999px;

    background:
        #f3f7fb;

    color:
        #345b7c;

    white-space:
        nowrap;
}


.shipment-pilot-status__icon {
    display: inline-flex;

    width: 25px;
    height: 25px;

    align-items: center;
    justify-content: center;

    border-radius:
        50%;

    background:
        #fff;
}


.shipment-pilot-status__icon svg {
    width: 15px;
    height: 15px;

    fill: none;

    stroke:
        currentColor;

    stroke-width:
        1.8;

    stroke-linecap:
        round;

    stroke-linejoin:
        round;
}


.shipment-pilot-status strong {
    font-size:
        .65rem;

    font-weight:
        850;
}


.shipment-pilot-status--planned {
    background:
        #f5f7fa;

    color:
        #5a6f84;
}


.shipment-pilot-status--booked {
    background:
        #eef5fc;

    color:
        #38688f;
}


.shipment-pilot-status--in-transit {
    border-color:
        #b8daf5;

    background:
        #edf7ff;

    color:
        #086fb4;
}


.shipment-pilot-status--in-transit
.shipment-pilot-status__icon {
    background:
        #dcefff;
}


.shipment-pilot-status--arrived,
.shipment-pilot-status--completed {
    border-color:
        #bce5cf;

    background:
        #edf9f3;

    color:
        #14774e;
}


.shipment-pilot-status--cancelled {
    border-color:
        #efc2c0;

    background:
        #fff1f0;

    color:
        #b72925;
}


/* Animation très légère uniquement pour le navire en mer */

@keyframes shipmentPilotShipFloat {

    0%,
    100% {
        transform:
            translateY(
                0
            )
            rotate(
                0deg
            );
    }

    50% {
        transform:
            translateY(
                -1.5px
            )
            rotate(
                1deg
            );
    }
}


.shipment-pilot-status--in-transit
.shipment-pilot-status__icon svg {
    animation:
        shipmentPilotShipFloat
        2.4s
        ease-in-out
        infinite;
}


@media (prefers-reduced-motion: reduce) {

    .shipment-pilot-status--in-transit
    .shipment-pilot-status__icon svg {
        animation:
            none;
    }

}


/* ==========================================================
   MOBILE CARD
   ========================================================== */

.shipment-pilot-mobile-card {
    display: block;

    width: 100%;

    padding:
        14px !important;

    text-align: left;
}


.shipment-pilot-mobile-card--attention {
    border-color:
        #f3c177 !important;

    box-shadow:
        inset 4px 0 0
        #f28a18;
}


.shipment-pilot-mobile-card__top {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 10px;
}


.shipment-pilot-mobile-card__top > div {
    display: grid;

    gap: 3px;
}


.shipment-pilot-mobile-reference {
    color:
        #073f78;

    font-size:
        .94rem;
}


.shipment-pilot-mobile-bl {
    color:
        #75879a;

    font-size:
        .63rem;
}


.shipment-pilot-mobile-vessel {
    display: grid;

    gap: 3px;

    margin-top: 12px;
}


.shipment-pilot-mobile-vessel strong {
    color:
        #123f68;

    font-size:
        .8rem;
}


.shipment-pilot-mobile-vessel span {
    color:
        #6d8196;

    font-size:
        .66rem;
}


.shipment-pilot-mobile-route {
    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 5px;

    margin-top: 12px;

    padding:
        9px
        10px;

    border-radius:
        9px;

    background:
        #f3f8fd;

    color:
        #426884;

    font-size:
        .7rem;
}


.shipment-pilot-mobile-route strong {
    color:
        #0d4775;
}


.shipment-pilot-mobile-deadline {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-top: 11px;
}


.shipment-pilot-mobile-deadline > div {
    display: grid;

    gap: 2px;
}


.shipment-pilot-mobile-deadline
> div
> span {
    color:
        #71869a;

    font-size:
        .58rem;

    font-weight:
        800;

    text-transform:
        uppercase;
}


.shipment-pilot-mobile-deadline
> div
> strong {
    color:
        #0a3f70;

    font-size:
        .82rem;
}


.shipment-pilot-mobile-deadline
.shipment-pilot-estimate {
    margin-top:
        0;
}


.shipment-pilot-mobile-footer {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 8px;

    margin-top: 11px;

    padding-top: 10px;

    border-top:
        1px solid
        #e7edf3;
}


.shipment-pilot-mobile-telex {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    color:
        #996017;

    font-size:
        .65rem;

    font-weight:
        750;
}


.shipment-pilot-mobile-telex
> span {
    display: inline-flex;

    width: 20px;
    height: 20px;

    align-items: center;
    justify-content: center;

    border-radius:
        6px;

    background:
        #fff1dd;

    color:
        #d56d00;

    font-weight:
        900;
}


.shipment-pilot-mobile-telex--critical {
    color:
        #c44e00;
}


.shipment-pilot-mobile-telex--critical
> span {
    background:
        #f47818;

    color:
        #fff;
}


.shipment-pilot-mobile-containers {
    flex: 0 0 auto;

    color:
        #667f96;

    font-size:
        .63rem;

    font-weight:
        750;
}


.shipment-pilot-mobile-containers
> span {
    margin-left:
        4px;

    color:
        #146fb1;

    font-size:
        1rem;
}


/* ----------------------------------------------------------
   Responsive desktop table
   ---------------------------------------------------------- */

@media (min-width: 761px) {

    .shipments-pilot-table {
        min-width:
            1120px;
    }

}


@media (max-width: 760px) {

    .shipment-pilot-status {
        min-height:
            30px;

        padding:
            3px
            7px
            3px
            4px;
    }


    .shipment-pilot-status__icon {
        width:
            22px;

        height:
            22px;
    }


    .shipment-pilot-status strong {
        font-size:
            .6rem;
    }


    .shipment-pilot-estimate {
        min-height:
            36px;

        padding:
            4px
            7px;
    }

}


/* ==========================================================
   BADICOM SHIPMENT LIST V2.2 — NO INLINE ACTIONS
   Pilotage renforcé : ETA / Estimation prioritaire
   ========================================================== */


/*
 * La ligne ouvre désormais la fiche.
 * Modifier / Supprimer restent dans le modal.
 */


.shipments-pilot-table th:nth-child(1) {
    width: 17%;
}

.shipments-pilot-table th:nth-child(2) {
    width: 21%;
}

.shipments-pilot-table th:nth-child(3) {
    width: 19%;
}

.shipments-pilot-table th:nth-child(4) {
    width: 23%;
}

.shipments-pilot-table th:nth-child(5) {
    width: 10%;
}

.shipments-pilot-table th:nth-child(6) {
    width: 10%;
}


/* ----------------------------------------------------------
   Référence
   ---------------------------------------------------------- */

.shipments-pilot-table
.shipment-pilot-reference {
    font-size: .84rem;
}


.shipments-pilot-table
.shipment-pilot-bl {
    margin-top: 4px;

    font-size: .66rem;
}


.shipments-pilot-table
.shipment-pilot-container-count {
    margin-top: 8px;

    font-size: .67rem;
}


/* ----------------------------------------------------------
   Navire
   ---------------------------------------------------------- */

.shipments-pilot-table
.shipment-pilot-cell--vessel
.data-table__primary {
    font-size: .82rem;
}


.shipments-pilot-table
.shipment-pilot-line {
    margin-top: 5px;

    font-size: .69rem;
}


.shipments-pilot-table
.shipment-pilot-cell--vessel
.data-table__secondary {
    margin-top: 3px;

    font-size: .65rem;
}


/* ----------------------------------------------------------
   Itinéraire
   ---------------------------------------------------------- */

.shipments-pilot-table
.shipment-pilot-route {
    font-size: .76rem;
}


.shipments-pilot-table
.shipment-pilot-route strong {
    font-size: .78rem;
}


.shipments-pilot-table
.shipment-pilot-final {
    margin-top: 7px;

    font-size: .66rem;
}


/* ----------------------------------------------------------
   ETA / ESTIMATION — information prioritaire
   ---------------------------------------------------------- */

.shipments-pilot-table
.shipment-pilot-cell--eta {
    padding-right: 20px !important;
}


.shipments-pilot-table
.shipment-pilot-eta-label {
    margin-bottom: 3px;

    font-size: .64rem;
}


.shipments-pilot-table
.shipment-pilot-eta-date {
    font-size: 1rem;

    line-height: 1.1;
}


.shipments-pilot-table
.shipment-pilot-etd {
    margin-top: 4px;

    font-size: .63rem;
}


.shipments-pilot-table
.shipment-pilot-estimate {
    min-width: 118px;

    min-height: 43px;

    margin-top: 9px;

    padding:
        6px
        10px;
}


.shipments-pilot-table
.shipment-pilot-estimate__icon {
    width: 27px;
    height: 27px;

    flex-basis: 27px;
}


.shipments-pilot-table
.shipment-pilot-estimate strong {
    font-size: .75rem;
}


.shipments-pilot-table
.shipment-pilot-estimate small {
    margin-top: 4px;

    font-size: .59rem;
}


/* Arrivée proche : accent visuel plus net */

.shipments-pilot-table
.shipment-pilot-estimate--near,
.shipments-pilot-table
.shipment-pilot-estimate--critical,
.shipments-pilot-table
.shipment-pilot-estimate--today {
    box-shadow:
        0 4px 10px
        rgba(226, 111, 0, .10);
}


/* ----------------------------------------------------------
   Telex
   ---------------------------------------------------------- */

.shipments-pilot-table
.shipment-pilot-telex {
    gap: 8px;
}


.shipments-pilot-table
.shipment-pilot-telex__icon {
    width: 29px;
    height: 29px;

    flex-basis: 29px;
}


.shipments-pilot-table
.shipment-pilot-telex strong {
    font-size: .7rem;
}


/* ----------------------------------------------------------
   Statut
   ---------------------------------------------------------- */

.shipments-pilot-table
.shipment-pilot-status {
    min-height: 37px;

    padding:
        5px
        10px
        5px
        5px;
}


.shipments-pilot-table
.shipment-pilot-status__icon {
    width: 27px;
    height: 27px;
}


.shipments-pilot-table
.shipment-pilot-status strong {
    font-size: .68rem;
}


/* ----------------------------------------------------------
   Ligne : surface de consultation
   ---------------------------------------------------------- */

.shipments-pilot-table
.shipment-pilot-row {
    cursor: pointer;
}


.shipments-pilot-table
.shipment-pilot-row td {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
}


/*
 * On conserve une largeur minimale confortable afin
 * de ne pas compresser ETA / Estimation.
 */

@media (min-width: 761px) {

    .shipments-pilot-table {
        min-width: 1060px;
    }

}


/* ==========================================================
   BADICOM SHIPMENT LIST V2.3 — READABILITY TUNING
   Itinéraire + Telex + Statut
   ========================================================== */

@media (min-width: 761px) {

    /* ------------------------------------------------------
       ITINERAIRE
       ------------------------------------------------------ */

    .shipments-pilot-table
    .shipment-pilot-route {
        gap: 6px;

        font-size: .82rem;

        line-height: 1.35;
    }


    .shipments-pilot-table
    .shipment-pilot-route__origin {
        font-size: .8rem;

        font-weight: 600;
    }


    .shipments-pilot-table
    .shipment-pilot-route strong {
        font-size: .83rem;

        font-weight: 800;
    }


    .shipments-pilot-table
    .shipment-pilot-route__arrow {
        font-size: .9rem;
    }


    .shipments-pilot-table
    .shipment-pilot-final {
        margin-top: 8px;

        font-size: .7rem;

        line-height: 1.35;
    }


    /* ------------------------------------------------------
       TELEX RELEASE
       ------------------------------------------------------ */

    .shipments-pilot-table
    .shipment-pilot-telex {
        gap: 9px;
    }


    .shipments-pilot-table
    .shipment-pilot-telex__icon {
        width: 32px;
        height: 32px;

        flex-basis: 32px;

        border-radius: 9px;

        font-size: .82rem;
    }


    .shipments-pilot-table
    .shipment-pilot-telex strong {
        font-size: .75rem;

        line-height: 1.2;

        font-weight: 800;
    }


    .shipments-pilot-table
    .shipment-pilot-telex small {
        margin-top: 3px;

        font-size: .63rem;

        line-height: 1.15;

        font-weight: 850;
    }


    /* ------------------------------------------------------
       STATUT
       ------------------------------------------------------ */

    .shipments-pilot-table
    .shipment-pilot-status {
        min-height: 40px;

        gap: 7px;

        padding:
            5px
            11px
            5px
            5px;
    }


    .shipments-pilot-table
    .shipment-pilot-status__icon {
        width: 30px;
        height: 30px;
    }


    .shipments-pilot-table
    .shipment-pilot-status__icon svg {
        width: 17px;
        height: 17px;
    }


    .shipments-pilot-table
    .shipment-pilot-status strong {
        font-size: .72rem;

        font-weight: 850;
    }

}


/* ==========================================================
   BADICOM SHIPMENT FILTER V2.4 — DEADLINE
   ========================================================== */


/*
 * Desktop :
 * Recherche | Statut | Telex | Échéance | Actions
 */

@media (min-width: 1180px) {

    .shipments-page-v2
    .data-toolbar {
        grid-template-columns:
            minmax(260px, 1fr)
            165px
            165px
            185px
            230px;

        column-gap: 10px;

        align-items: end;
    }


    .shipments-page-v2
    .data-toolbar__field--search {
        grid-column: 1;
    }


    .shipments-page-v2
    .shipment-deadline-filter {
        grid-column: 4;
    }


    .shipments-page-v2
    .data-toolbar__actions {
        grid-column: 5 !important;

        width: 230px;

        gap: 8px;
    }


    .shipments-page-v2
    .data-toolbar__actions
    .btn {
        flex-basis: 120px;

        min-width: 120px;

        width: 120px;
    }

}


/* ----------------------------------------------------------
   Tablette
   ---------------------------------------------------------- */

@media (min-width: 761px) and (max-width: 1179px) {

    .shipments-page-v2
    .data-toolbar {
        display: grid;

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap:
            10px
            12px;
    }


    .shipments-page-v2
    .data-toolbar__field--search {
        grid-column:
            1 / -1;
    }


    .shipments-page-v2
    .data-toolbar__actions {
        grid-column:
            1 / -1;

        width: 100%;
    }

}


/* ----------------------------------------------------------
   Mobile
   ---------------------------------------------------------- */

@media (max-width: 760px) {

    .shipments-page-v2
    .data-toolbar {
        display: grid;

        grid-template-columns: 1fr;

        gap: 10px;
    }


    .shipments-page-v2
    .data-toolbar__field--search,
    .shipments-page-v2
    .data-toolbar__actions {
        grid-column: auto;
    }


    .shipments-page-v2
    .data-toolbar__actions {
        width: 100%;
    }

}


/* ==========================================================
   BADICOM SETTINGS ALERTS V1.1
   ========================================================== */

.settings-alerts-header__icon {
    color: #d66a0a;
}


.settings-alerts-email-note {
    display: flex;

    align-items: flex-start;

    gap: 12px;

    margin: 0 0 18px;

    padding: 14px 16px;

    border: 1px solid
        rgba(214, 106, 10, 0.2);

    border-radius: 14px;

    background:
        rgba(255, 247, 237, 0.8);
}


.settings-alerts-email-note > span {
    font-size: 20px;

    line-height: 1;
}


.settings-alerts-email-note strong {
    display: block;

    margin-bottom: 3px;
}


.settings-alerts-email-note p {
    margin: 0;

    color: var(--text-muted);

    font-size: 13px;

    line-height: 1.5;
}


.settings-alert-rule-name {
    display: block;
}


.settings-alert-rule-key {
    display: block;

    margin-top: 4px;

    color: var(--text-muted);

    font-size: 11px;

    line-height: 1.35;

    word-break: break-word;
}


.settings-alerts-table th,
.settings-alerts-table td {
    vertical-align: middle;
}


.settings-alerts-table td small {
    display: block;

    margin-top: 4px;

    color: var(--text-muted);
}


.settings-alerts-table__actions {
    width: 74px;

    text-align: center;
}


.settings-alert-priority {
    display: inline-flex;

    align-items: center;

    min-height: 28px;

    padding: 4px 9px;

    border-radius: 999px;

    font-size: 12px;

    font-weight: 700;

    white-space: nowrap;
}


.settings-alert-priority--info {
    background:
        rgba(37, 99, 235, 0.1);

    color: #1d4ed8;
}


.settings-alert-priority--warning {
    background:
        rgba(217, 119, 6, 0.12);

    color: #b45309;
}


.settings-alert-priority--critical {
    background:
        rgba(220, 38, 38, 0.11);

    color: #b91c1c;
}


.settings-alert-channel-list {
    display: flex;

    flex-wrap: wrap;

    gap: 5px;
}


.settings-alert-channel {
    display: inline-flex;

    align-items: center;

    min-height: 25px;

    padding: 3px 8px;

    border-radius: 999px;

    background:
        rgba(15, 23, 42, 0.06);

    color: var(--text-secondary);

    font-size: 11px;

    font-weight: 650;
}


.settings-alerts-mobile {
    display: none;
}


.settings-alert-card {
    display: block;

    padding: 14px;

    border:
        1px solid
        var(--border-color);

    border-radius: 14px;

    background:
        var(--surface);

    color: inherit;

    text-decoration: none;
}


.settings-alert-card + .settings-alert-card {
    margin-top: 10px;
}


.settings-alert-card__head {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 12px;
}


.settings-alert-card__head > strong {
    font-size: 14px;

    line-height: 1.35;
}


.settings-alert-card__meta {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: 12px;
}


.settings-alert-card__meta > span {
    padding: 4px 8px;

    border-radius: 999px;

    background:
        rgba(15, 23, 42, 0.05);

    color: var(--text-muted);

    font-size: 11px;

    font-weight: 650;
}


/* ----------------------------------------------------------
   Form
   ---------------------------------------------------------- */

.settings-alert-technical-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 12px;
}


.settings-alert-technical {
    min-width: 0;

    padding: 13px 14px;

    border:
        1px solid
        var(--border-color);

    border-radius: 12px;

    background:
        rgba(15, 23, 42, 0.025);
}


.settings-alert-technical small {
    display: block;

    margin-bottom: 5px;

    color: var(--text-muted);

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 0.04em;
}


.settings-alert-technical strong {
    display: block;

    overflow-wrap: anywhere;

    font-size: 13px;
}


.settings-alert-trigger-control {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 8px;
}


.settings-alert-trigger-control > span {
    min-width: 70px;

    color: var(--text-muted);

    font-size: 13px;
}


.settings-alert-channel-options {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 12px;

    margin-bottom: 16px;
}


.settings-alert-check {
    display: flex;

    align-items: flex-start;

    gap: 10px;

    padding: 12px;

    border:
        1px solid
        var(--border-color);

    border-radius: 12px;

    cursor: pointer;

    background:
        var(--surface);
}


.settings-alert-check:hover {
    border-color:
        rgba(214, 106, 10, 0.38);
}


.settings-alert-check input {
    flex: 0 0 auto;

    width: 17px;

    height: 17px;

    margin-top: 2px;
}


.settings-alert-check > span {
    min-width: 0;
}


.settings-alert-check strong {
    display: block;

    margin-bottom: 3px;

    font-size: 13px;
}


.settings-alert-check small {
    display: block;

    color: var(--text-muted);

    font-size: 11px;

    line-height: 1.4;

    overflow-wrap: anywhere;
}


.settings-alert-reminder-field {
    max-width: 380px;
}


.settings-alert-recipient-columns {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 24px;
}


.settings-alert-recipient-columns h3 {
    margin: 0 0 4px;

    font-size: 14px;
}


.settings-alert-recipient-columns
> div
> p {
    margin:
        0
        0
        12px;

    color: var(--text-muted);

    font-size: 12px;

    line-height: 1.45;
}


.settings-alert-check-list {
    display: grid;

    gap: 8px;
}


/* ----------------------------------------------------------
   Responsive
   ---------------------------------------------------------- */

@media (max-width: 900px) {

    .settings-alerts-desktop {
        display: none;
    }


    .settings-alerts-mobile {
        display: block;
    }


    .settings-alert-technical-grid,
    .settings-alert-channel-options,
    .settings-alert-recipient-columns {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 600px) {

    .settings-alerts-email-note {
        padding: 12px;
    }


    .settings-alert-card__head {
        align-items: flex-start;
    }


    .settings-alert-trigger-control {
        grid-template-columns:
            minmax(0, 1fr)
            66px;
    }

}


/* ==========================================================
   BADICOM SETTINGS ALERTS V1.1C — REGISTRY DETAIL MODAL
   ========================================================== */

.settings-alerts-table--registry
tbody
.settings-alert-row {
    cursor: pointer;

    transition:
        background 150ms ease,
        box-shadow 150ms ease;
}


.settings-alerts-table--registry
tbody
.settings-alert-row:hover,
.settings-alerts-table--registry
tbody
.settings-alert-row:focus-visible {
    background: #f8fbff;

    box-shadow:
        inset 3px 0 0
        var(--color-primary-700);

    outline: none;
}


.settings-alert-identity {
    display: flex;

    align-items: center;

    gap: 12px;

    min-width: 230px;
}


.settings-alert-identity__mark {
    display: grid;

    place-items: center;

    flex: 0 0 38px;

    width: 38px;

    height: 38px;

    border-radius: 12px;

    background: #eff6ff;

    color: #155eaa;
}


.settings-alert-identity__mark--warning {
    background: #fff7ed;

    color: #b45309;
}


.settings-alert-identity__mark--critical {
    background: #fff1f2;

    color: #be123c;
}


.settings-alert-identity__content {
    min-width: 0;
}


.settings-alert-identity__content strong,
.settings-alert-identity__content small {
    display: block;
}


.settings-alert-identity__content strong {
    color: var(--color-gray-900);

    font-weight: 750;
}


.settings-alert-identity__content small {
    margin-top: 4px;

    color: var(--color-gray-500);

    font-size: var(--font-size-xs);

    line-height: 1.35;
}


.settings-alert-deadline {
    display: block;

    color: var(--color-gray-900);

    font-size: 0.9rem;

    font-weight: 800;
}


.settings-alert-recipient-status {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    min-height: 28px;

    padding:
        4px
        9px;

    border-radius: 999px;

    font-size: 0.72rem;

    font-weight: 700;

    white-space: nowrap;
}


.settings-alert-recipient-status--ready {
    background: #eff6ff;

    color: #155eaa;
}


.settings-alert-recipient-status--missing {
    background: #fff7ed;

    color: #b45309;
}


.settings-alert-recipient-status strong {
    font-size: 0.8rem;
}


/* Mobile registry ---------------------------------------- */

.settings-alert-card--registry {
    width: 100%;

    border:
        1px solid
        var(--color-gray-200);

    text-align: left;

    font: inherit;

    cursor: pointer;

    appearance: none;

    transition:
        transform 150ms ease,
        box-shadow 150ms ease,
        border-color 150ms ease;
}


.settings-alert-card--registry:hover,
.settings-alert-card--registry:focus-visible {
    border-color:
        #bfd2e7;

    box-shadow:
        0 8px 22px
        rgb(15 63 104 / 0.08);

    outline: none;
}


.settings-alert-card--registry:active {
    transform:
        scale(0.992);
}


.settings-alert-card__identity {
    min-width: 0;

    text-align: left;
}


.settings-alert-card__identity strong,
.settings-alert-card__identity small {
    display: block;
}


.settings-alert-card__identity small {
    margin-top: 5px;

    color: var(--color-gray-500);

    font-size: 0.72rem;

    line-height: 1.35;
}


.settings-alert-card__arrow {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 24px;

    background: transparent !important;

    color: var(--color-gray-400) !important;

    font-size: 1.25rem !important;

    line-height: 1;
}


/* Modal -------------------------------------------------- */

.settings-alert-detail-modal__panel {
    width:
        min(
            760px,
            100%
        );
}


.settings-alert-modal-hero {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 1px;

    margin-bottom:
        var(--space-4);

    overflow: hidden;

    border:
        1px solid
        var(--color-gray-200);

    border-radius:
        var(--radius-lg);

    background:
        var(--color-gray-200);
}


.settings-alert-modal-hero > div {
    min-width: 0;

    padding:
        18px;

    background:
        #fff;
}


.settings-alert-modal-hero span,
.settings-alert-modal-hero strong,
.settings-alert-modal-hero small {
    display: block;
}


.settings-alert-modal-hero span {
    margin-bottom: 7px;

    color:
        var(--color-gray-500);

    font-size:
        var(--font-size-xs);

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.04em;
}


.settings-alert-modal-hero strong {
    color:
        var(--color-gray-900);

    font-size: 1.18rem;

    font-weight: 800;
}


.settings-alert-modal-hero small {
    margin-top: 5px;

    color:
        var(--color-gray-500);

    font-size:
        var(--font-size-xs);

    line-height: 1.45;
}


.settings-alert-modal-priority {
    display: inline-flex !important;

    width: fit-content;

    min-height: 30px;

    align-items: center;

    padding:
        5px
        10px;

    border-radius:
        999px;

    font-size:
        0.8rem !important;
}


.settings-alert-modal-priority--info {
    background:
        rgba(
            37,
            99,
            235,
            0.1
        );

    color:
        #1d4ed8 !important;
}


.settings-alert-modal-priority--warning {
    background:
        rgba(
            217,
            119,
            6,
            0.12
        );

    color:
        #b45309 !important;
}


.settings-alert-modal-priority--critical {
    background:
        rgba(
            220,
            38,
            38,
            0.11
        );

    color:
        #b91c1c !important;
}


@media (max-width: 760px) {

    .settings-alert-modal-hero {
        grid-template-columns:
            1fr;
    }


    .settings-alert-identity {
        min-width: 0;
    }

}


/* ==========================================================
   BADICOM ALERT CENTER V1.2C
   Centre d'alertes + badge cloche
   ========================================================== */

.app-topbar-notification {
    position: relative;
}


.app-topbar-notification__badge {
    position: absolute;

    top: -4px;
    right: -5px;

    display: inline-flex;

    min-width: 18px;
    height: 18px;

    align-items: center;
    justify-content: center;

    padding:
        0
        5px;

    border:
        2px solid
        var(--color-white);

    border-radius:
        999px;

    background:
        #c52f3e;

    color:
        #fff;

    font-size:
        0.62rem;

    font-weight:
        800;

    line-height:
        1;

    box-shadow:
        0 3px 8px
        rgb(153 27 27 / 0.24);
}


/* Page ---------------------------------------------------- */

.alert-center-page {
    display: grid;

    gap:
        var(--space-5);
}


.alert-center-page__header {
    margin-bottom:
        0;
}


.alert-center-kpis {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap:
        var(--space-4);
}


.alert-center-kpi {
    display: flex;

    min-width: 0;

    align-items: center;

    gap:
        14px;

    padding:
        18px;

    border:
        1px solid
        var(--color-gray-200);

    border-radius:
        var(--radius-xl);

    background:
        #fff;

    box-shadow:
        var(--shadow-card);
}


.alert-center-kpi__icon {
    display: grid;

    place-items: center;

    flex:
        0 0 42px;

    width:
        42px;

    height:
        42px;

    border-radius:
        13px;

    background:
        var(--color-gray-100);

    color:
        var(--color-gray-700);

    font-size:
        0.72rem;

    font-weight:
        800;
}


.alert-center-kpi--unread
.alert-center-kpi__icon {
    background:
        #eef6ff;

    color:
        #155eaa;
}


.alert-center-kpi--critical
.alert-center-kpi__icon {
    background:
        #fff1f2;

    color:
        #be123c;

    font-size:
        1rem;
}


.alert-center-kpi strong,
.alert-center-kpi span {
    display: block;
}


.alert-center-kpi strong {
    color:
        var(--color-gray-900);

    font-size:
        1.45rem;

    font-weight:
        800;

    line-height:
        1.05;
}


.alert-center-kpi div > span {
    margin-top:
        4px;

    color:
        var(--color-gray-500);

    font-size:
        var(--font-size-xs);
}


.alert-center-registry
.card__body {
    padding:
        0;
}


.alert-center-table td {
    vertical-align:
        middle;
}


.alert-center-row {
    cursor:
        pointer;

    transition:
        background
        150ms ease,
        box-shadow
        150ms ease;
}


.alert-center-row:hover,
.alert-center-row:focus-visible {
    background:
        #f8fbff;

    box-shadow:
        inset 3px 0 0
        var(--color-primary-700);

    outline:
        none;
}


.alert-center-row--unread {
    background:
        #fbfdff;
}


.alert-center-identity {
    display: flex;

    min-width:
        320px;

    align-items:
        flex-start;

    gap:
        12px;
}


.alert-center-identity > div {
    min-width:
        0;
}


.alert-center-identity strong,
.alert-center-identity small {
    display:
        block;
}


.alert-center-identity strong {
    color:
        var(--color-gray-900);

    font-weight:
        750;
}


.alert-center-identity small {
    max-width:
        520px;

    margin-top:
        5px;

    overflow:
        hidden;

    color:
        var(--color-gray-500);

    font-size:
        var(--font-size-xs);

    line-height:
        1.4;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;
}


.alert-center-severity-mark {
    display: grid;

    flex:
        0 0 36px;

    width:
        36px;

    height:
        36px;

    place-items:
        center;

    border-radius:
        11px;

    background:
        #eff6ff;

    color:
        #1d4ed8;

    font-weight:
        900;
}


.alert-center-severity-mark--warning {
    background:
        #fff7ed;

    color:
        #b45309;
}


.alert-center-severity-mark--critical {
    background:
        #fff1f2;

    color:
        #be123c;
}


.alert-center-priority {
    display: inline-flex;

    min-height:
        28px;

    align-items:
        center;

    padding:
        4px
        9px;

    border-radius:
        999px;

    background:
        #eff6ff;

    color:
        #1d4ed8;

    font-size:
        0.72rem;

    font-weight:
        750;

    white-space:
        nowrap;
}


.alert-center-priority--warning {
    background:
        #fff7ed;

    color:
        #b45309;
}


.alert-center-priority--critical {
    background:
        #fff1f2;

    color:
        #be123c;
}


.alert-center-read-state {
    display:
        inline-flex;

    align-items:
        center;

    gap:
        6px;

    color:
        var(--color-gray-500);

    font-size:
        var(--font-size-xs);

    font-weight:
        700;
}


.alert-center-read-state--unread {
    color:
        #155eaa;
}


.alert-center-read-state--unread::before {
    width:
        7px;

    height:
        7px;

    border-radius:
        50%;

    background:
        #2878bd;

    content:
        "";
}


/* Mobile -------------------------------------------------- */

.alert-center-mobile-list {
    display:
        grid;

    gap:
        10px;

    padding:
        var(--space-4);
}


.alert-center-mobile-card {
    width:
        100%;

    gap:
        12px;

    text-align:
        left;
}


.alert-center-mobile-card--unread {
    border-left:
        3px solid
        #2878bd;

    background:
        #fbfdff;
}


.alert-center-mobile-card__top {
    display:
        flex;

    align-items:
        flex-start;

    justify-content:
        space-between;

    gap:
        12px;
}


.alert-center-mobile-card__top > span:first-child {
    min-width:
        0;
}


.alert-center-mobile-card__top strong,
.alert-center-mobile-card__top small {
    display:
        block;
}


.alert-center-mobile-card__top strong {
    color:
        var(--color-gray-900);

    font-size:
        0.88rem;

    line-height:
        1.35;
}


.alert-center-mobile-card__top small {
    margin-top:
        4px;

    color:
        var(--color-gray-500);

    font-size:
        0.72rem;
}


.alert-center-mobile-card__message {
    display:
        -webkit-box;

    overflow:
        hidden;

    color:
        var(--color-gray-600);

    font-size:
        0.78rem;

    line-height:
        1.45;

    -webkit-box-orient:
        vertical;

    -webkit-line-clamp:
        2;
}


.alert-center-mobile-card__meta {
    display:
        flex;

    flex-wrap:
        wrap;

    align-items:
        center;

    gap:
        7px;
}


.alert-center-mobile-card__meta > span {
    display:
        inline-flex;

    min-height:
        24px;

    align-items:
        center;

    padding:
        3px
        7px;

    border-radius:
        999px;

    background:
        var(--color-gray-100);

    color:
        var(--color-gray-600);

    font-size:
        0.68rem;

    font-weight:
        650;
}


.alert-center-mobile-card__meta
> span:last-child {
    margin-left:
        auto;

    background:
        transparent;

    color:
        var(--color-gray-400);

    font-size:
        1.2rem;
}


/* Modal --------------------------------------------------- */

.alert-center-modal__panel {
    width:
        min(
            760px,
            100%
        );
}


.alert-center-modal-hero {
    display:
        grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap:
        1px;

    margin-bottom:
        var(--space-4);

    overflow:
        hidden;

    border:
        1px solid
        var(--color-gray-200);

    border-radius:
        var(--radius-lg);

    background:
        var(--color-gray-200);
}


.alert-center-modal-hero > div {
    padding:
        18px;

    background:
        #fff;
}


.alert-center-modal-hero span,
.alert-center-modal-hero strong,
.alert-center-modal-hero small {
    display:
        block;
}


.alert-center-modal-hero > div > span {
    margin-bottom:
        7px;

    color:
        var(--color-gray-500);

    font-size:
        var(--font-size-xs);

    font-weight:
        700;

    text-transform:
        uppercase;

    letter-spacing:
        0.04em;
}


.alert-center-modal-hero strong {
    width:
        fit-content;

    color:
        var(--color-gray-900);

    font-size:
        1.12rem;

    font-weight:
        800;
}


.alert-center-modal-hero small {
    margin-top:
        5px;

    color:
        var(--color-gray-500);

    font-size:
        var(--font-size-xs);
}


[data-alert-center-priority] {
    display:
        inline-flex !important;

    min-height:
        30px;

    align-items:
        center;

    padding:
        5px
        10px;

    border-radius:
        999px;
}


.alert-center-modal-priority--info {
    background:
        #eff6ff;

    color:
        #1d4ed8 !important;
}


.alert-center-modal-priority--warning {
    background:
        #fff7ed;

    color:
        #b45309 !important;
}


.alert-center-modal-priority--critical {
    background:
        #fff1f2;

    color:
        #be123c !important;
}


@media (max-width: 900px) {

    .alert-center-kpis {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
    }

}


@media (max-width: 600px) {

    .alert-center-page {
        gap:
            var(--space-4);
    }


    .alert-center-kpis {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );

        gap:
            8px;
    }


    .alert-center-kpi {
        min-height:
            82px;

        flex-direction:
            column;

        justify-content:
            center;

        gap:
            6px;

        padding:
            10px;

        text-align:
            center;
    }


    .alert-center-kpi__icon {
        width:
            30px;

        height:
            30px;

        flex-basis:
            30px;

        border-radius:
            9px;
    }


    .alert-center-kpi strong {
        font-size:
            1.1rem;
    }


    .alert-center-kpi div > span {
        font-size:
            0.63rem;
    }


    .alert-center-modal-hero {
        grid-template-columns:
            1fr;
    }

}


/* ==========================================================
   BADICOM ALERT CENTER V1.2C RESPONSIVE VISIBILITY
   ========================================================== */

.alert-center-registry
.record-desktop-view {
    display:
        block;
}


.alert-center-registry
.record-mobile-view {
    display:
        none;
}


@media (max-width: 900px) {

    .alert-center-registry
    .record-desktop-view {
        display:
            none;
    }


    .alert-center-registry
    .record-mobile-view {
        display:
            block;
    }

}


/* ==========================================================
   BADICOM ALERT CENTER V1.2C COMPACT MOBILE
   Icônes métier vivantes + cartes mobiles condensées
   ========================================================== */


/* KPI icons ----------------------------------------------- */

.alert-center-kpi__icon svg {
    width:
        22px;

    height:
        22px;
}


.alert-center-kpi__icon--mail {
    position:
        relative;

    background:
        #eef6ff;

    color:
        #1769aa;
}


.alert-center-kpi__icon--critical {
    background:
        #fff0f2;

    color:
        #c52847;
}


.alert-center-kpi__icon--active {
    background:
        #eef8f4;

    color:
        #168260;
}


.alert-center-kpi__live-dot {
    fill:
        #d83046;

    stroke:
        #fff;

    stroke-width:
        1.5;
}


@media (
    prefers-reduced-motion:
    no-preference
) {

    .alert-center-kpi__live-dot {
        transform-box:
            fill-box;

        transform-origin:
            center;

        animation:
            badicom-alert-live-dot
            2.1s
            ease-in-out
            infinite;
    }


    .alert-center-kpi__active-wave {
        animation:
            badicom-alert-wave
            2.4s
            ease-in-out
            infinite;
    }

}


@keyframes badicom-alert-live-dot {

    0%,
    100% {
        transform:
            scale(1);

        opacity:
            1;
    }

    50% {
        transform:
            scale(1.32);

        opacity:
            0.7;
    }

}


@keyframes badicom-alert-wave {

    0%,
    100% {
        opacity:
            0.45;
    }

    50% {
        opacity:
            1;
    }

}


/* Icône métier desktop ----------------------------------- */

.alert-center-severity-mark svg {
    width:
        19px;

    height:
        19px;
}


/* Mobile compact ----------------------------------------- */

.alert-center-mobile-list {
    gap:
        8px;

    padding:
        12px;
}


.alert-center-mobile-card--compact {
    display:
        grid !important;

    grid-template-columns:
        42px
        minmax(0, 1fr)
        auto
        22px;

    grid-template-areas:
        "icon identity priority chevron"
        "icon meta meta chevron"
        "message message message message";

    align-items:
        center;

    gap:
        6px
        10px;

    min-height:
        0;

    padding:
        12px
        13px;

    border-radius:
        14px;
}


.alert-center-mobile-card__icon {
    grid-area:
        icon;

    display:
        grid;

    width:
        42px;

    height:
        42px;

    place-items:
        center;

    align-self:
        start;

    border-radius:
        12px;

    background:
        #eef6ff;

    color:
        #1769aa;
}


.alert-center-mobile-card__icon svg {
    width:
        21px;

    height:
        21px;
}


.alert-center-mobile-card__icon--warning {
    background:
        #fff7ed;

    color:
        #b45309;
}


.alert-center-mobile-card__icon--critical {
    background:
        #fff0f2;

    color:
        #c52847;
}


.alert-center-mobile-card__identity {
    grid-area:
        identity;

    min-width:
        0;
}


.alert-center-mobile-card__identity strong {
    display:
        -webkit-box;

    overflow:
        hidden;

    color:
        var(--color-gray-900);

    font-size:
        0.86rem;

    font-weight:
        760;

    line-height:
        1.3;

    -webkit-box-orient:
        vertical;

    -webkit-line-clamp:
        2;
}


.alert-center-mobile-card__identity small {
    display:
        block;

    margin-top:
        3px;

    overflow:
        hidden;

    color:
        var(--color-gray-500);

    font-size:
        0.7rem;

    font-weight:
        650;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;
}


.alert-center-mobile-card__priority {
    grid-area:
        priority;

    align-self:
        start;

    margin-top:
        1px;
}


.alert-center-mobile-card__meta {
    grid-area:
        meta;

    display:
        flex;

    min-width:
        0;

    align-items:
        center;

    gap:
        5px;

    overflow:
        hidden;
}


.alert-center-mobile-meta {
    display:
        inline-flex;

    flex:
        0 0 auto;

    min-height:
        23px;

    align-items:
        center;

    padding:
        3px
        7px;

    border-radius:
        999px;

    background:
        #f2f5f8;

    color:
        var(--color-gray-600);

    font-size:
        0.65rem;

    font-weight:
        700;

    white-space:
        nowrap;
}


.alert-center-mobile-meta--deadline {
    background:
        #eef6ff;

    color:
        #155eaa;
}


.alert-center-mobile-meta--unread {
    position:
        relative;

    padding-left:
        15px;

    color:
        #155eaa;
}


.alert-center-mobile-meta--unread::before {
    position:
        absolute;

    left:
        7px;

    width:
        5px;

    height:
        5px;

    border-radius:
        50%;

    background:
        #2878bd;

    content:
        "";
}


.alert-center-mobile-card__time {
    min-width:
        0;

    overflow:
        hidden;

    color:
        var(--color-gray-400);

    font-size:
        0.63rem;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;
}


.alert-center-mobile-card__message {
    grid-area:
        message;

    display:
        -webkit-box;

    margin:
        2px
        28px
        0
        52px;

    overflow:
        hidden;

    color:
        var(--color-gray-500);

    font-size:
        0.72rem;

    line-height:
        1.35;

    -webkit-box-orient:
        vertical;

    -webkit-line-clamp:
        1;
}


.alert-center-mobile-card__chevron {
    grid-area:
        chevron;

    display:
        grid;

    width:
        22px;

    height:
        22px;

    place-items:
        center;

    align-self:
        center;

    color:
        var(--color-gray-400);
}


.alert-center-mobile-card__chevron svg {
    width:
        16px;

    height:
        16px;
}


.alert-center-mobile-card--compact:hover
.alert-center-mobile-card__chevron,
.alert-center-mobile-card--compact:focus-visible
.alert-center-mobile-card__chevron {
    color:
        var(--color-primary-700);

    transform:
        translateX(
            2px
        );

    transition:
        transform
        150ms ease;
}


/* Très petit mobile -------------------------------------- */

@media (max-width: 420px) {

    .alert-center-mobile-card--compact {
        grid-template-columns:
            38px
            minmax(0, 1fr)
            auto
            18px;

        gap:
            5px
            8px;

        padding:
            11px;
    }


    .alert-center-mobile-card__icon {
        width:
            38px;

        height:
            38px;

        border-radius:
            11px;
    }


    .alert-center-mobile-card__icon svg {
        width:
            19px;

        height:
            19px;
    }


    .alert-center-mobile-card__identity strong {
        font-size:
            0.82rem;
    }


    .alert-center-mobile-card__priority {
        min-height:
            24px;

        padding:
            3px
            7px;

        font-size:
            0.65rem;
    }


    .alert-center-mobile-card__meta {
        gap:
            4px;
    }


    .alert-center-mobile-meta {
        min-height:
            21px;

        padding:
            2px
            6px;

        font-size:
            0.61rem;
    }


    .alert-center-mobile-card__time {
        display:
            none;
    }


    .alert-center-mobile-card__message {
        margin-left:
            46px;

        margin-right:
            22px;

        font-size:
            0.69rem;
    }

}


/* ==========================================================
   BADICOM ALERT CENTER V1.2C KPI LARGE ICONS
   Présence visuelle renforcée des indicateurs
   ========================================================== */

.alert-center-kpi__icon {
    width:
        56px;

    height:
        56px;

    flex-basis:
        56px;

    border-radius:
        16px;
}


.alert-center-kpi__icon svg {
    width:
        30px;

    height:
        30px;
}


/*
 * Le point rouge de l'enveloppe reste suffisamment
 * visible avec la nouvelle taille.
 */

.alert-center-kpi__live-dot {
    stroke-width:
        1.35;
}


/* Mobile -------------------------------------------------- */

@media (max-width: 600px) {

    .alert-center-kpi__icon {
        width:
            44px;

        height:
            44px;

        flex-basis:
            44px;

        border-radius:
            13px;
    }


    .alert-center-kpi__icon svg {
        width:
            26px;

        height:
            26px;
    }

}


/* ==========================================================
   BADICOM ALERT CENTER V1.2C MOBILE KPI INLINE COUNT
   Mobile: chiffre à côté de l'icône, libellé dessous
   ========================================================== */

@media (max-width: 600px) {

    .alert-center-kpi {
        display:
            grid;

        grid-template-columns:
            56px
            1fr;

        grid-template-areas:
            "icon value"
            "icon label";

        align-items:
            center;

        justify-items:
            start;

        column-gap:
            12px;

        row-gap:
            4px;

        text-align:
            left;
    }


    .alert-center-kpi__icon {
        grid-area:
            icon;

        margin:
            0;

        align-self:
            center;

        justify-self:
            center;
    }


    .alert-center-kpi__value {
        grid-area:
            value;

        margin:
            0;

        align-self:
            end;

        justify-self:
            start;

        line-height:
            1;
    }


    .alert-center-kpi__label {
        grid-area:
            label;

        margin:
            0;

        align-self:
            start;

        justify-self:
            start;
    }
}


/* ==========================================================
   BADICOM ALERT CENTER V1.2D READ ACTION
   ========================================================== */

.alert-center-feedback {
    display:
        flex;

    align-items:
        center;

    gap:
        12px;

    padding:
        13px
        15px;

    border:
        1px solid
        #bbebd5;

    border-radius:
        14px;

    background:
        #f0fbf6;

    color:
        #166447;
}


.alert-center-feedback__icon {
    display:
        grid;

    flex:
        0 0 34px;

    width:
        34px;

    height:
        34px;

    place-items:
        center;

    border-radius:
        10px;

    background:
        #ddf6e9;

    color:
        #168260;
}


.alert-center-feedback__icon svg {
    width:
        19px;

    height:
        19px;
}


.alert-center-feedback strong,
.alert-center-feedback span {
    display:
        block;
}


.alert-center-feedback strong {
    font-size:
        0.82rem;

    font-weight:
        800;
}


.alert-center-feedback span {
    margin-top:
        2px;

    color:
        #437765;

    font-size:
        0.72rem;

    line-height:
        1.4;
}


.alert-center-modal__footer-actions {
    display:
        flex;

    width:
        100%;

    align-items:
        center;

    justify-content:
        flex-end;

    gap:
        10px;
}


.alert-center-modal__read-form {
    margin:
        0;
}


.alert-center-modal__read-button {
    display:
        inline-flex;

    align-items:
        center;

    gap:
        7px;
}


.alert-center-modal__read-button svg {
    width:
        17px;

    height:
        17px;
}


@media (max-width: 600px) {

    .alert-center-feedback {
        align-items:
            flex-start;
    }


    .alert-center-modal__footer-actions {
        display:
            grid;

        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1.35fr);

        gap:
            8px;
    }


    .alert-center-modal__footer-actions
    > .btn,

    .alert-center-modal__read-form,

    .alert-center-modal__read-button {
        width:
            100%;
    }


    .alert-center-modal__read-button {
        justify-content:
            center;
    }

}


/* ==========================================================
   BADICOM ALERT CENTER V1.2D MOBILE FOOTER ALIGNMENT
   Fermer à gauche / action principale à droite
   ========================================================== */

@media (max-width: 600px) {

    .alert-center-modal__footer {
        padding:
            12px
            16px;
    }


    .alert-center-modal__footer-actions {
        display:
            flex;

        width:
            100%;

        align-items:
            center;

        justify-content:
            space-between;

        gap:
            12px;
    }


    .alert-center-modal__footer-actions
    > .btn {
        flex:
            0 0 auto;

        width:
            auto;
    }


    .alert-center-modal__read-form {
        flex:
            0 0 auto;

        width:
            auto;

        margin:
            0
            0
            0
            auto;
    }


    .alert-center-modal__read-button {
        width:
            auto;

        min-width:
            165px;

        justify-content:
            center;

        padding-left:
            15px;

        padding-right:
            15px;

        white-space:
            nowrap;
    }

}


@media (max-width: 390px) {

    .alert-center-modal__footer {
        padding-left:
            12px;

        padding-right:
            12px;
    }


    .alert-center-modal__footer-actions {
        gap:
            8px;
    }


    .alert-center-modal__read-button {
        min-width:
            150px;

        padding-left:
            12px;

        padding-right:
            12px;

        font-size:
            0.76rem;
    }

}


/* ==========================================================
   BADICOM ALERT CENTER V1.2E ACK ACTION
   ========================================================== */

.alert-center-modal__ack-form {
    flex:
        0 0 auto;

    margin:
        0;
}


.alert-center-modal__ack-button {
    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        7px;

    min-width:
        120px;
}


.alert-center-modal__ack-button svg {
    width:
        17px;

    height:
        17px;
}


.alert-center-feedback--ack {
    border-color:
        #cbdaf5;

    background:
        #f4f7fd;

    color:
        #1f4f95;
}


.alert-center-feedback--ack
.alert-center-feedback__icon {
    background:
        #e5edfb;

    color:
        #2864b4;
}


.alert-center-feedback--ack
span {
    color:
        #52709a;
}


@media (max-width: 600px) {

    .alert-center-modal__footer-actions {
        flex-wrap:
            wrap;
    }


    .alert-center-modal__footer-actions
    > .btn {
        margin-right:
            auto;
    }


    .alert-center-modal__read-form {
        margin-left:
            auto;
    }


    .alert-center-modal__ack-form {
        width:
            auto;

        margin-left:
            0;
    }


    .alert-center-modal__ack-button {
        width:
            auto;

        min-width:
            118px;

        white-space:
            nowrap;
    }

}


@media (max-width: 390px) {

    .alert-center-modal__ack-button {
        min-width:
            108px;

        padding-left:
            12px;

        padding-right:
            12px;

        font-size:
            0.76rem;
    }

}


/* ==========================================================
   BADICOM ALERT CENTER V1.2E ACK MOBILE RIGHT ALIGN
   ========================================================== */

@media (max-width: 600px) {

    .alert-center-modal__ack-form {
        flex:
            0 0 auto;

        width:
            auto;

        margin-left:
            auto;

        margin-right:
            0;
    }


    .alert-center-modal__ack-button {
        margin-left:
            0;

        margin-right:
            0;
    }

}


/* ==========================================================
   BADICOM ALERT CENTER V1.2E PRIMARY ACTION GROUP
   Fermer à gauche / actions métier à droite
   ========================================================== */

.alert-center-modal__primary-actions {
    display:
        flex;

    align-items:
        center;

    justify-content:
        flex-end;

    gap:
        10px;

    margin-left:
        auto;
}


.alert-center-modal__primary-actions
.alert-center-modal__read-form,
.alert-center-modal__primary-actions
.alert-center-modal__ack-form {
    flex:
        0 0 auto;

    width:
        auto;

    margin:
        0;
}


@media (max-width: 600px) {

    .alert-center-modal__footer-actions {
        display:
            flex;

        width:
            100%;

        align-items:
            center;

        justify-content:
            space-between;

        flex-wrap:
            nowrap;

        gap:
            12px;
    }


    .alert-center-modal__footer-actions
    > .btn {
        flex:
            0 0 auto;

        width:
            auto;

        margin:
            0;
    }


    .alert-center-modal__primary-actions {
        flex:
            0 0 auto;

        width:
            auto;

        margin-left:
            auto;

        margin-right:
            0;

        justify-content:
            flex-end;

        gap:
            8px;
    }


    .alert-center-modal__primary-actions
    .alert-center-modal__read-form,
    .alert-center-modal__primary-actions
    .alert-center-modal__ack-form {
        flex:
            0 0 auto;

        width:
            auto;

        margin:
            0;
    }

}


@media (max-width: 390px) {

    .alert-center-modal__footer-actions {
        gap:
            8px;
    }


    .alert-center-modal__primary-actions {
        gap:
            6px;
    }

}


/* ==========================================================
   BADICOM ALERT CENTER V1.2E MOBILE FOOTER FINAL
   Standard mobile/tablette <= 900px
   ========================================================== */

@media (max-width: 900px) {

    .alert-center-modal__footer {
        padding-left:
            16px;

        padding-right:
            16px;
    }


    .alert-center-modal__footer-actions {
        display:
            flex;

        width:
            100%;

        align-items:
            center;

        justify-content:
            space-between;

        flex-wrap:
            nowrap;

        gap:
            12px;
    }


    .alert-center-modal__footer-actions
    > .btn {
        flex:
            0 0 auto;

        width:
            auto;

        margin:
            0;
    }


    .alert-center-modal__primary-actions {
        display:
            flex;

        flex:
            0 0 auto;

        width:
            auto;

        align-items:
            center;

        justify-content:
            flex-end;

        margin-left:
            auto;

        margin-right:
            0;

        gap:
            8px;
    }


    .alert-center-modal__primary-actions
    .alert-center-modal__read-form,
    .alert-center-modal__primary-actions
    .alert-center-modal__ack-form {
        flex:
            0 0 auto;

        width:
            auto;

        margin:
            0;
    }


    .alert-center-modal__ack-button {
        width:
            auto;

        margin:
            0;
    }

}


/* ==========================================================
   BADICOM ALERT CENTER V1.2E MOBILE FOOTER GRID FINAL
   Fermer extrême gauche / actions extrême droite
   ========================================================== */

@media (max-width: 900px) {

    .alert-center-modal__footer {
        display:
            block;

        width:
            100%;

        box-sizing:
            border-box;

        padding-left:
            16px;

        padding-right:
            16px;
    }


    .alert-center-modal__footer-actions {
        display:
            grid;

        grid-template-columns:
            auto
            minmax(0, 1fr)
            auto;

        width:
            100%;

        align-items:
            center;

        gap:
            12px;
    }


    .alert-center-modal__footer-actions
    > .btn {
        grid-column:
            1;

        justify-self:
            start;

        width:
            auto;

        margin:
            0;
    }


    .alert-center-modal__primary-actions {
        grid-column:
            3;

        display:
            flex;

        align-items:
            center;

        justify-content:
            flex-end;

        justify-self:
            end;

        width:
            auto;

        margin:
            0;

        gap:
            8px;
    }


    .alert-center-modal__primary-actions
    .alert-center-modal__read-form,
    .alert-center-modal__primary-actions
    .alert-center-modal__ack-form {
        width:
            auto;

        margin:
            0;
    }


    .alert-center-modal__read-button,
    .alert-center-modal__ack-button {
        width:
            auto;

        margin:
            0;
    }

}


@media (max-width: 390px) {

    .alert-center-modal__footer {
        padding-left:
            12px;

        padding-right:
            12px;
    }


    .alert-center-modal__footer-actions {
        gap:
            8px;
    }


    .alert-center-modal__primary-actions {
        gap:
            6px;
    }

}


/* ==========================================================
   BADICOM ALERT CENTER V1.2E ACK SUCCESS GREEN
   Confirmation opérationnelle clairement identifiable
   ========================================================== */

.alert-center-feedback--ack {
    border-color:
        #a7e3c4;

    background:
        #ecfdf3;

    color:
        #11643a;

    box-shadow:
        0 4px 14px
        rgba(
            22,
            101,
            52,
            0.06
        );
}


.alert-center-feedback--ack
.alert-center-feedback__icon {
    background:
        #d8f7e5;

    color:
        #16834f;
}


.alert-center-feedback--ack
strong {
    color:
        #0d6b3a;
}


.alert-center-feedback--ack
span {
    color:
        #39775a;
}


/* ==========================================================
   BADICOM ALERT CENTER V1.2F RESOLVE ACTION
   ========================================================== */

.alert-center-modal__resolve-form {
    flex:
        0 0 auto;

    width:
        auto;

    margin:
        0;
}


.alert-center-modal__resolve-button {
    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        7px;

    width:
        auto;

    min-width:
        118px;

    border:
        1px solid #9bd8b5;

    background:
        #ecfdf3;

    color:
        #11643a;
}


.alert-center-modal__resolve-button:hover {
    border-color:
        #74c69a;

    background:
        #dcfce7;

    color:
        #0d5b34;
}


.alert-center-modal__resolve-button svg {
    width:
        17px;

    height:
        17px;
}


.alert-center-feedback--resolve {
    border-color:
        #a7e3c4;

    background:
        #ecfdf3;

    color:
        #11643a;
}


.alert-center-feedback--resolve
.alert-center-feedback__icon {
    background:
        #d8f7e5;

    color:
        #16834f;
}


.alert-center-feedback--resolve
strong {
    color:
        #0d6b3a;
}


.alert-center-feedback--resolve
span {
    color:
        #39775a;
}


.alert-center-modal__primary-actions
.alert-center-modal__resolve-form {
    flex:
        0 0 auto;

    width:
        auto;

    margin:
        0;
}


@media (max-width: 900px) {

    .alert-center-modal__resolve-button {
        width:
            auto;

        white-space:
            nowrap;
    }

}


/* ==========================================================
   BADICOM CONTAINER MODAL V2.2C
   ========================================================== */

[data-container-record-modal]
.record-modal__panel--premium {
    width:
        min(
            1180px,
            calc(100vw - 32px)
        );
}


.container-map-hero {
    margin-bottom:
        20px;
}


.container-map-hero__header {
    display: flex;

    align-items:
        flex-start;

    justify-content:
        space-between;

    gap:
        18px;

    padding:
        16px 18px;

    border-bottom:
        1px solid #dce7f1;
}


.container-map-hero__header > div {
    display: grid;
    gap: 5px;
}


.container-map-hero__header small {
    max-width: 760px;

    color:
        #64748b;

    line-height:
        1.45;
}


.container-map-hero__route {
    display: block;

    color:
        #102a43;

    font-size:
        1.08rem;

    line-height:
        1.3;
}


.container-map-phase {
    display: inline-flex;

    align-items: center;

    min-height: 32px;

    padding:
        6px 11px;

    border:
        1px solid #cfe1f2;

    border-radius:
        999px;

    background:
        #eef6fd;

    color:
        #175c9e;

    font-size:
        0.78rem;

    font-weight:
        800;

    white-space:
        nowrap;
}


.container-map-unit-card,
.container-map-vehicle-card {
    position: absolute;

    z-index: 850;

    display: flex;

    align-items: center;

    gap:
        10px;

    padding:
        10px 12px;

    border:
        1px solid
        rgba(
            148,
            163,
            184,
            0.34
        );

    border-radius:
        13px;

    background:
        rgba(
            255,
            255,
            255,
            0.94
        );

    box-shadow:
        0 8px 24px
        rgba(
            15,
            23,
            42,
            0.13
        );

    backdrop-filter:
        blur(8px);
}


.container-map-unit-card {
    top: 14px;
    left: 14px;
}


.container-map-vehicle-card {
    right: 14px;
    bottom: 14px;

    max-width:
        min(
            320px,
            calc(100% - 28px)
        );
}


.container-map-unit-card__icon,
.container-map-vehicle-card__icon {
    display: grid;

    width: 36px;
    height: 36px;

    place-items: center;

    border-radius:
        10px;

    background:
        #edf6ff;

    font-size:
        1.25rem;
}


.container-map-unit-card div,
.container-map-vehicle-card div {
    display: grid;

    min-width: 0;

    gap: 2px;
}


.container-map-unit-card strong,
.container-map-vehicle-card strong {
    overflow: hidden;

    color:
        #102a43;

    font-size:
        0.86rem;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;
}


.container-map-unit-card small,
.container-map-vehicle-card small {
    overflow: hidden;

    color:
        #64748b;

    font-size:
        0.7rem;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;
}


.container-map-route-cards {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto
        minmax(0, 1fr)
        auto
        minmax(0, 1fr);

    align-items: stretch;

    gap:
        8px;

    padding:
        12px 14px;

    border-top:
        1px solid #dce7f1;

    background:
        #f8fbfe;
}


.container-map-route-card {
    display: flex;

    align-items: center;

    min-width: 0;

    gap:
        10px;

    padding:
        10px 12px;

    border:
        1px solid #dbe7f1;

    border-radius:
        12px;

    background:
        #ffffff;
}


.container-map-route-card__icon {
    display: grid;

    flex:
        0 0 auto;

    width: 34px;
    height: 34px;

    place-items: center;

    border-radius:
        10px;

    background:
        #edf6ff;

    font-size:
        1.05rem;
}


.container-map-route-card > div {
    display: grid;

    min-width: 0;

    gap: 2px;
}


.container-map-route-card small {
    color:
        #708399;

    font-size:
        0.66rem;

    font-weight:
        750;

    text-transform:
        uppercase;
}


.container-map-route-card strong {
    overflow: hidden;

    color:
        #102a43;

    font-size:
        0.82rem;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;
}


.container-map-route-card span {
    color:
        #64748b;

    font-size:
        0.7rem;
}


.container-map-route-arrow {
    display: grid;

    place-items: center;

    color:
        #7890a8;

    font-size:
        1.2rem;

    font-weight:
        800;
}


.container-map-progress {
    display: grid;

    gap:
        7px;

    padding:
        12px 16px 15px;

    border-top:
        1px solid #e2eaf1;

    background:
        #ffffff;
}


.container-map-progress > div:first-child {
    display: flex;

    align-items: center;

    justify-content:
        space-between;

    gap:
        14px;
}


.container-map-progress span {
    color:
        #64748b;

    font-size:
        0.76rem;
}


.container-map-progress strong {
    color:
        #175c9e;

    font-size:
        0.82rem;
}


.container-map-progress__track {
    height:
        7px;

    overflow:
        hidden;

    border-radius:
        999px;

    background:
        #e6eef6;
}


.container-map-progress__track > span {
    display: block;

    width: 0;
    height: 100%;

    border-radius:
        inherit;

    background:
        linear-gradient(
            90deg,
            #1e69ad,
            #3d92d5
        );

    transition:
        width 320ms ease;
}


.container-map-progress > small {
    color:
        #718096;

    font-size:
        0.7rem;

    line-height:
        1.4;
}


.container-map-tile-warning {
    position: absolute;

    z-index:
        860;

    right:
        12px;

    top:
        62px;

    padding:
        7px 9px;

    border-radius:
        8px;

    background:
        rgba(
            255,
            247,
            237,
            0.95
        );

    color:
        #9a4f13;

    font-size:
        0.7rem;

    font-weight:
        700;
}


@media (
    max-width: 760px
) {

    [data-container-record-modal]
    .record-modal__panel--premium {
        width:
            100%;
    }


    .container-map-hero__header {
        display: grid;

        padding:
            13px 14px;
    }


    .container-map-phase {
        justify-self:
            start;
    }


    .container-map-unit-card {
        top: 10px;
        left: 10px;

        max-width:
            calc(100% - 100px);
    }


    .container-map-vehicle-card {
        right: 10px;
        bottom: 10px;
        left: 10px;

        max-width:
            none;
    }


    .container-map-route-cards {
        grid-template-columns:
            1fr;

        gap:
            7px;

        padding:
            10px;
    }


    .container-map-route-arrow {
        height:
            16px;

        transform:
            rotate(90deg);
    }


    .container-map-route-card {
        padding:
            9px 10px;
    }


    .container-map-progress {
        padding:
            11px 12px 14px;
    }
}


/*
 * Mouvement très discret du navire :
 * signal visuel vivant sans animation agressive.
 */

[data-container-record-modal]
.shipment-map-leaflet-icon--ship
> span {
    animation:
        badicom-container-ship-drift
        2.8s
        ease-in-out
        infinite;
}


@keyframes badicom-container-ship-drift {

    0%,
    100% {
        transform:
            translateY(0);
    }

    50% {
        transform:
            translateY(-3px);
    }
}


/* ==========================================================
   BADICOM CONTAINER MODAL V2.2D
   Corrections UX après validation visuelle
   ========================================================== */


/*
 * La carte est réellement le premier volet opérationnel :
 *
 * Header itinéraire
 * Carte
 * Résumé des points
 * Progression
 */

.container-map-hero {
    display: flex;

    flex-direction:
        column;
}


.container-map-hero
> .container-map-hero__header {
    order:
        0;
}


.container-map-hero
> .shipment-map-stage {
    order:
        1 !important;
}


.container-map-hero
> .container-map-route-cards {
    order:
        2;
}


.container-map-hero
> .container-map-progress {
    order:
        3;
}


/*
 * Route planifiée :
 * on garde la carte disponible sans la présenter
 * comme une opération maritime réellement démarrée.
 */

[data-container-record-modal]
.container-map-phase {
    box-shadow:
        none;
}


/*
 * Mobile :
 * réduction de l'en-tête pour afficher la carte
 * plus tôt dans le viewport.
 */

@media (
    max-width: 760px
) {

    [data-container-record-modal]
    .record-modal__header--premium {
        min-height:
            0;

        padding:
            14px
            18px;

        gap:
            8px;
    }


    [data-container-record-modal]
    .record-modal__identity {
        gap:
            3px;
    }


    [data-container-record-modal]
    .record-modal__eyebrow {
        margin-bottom:
            1px;
    }


    [data-container-record-modal]
    .record-modal__title-row {
        gap:
            8px;
    }


    [data-container-record-modal]
    .record-modal__title-row h2 {
        line-height:
            1.15;
    }


    /*
     * Le workflow reste immédiatement accessible,
     * mais ne monopolise plus toute la largeur.
     */

    [data-container-record-modal]
    .container-record-header__status-action {
        width:
            auto;

        max-width:
            calc(100% - 54px);

        margin-top:
            5px;
    }


    [data-container-record-modal]
    .container-record-header__status-action
    .btn {
        width:
            auto;

        min-height:
            38px;

        padding:
            8px
            14px;

        font-size:
            0.78rem;
    }


    /*
     * Carte prioritaire sur téléphone.
     */

    .container-map-hero
    > .shipment-map-stage {
        min-height:
            340px;
    }


    .container-map-hero
    > .shipment-map-stage
    .shipment-map-canvas {
        height:
            340px;
    }


    .container-map-hero
    > .shipment-map-stage
    .shipment-map-unavailable {
        min-height:
            340px;
    }


    /*
     * Les cartes de trajet restent sous la map :
     * elles deviennent le résumé explicatif,
     * pas un obstacle avant la visualisation.
     */

    .container-map-route-cards {
        margin-top:
            0;
    }
}


/* ==========================================================
   BADICOM CONTAINER MODAL V2.2E
   Hero simplifié + itinéraire horizontal mobile
   ========================================================== */


/*
 * Le bloc textuel supérieur du Hero a été supprimé.
 * La carte devient immédiatement le premier contenu
 * opérationnel sous l'en-tête du modal.
 */

.container-map-hero {
    padding-top:
        0;
}


.container-map-hero
> .shipment-map-stage {
    border-top-left-radius:
        16px;

    border-top-right-radius:
        16px;
}


/*
 * Desktop :
 * maintien des trois points sur une seule ligne.
 */

.container-map-route-cards {
    grid-template-columns:
        minmax(0, 1fr)
        auto
        minmax(0, 1fr)
        auto
        minmax(0, 1fr);
}


/*
 * Mobile :
 * les cards NE repassent plus en colonne.
 *
 * Elles deviennent une bande horizontale.
 * Sur petit téléphone, un scroll horizontal discret
 * conserve la lisibilité sans écraser les contenus.
 */

@media (
    max-width: 760px
) {

    .container-map-route-cards {
        display: flex;

        align-items:
            stretch;

        gap:
            7px;

        padding:
            10px;

        overflow-x:
            auto;

        overflow-y:
            hidden;

        scroll-snap-type:
            x proximity;

        overscroll-behavior-inline:
            contain;

        scrollbar-width:
            thin;

        -webkit-overflow-scrolling:
            touch;
    }


    .container-map-route-card {
        flex:
            0 0
            min(
                190px,
                56vw
            );

        min-width:
            0;

        scroll-snap-align:
            start;

        padding:
            9px 10px;
    }


    .container-map-route-card__icon {
        width:
            30px;

        height:
            30px;

        border-radius:
            9px;

        font-size:
            0.95rem;
    }


    .container-map-route-card small {
        font-size:
            0.58rem;
    }


    .container-map-route-card strong {
        font-size:
            0.76rem;
    }


    .container-map-route-card span {
        font-size:
            0.64rem;
    }


    .container-map-route-arrow {
        flex:
            0 0 15px;

        width:
            15px;

        height:
            auto;

        transform:
            none;

        font-size:
            0.9rem;
    }
}


/*
 * Sur les écrans mobiles assez larges,
 * les trois cards tiennent directement à l'écran.
 */

@media (
    min-width: 560px
)
and (
    max-width: 760px
) {

    .container-map-route-cards {
        display: grid;

        grid-template-columns:
            minmax(0, 1fr)
            auto
            minmax(0, 1fr)
            auto
            minmax(0, 1fr);

        overflow:
            visible;
    }


    .container-map-route-card {
        width:
            auto;

        min-width:
            0;
    }
}


/*
 * Défense CSS :
 * l'ancien header Hero ne doit plus occuper d'espace
 * même si un ancien fragment HTML restait en cache.
 */

[data-container-record-modal]
.container-map-hero__header {
    display:
        none !important;
}


/* ==========================================================
   BADICOM CONTAINER MODAL V2.2F
   ETA opérationnelle + carte mobile dégagée
   ========================================================== */


/*
 * La pastille ETA affiche désormais directement :
 *
 * ETA
 * 2 jours restants
 *
 * Le code interne J-2 reste calculé mais ne doit plus
 * être répété visuellement dans cette pastille.
 */

[data-container-record-modal]
.shipment-map-eta-card
[data-container-map-eta-state] {
    display:
        none;
}


[data-container-record-modal]
.shipment-map-eta-card {
    gap:
        5px;
}


[data-container-record-modal]
.shipment-map-eta-card > span {
    font-size:
        0.68rem;

    font-weight:
        750;

    text-transform:
        uppercase;

    opacity:
        0.92;
}


[data-container-record-modal]
.shipment-map-eta-card
[data-container-map-eta] {
    font-size:
        0.82rem;

    line-height:
        1.15;

    white-space:
        nowrap;
}


/*
 * Sur téléphone, le numéro du conteneur et le statut
 * sont déjà présents dans le header fixe.
 *
 * Les deux cards overlay sont donc masquées afin de
 * laisser toute la surface utile à la cartographie.
 *
 * Desktop : elles restent présentes.
 */

@media (
    max-width: 760px
) {

    [data-container-record-modal]
    .container-map-unit-card,

    [data-container-record-modal]
    .container-map-vehicle-card {
        display:
            none !important;
    }


    /*
     * La pastille ETA devient le seul overlay métier
     * volontairement conservé sur la carte mobile.
     */

    [data-container-record-modal]
    .shipment-map-eta-card {
        top:
            12px;

        right:
            12px;

        min-width:
            0;

        max-width:
            calc(100% - 86px);

        padding:
            8px 11px;

        border-radius:
            11px;
    }
}


/* ==========================================================
   BADICOM CONTAINERS V2.3 - OPERATIONAL LIST
   KPI + tableau desktop + cards mobile
   ========================================================== */


/* ----------------------------------------------------------
   KPI
   ---------------------------------------------------------- */

.containers-v23-kpi-grid {
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
}


.containers-v23-kpi-card {
    position:
        relative;

    align-items:
        center;

    min-width:
        0;

    min-height:
        92px;

    overflow:
        hidden;
}


.containers-v23-kpi-card::after {
    position:
        absolute;

    right:
        -24px;

    bottom:
        -42px;

    width:
        105px;

    height:
        105px;

    border-radius:
        50%;

    background:
        rgb(10 79 137 / 0.04);

    content:
        "";
}


.containers-v23-kpi-mark {
    position:
        relative;

    z-index:
        1;

    display:
        grid;

    place-items:
        center;

    flex:
        0 0 48px;

    width:
        48px;

    height:
        48px;

    border-radius:
        13px;

    color:
        #ffffff;
}


.containers-v23-kpi-mark svg {
    width:
        25px;

    height:
        25px;

    fill:
        none !important;

    stroke:
        currentColor;

    stroke-width:
        1.8;

    stroke-linecap:
        round;

    stroke-linejoin:
        round;
}


.containers-v23-kpi-copy {
    position:
        relative;

    z-index:
        1;

    display:
        grid;

    min-width:
        0;

    gap:
        2px;
}


.containers-v23-kpi-copy strong {
    display:
        block;

    color:
        #092f54;

    font-size:
        1.42rem;

    font-weight:
        850;

    line-height:
        1;
}


.containers-v23-kpi-copy span {
    display:
        block;

    margin-top:
        4px;

    color:
        #182c41;

    font-size:
        0.78rem;

    font-weight:
        750;

    line-height:
        1.25;
}


.containers-v23-kpi-copy small {
    display:
        block;

    margin-top:
        2px;

    overflow:
        hidden;

    color:
        #718198;

    font-size:
        0.64rem;

    line-height:
        1.25;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;
}


/* animations discrètes */

@keyframes containersV23ShipFloat {
    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-2px) rotate(-1deg);
    }
}


@keyframes containersV23TruckMove {
    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(2px);
    }
}


@keyframes containersV23PreparationLift {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-2px);
    }
}


@media (prefers-reduced-motion: no-preference) {

    .containers-v23-kpi-card--sea
    .containers-v23-kpi-mark svg {
        animation:
            containersV23ShipFloat
            2.7s
            ease-in-out
            infinite;
    }


    .containers-v23-kpi-card--road
    .containers-v23-kpi-mark svg {
        animation:
            containersV23TruckMove
            2.4s
            ease-in-out
            infinite;
    }


    .containers-v23-kpi-card--preparation
    .containers-v23-kpi-mark svg {
        animation:
            containersV23PreparationLift
            2.8s
            ease-in-out
            infinite;
    }
}


/* ----------------------------------------------------------
   Tableau desktop
   ---------------------------------------------------------- */

.containers-v23-table {
    min-width:
        1080px;
}


.containers-v23-table th:nth-child(1) {
    min-width: 180px;
}


.containers-v23-table th:nth-child(2) {
    min-width: 165px;
}


.containers-v23-table th:nth-child(3) {
    min-width: 245px;
}


.containers-v23-table th:nth-child(4) {
    min-width: 115px;
}


.containers-v23-table th:nth-child(5) {
    min-width: 120px;
}


.containers-v23-table th:nth-child(6) {
    min-width: 175px;
}


.containers-v23-row td {
    padding-top:
        12px;

    padding-bottom:
        12px;

    vertical-align:
        middle;
}


.containers-v23-unit {
    display:
        flex;

    align-items:
        center;

    gap:
        9px;

    min-width:
        0;
}


.containers-v23-unit__icon {
    display:
        grid;

    place-items:
        center;

    flex:
        0 0 34px;

    width:
        34px;

    height:
        34px;

    border:
        1px solid #d8e8f6;

    border-radius:
        9px;

    background:
        #f2f8fd;

    color:
        #0872bd;
}


.containers-v23-unit__icon svg {
    width:
        18px;

    height:
        18px;

    fill:
        none;

    stroke:
        currentColor;

    stroke-width:
        1.7;

    stroke-linecap:
        round;

    stroke-linejoin:
        round;
}


.containers-v23-route {
    max-width:
        285px;
}


.containers-v23-route strong,
.containers-v23-route small {
    display:
        block;
}


.containers-v23-route strong {
    color:
        #263b50;

    font-size:
        0.76rem;

    font-weight:
        700;

    line-height:
        1.4;
}


.containers-v23-route small {
    margin-top:
        3px;

    color:
        #718198;

    font-size:
        0.64rem;
}


.containers-v23-eta strong,
.containers-v23-eta span {
    display:
        block;
}


.containers-v23-eta strong {
    color:
        #182c41;

    font-size:
        0.75rem;

    font-weight:
        750;

    white-space:
        nowrap;
}


.containers-v23-eta span {
    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    margin-top:
        5px;

    min-height:
        22px;

    padding:
        2px 8px;

    border-radius:
        999px;

    background:
        #edf4fa;

    color:
        #315773;

    font-size:
        0.63rem;

    font-weight:
        800;

    white-space:
        nowrap;
}


.containers-v23-eta--urgent span,
.containers-v23-eta--today span {
    background:
        #fff4e6;

    color:
        #b54708;
}


.containers-v23-eta--overdue span {
    background:
        #fff0f0;

    color:
        #b42318;
}


.containers-v23-eta--done span {
    background:
        #ecfdf3;

    color:
        #067647;
}


.containers-v23-status {
    max-width:
        145px;

    white-space:
        normal;

    line-height:
        1.2;

    text-align:
        center;
}


/* ----------------------------------------------------------
   Mobile
   ---------------------------------------------------------- */

.containers-v23-mobile-list {
    gap:
        9px;
}


.containers-v23-mobile-card {
    gap:
        10px;

    padding:
        13px 14px;

    border-left:
        3px solid #0872bd;
}


.containers-v23-mobile-card__header {
    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        9px;
}


.containers-v23-mobile-card__header
.containers-v23-unit {
    flex:
        1 1 auto;
}


.containers-v23-mobile-card__header
.containers-v23-unit__icon {
    flex-basis:
        31px;

    width:
        31px;

    height:
        31px;
}


.containers-v23-mobile-card__shipment {
    display:
        block;

    margin-top:
        7px;

    color:
        #15588c;

    font-size:
        0.7rem;

    font-weight:
        700;
}


.containers-v23-mobile-card__route {
    display:
        block;

    margin-top:
        4px;

    overflow:
        hidden;

    color:
        #4d6075;

    font-size:
        0.72rem;

    font-weight:
        600;

    line-height:
        1.35;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;
}


.containers-v23-mobile-card__footer {
    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        10px;

    margin-top:
        8px;

    padding-top:
        7px;

    border-top:
        1px solid #e8eef5;
}


.containers-v23-mobile-card__footer small {
    margin:
        0;

    color:
        #718198;

    font-size:
        0.64rem;
}


.containers-v23-mobile-eta {
    display:
        inline-flex;

    align-items:
        center;

    min-height:
        23px;

    padding:
        2px 8px;

    border-radius:
        999px;

    background:
        #edf4fa;

    color:
        #315773;

    font-size:
        0.63rem;

    font-weight:
        800;

    white-space:
        nowrap;
}


.containers-v23-mobile-eta--urgent,
.containers-v23-mobile-eta--today {
    background:
        #fff4e6;

    color:
        #b54708;
}


.containers-v23-mobile-eta--overdue {
    background:
        #fff0f0;

    color:
        #b42318;
}


.containers-v23-mobile-eta--done {
    background:
        #ecfdf3;

    color:
        #067647;
}


/* ----------------------------------------------------------
   Responsive KPI
   ---------------------------------------------------------- */

@media (max-width: 900px) {

    .containers-v23-kpi-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 520px) {

    .containers-v23-kpi-grid {
        gap:
            9px;
    }


    .containers-v23-kpi-card {
        min-height:
            80px;

        padding:
            11px;
    }


    .containers-v23-kpi-mark {
        flex-basis:
            40px;

        width:
            40px;

        height:
            40px;

        border-radius:
            11px;
    }


    .containers-v23-kpi-mark svg {
        width:
            21px;

        height:
            21px;
    }


    .containers-v23-kpi-copy strong {
        font-size:
            1.18rem;
    }


    .containers-v23-kpi-copy span {
        font-size:
            0.7rem;
    }


    .containers-v23-kpi-copy small {
        font-size:
            0.59rem;
    }


    .containers-v23-mobile-card {
        padding:
            12px;
    }


    .containers-v23-mobile-card__footer {
        align-items:
            flex-start;

        flex-direction:
            column;

        gap:
            6px;
    }
}


/* ==========================================================
   BADICOM CONTAINERS V2.3D - KPI ILLUSTRATIONS
   Harmonisation avec le module Expéditions
   ========================================================== */


.containers-v23-kpi-card {
    position:
        relative;

    display:
        flex;

    align-items:
        center;

    min-height:
        145px;

    padding:
        22px;

    overflow:
        hidden;

    border:
        1px solid #e0e8ef;

    border-radius:
        14px;

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #fbfdff 100%
        );

    box-shadow:
        0 8px 22px
        rgb(19 54 86 / .07);
}


/*
 * Les anciens petits pictogrammes V2.3 ne sont plus
 * nécessaires : l'illustration métier devient le visuel
 * principal, comme dans Expéditions.
 */
.containers-v23-kpi-card
.containers-v23-kpi-mark {
    display:
        none;
}


.containers-v23-kpi-card::after {
    display:
        none;
}


.containers-v23-kpi-card
.containers-v23-kpi-copy {
    position:
        relative;

    z-index:
        3;

    display:
        block;

    width:
        57%;

    min-width:
        0;
}


.containers-v23-kpi-card
.record-kpi-card__value {
    display:
        block;

    color:
        #06478b;

    font-size:
        2.55rem;

    font-weight:
        850;

    line-height:
        .95;

    letter-spacing:
        -.045em;
}


.containers-v23-kpi-card
.record-kpi-card__label {
    display:
        block;

    margin-top:
        5px;

    color:
        #06417c;

    font-size:
        1rem;

    font-weight:
        820;

    line-height:
        1.15;
}


.containers-v23-kpi-card--preparation
.record-kpi-card__value,
.containers-v23-kpi-card--preparation
.record-kpi-card__label,
.containers-v23-kpi-card--road
.record-kpi-card__value,
.containers-v23-kpi-card--road
.record-kpi-card__label {
    color:
        #a95308;
}


.container-kpi__description {
    display:
        block;

    margin-top:
        15px;

    color:
        #66798d;

    font-size:
        .7rem;

    line-height:
        1.35;
}


.container-kpi__illustration {
    position:
        absolute;

    z-index:
        1;

    right:
        4px;

    bottom:
        0;

    width:
        53%;

    height:
        92%;

    object-fit:
        contain;

    object-position:
        right bottom;

    pointer-events:
        none;

    transform-origin:
        right bottom;

    transition:
        transform 220ms ease;
}


.containers-v23-kpi-card:hover
.container-kpi__illustration {
    transform:
        translateY(-2px)
        scale(1.025);
}


/* Un peu plus d'espace visuel pour le camion */

.container-kpi__illustration--road {
    right:
        -2px;

    width:
        55%;
}


/* Animation très légère des phases opérationnelles */

@keyframes containersKpiSeaMotion {
    0%,
    100% {
        transform:
            translateY(0);
    }

    50% {
        transform:
            translateY(-2px);
    }
}


@keyframes containersKpiPreparationMotion {
    0%,
    100% {
        transform:
            translateY(0);
    }

    50% {
        transform:
            translateY(-2px);
    }
}


@keyframes containersKpiRoadMotion {
    0%,
    100% {
        transform:
            translateX(0);
    }

    50% {
        transform:
            translateX(2px);
    }
}


@media (
    prefers-reduced-motion: no-preference
) {

    .container-kpi__illustration--sea {
        animation:
            containersKpiSeaMotion
            3.2s
            ease-in-out
            infinite;
    }


    .container-kpi__illustration--preparation {
        animation:
            containersKpiPreparationMotion
            3.5s
            ease-in-out
            infinite;
    }


    .container-kpi__illustration--road {
        animation:
            containersKpiRoadMotion
            3.1s
            ease-in-out
            infinite;
    }
}


/* ----------------------------------------------------------
   Mobile
   ---------------------------------------------------------- */

@media (
    max-width: 760px
) {

    .containers-v23-kpi-card {
        min-height:
            116px;

        padding:
            17px
            15px;
    }


    .containers-v23-kpi-card
    .containers-v23-kpi-copy {
        width:
            62%;
    }


    .containers-v23-kpi-card
    .record-kpi-card__value {
        font-size:
            1.85rem;
    }


    .containers-v23-kpi-card
    .record-kpi-card__label {
        font-size:
            .82rem;
    }


    .container-kpi__description {
        display:
            none;
    }


    .container-kpi__illustration {
        right:
            -5px;

        width:
            52%;

        height:
            88%;
    }


    .container-kpi__illustration--road {
        width:
            55%;
    }
}


@media (
    max-width: 520px
) {

    .containers-v23-kpi-card {
        min-height:
            108px;
    }


    .containers-v23-kpi-card
    .record-kpi-card__value {
        font-size:
            1.65rem;
    }


    .containers-v23-kpi-card
    .record-kpi-card__label {
        max-width:
            98px;

        font-size:
            .76rem;
    }


    .container-kpi__illustration {
        width:
            56%;
    }


    .container-kpi__illustration--road {
        width:
            59%;
    }
}


/* ==========================================================
   BADICOM CONTAINERS V2.3E - TOOLBAR HORIZONTALE
   ========================================================== */

@media (min-width: 761px) {

    .containers-v23-toolbar {
        display: grid;

        grid-template-columns:
            minmax(300px, 1fr)
            190px
            230px
            auto;

        gap: 12px;

        align-items: end;
    }


    .containers-v23-toolbar
    .data-toolbar__field--search {
        min-width: 0;
        max-width: none;
    }


    .containers-v23-toolbar
    .data-toolbar__actions {
        display: flex;

        flex-wrap: nowrap;

        gap: 8px;

        align-items: center;

        white-space: nowrap;
    }


    .containers-v23-toolbar
    .data-toolbar__actions
    .btn {
        width: auto;
        min-width: 118px;
    }
}


/*
 * Tablettes / petits laptops :
 * on garde encore une seule ligne tant que possible.
 */
@media (
    min-width: 761px
)
and (
    max-width: 1180px
) {

    .containers-v23-toolbar {
        grid-template-columns:
            minmax(240px, 1fr)
            165px
            195px
            auto;

        gap: 10px;
    }


    .containers-v23-toolbar
    .data-toolbar__actions
    .btn {
        min-width: 105px;
    }
}


/*
 * Mobile :
 * retour à l'empilement vertical.
 */
@media (max-width: 760px) {

    .containers-v23-toolbar {
        display: grid;

        grid-template-columns:
            minmax(0, 1fr);

        gap: 14px;
    }


    .containers-v23-toolbar
    .data-toolbar__actions {
        display: flex;

        width: 100%;

        gap: 8px;
    }


    .containers-v23-toolbar
    .data-toolbar__actions
    .btn {
        flex: 1 1 0;

        width: auto;
    }
}


/* ==========================================================
   BADICOM CONTAINERS V2.3E-C
   Desktop : 5 colonnes opérationnelles
   ========================================================== */

@media (min-width: 761px) {

    .containers-v23-table {
        min-width: 0;
        width: 100%;
        table-layout: fixed;
    }


    .containers-v23-table th:nth-child(1) {
        width: 20%;
        min-width: 0;
    }


    .containers-v23-table th:nth-child(2) {
        width: 32%;
        min-width: 0;
    }


    .containers-v23-table th:nth-child(3) {
        width: 13%;
        min-width: 0;
    }


    .containers-v23-table th:nth-child(4) {
        width: 14%;
        min-width: 0;
    }


    .containers-v23-table th:nth-child(5) {
        width: 21%;
        min-width: 0;
    }


    .containers-v23-route {
        max-width: none;
    }
}


/* ==========================================================
   CONTAINERS V2.3F - OPERATIONAL DECISION TABLE
   ========================================================== */

.containers-v24-table {
    width: 100%;
    table-layout: fixed;
}


.containers-v24-table th:nth-child(1) {
    width: 18%;
}


.containers-v24-table th:nth-child(2) {
    width: 30%;
}


.containers-v24-table th:nth-child(3) {
    width: 17%;
}


.containers-v24-table th:nth-child(4) {
    width: 17%;
}


.containers-v24-table th:nth-child(5) {
    width: 18%;
}


.containers-v24-row {
    --container-row-accent: #9fb1c4;
}


.containers-v24-row--preparation {
    --container-row-accent: #d69a45;
}


.containers-v24-row--sea {
    --container-row-accent: #1685c7;
}


.containers-v24-row--port {
    --container-row-accent: #e48318;
}


.containers-v24-row--road {
    --container-row-accent: #14735a;
}


.containers-v24-row--completed {
    --container-row-accent: #2f8a57;
}


.containers-v24-row > td:first-child {
    box-shadow:
        inset 4px 0 0
        var(--container-row-accent);
}


.containers-v24-row--attention > td {
    background:
        linear-gradient(
            90deg,
            rgba(255, 247, 237, .78),
            rgba(255, 255, 255, 0)
        );
}


.containers-v24-row--attention
> td:first-child {
    box-shadow:
        inset 4px 0 0
        #f97316;
}


.containers-v24-cell {
    vertical-align: middle;
}


.containers-v24-unit {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}


.containers-v24-unit__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;

    width: 38px;
    height: 38px;

    border:
        1px solid
        #cfe2f3;

    border-radius:
        10px;

    background:
        #f2f8fd;

    color:
        #0876bd;
}


.containers-v24-unit__icon svg {
    width: 21px;
    height: 21px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.containers-v24-unit__copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}


.containers-v24-unit__copy strong {
    color:
        var(
            --color-text,
            #172033
        );

    font-weight: 800;
}


.containers-v24-unit__copy small {
    color:
        var(
            --color-text-muted,
            #66758a
        );

    font-size: .78rem;
}


.containers-v24-route {
    display: grid;
    gap: 9px;
    min-width: 0;
}


.containers-v24-route > strong {
    overflow-wrap: anywhere;

    color:
        var(
            --color-text,
            #172033
        );

    font-size: .88rem;
    font-weight: 800;
    line-height: 1.35;
}


.containers-v24-phase {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    justify-self: start;

    min-width: 0;

    color:
        #5e7188;
}


.containers-v24-phase__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 27px;
    height: 27px;

    border-radius: 9px;

    background:
        #eef5fb;

    color:
        #0b6ea9;
}


.containers-v24-phase__icon svg {
    width: 17px;
    height: 17px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.containers-v24-phase > span:last-child {
    min-width: 0;
}


.containers-v24-phase strong {
    font-size: .78rem;
    font-weight: 800;
}


.containers-v24-phase small {
    color: #7a8ba0;
    font-size: .7rem;
}


.containers-v24-eta {
    display: grid;
    gap: 4px;

    justify-items: start;
}


.containers-v24-eta__label {
    color:
        #73869d;

    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .05em;
}


.containers-v24-eta__date {
    color:
        #073d71;

    font-size: .96rem;
    font-weight: 900;
}


.containers-v24-estimate {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    min-width: 108px;

    margin-top: 4px;

    padding:
        6px
        9px;

    border:
        1px solid
        #dbe8f4;

    border-radius:
        10px;

    background:
        #f3f8fc;

    color:
        #0a4d82;
}


.containers-v24-estimate__icon {
    display: inline-flex;

    flex: 0 0 auto;
}


.containers-v24-estimate__icon svg {
    width: 16px;
    height: 16px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.containers-v24-estimate > span:last-child {
    display: grid;
    gap: 1px;
}


.containers-v24-estimate strong {
    font-size: .79rem;
    font-weight: 900;
}


.containers-v24-estimate small {
    color:
        #75869a;

    font-size: .63rem;
    line-height: 1.15;
}


.containers-v24-eta--critical
.containers-v24-estimate,
.containers-v24-eta--overdue
.containers-v24-estimate {
    border-color:
        #fdba74;

    background:
        #fff4e8;

    color:
        #c74f00;
}


.containers-v24-eta--critical
.containers-v24-estimate small,
.containers-v24-eta--overdue
.containers-v24-estimate small {
    color:
        #db6b1b;
}


.containers-v24-eta--watch
.containers-v24-estimate {
    border-color:
        #bfdbfe;

    background:
        #eff6ff;

    color:
        #0b5e9b;
}


.containers-v24-eta--arrived
.containers-v24-estimate {
    border-color:
        #bbf7d0;

    background:
        #f0fdf4;

    color:
        #18794e;
}


.containers-v24-status {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    max-width: 100%;

    padding:
        7px
        10px;

    border:
        1px solid
        #dbe5ef;

    border-radius:
        999px;

    background:
        #f8fafc;

    color:
        #344a62;
}


.containers-v24-status__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 28px;
    height: 28px;

    border-radius:
        50%;

    background:
        #eef4fa;
}


.containers-v24-status__icon svg {
    width: 17px;
    height: 17px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.containers-v24-status__copy {
    display: grid;
    gap: 1px;
    min-width: 0;
}


.containers-v24-status__copy strong {
    font-size: .78rem;
    font-weight: 900;
    line-height: 1.15;
}


.containers-v24-status__copy small {
    color:
        #75869a;

    font-size: .62rem;
    line-height: 1.15;
}


.containers-v24-status--preparation {
    border-color:
        #ead8bd;

    background:
        #fffaf2;

    color:
        #a85a08;
}


.containers-v24-status--sea {
    border-color:
        #b9def5;

    background:
        #eff8ff;

    color:
        #0876bd;
}


.containers-v24-status--port {
    border-color:
        #fed7aa;

    background:
        #fff7ed;

    color:
        #c45b0a;
}


.containers-v24-status--road {
    border-color:
        #bde3d8;

    background:
        #f0faf7;

    color:
        #146c56;
}


.containers-v24-status--completed {
    border-color:
        #bbf7d0;

    background:
        #f0fdf4;

    color:
        #18794e;
}


.containers-v24-event {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    min-width: 0;
}


.containers-v24-event__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 28px;
    height: 28px;

    margin-top: 1px;

    border-radius:
        9px;

    background:
        #f0f5fa;

    color:
        #557493;
}


.containers-v24-event__icon svg {
    width: 16px;
    height: 16px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.containers-v24-event__copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}


.containers-v24-event__copy strong {
    color:
        var(
            --color-text,
            #172033
        );

    font-size: .78rem;
    font-weight: 900;
}


.containers-v24-event__copy > span {
    color:
        #536b84;

    font-size: .75rem;
    line-height: 1.25;
}


.containers-v24-event__copy small {
    color:
        #8493a5;

    font-size: .67rem;
}


/*
 * Icônes métier animées discrètement.
 */

.containers-v24-live-icon--sea svg {
    animation:
        containers-v24-sea-motion
        2.4s
        ease-in-out
        infinite;
}


.containers-v24-live-icon--preparation svg {
    animation:
        containers-v24-preparation-motion
        2.8s
        ease-in-out
        infinite;
}


.containers-v24-live-icon--road svg {
    animation:
        containers-v24-road-motion
        2.2s
        ease-in-out
        infinite;
}


.containers-v24-live-icon--completed svg {
    animation:
        containers-v24-completed-motion
        2.6s
        ease-in-out
        infinite;
}


@keyframes containers-v24-sea-motion {

    0%,
    100% {
        transform:
            translateY(0)
            rotate(0deg);
    }

    50% {
        transform:
            translateY(-1.5px)
            rotate(-1deg);
    }
}


@keyframes containers-v24-preparation-motion {

    0%,
    100% {
        transform:
            translateY(0);
    }

    50% {
        transform:
            translateY(1.5px);
    }
}


@keyframes containers-v24-road-motion {

    0%,
    100% {
        transform:
            translateX(0);
    }

    50% {
        transform:
            translateX(2px);
    }
}


@keyframes containers-v24-completed-motion {

    0%,
    100% {
        transform:
            scale(1);
    }

    50% {
        transform:
            scale(1.06);
    }
}


@media (prefers-reduced-motion: reduce) {

    .containers-v24-live-icon svg {
        animation:
            none !important;
    }
}


@media (
    min-width: 761px
)
and (
    max-width: 1180px
) {

    .containers-v24-table {
        min-width:
            1040px;
    }
}


/* ==========================================================
   CONTAINERS V2.3F-C - MOBILE DECISION CARDS
   ========================================================== */

.containers-v24-mobile-list {
    gap: 12px;
}


.containers-v24-mobile-card {
    --container-mobile-accent: #9fb1c4;

    position: relative;

    display: grid;

    gap: 12px;

    width: 100%;

    padding:
        15px
        16px
        15px
        18px;

    border:
        1px solid
        #dce6f0;

    border-left:
        4px solid
        var(--container-mobile-accent);

    border-radius:
        14px;

    background:
        #ffffff;

    text-align: left;
}


.containers-v24-mobile-card--preparation {
    --container-mobile-accent: #d69a45;
}


.containers-v24-mobile-card--sea {
    --container-mobile-accent: #1685c7;
}


.containers-v24-mobile-card--port {
    --container-mobile-accent: #e48318;
}


.containers-v24-mobile-card--road {
    --container-mobile-accent: #14735a;
}


.containers-v24-mobile-card--completed {
    --container-mobile-accent: #2f8a57;
}


.containers-v24-mobile-card--attention {
    border-left-color:
        #f97316;

    background:
        linear-gradient(
            105deg,
            rgba(255, 247, 237, .92),
            #ffffff 45%
        );
}


.containers-v24-mobile-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 12px;

    min-width: 0;
}


.containers-v24-mobile-unit {
    display: flex;
    align-items: center;

    gap: 10px;

    min-width: 0;
}


.containers-v24-mobile-unit > span:last-child {
    display: grid;

    gap: 2px;

    min-width: 0;
}


.containers-v24-mobile-unit strong {
    overflow-wrap: anywhere;

    color:
        var(
            --color-text,
            #172033
        );

    font-size: .94rem;
    font-weight: 900;
}


.containers-v24-mobile-unit small {
    color:
        #718399;

    font-size: .72rem;
}


.containers-v24-mobile-status {
    flex: 0 0 auto;

    padding:
        5px
        8px;
}


.containers-v24-mobile-status
.containers-v24-status__icon {
    width: 24px;
    height: 24px;
}


.containers-v24-mobile-status
.containers-v24-status__icon svg {
    width: 15px;
    height: 15px;
}


.containers-v24-mobile-status
.containers-v24-status__copy strong {
    font-size: .72rem;
}


.containers-v24-mobile-reference {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 5px;

    color:
        #596f87;

    font-size: .75rem;
}


.containers-v24-mobile-reference strong {
    color:
        #17446e;

    font-weight: 900;
}


.containers-v24-mobile-route {
    min-width: 0;
}


.containers-v24-mobile-route strong {
    display: block;

    overflow-wrap: anywhere;

    color:
        var(
            --color-text,
            #172033
        );

    font-size: .88rem;
    font-weight: 800;
    line-height: 1.35;
}


.containers-v24-mobile-phase {
    display: inline-flex;
    align-items: center;

    justify-self: start;

    gap: 8px;

    min-width: 0;

    color:
        #5f748b;
}


.containers-v24-mobile-phase > span:last-child {
    display: flex;
    align-items: baseline;

    gap: 5px;
}


.containers-v24-mobile-phase strong {
    font-size: .75rem;
    font-weight: 800;
}


.containers-v24-mobile-phase small {
    color:
        #8291a3;

    font-size: .67rem;
}


.containers-v24-mobile-decision {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 9px;

    padding-top: 11px;

    border-top:
        1px solid
        #e5ebf2;
}


.containers-v24-mobile-eta-card,
.containers-v24-mobile-event {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 8px;

    padding:
        9px
        10px;

    border:
        1px solid
        #dfe8f1;

    border-radius:
        11px;

    background:
        #f8fafc;
}


.containers-v24-mobile-eta-card > span:last-child,
.containers-v24-mobile-event > span:last-child {
    min-width: 0;

    display: grid;

    gap: 1px;
}


.containers-v24-mobile-eta-card small {
    color:
        #73869d;

    font-size: .61rem;
    font-weight: 800;
    text-transform: uppercase;
}


.containers-v24-mobile-eta-card strong {
    color:
        #0b487b;

    font-size: .75rem;
    font-weight: 900;
    line-height: 1.15;
}


.containers-v24-mobile-eta-card
> span:last-child
> span {
    color:
        #77899d;

    font-size: .61rem;
}


.containers-v24-mobile-eta-card--critical,
.containers-v24-mobile-eta-card--overdue {
    border-color:
        #fdba74;

    background:
        #fff4e8;

    color:
        #c74f00;
}


.containers-v24-mobile-eta-card--critical strong,
.containers-v24-mobile-eta-card--overdue strong {
    color:
        #bf4c00;
}


.containers-v24-mobile-eta-card--critical
> span:last-child
> span,
.containers-v24-mobile-eta-card--overdue
> span:last-child
> span {
    color:
        #dc6b19;
}


.containers-v24-mobile-eta-card--watch {
    border-color:
        #bfdbfe;

    background:
        #eff6ff;
}


.containers-v24-mobile-eta-card--arrived {
    border-color:
        #bbf7d0;

    background:
        #f0fdf4;
}


.containers-v24-mobile-event {
    color:
        #526d87;
}


.containers-v24-mobile-event
.containers-v24-event__icon {
    width: 25px;
    height: 25px;

    margin: 0;
}


.containers-v24-mobile-event strong {
    overflow-wrap: anywhere;

    color:
        var(
            --color-text,
            #172033
        );

    font-size: .69rem;
    font-weight: 900;
    line-height: 1.2;
}


.containers-v24-mobile-event small {
    overflow-wrap: anywhere;

    color:
        #718399;

    font-size: .62rem;
    line-height: 1.25;
}


.containers-v24-mobile-arrow {
    position: absolute;

    top: 50%;
    right: 5px;

    transform:
        translateY(-50%);

    color:
        #9caabd;

    font-size: 1.1rem;
}


@media (max-width: 520px) {

    .containers-v24-mobile-card {
        gap: 10px;

        padding:
            14px
            15px
            14px
            16px;
    }


    .containers-v24-mobile-card__top {
        gap: 8px;
    }


    .containers-v24-mobile-unit
    .containers-v24-unit__icon {
        width: 34px;
        height: 34px;
    }


    .containers-v24-mobile-unit
    .containers-v24-unit__icon svg {
        width: 19px;
        height: 19px;
    }


    .containers-v24-mobile-decision {
        gap: 7px;
    }


    .containers-v24-mobile-eta-card,
    .containers-v24-mobile-event {
        padding:
            8px
            8px;
    }
}


@media (max-width: 390px) {

    .containers-v24-mobile-decision {
        grid-template-columns:
            minmax(0, 1fr);
    }
}


/* ==========================================================
   CONTAINERS V2.3F-C1 - MOBILE GRID RESET
   Corrige l'héritage des deux colonnes de record-mobile-card.
   ========================================================== */

.containers-v24-mobile-card {
    grid-template-columns:
        minmax(0, 1fr);

    grid-template-areas:
        none;
}

.containers-v24-mobile-card
> :not(.containers-v24-mobile-arrow) {
    min-width: 0;
    width: 100%;
}

.containers-v24-mobile-card__top {
    grid-column:
        1 / -1;
}

.containers-v24-mobile-reference,
.containers-v24-mobile-route,
.containers-v24-mobile-phase,
.containers-v24-mobile-decision {
    grid-column:
        1 / -1;
}

.containers-v24-mobile-phase {
    width:
        auto;
}

@media (max-width: 390px) {

    .containers-v24-mobile-card__top {
        flex-wrap:
            wrap;
    }

    .containers-v24-mobile-unit {
        flex:
            1 1 190px;
    }
}


/* ==========================================================
   DASHBOARD V1.0B - OPERATIONAL COCKPIT
   ========================================================== */

.dashboard-v10 {
    display: grid;
    gap: 18px;
}

.dashboard-v10__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.dashboard-v10__eyebrow {
    margin: 0 0 4px;
    color: #2473ad;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.dashboard-v10__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px;
}

.dashboard-v10-kpis {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.dashboard-v10-kpi {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 13px;
    border: 1px solid #dce8f2;
    border-radius: 14px;
    background: #fff;
    color: #16283d;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(20, 61, 95, .06);
    transition: transform .18s ease, box-shadow .18s ease;
}

.dashboard-v10-kpi:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(20, 61, 95, .11);
}

.dashboard-v10-kpi > span:last-child {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.dashboard-v10-kpi strong {
    color: #0b4779;
    font-size: 1.55rem;
    line-height: 1;
}

.dashboard-v10-kpi b {
    font-size: .73rem;
    line-height: 1.2;
}

.dashboard-v10-kpi small {
    overflow: hidden;
    color: #74869a;
    font-size: .61rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-v10-kpi__icon {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #e9f5fd;
    color: #0878c9;
    font-size: 1.25rem;
    font-weight: 900;
}

.dashboard-v10-kpi--orange .dashboard-v10-kpi__icon,
.dashboard-v10-kpi--amber .dashboard-v10-kpi__icon,
.dashboard-v10-kpi--warning .dashboard-v10-kpi__icon {
    background: #fff2e3;
    color: #df6c0d;
}

.dashboard-v10-main {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 2.4fr) minmax(300px, .95fr);
    gap: 14px;
}

.dashboard-v10-panel {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dce7f0;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(18, 62, 98, .06);
}

.dashboard-v10-panel__header {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 15px;
    border-bottom: 1px solid #e5edf4;
}

.dashboard-v10-panel__header h2 {
    margin: 0;
    color: #123f69;
    font-size: .92rem;
}

.dashboard-v10-panel__header p {
    margin: 3px 0 0;
    color: #7b8da0;
    font-size: .66rem;
}

.dashboard-v10-panel-link,
.dashboard-v10-live-badge {
    flex: 0 0 auto;
    padding: 6px 9px;
    border: 1px solid #cfe3f5;
    border-radius: 999px;
    background: #f5faff;
    color: #176ca8;
    font-size: .65rem;
    font-weight: 800;
    text-decoration: none;
}

.dashboard-v10-map {
    height: 410px;
    background: #e8f4fa;
}

.dashboard-v10-map__loading,
.dashboard-v10-map__error {
    height: 100%;
    display: grid;
    place-content: center;
    gap: 5px;
    color: #55758f;
    text-align: center;
}

.dashboard-v10-map__error span {
    font-size: .75rem;
}

.dashboard-v10-map-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    padding: 9px 14px;
    color: #607991;
    font-size: .66rem;
}

.dashboard-v10-map-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.dashboard-v10-legend-line {
    width: 28px;
    border-top: 3px dashed #0878c9;
}

.dashboard-v10-legend-line--road {
    border-color: #e87516;
}

.dashboard-v10-map-marker {
    background: transparent;
    border: 0;
}

.dashboard-v10-map-marker span {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #0878c9;
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(8, 61, 101, .3);
}

.dashboard-v10-map-marker--vessel span {
    background: #075a9a;
    animation: dashboard-vessel-pulse 2.2s infinite;
}

.dashboard-v10-map-marker--destination span {
    background: #ed7515;
}

@keyframes dashboard-vessel-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(8, 120, 201, .35);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(8, 120, 201, 0);
    }
}

.dashboard-v10-popup {
    min-width: 180px;
    display: grid;
    gap: 3px;
}

.dashboard-v10-popup strong {
    color: #0c4676;
}

.dashboard-v10-popup span,
.dashboard-v10-popup small {
    color: #647d93;
}

.dashboard-v10-popup b {
    color: #e36a0b;
}

.dashboard-v10-alert-list {
    display: grid;
}

.dashboard-v10-alert {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 9px;
    padding: 12px 13px;
    border-bottom: 1px solid #e8eef4;
    color: #19334d;
    text-decoration: none;
}

.dashboard-v10-alert__icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #fff0df;
    color: #e46608;
    font-weight: 900;
}

.dashboard-v10-alert__copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.dashboard-v10-alert__copy strong {
    font-size: .74rem;
}

.dashboard-v10-alert__copy small {
    overflow: hidden;
    color: #71849a;
    font-size: .64rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-v10-alert__severity {
    padding: 4px 7px;
    border-radius: 999px;
    background: #fff0df;
    color: #d95d05;
    font-size: .59rem;
    font-weight: 800;
}

.dashboard-v10-alert--info .dashboard-v10-alert__icon,
.dashboard-v10-alert--info .dashboard-v10-alert__severity {
    background: #eaf5fd;
    color: #1374b5;
}

.dashboard-v10-empty {
    min-height: 220px;
    display: grid;
    place-content: center;
    gap: 5px;
    color: #55738c;
    text-align: center;
}

.dashboard-v10-empty > span {
    font-size: 2rem;
    color: #20966d;
}

.dashboard-v10-empty small {
    color: #8392a1;
}

.dashboard-v10-bottom {
    min-width: 0;
    display: grid;
    grid-template-columns:
        minmax(0, 1.7fr)
        minmax(250px, .8fr)
        minmax(280px, .9fr);
    gap: 14px;
}

.dashboard-v10-flow-table-wrap {
    overflow-x: auto;
}

.dashboard-v10-flow-table {
    width: 100%;
    border-collapse: collapse;
}

.dashboard-v10-flow-table th,
.dashboard-v10-flow-table td {
    padding: 9px 10px;
    border-bottom: 1px solid #e8eef4;
    text-align: left;
    vertical-align: middle;
}

.dashboard-v10-flow-table th {
    color: #71849a;
    background: #f7fafc;
    font-size: .58rem;
    text-transform: uppercase;
}

.dashboard-v10-flow-table td {
    font-size: .67rem;
}

.dashboard-v10-flow-table td > small,
.dashboard-v10-flow-table td > strong {
    display: block;
}

.dashboard-v10-flow-table td > small {
    margin-top: 2px;
    color: #7b8da0;
}

.dashboard-v10-reference {
    color: #1269a6;
    font-weight: 900;
    text-decoration: none;
}

.dashboard-v10-eta,
.dashboard-v10-telex,
.dashboard-v10-status {
    display: inline-flex;
    margin-top: 3px;
    padding: 4px 7px;
    border-radius: 999px;
    background: #eaf5fd;
    color: #116fae;
    font-size: .58rem;
    font-weight: 800;
}

.dashboard-v10-eta--urgent,
.dashboard-v10-telex--pending {
    background: #fff0df;
    color: #dd6208;
}

.dashboard-v10-status--planned {
    background: #fff0df;
    color: #d76308;
}

.dashboard-v10-distribution__body {
    display: grid;
    justify-items: center;
    gap: 18px;
    padding: 22px 16px;
}

.dashboard-v10-donut {
    width: 150px;
    height: 150px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
        conic-gradient(
            #0878c9 0 var(--sea),
            #f2a13a var(--sea)
                calc(var(--sea) + var(--preparation)),
            #e26c1b calc(var(--sea) + var(--preparation))
                calc(var(--sea) + var(--preparation) + var(--port)),
            #149b79 calc(var(--sea) + var(--preparation) + var(--port))
                calc(var(--sea) + var(--preparation) + var(--port) + var(--road)),
            #48a66d calc(var(--sea) + var(--preparation) + var(--port) + var(--road))
                100%
        );
}

.dashboard-v10-donut::before {
    content: "";
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: #fff;
}

.dashboard-v10-donut > span {
    position: absolute;
    display: grid;
    text-align: center;
}

.dashboard-v10-donut strong {
    color: #0c4778;
    font-size: 1.6rem;
}

.dashboard-v10-donut small {
    color: #75889d;
    font-size: .65rem;
}

.dashboard-v10-phase-list {
    width: 100%;
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dashboard-v10-phase-list li {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 7px;
    color: #61788f;
    font-size: .68rem;
}

.dashboard-v10-phase-list i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--phase-color);
}

.dashboard-v10-phase-list strong {
    color: #183b5c;
}

.dashboard-v10-action-list {
    display: grid;
}

.dashboard-v10-action {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 11px 13px;
    border-bottom: 1px solid #e8eef4;
    color: #1b3b58;
    text-decoration: none;
}

.dashboard-v10-action > span:first-child {
    color: #1680c3;
    font-size: 1.2rem;
}

.dashboard-v10-action > span:nth-child(2) {
    display: grid;
    gap: 2px;
}

.dashboard-v10-action strong {
    font-size: .7rem;
}

.dashboard-v10-action small {
    color: #75889d;
    font-size: .62rem;
}

.dashboard-v10-action b {
    padding: 4px 6px;
    border-radius: 999px;
    background: #fff0df;
    color: #d96007;
    font-size: .56rem;
}

@media (max-width: 1250px) {
    .dashboard-v10-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-v10-bottom {
        grid-template-columns: minmax(0, 1.5fr) minmax(250px, .8fr);
    }

    .dashboard-v10-actions-panel {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .dashboard-v10__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-v10__actions {
        justify-content: flex-start;
    }

    .dashboard-v10-main,
    .dashboard-v10-bottom {
        grid-template-columns: minmax(0, 1fr);
    }

    .dashboard-v10-actions-panel {
        grid-column: auto;
    }

    .dashboard-v10-map {
        height: 360px;
    }
}

@media (max-width: 600px) {
    .dashboard-v10 {
        gap: 13px;
    }

    .dashboard-v10__actions {
        display: grid;
        width: 100%;
        grid-template-columns: 1fr;
    }

    .dashboard-v10-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .dashboard-v10-kpi {
        align-items: flex-start;
        padding: 12px 10px;
    }

    .dashboard-v10-kpi__icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .dashboard-v10-kpi strong {
        font-size: 1.25rem;
    }

    .dashboard-v10-kpi small {
        display: none;
    }

    .dashboard-v10-map {
        height: 330px;
    }

    .dashboard-v10-map-legend {
        gap: 9px;
    }

    .dashboard-v10-alert {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .dashboard-v10-alert__severity {
        display: none;
    }

    .dashboard-v10-flow-table thead {
        display: none;
    }

    .dashboard-v10-flow-table,
    .dashboard-v10-flow-table tbody,
    .dashboard-v10-flow-table tr,
    .dashboard-v10-flow-table td {
        display: block;
        width: 100%;
    }

    .dashboard-v10-flow-table tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 12px;
        border-bottom: 1px solid #e5edf4;
    }

    .dashboard-v10-flow-table td {
        padding: 0;
        border: 0;
    }
}


/* ==========================================================
   DASHBOARD V1.0B1 - MOBILE MAP FIT
   ========================================================== */

@media (max-width: 600px) {

    .dashboard-v10-map .leaflet-control-zoom {
        margin-top: 12px;
        margin-left: 12px;
    }

    .dashboard-v10-map .leaflet-popup-content-wrapper {
        max-width: calc(100vw - 90px);
    }

    .dashboard-v10-map .leaflet-popup-content {
        width: auto !important;
        min-width: 190px;
        margin: 12px 14px;
    }
}


/* ==========================================================
   DASHBOARD V1.0B2 - MOBILE COMMAND CENTER
   ========================================================== */

.dashboard-v10-mobile-command {
    display: none;
}

.dashboard-v10 svg {
    box-sizing: border-box;
}

.dashboard-v10-kpi__icon svg {
    width: 23px;
    height: 23px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 600px) {

    .dashboard-v10 {
        gap: 13px;
    }

    .dashboard-v10__header {
        display: none;
    }

    .dashboard-v10-mobile-command {
        display: grid;
        gap: 13px;
        padding: 3px 0 0;
    }

    .dashboard-v10-mobile-command__heading {
        display: grid;
        gap: 3px;
    }

    .dashboard-v10-mobile-command__heading h2 {
        margin: 0;
        color: #102f56;
        font-size: 1.75rem;
        font-weight: 900;
        line-height: 1.05;
        letter-spacing: -.035em;
    }

    .dashboard-v10-mobile-command__heading p,
    .dashboard-v10-mobile-command__heading time {
        margin: 0;
        color: #6d86a1;
        font-size: .77rem;
        line-height: 1.35;
    }

    .dashboard-v10-mobile-command__heading time {
        font-weight: 600;
    }

    .dashboard-v10-mobile-search {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 46px;
        gap: 9px;
        margin: 0;
    }

    .dashboard-v10-mobile-search__field {
        min-width: 0;
        height: 46px;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 0 14px;
        border: 1px solid #cbddea;
        border-radius: 13px;
        background: rgba(255, 255, 255, .94);
        box-shadow: 0 5px 16px rgba(24, 76, 116, .06);
    }

    .dashboard-v10-mobile-search__field:focus-within {
        border-color: #1480c7;
        box-shadow: 0 0 0 3px rgba(20, 128, 199, .12);
    }

    .dashboard-v10-mobile-search__field svg,
    .dashboard-v10-mobile-filter svg {
        width: 21px;
        height: 21px;
        display: block;
        flex: 0 0 auto;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .dashboard-v10-mobile-search__field svg {
        color: #7591ab;
    }

    .dashboard-v10-mobile-search__field input {
        min-width: 0;
        width: 100%;
        height: auto;
        margin: 0;
        padding: 0;
        border: 0;
        outline: 0;
        background: transparent;
        color: #173a5c;
        font: inherit;
        font-size: .76rem;
        box-shadow: none;
    }

    .dashboard-v10-mobile-search__field input::placeholder {
        color: #8095aa;
        opacity: 1;
    }

    .dashboard-v10-mobile-filter {
        width: 46px;
        height: 46px;
        display: grid;
        place-items: center;
        border: 1px solid #cbddea;
        border-radius: 13px;
        background: #fff;
        color: #176ea8;
        box-shadow: 0 5px 16px rgba(24, 76, 116, .06);
        text-decoration: none;
    }

    .dashboard-v10-mobile-filter:active {
        transform: scale(.96);
    }

    .dashboard-v10-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 9px;
    }

    .dashboard-v10-kpi {
        position: relative;
        min-width: 0;
        min-height: 82px;
        align-items: center;
        gap: 8px;
        padding: 11px 19px 11px 9px;
        border-color: rgba(203, 221, 234, .9);
        border-radius: 14px;
        box-shadow: 0 7px 18px rgba(19, 67, 103, .07);
    }

    .dashboard-v10-kpi::after {
        content: "›";
        position: absolute;
        top: 50%;
        right: 7px;
        color: #347cad;
        font-size: 1.15rem;
        transform: translateY(-50%);
    }

    .dashboard-v10-kpi__icon {
        width: 39px;
        height: 39px;
        flex: 0 0 39px;
        display: grid;
        place-items: center;
        padding: 0;
        border-radius: 11px;
    }

    .dashboard-v10-kpi__icon svg {
        width: 24px;
        height: 24px;
        animation: dashboard-kpi-icon-float 2.8s ease-in-out infinite;
    }

    .dashboard-v10-kpi:nth-child(2) .dashboard-v10-kpi__icon svg {
        animation-delay: -.35s;
    }

    .dashboard-v10-kpi:nth-child(3) .dashboard-v10-kpi__icon svg {
        animation-delay: -.70s;
    }

    .dashboard-v10-kpi:nth-child(4) .dashboard-v10-kpi__icon svg {
        animation-delay: -1.05s;
    }

    .dashboard-v10-kpi:nth-child(5) .dashboard-v10-kpi__icon svg {
        animation-delay: -1.40s;
    }

    .dashboard-v10-kpi:nth-child(6) .dashboard-v10-kpi__icon svg {
        animation-delay: -1.75s;
    }

    .dashboard-v10-kpi > span:last-child {
        min-width: 0;
        padding: 0;
    }

    .dashboard-v10-kpi strong {
        font-size: 1.42rem;
    }

    .dashboard-v10-kpi b {
        font-size: .63rem;
        line-height: 1.05;
    }

    .dashboard-v10-kpi small {
        display: none;
    }

    .dashboard-v10-kpi--warning .dashboard-v10-kpi__icon {
        animation: dashboard-kpi-warning 2.3s ease-in-out infinite;
    }
}

@media (max-width: 430px) {

    .dashboard-v10-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-v10-kpi {
        min-height: 78px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .dashboard-v10-kpi__icon,
    .dashboard-v10-kpi__icon svg {
        animation: none !important;
    }
}

@keyframes dashboard-kpi-icon-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-2px);
    }
}

@keyframes dashboard-kpi-warning {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(230, 103, 8, 0);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(230, 103, 8, .10);
    }
}


/* ==========================================================
   DASHBOARD V1.0B3 - MOBILE HEADING VISIBILITY
   ========================================================== */

@media (max-width: 600px) {

    .dashboard-v10-mobile-command__heading {
        gap: 5px;
        padding: 4px 2px 2px;
    }

    .dashboard-v10-mobile-command__heading p {
        color: #345d82;
        font-size: .94rem;
        font-weight: 600;
        line-height: 1.35;
        letter-spacing: -.01em;
    }

    .dashboard-v10-mobile-command__heading time {
        color: #123f69;
        font-size: .88rem;
        font-weight: 800;
        line-height: 1.3;
    }
}

@media (max-width: 430px) {

    .dashboard-v10-mobile-command__heading p {
        font-size: .88rem;
    }

    .dashboard-v10-mobile-command__heading time {
        font-size: .84rem;
    }
}


/* ==========================================================
   DASHBOARD SHIPMENT DETAIL BRIDGE V1.0
   ========================================================== */

.dashboard-v10-flow-table tbody tr[
    data-dashboard-shipment-url
] {
    cursor: pointer;
    transition:
        background-color .16s ease,
        box-shadow .16s ease;
}

.dashboard-v10-flow-table tbody tr[
    data-dashboard-shipment-url
]:hover {
    background: #f2f8fd;
}

.dashboard-v10-flow-table tbody tr[
    data-dashboard-shipment-url
]:focus-visible {
    outline: 2px solid #0878c9;
    outline-offset: -2px;
}

.dashboard-v10-popup > a {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 7px;
    padding: 6px 10px;
    border-radius: 8px;
    background: #0b568d;
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
    text-decoration: none;
}

.dashboard-v10-popup > a:hover {
    background: #073f6a;
}

@media (max-width: 600px) {

    .dashboard-v10-flow-table tbody tr[
        data-dashboard-shipment-url
    ] {
        position: relative;
        padding-right: 28px;
    }

    .dashboard-v10-flow-table tbody tr[
        data-dashboard-shipment-url
    ]::after {
        content: "›";
        position: absolute;
        top: 50%;
        right: 11px;
        color: #1978b6;
        font-size: 1.25rem;
        transform: translateY(-50%);
    }
}


/* ==========================================================
   DASHBOARD POPUP ACTION CONTRAST V1.0
   Surcharge la couleur de lien imposée par Leaflet.
   ========================================================== */

.dashboard-v10-map
.leaflet-popup-content
.dashboard-v10-popup
> a,
.dashboard-v10-map
.leaflet-popup-content
.dashboard-v10-popup
> a:link,
.dashboard-v10-map
.leaflet-popup-content
.dashboard-v10-popup
> a:visited {
    width: 100%;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin-top: 8px;
    border: 1px solid #0b568d;
    border-radius: 8px;
    background: #0b568d;
    color: #fff;
    font-size: .75rem;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    text-decoration: none;
}

.dashboard-v10-map
.leaflet-popup-content
.dashboard-v10-popup
> a:hover,
.dashboard-v10-map
.leaflet-popup-content
.dashboard-v10-popup
> a:focus-visible {
    border-color: #073f6a;
    background: #073f6a;
    color: #fff;
}


/* ==========================================================
   DASHBOARD ACTIONABLE ALERTS V1.1
   ========================================================== */

.dashboard-v10-alert[href*="/logistics/shipments"] {
    border-left: 3px solid transparent;
}

.dashboard-v10-alert[href*="/logistics/shipments"]:hover {
    border-left-color: #0878c9;
    background: #f5faff;
}

.dashboard-v10-action {
    transition:
        background-color .16s ease,
        transform .16s ease;
}

.dashboard-v10-action:hover {
    background: #f5faff;
}

.dashboard-v10-action:active {
    transform: scale(.995);
}

.dashboard-v10-action > span:first-child {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border: 1.5px solid #1680c3;
    border-radius: 6px;
    font-size: 0;
}

.dashboard-v10-action > span:first-child::after {
    content: "→";
    color: #1680c3;
    font-size: .72rem;
    font-weight: 900;
}


/* =========================================================
   BUDGETS TEMA — GRILLE KPI
   ========================================================= */

.tema-budget-kpi-grid {
    grid-template-columns:
        repeat(
            5,
            minmax(0, 1fr)
        );
}

@media (max-width: 1180px) {
    .tema-budget-kpi-grid {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
    }
}

@media (max-width: 720px) {
    .tema-budget-kpi-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .tema-budget-kpi-grid
    .record-kpi-card:last-child {
        grid-column: 1 / -1;
    }
}


/* =========================================================
   BUDGET TEMA — FORMULAIRE WIZARD
   ========================================================= */

.tema-budget-create-page {
    max-width: 1480px;
    margin-inline: auto;
}

.tema-budget-wizard {
    overflow: hidden;
}

.tema-budget-items {
    display: grid;
    gap: 18px;
}

.tema-budget-item {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #f8fbfe 100%
        );
    box-shadow: none;
}

.tema-budget-item__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--color-border);
}

.tema-budget-item__header h3 {
    margin: 3px 0 0;
    color: var(--color-primary);
    font-size: 1rem;
}

.tema-budget-item .record-form-grid {
    padding: 20px;
}

.tema-budget-item__remove {
    min-height: 38px;
    padding: 8px 14px;
    color: #b42318;
}

.tema-budget-item__remove:disabled {
    visibility: hidden;
}

.tema-budget-item__total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 20px;
    border-top: 1px solid var(--color-border);
    background: #f5f9fd;
}

.tema-budget-item__total span {
    color: var(--color-text-muted);
    font-size: 0.84rem;
}

.tema-budget-item__total strong {
    color: var(--color-primary);
    font-size: 1rem;
}

.tema-budget-running-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 22px;
    padding: 20px 22px;
    border: 1px solid #b9dcf5;
    border-radius: 16px;
    background:
        linear-gradient(
            135deg,
            #edf7ff 0%,
            #ffffff 100%
        );
}

.tema-budget-running-total span {
    color: var(--color-text-muted);
    font-weight: 700;
}

.tema-budget-running-total strong {
    color: var(--color-primary);
    font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.tema-budget-review-grid {
    display: grid;
    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );
    gap: 14px;
}

.tema-budget-review-grid
.record-form-generated {
    min-height: 92px;
}

.tema-budget-review-summary {
    display: grid;
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );
    gap: 16px;
    margin-top: 22px;
}

.tema-budget-review-summary > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: #ffffff;
}

.tema-budget-review-summary span {
    color: var(--color-text-muted);
    font-weight: 700;
}

.tema-budget-review-summary strong {
    color: var(--color-primary);
    font-size: 1.12rem;
}

.tema-budget-review-summary
> div:last-child {
    border-color: #b9dcf5;
    background: #edf7ff;
}

.tema-budget-create-page
.alert {
    margin-bottom: 18px;
}

@media (max-width: 1050px) {
    .tema-budget-review-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }
}

@media (max-width: 720px) {
    .tema-budget-create-page
    .app-page-header__actions {
        width: 100%;
    }

    .tema-budget-create-page
    .app-page-header__actions
    .btn {
        flex: 1;
    }

    .tema-budget-item {
        border-radius: 14px;
    }

    .tema-budget-item__header,
    .tema-budget-item .record-form-grid,
    .tema-budget-item__total {
        padding-inline: 14px;
    }

    .tema-budget-item__header {
        align-items: flex-start;
    }

    .tema-budget-item__remove {
        min-width: auto;
    }

    .tema-budget-running-total {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .tema-budget-review-grid,
    .tema-budget-review-summary {
        grid-template-columns: 1fr;
    }

    .tema-budget-review-summary > div {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }
}


/* =========================================================
   BUDGETS TEMA — VISIBILITÉ RESPONSIVE
   ========================================================= */

.tema-budget-register
.record-desktop-view {
    display: block;
}

.tema-budget-register
.record-mobile-view {
    display: none;
}

@media (max-width: 760px) {
    .tema-budget-register
    .record-desktop-view {
        display: none;
    }

    .tema-budget-register
    .record-mobile-view {
        display: block;
    }
}


/* =========================================================
   BUDGET TEMA — PAGE DE DÉTAIL
   ========================================================= */

.tema-budget-detail-link {
    min-height: 36px;
    padding: 7px 12px;
    white-space: nowrap;
}

.tema-budget-mobile-link {
    color: inherit;
    text-decoration: none;
}

.tema-budget-mobile-link:hover,
.tema-budget-mobile-link:focus-visible {
    border-color: #8fc8ed;
    box-shadow: 0 8px 22px rgba(16, 80, 122, .12);
}

.tema-budget-detail-page {
    max-width: 1480px;
    margin-inline: auto;
}

.tema-budget-detail-hero {
    margin-bottom: 18px;
    overflow: hidden;
}

.tema-budget-detail-hero__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.tema-budget-detail-hero__heading > div > span,
.tema-budget-detail-kpis span {
    display: block;
    color: var(--color-text-muted);
    font-size: .78rem;
    font-weight: 700;
}

.tema-budget-detail-hero__heading strong {
    display: block;
    margin-top: 5px;
    color: var(--color-primary);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.tema-budget-detail-kpis {
    display: grid;
    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );
    gap: 12px;
    margin-top: 20px;
}

.tema-budget-detail-kpis > div {
    min-width: 0;
    padding: 15px;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: #f8fbfe;
}

.tema-budget-detail-kpis strong {
    display: block;
    margin-top: 5px;
    color: var(--color-primary);
    overflow-wrap: anywhere;
}

.tema-budget-detail-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1.65fr)
        minmax(300px, .8fr);
    gap: 18px;
    align-items: start;
}

.tema-budget-detail-main,
.tema-budget-detail-sidebar {
    min-width: 0;
}

.tema-budget-detail-table tfoot th {
    border-top: 2px solid var(--color-border);
    color: var(--color-primary);
    background: #f5f9fd;
}

.tema-budget-detail-actions {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.tema-budget-detail-actions .btn {
    width: 100%;
    justify-content: center;
}

.tema-budget-detail-actions .is-disabled {
    cursor: not-allowed;
    opacity: .56;
    pointer-events: none;
}

@media (max-width: 980px) {
    .tema-budget-detail-layout {
        grid-template-columns: 1fr;
    }

    .tema-budget-detail-kpis {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }
}

@media (max-width: 620px) {
    .tema-budget-detail-page
    .app-page-header__actions {
        width: 100%;
    }

    .tema-budget-detail-page
    .app-page-header__actions
    .btn {
        width: 100%;
    }

    .tema-budget-detail-hero__heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .tema-budget-detail-kpis {
        grid-template-columns: 1fr;
    }

    .tema-budget-detail-table
    th:nth-child(2),
    .tema-budget-detail-table
    td:nth-child(2) {
        display: none;
    }
}


/* =========================================================
   BUDGET TEMA — TABLEAU DÉTAIL RESPONSIVE
   ========================================================= */

.tema-budget-detail-main
.data-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.tema-budget-detail-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.tema-budget-detail-table
th:nth-child(1),
.tema-budget-detail-table
td:nth-child(1) {
    width: 49%;
}

.tema-budget-detail-table
th:nth-child(2),
.tema-budget-detail-table
td:nth-child(2) {
    width: 13%;
}

.tema-budget-detail-table
th:nth-child(3),
.tema-budget-detail-table
td:nth-child(3) {
    width: 19%;
}

.tema-budget-detail-table
th:nth-child(4),
.tema-budget-detail-table
td:nth-child(4) {
    width: 19%;
}

.tema-budget-detail-table
th,
.tema-budget-detail-table
td {
    min-width: 0;
    overflow-wrap: anywhere;
}

.tema-budget-detail-table
th:nth-child(n + 2),
.tema-budget-detail-table
td:nth-child(n + 2) {
    text-align: right;
}

.tema-budget-detail-table
.record-table-identity {
    min-width: 0;
}

.tema-budget-detail-table
.record-table-identity strong,
.tema-budget-detail-table
.record-table-identity span {
    overflow-wrap: anywhere;
}

@media (max-width: 620px) {
    .tema-budget-detail-main
    .data-table-wrap {
        overflow: visible;
    }

    .tema-budget-detail-table {
        display: block;
    }

    .tema-budget-detail-table
    thead {
        display: none;
    }

    .tema-budget-detail-table
    tbody {
        display: grid;
        gap: 12px;
        padding: 12px;
    }

    .tema-budget-detail-table
    tbody tr {
        display: grid;
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
        overflow: hidden;
        border: 1px solid var(--color-border);
        border-radius: 13px;
        background: #fff;
    }

    .tema-budget-detail-table
    tbody td {
        display: block;
        width: auto !important;
        padding: 12px;
        border: 0;
        text-align: left;
    }

    .tema-budget-detail-table
    tbody td:first-child {
        grid-column: 1 / -1;
        border-bottom: 1px solid var(--color-border);
        background: #f8fbfe;
    }

    .tema-budget-detail-table
    tbody td:nth-child(2),
    .tema-budget-detail-table
    tbody td:nth-child(3) {
        display: block;
    }

    .tema-budget-detail-table
    tbody td:nth-child(2)::before,
    .tema-budget-detail-table
    tbody td:nth-child(3)::before,
    .tema-budget-detail-table
    tbody td:nth-child(4)::before {
        display: block;
        margin-bottom: 5px;
        color: var(--color-text-muted);
        font-size: .68rem;
        font-weight: 750;
        text-transform: uppercase;
    }

    .tema-budget-detail-table
    tbody td:nth-child(2)::before {
        content: "Quantité";
    }

    .tema-budget-detail-table
    tbody td:nth-child(3)::before {
        content: "Prix unitaire";
    }

    .tema-budget-detail-table
    tbody td:nth-child(4) {
        grid-column: 1 / -1;
        border-top: 1px solid var(--color-border);
        color: var(--color-primary);
        background: #edf7ff;
    }

    .tema-budget-detail-table
    tbody td:nth-child(4)::before {
        content: "Total demandé";
    }

    .tema-budget-detail-table
    tfoot {
        display: block;
        padding:
            0
            12px
            12px;
    }

    .tema-budget-detail-table
    tfoot tr {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 14px;
        border: 1px solid #b9dcf5;
        border-radius: 13px;
        background: #edf7ff;
    }

    .tema-budget-detail-table
    tfoot th {
        display: block;
        width: auto;
        padding: 0;
        border: 0;
        text-align: left;
        background: transparent;
    }
}

/* ==========================================================
   BADICOM ALERT CENTER V1.2F FIXED FOOTER
   Header and footer remain visible.
   Only the modal business content scrolls.
   ========================================================== */

[data-alert-center-modal]
.alert-center-modal__panel {
    display:
        flex;

    flex-direction:
        column;

    height:
        min(
            86dvh,
            820px
        );

    max-height:
        min(
            86dvh,
            820px
        );

    overflow:
        hidden;
}


[data-alert-center-modal]
.record-modal__header--premium {
    flex:
        0
        0
        auto;

    position:
        relative;

    z-index:
        5;

    background:
        #ffffff;
}


[data-alert-center-modal]
.record-modal__body--premium {
    flex:
        1
        1
        auto;

    min-height:
        0;

    max-height:
        none;

    overflow-x:
        hidden;

    overflow-y:
        auto;

    overscroll-behavior:
        contain;
}


[data-alert-center-modal]
.alert-center-modal__footer {
    flex:
        0
        0
        auto;

    position:
        relative;

    z-index:
        8;

    width:
        100%;

    box-sizing:
        border-box;

    border-top:
        1px solid
        var(
            --color-border,
            #dce3ec
        );

    background:
        #ffffff;

    box-shadow:
        0
        -10px
        24px
        rgb(
            15
            23
            42
            /
            0.08
        );
}


[data-alert-center-modal]
.alert-center-modal__footer-actions {
    width:
        100%;
}


[data-alert-center-modal]
.alert-center-modal__primary-actions
.btn,
[data-alert-center-modal]
.alert-center-modal__footer-actions
> .btn {
    min-height:
        44px;
}


[data-alert-center-modal]
[data-alert-center-action-link] {
    border:
        1px solid
        #8fb4d8;

    background:
        #edf6ff;

    color:
        #0b4f85;

    font-weight:
        800;

    box-shadow:
        inset
        0
        0
        0
        1px
        rgb(
            255
            255
            255
            /
            0.65
        );
}


[data-alert-center-modal]
[data-alert-center-action-link]:hover,
[data-alert-center-modal]
[data-alert-center-action-link]:focus-visible {
    border-color:
        #3f82bb;

    background:
        #dceeff;

    color:
        #073b67;
}


@media (max-width: 760px) {

    [data-alert-center-modal]
    .alert-center-modal__panel {
        width:
            100%;

        height:
            92dvh;

        max-height:
            92dvh;
    }


    [data-alert-center-modal]
    .alert-center-modal__footer {
        padding:
            10px
            14px
            max(
                10px,
                env(
                    safe-area-inset-bottom
                )
            );
    }


    [data-alert-center-modal]
    .alert-center-modal__footer-actions {
        display:
            grid;

        grid-template-columns:
            minmax(
                0,
                1fr
            );

        gap:
            8px;
    }


    [data-alert-center-modal]
    .alert-center-modal__footer-actions
    > .btn {
        width:
            100%;

        min-width:
            0;

        margin:
            0;
    }


    [data-alert-center-modal]
    .alert-center-modal__primary-actions {
        display:
            grid;

        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            );

        width:
            100%;

        margin:
            0;

        gap:
            8px;
    }


    [data-alert-center-modal]
    [data-alert-center-action-link] {
        grid-column:
            1
            /
            -1;

        width:
            100%;
    }


    [data-alert-center-modal]
    .alert-center-modal__read-form,
    [data-alert-center-modal]
    .alert-center-modal__ack-form,
    [data-alert-center-modal]
    .alert-center-modal__resolve-form {
        width:
            100%;

        min-width:
            0;

        margin:
            0;
    }


    [data-alert-center-modal]
    .alert-center-modal__read-button,
    [data-alert-center-modal]
    .alert-center-modal__ack-button,
    [data-alert-center-modal]
    .alert-center-modal__resolve-button {
        width:
            100%;

        min-width:
            0;

        margin:
            0;

        padding-right:
            10px;

        padding-left:
            10px;

        white-space:
            normal;
    }

}


@media (max-width: 390px) {

    [data-alert-center-modal]
    .alert-center-modal__footer {
        padding-right:
            10px;

        padding-left:
            10px;
    }

}

/*
 * ==========================================================
 * BADICOM FINANCE V1.0A
 * Centre opérationnel des demandes, validations et paiements
 * ==========================================================
 */

.finance-v1 {
    display: grid;
    gap: 18px;
    padding: 28px;
    color: #10233f;
    background:
        radial-gradient(
            circle at 12% 4%,
            rgba(43, 142, 211, 0.12),
            transparent 24rem
        ),
        #eaf6fc;
    min-height: calc(100vh - 70px);
}

.finance-v1__hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.finance-v1__hero-main {
    display: flex;
    align-items: center;
    gap: 16px;
}

.finance-v1__code,
.finance-v1__kpi-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #083765;
    border: 1px solid #bfdcf0;
    background: #f8fcff;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.finance-v1__code {
    width: 52px;
    height: 44px;
    border-radius: 9px;
    font-size: 12px;
}

.finance-v1__eyebrow {
    margin: 0 0 4px;
    color: #1372b5;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.finance-v1 h1,
.finance-v1 h2,
.finance-v1 p {
    margin-top: 0;
}

.finance-v1 h1 {
    margin-bottom: 4px;
    font-size: clamp(26px, 3vw, 34px);
}

.finance-v1 h2 {
    margin-bottom: 4px;
    font-size: 18px;
}

.finance-v1__subtitle,
.finance-v1__records-header p,
.finance-v1__workflow header p {
    margin-bottom: 0;
    color: #607794;
}

.finance-v1__mode,
.finance-v1__result-count {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border: 1px solid #b9d9ef;
    border-radius: 999px;
    color: #0b5f9e;
    background: #f7fcff;
    font-size: 12px;
    font-weight: 700;
}

.finance-v1__kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.finance-v1__kpi {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 108px;
    padding: 18px;
    border: 1px solid #d9e5ef;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(20, 66, 102, 0.07);
}

.finance-v1__kpi-icon {
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 13px;
    font-size: 10px;
}

.finance-v1__kpi strong,
.finance-v1__kpi span,
.finance-v1__kpi small {
    display: block;
}

.finance-v1__kpi strong {
    font-size: 25px;
}

.finance-v1__kpi span {
    margin-top: 2px;
    font-weight: 700;
}

.finance-v1__kpi small {
    margin-top: 3px;
    color: #71859e;
}

.finance-v1__kpi.is-attention .finance-v1__kpi-icon {
    color: #af5200;
    background: #fff3e8;
}

.finance-v1__kpi.is-revision .finance-v1__kpi-icon {
    color: #9f2438;
    background: #ffedf0;
}

.finance-v1__kpi.is-approved .finance-v1__kpi-icon {
    color: #087352;
    background: #e9f8f2;
}

.finance-v1__kpi.is-paid .finance-v1__kpi-icon {
    color: #075eaa;
    background: #eaf5ff;
}

.finance-v1__amounts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid #d9e5ef;
    border-radius: 16px;
    background: #fff;
}

.finance-v1__amounts article {
    padding: 18px 20px;
    border-right: 1px solid #d9e5ef;
}

.finance-v1__amounts article:last-child {
    border-right: 0;
}

.finance-v1__amounts span,
.finance-v1__amounts strong {
    display: block;
}

.finance-v1__amounts span {
    margin-bottom: 8px;
    color: #607794;
    font-size: 12px;
}

.finance-v1__amounts strong {
    color: #07396b;
    font-size: 20px;
}

.finance-v1__amounts .is-balance {
    background: #f5faff;
}

.finance-v1__workflow,
.finance-v1__records {
    overflow: hidden;
    border: 1px solid #d9e5ef;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(20, 66, 102, 0.05);
}

.finance-v1__workflow > header,
.finance-v1__records-header {
    padding: 18px 20px;
    border-bottom: 1px solid #d9e5ef;
}

.finance-v1__workflow-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.finance-v1__workflow-grid > div {
    position: relative;
    display: grid;
    gap: 4px;
    padding: 18px 20px;
    border-right: 1px solid #d9e5ef;
}

.finance-v1__workflow-grid > div:last-child {
    border-right: 0;
}

.finance-v1__workflow-grid span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-bottom: 5px;
    border-radius: 9px;
    color: #fff;
    background: #082f5b;
    font-size: 11px;
    font-weight: 800;
}

.finance-v1__workflow-grid small {
    color: #6b8099;
}

.finance-v1__records-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.finance-v1__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid #d9e5ef;
    background: #fbfdff;
}

.finance-v1__search {
    flex: 1 1 360px;
    max-width: 520px;
}

.finance-v1__search input {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #c9d9e7;
    border-radius: 10px;
    color: #10233f;
    background: #fff;
    font: inherit;
}

.finance-v1__search input:focus {
    outline: 3px solid rgba(32, 132, 202, 0.15);
    border-color: #2589cf;
}

.finance-v1__filters {
    display: flex;
    gap: 7px;
    overflow-x: auto;
}

.finance-v1__filters button {
    min-height: 38px;
    padding: 7px 12px;
    border: 1px solid #c9d9e7;
    border-radius: 999px;
    color: #37506f;
    background: #fff;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.finance-v1__filters button.is-active {
    color: #fff;
    border-color: #0b4b83;
    background: #0b4b83;
}

.finance-v1__table-wrap {
    overflow-x: auto;
}

.finance-v1__table {
    width: 100%;
    border-collapse: collapse;
}

.finance-v1__table th,
.finance-v1__table td {
    padding: 14px 15px;
    border-bottom: 1px solid #dfe8f0;
    text-align: left;
    vertical-align: middle;
}

.finance-v1__table th {
    color: #506784;
    background: #f5f8fb;
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.finance-v1__table td {
    font-size: 13px;
}

.finance-v1__table td strong,
.finance-v1__table td small {
    display: block;
}

.finance-v1__table td small {
    margin-top: 4px;
    color: #6b8099;
}

.finance-v1__status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.finance-v1__status.is-submitted {
    color: #a65000;
    background: #fff1df;
}

.finance-v1__status.is-approved {
    color: #087352;
    background: #e7f8f1;
}

.finance-v1__status.is-paid {
    color: #075eaa;
    background: #e8f4ff;
}

.finance-v1__status.is-rejected {
    color: #a1283b;
    background: #ffedf0;
}

.finance-v1__status.is-cancelled,
.finance-v1__status.is-neutral {
    color: #586b83;
    background: #eef3f7;
}

.finance-v1__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid #0b4b83;
    border-radius: 9px;
    color: #fff;
    background: #0b4b83;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.finance-v1__action:hover {
    color: #fff;
    background: #073863;
}

.finance-v1__mobile-list {
    display: none;
}

.finance-v1__empty {
    padding: 40px 20px;
    text-align: center;
}

.finance-v1__empty strong {
    display: block;
    margin-bottom: 6px;
}

.finance-v1__empty p {
    margin-bottom: 0;
    color: #6b8099;
}

.finance-v1 [hidden] {
    display: none !important;
}

@media (max-width: 1180px) {
    .finance-v1__kpis,
    .finance-v1__amounts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .finance-v1__amounts article:nth-child(2) {
        border-right: 0;
    }

    .finance-v1__amounts article:nth-child(-n + 2) {
        border-bottom: 1px solid #d9e5ef;
    }

    .finance-v1__workflow-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .finance-v1__workflow-grid > div:nth-child(2) {
        border-right: 0;
    }

    .finance-v1__workflow-grid > div:nth-child(-n + 2) {
        border-bottom: 1px solid #d9e5ef;
    }
}

@media (max-width: 760px) {
    .finance-v1 {
        gap: 14px;
        padding: 18px 14px 28px;
    }

    .finance-v1__hero,
    .finance-v1__toolbar,
    .finance-v1__records-header {
        align-items: stretch;
        flex-direction: column;
    }

    .finance-v1__hero {
        display: flex;
    }

    .finance-v1__mode {
        align-self: flex-start;
    }

    .finance-v1__kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .finance-v1__kpi {
        align-items: flex-start;
        min-height: 130px;
        padding: 14px 12px;
    }

    .finance-v1__kpi-icon {
        width: 38px;
        height: 38px;
    }

    .finance-v1__kpi strong {
        font-size: 22px;
    }

    .finance-v1__kpi span {
        font-size: 13px;
    }

    .finance-v1__amounts,
    .finance-v1__workflow-grid {
        grid-template-columns: 1fr;
    }

    .finance-v1__amounts article,
    .finance-v1__workflow-grid > div {
        border-right: 0;
        border-bottom: 1px solid #d9e5ef;
    }

    .finance-v1__amounts article:last-child,
    .finance-v1__workflow-grid > div:last-child {
        border-bottom: 0;
    }

    .finance-v1__toolbar {
        padding: 14px;
    }

    .finance-v1__search {
        flex-basis: auto;
        max-width: none;
    }

    .finance-v1__filters {
        width: 100%;
        padding-bottom: 2px;
    }

    .finance-v1__table-wrap {
        display: none;
    }

    .finance-v1__mobile-list {
        display: grid;
        gap: 12px;
        padding: 14px;
    }

    .finance-v1__mobile-record {
        overflow: hidden;
        border: 1px solid #d5e1eb;
        border-radius: 13px;
        background: #fff;
    }

    .finance-v1__mobile-record > header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 10px;
        padding: 14px;
        border-bottom: 1px solid #dfe8f0;
    }

    .finance-v1__mobile-record header strong,
    .finance-v1__mobile-record header small {
        display: block;
    }

    .finance-v1__mobile-record header strong {
        overflow-wrap: anywhere;
    }

    .finance-v1__mobile-record header small {
        margin-top: 5px;
        color: #6b8099;
    }

    .finance-v1__mobile-values {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .finance-v1__mobile-values > div {
        padding: 14px;
        border-right: 1px solid #dfe8f0;
    }

    .finance-v1__mobile-values > div:last-child {
        border-right: 0;
    }

    .finance-v1__mobile-values span,
    .finance-v1__mobile-values strong {
        display: block;
    }

    .finance-v1__mobile-values span {
        margin-bottom: 5px;
        color: #6b8099;
        font-size: 12px;
    }

    .finance-v1__mobile-record .finance-v1__action {
        display: flex;
        margin: 12px;
    }
}

@media (max-width: 430px) {
    .finance-v1__hero-main {
        align-items: flex-start;
    }

    .finance-v1__code {
        width: 44px;
    }

    .finance-v1__kpis {
        grid-template-columns: 1fr;
    }

    .finance-v1__kpi {
        min-height: 100px;
    }

    .finance-v1__mobile-record > header,
    .finance-v1__mobile-values {
        grid-template-columns: 1fr;
    }

    .finance-v1__mobile-record > header {
        display: grid;
    }

    .finance-v1__mobile-values > div {
        border-right: 0;
        border-bottom: 1px solid #dfe8f0;
    }

    .finance-v1__mobile-values > div:last-child {
        border-bottom: 0;
    }
}

/*
 * ==========================================================
 * BADICOM FINANCE V1.0B
 * Vue transversale et icônes opérationnelles
 * ==========================================================
 */

.finance-v1__kpi-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.finance-v1__source {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 8px;
    color: #075a98;
    background: #eaf5fd;
    font-size: 11px;
    font-weight: 800;
}

.finance-v1__rate-missing {
    color: #a75a13;
    font-size: 12px;
    font-weight: 800;
}

.finance-v1__records {
    margin-top: 2px;
}

.finance-v1__mobile-values {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.finance-v1__mobile-values > div:nth-child(2) {
    border-right: 1px solid #dfe8f0;
}

@media (max-width: 760px) {
    .finance-v1__records {
        margin-top: 0;
    }

    .finance-v1__kpi-icon {
        box-shadow:
            inset 0 0 0 1px rgba(255, 255, 255, 0.65),
            0 7px 18px rgba(18, 82, 132, 0.10);
    }
}

@media (max-width: 520px) {
    .finance-v1__mobile-values {
        grid-template-columns: 1fr;
    }

    .finance-v1__mobile-values > div,
    .finance-v1__mobile-values > div:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid #dfe8f0;
    }

    .finance-v1__mobile-values > div:last-child {
        border-bottom: 0;
    }
}

/*
 * ==========================================================
 * TEMA BUDGET EXCHANGE RATE V1.0
 * ==========================================================
 */

.tema-budget-rate-field[hidden],
.tema-budget-rate-preview[hidden] {
    display: none !important;
}

.tema-budget-rate-field {
    grid-column: 1 / -1;
    padding: 18px;
    border: 1px solid #cfe0ed;
    border-radius: 13px;
    background: #f8fcff;
}

.tema-budget-rate-input {
    display: grid;
    grid-template-columns:
        auto auto minmax(180px, 320px) auto;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.tema-budget-rate-input > span {
    color: #39536f;
    font-weight: 700;
    white-space: nowrap;
}

.tema-budget-rate-input__xof {
    color: #063b70 !important;
    font-weight: 800 !important;
}

.tema-budget-rate-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 14px;
    padding: 13px 15px;
    border: 1px solid #b9d9ef;
    border-radius: 10px;
    color: #25445f;
    background: #ebf7ff;
}

.tema-budget-rate-preview strong {
    color: #063b70;
    font-size: 18px;
}

@media (max-width: 640px) {
    .tema-budget-rate-input {
        grid-template-columns:
            auto auto minmax(0, 1fr) auto;
    }

    .tema-budget-rate-preview {
        align-items: flex-start;
        flex-direction: column;
    }
}

/*
 * ==========================================================
 * TEMA BUDGET REVIEW XOF V1.0
 * ==========================================================
 */

.tema-budget-review-conversion {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    overflow: hidden;
    margin-top: 14px;
    border: 1px solid #b8d8ee;
    border-radius: 13px;
    background: #ffffff;
}

.tema-budget-review-conversion__item {
    display: flex;
    min-width: 0;
    min-height: 86px;
    padding: 17px 20px;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    border-right: 1px solid #d4e2ec;
}

.tema-budget-review-conversion__item:last-child {
    border-right: 0;
}

.tema-budget-review-conversion__item span {
    color: #5a7190;
    font-size: 14px;
}

.tema-budget-review-conversion__item strong {
    color: #082f5b;
    font-size: 17px;
    line-height: 1.35;
}

.tema-budget-review-conversion__item--primary {
    background: #ebf7ff;
}

.tema-budget-review-conversion__item--primary strong {
    color: #005b9f;
    font-size: 21px;
}

.tema-budget-review-conversion--warning {
    border-color: #efc582;
}

.tema-budget-review-conversion--warning
.tema-budget-review-conversion__item--primary {
    background: #fff7e9;
}

.tema-budget-review-conversion--warning strong {
    color: #a65300;
}

@media (max-width: 760px) {
    .tema-budget-review-conversion {
        grid-template-columns: 1fr;
    }

    .tema-budget-review-conversion__item {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid #d4e2ec;
    }

    .tema-budget-review-conversion__item:last-child {
        border-bottom: 0;
    }
}

/*
 * ==========================================================
 * TEMA BUDGET DETAIL XOF V1.0
 * ==========================================================
 */

.tema-budget-detail-xof {
    background: #ebf7ff;
}

.tema-budget-detail-xof strong {
    color: #005b9f;
    font-size: 18px;
}

.tema-budget-detail-rate {
    background: #f8fbfe;
}

.tema-budget-detail-rate strong {
    color: #082f5b;
}

@media (max-width: 760px) {
    .tema-budget-detail-xof strong {
        font-size: 17px;
    }
}

/*
 * TEMA DG REVIEW UI V1.1C
 */
.tema-budget-review-feedback {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 0 0 1rem;
    padding: 0.9rem 1rem;
}

.tema-budget-review-feedback strong {
    flex: 0 0 auto;
}

.tema-budget-review-form {
    width: 100%;
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #c8d8e8;
    border-radius: 14px;
    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f7fbff 100%
        );
}

.tema-budget-review-form__heading {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.tema-budget-review-form__heading h4 {
    margin: 0;
    color: #071f3d;
    font-size: 1rem;
    line-height: 1.3;
}

.tema-budget-review-form__heading p {
    margin: 0.2rem 0 0;
    color: #617792;
    font-size: 0.875rem;
    line-height: 1.45;
}

.tema-budget-review-form__icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: #092d55;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.tema-budget-review-form__grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);
    gap: 1rem;
}

.tema-budget-review-form .form-field {
    display: grid;
    align-content: start;
    gap: 0.45rem;
    margin: 0;
}

.tema-budget-review-form .form-field > span {
    color: #243b58;
    font-size: 0.86rem;
    font-weight: 700;
}

.tema-budget-review-form .form-field b {
    color: #b42318;
}

.tema-budget-review-form select,
.tema-budget-review-form input,
.tema-budget-review-form textarea {
    width: 100%;
    border: 1px solid #c7d5e5;
    border-radius: 9px;
    background: #ffffff;
    color: #071f3d;
    font: inherit;
}

.tema-budget-review-form select,
.tema-budget-review-form input {
    min-height: 46px;
    padding: 0.65rem 0.8rem;
}

.tema-budget-review-form textarea {
    min-height: 104px;
    padding: 0.75rem 0.8rem;
    resize: vertical;
}

.tema-budget-review-form select:focus,
.tema-budget-review-form input:focus,
.tema-budget-review-form textarea:focus {
    outline: 3px solid rgba(23, 124, 203, 0.14);
    border-color: #177ccb;
}

.tema-budget-review-form .form-field small {
    color: #6b7f97;
    font-size: 0.76rem;
    line-height: 1.4;
}

.tema-budget-review-form .form-field.is-disabled {
    opacity: 0.55;
}

.tema-budget-review-form__notes {
    grid-column: 1 / -1;
}

.tema-budget-review-form__notice {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid #b9dcfa;
    border-radius: 10px;
    background: #eaf6ff;
    color: #075394;
    font-size: 0.82rem;
    line-height: 1.45;
}

.tema-budget-review-form__notice strong {
    flex: 0 0 auto;
}

.tema-budget-review-form__submit {
    width: 100%;
    min-height: 46px;
}

.tema-budget-review-form__submit--revision {
    background: #a54b00;
    border-color: #a54b00;
}

.tema-budget-review-form__submit--revision:hover {
    background: #823b00;
    border-color: #823b00;
}

@media (max-width: 720px) {
    .tema-budget-review-feedback {
        display: grid;
        gap: 0.25rem;
    }

    .tema-budget-review-form {
        padding: 0.9rem;
    }

    .tema-budget-review-form__grid {
        grid-template-columns: 1fr;
    }

    .tema-budget-review-form__notes {
        grid-column: auto;
    }

    .tema-budget-review-form__notice {
        display: grid;
        gap: 0.25rem;
    }

    .tema-budget-review-form__notice strong {
        flex-basis: auto;
    }
}

/*
 * TEMA FINANCE CONTEXT SEPARATION V1.1D
 */
.tema-budget-workflow-progress {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.95rem 1rem;
    border: 1px solid #b8d9f5;
    border-radius: 12px;
    background: #edf7ff;
    color: #074f8d;
}

.tema-budget-workflow-progress__icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #0a4f88;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 800;
}

.tema-budget-workflow-progress strong {
    display: block;
    margin: 0 0 0.2rem;
    color: #073b6a;
}

.tema-budget-workflow-progress p {
    margin: 0;
    color: #356587;
    font-size: 0.86rem;
    line-height: 1.5;
}

@media (max-width: 720px) {
    .tema-budget-workflow-progress {
        padding: 0.9rem;
    }
}

/*
 * TEMA PAYMENT UI V1.2B
 */

.tema-payment-feedback {
    display: grid;
    gap: 0.25rem;
    width: 100%;
}

.tema-payment-form,
.tema-payment-history {
    display: grid;
    gap: 1rem;
    width: 100%;
    padding: 1rem;
    border: 1px solid #bfd6ec;
    border-radius: 1rem;
    background: #fff;
}

.tema-payment-form__heading,
.tema-payment-history__heading {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.tema-payment-form__heading h4,
.tema-payment-history__heading h4 {
    margin: 0;
    color: #081a32;
    font-size: 1.05rem;
}

.tema-payment-form__heading p,
.tema-payment-history__heading p {
    margin: 0.25rem 0 0;
    color: #607493;
    line-height: 1.45;
}

.tema-payment-form__icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.8rem;
    background: #0a315c;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
}

.tema-payment-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid #d6e2ee;
    border-radius: 0.8rem;
    background: #f8fbfe;
}

.tema-payment-summary > div {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
    padding: 0.85rem;
    border-right: 1px solid #d6e2ee;
}

.tema-payment-summary > div:last-child {
    border-right: 0;
}

.tema-payment-summary span {
    color: #607493;
    font-size: 0.78rem;
}

.tema-payment-summary strong {
    color: #082c52;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.tema-payment-summary__balance {
    background: #eaf6ff;
}

.tema-payment-summary__balance strong {
    color: #0064ad;
}

.tema-payment-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.tema-payment-form__wide {
    grid-column: 1 / -1;
}

.tema-payment-form textarea {
    min-height: 6rem;
    resize: vertical;
}

.tema-payment-conversion {
    display: grid;
    gap: 0.35rem;
    padding: 0.9rem 1rem;
    border: 1px solid #abd5f7;
    border-radius: 0.75rem;
    background: #edf8ff;
}

.tema-payment-conversion > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.tema-payment-conversion span,
.tema-payment-conversion small {
    color: #466788;
}

.tema-payment-conversion strong {
    color: #005fa8;
    font-size: 1.05rem;
}

.tema-payment-form__notice {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid #b8d9f7;
    border-radius: 0.7rem;
    background: #eaf6ff;
    color: #00579d;
    line-height: 1.4;
}

.tema-payment-form__submit {
    width: 100%;
}

.tema-payment-form__submit:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.tema-payment-rate-warning {
    display: grid;
    gap: 0.25rem;
}

.tema-payment-history {
    margin-top: 0.25rem;
}

.tema-payment-history__list {
    display: grid;
    gap: 0.75rem;
}

.tema-payment-entry {
    display: grid;
    gap: 0.8rem;
    padding: 0.9rem;
    border: 1px solid #d7e2ed;
    border-radius: 0.75rem;
    background: #f9fbfd;
}

.tema-payment-entry__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.tema-payment-entry__top > div {
    display: grid;
    gap: 0.2rem;
}

.tema-payment-entry__top span {
    color: #607493;
    font-size: 0.78rem;
}

.tema-payment-entry__amount {
    color: #08744f;
    text-align: right;
}

.tema-payment-entry__details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 0;
}

.tema-payment-entry__details > div {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.tema-payment-entry__details dt {
    color: #607493;
    font-size: 0.72rem;
}

.tema-payment-entry__details dd {
    margin: 0;
    color: #10233e;
    font-size: 0.82rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

@media (max-width: 767px) {
    .tema-payment-form,
    .tema-payment-history {
        padding: 1rem;
        border-radius: 0.9rem;
    }

    .tema-payment-summary {
        grid-template-columns: 1fr;
    }

    .tema-payment-summary > div {
        border-right: 0;
        border-bottom: 1px solid #d6e2ee;
    }

    .tema-payment-summary > div:last-child {
        border-bottom: 0;
    }

    .tema-payment-form__grid {
        grid-template-columns: 1fr;
    }

    .tema-payment-form__wide {
        grid-column: auto;
    }

    .tema-payment-form__notice {
        grid-template-columns: 1fr;
    }

    .tema-payment-conversion > div {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.35rem;
    }

    .tema-payment-entry__top {
        flex-direction: column;
        gap: 0.45rem;
    }

    .tema-payment-entry__amount {
        text-align: left;
    }

    .tema-payment-entry__details {
        grid-template-columns: 1fr;
    }
}

/*
 * TEMA PAYMENT UI V1.2B1
 *
 * La zone d’action Finance est une colonne latérale étroite,
 * même lorsque le viewport est celui d’un ordinateur.
 */
.tema-payment-form__grid {
    grid-template-columns: minmax(0, 1fr);
}

.tema-payment-form__wide {
    grid-column: auto;
}

.tema-payment-form .form-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 0.45rem;
    min-width: 0;
    width: 100%;
}

.tema-payment-form .form-field > span,
.tema-payment-form .form-field > small {
    display: block;
    width: 100%;
}

.tema-payment-form .form-field input,
.tema-payment-form .form-field select,
.tema-payment-form .form-field textarea {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
}

.tema-payment-form .form-field textarea {
    min-height: 7rem;
}

.tema-payment-form .form-field small {
    color: #607493;
    line-height: 1.4;
}

@media (min-width: 1280px) {
    .tema-payment-form__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767px) {
    .tema-payment-form {
        padding: 0.9rem;
    }

    .tema-payment-form__heading {
        align-items: flex-start;
    }

    .tema-payment-form__heading h4 {
        font-size: 1rem;
    }

    .tema-payment-form .form-field input,
    .tema-payment-form .form-field select {
        min-height: 2.9rem;
    }

    .tema-payment-form .form-field textarea {
        min-height: 8rem;
    }
}

/*
 * TEMA PAYMENT ATTACHMENT UI V1.2C
 */

.tema-payment-attachment-field {
    min-width: 0;
}

.tema-payment-attachment-field > span {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem;
}

.tema-payment-attachment-field > span small {
    color: #607493;
    font-size: 0.78rem;
    font-weight: 500;
}

.tema-payment-attachment-field input[type="file"] {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 0.65rem;
    color: #0b2f57;
    background: #ffffff;
    border: 1px solid #bfd1e5;
    border-radius: 0.65rem;
    cursor: pointer;
}

.tema-payment-attachment-field input[type="file"]::file-selector-button {
    margin-right: 0.65rem;
    padding: 0.55rem 0.75rem;
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    background: #0b3b6e;
    border: 0;
    border-radius: 0.5rem;
    cursor: pointer;
}

.tema-payment-attachment-field input[type="file"]:focus {
    outline: 3px solid rgba(27, 111, 183, 0.18);
    border-color: #1b6fb7;
}

.tema-payment-attachment-field__help {
    color: #607493;
    font-size: 0.78rem;
    line-height: 1.45;
}

.tema-payment-history__attachment {
    display: grid;
    gap: 0.3rem;
    margin-top: 0.75rem;
    padding: 0.7rem 0.8rem;
    background: #eef7ff;
    border: 1px solid #b7dcfb;
    border-radius: 0.65rem;
}

.tema-payment-history__attachment-label {
    color: #526984;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tema-payment-history__attachment-link {
    overflow-wrap: anywhere;
    color: #075a9c;
    font-weight: 700;
    text-decoration: none;
}

.tema-payment-history__attachment-link:hover,
.tema-payment-history__attachment-link:focus {
    color: #063d69;
    text-decoration: underline;
}

@media (max-width: 767px) {
    .tema-payment-attachment-field input[type="file"] {
        padding: 0.55rem;
        font-size: 0.9rem;
    }

    .tema-payment-attachment-field input[type="file"]::file-selector-button {
        margin-right: 0.45rem;
        padding: 0.5rem 0.65rem;
    }

    .tema-payment-history__attachment {
        padding: 0.65rem;
    }
}

/*
 * TEMA BUDGET DETAIL ACCORDION CSS V1.3A
 *
 * Vue pleine largeur, récapitulatif de l’expédition,
 * ruban du workflow et sections métier pliables.
 */

.tema-budget-detail-v13 {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.tema-budget-detail-v13__shipment {
    min-width: 0;
}

.tema-budget-detail-v13__shipment
.tema-budget-shipment-summary {
    margin: 0;
    overflow: hidden;
}

.tema-budget-detail-page {
    gap: 1rem;
}

.tema-budget-detail-hero {
    padding: 1.1rem 1.25rem;
}

.tema-budget-detail-hero__heading {
    gap: 1rem;
}

.tema-budget-detail-kpis {
    gap: 0.7rem;
}

.tema-budget-detail-kpis > div {
    min-height: 4.5rem;
    padding: 0.85rem 1rem;
}


/*
 * Récapitulatif de l’expédition
 */

.tema-budget-shipment-summary
.record-detail-section__grid {
    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );
}

.tema-budget-shipment-summary
.record-detail-field {
    min-height: 5.2rem;
    padding: 0.9rem 1rem;
}

.tema-budget-container-summary {
    grid-column: 1 / -1;
    min-height: auto !important;
    gap: 0.75rem;
    background:
        linear-gradient(
            135deg,
            #f7fbff 0%,
            #edf7ff 100%
        );
}

.tema-budget-container-summary__heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    width: 100%;
}

.tema-budget-container-summary__heading > span {
    color: #526984;
    font-size: 0.8rem;
    font-weight: 700;
}

.tema-budget-container-summary__heading > strong {
    color: #075a9c;
    font-size: 0.78rem;
}

.tema-budget-container-summary__list {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(13rem, 1fr)
        );
    gap: 0.65rem;
    width: 100%;
}

.tema-budget-container-chip {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
    padding: 0.75rem 0.85rem;
    color: #0b2f57;
    background: #ffffff;
    border: 1px solid #bfdcf3;
    border-radius: 0.7rem;
    box-shadow:
        0 0.2rem 0.7rem
        rgba(12, 58, 99, 0.05);
}

.tema-budget-container-chip__icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 2.35rem;
    height: 2.35rem;
    color: #ffffff;
    font-size: 0.66rem;
    font-weight: 800;
    background: #0b3b6e;
    border-radius: 0.65rem;
}

.tema-budget-container-chip > span:last-child {
    display: grid;
    gap: 0.16rem;
    min-width: 0;
}

.tema-budget-container-chip strong {
    overflow-wrap: anywhere;
    color: #082f5a;
    font-size: 0.9rem;
}

.tema-budget-container-chip small {
    color: #607493;
    font-size: 0.75rem;
}

.tema-budget-container-summary__empty {
    margin: 0;
    color: #607493;
    font-size: 0.85rem;
}


/*
 * Ruban du workflow
 */

.tema-budget-workflow-ribbon {
    min-width: 0;
    padding: 0.9rem 1rem;
    overflow-x: auto;
    background: #ffffff;
    border: 1px solid #d7e3ef;
    border-radius: 0.9rem;
    box-shadow:
        0 0.55rem 1.7rem
        rgba(11, 47, 87, 0.06);
    scrollbar-width: thin;
}

.tema-budget-workflow-ribbon__track {
    display: grid;
    grid-template-columns:
        repeat(
            5,
            minmax(7.5rem, 1fr)
        );
    min-width: 40rem;
}

.tema-budget-workflow-ribbon__step {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 0.45rem;
    min-width: 0;
    padding: 0.15rem 0.45rem;
    color: #8391a5;
    text-align: center;
}

.tema-budget-workflow-ribbon__step::after {
    position: absolute;
    z-index: 0;
    top: 1.05rem;
    left: calc(50% + 1.35rem);
    width: calc(100% - 2.7rem);
    height: 0.16rem;
    content: "";
    background: #dce5ee;
}

.tema-budget-workflow-ribbon__step:last-child::after {
    display: none;
}

.tema-budget-workflow-ribbon__number {
    position: relative;
    z-index: 1;
    display: inline-grid;
    place-items: center;
    width: 2.15rem;
    height: 2.15rem;
    color: #728197;
    font-size: 0.72rem;
    font-weight: 800;
    background: #edf2f7;
    border: 2px solid #d6e0ea;
    border-radius: 50%;
}

.tema-budget-workflow-ribbon__step strong {
    position: relative;
    z-index: 1;
    color: inherit;
    font-size: 0.78rem;
    line-height: 1.25;
}

.tema-budget-workflow-ribbon__step--complete {
    color: #087855;
}

.tema-budget-workflow-ribbon__step--complete::after {
    background: #8bd5bc;
}

.tema-budget-workflow-ribbon__step--complete
.tema-budget-workflow-ribbon__number {
    color: #ffffff;
    background: #0b8962;
    border-color: #0b8962;
}

.tema-budget-workflow-ribbon__step--current {
    color: #075a9c;
}

.tema-budget-workflow-ribbon__step--current
.tema-budget-workflow-ribbon__number {
    color: #ffffff;
    background: #0967a9;
    border-color: #0967a9;
    box-shadow:
        0 0 0 0.3rem
        rgba(9, 103, 169, 0.12);
}

.tema-budget-workflow-ribbon__step--revision {
    color: #a95600;
}

.tema-budget-workflow-ribbon__step--revision
.tema-budget-workflow-ribbon__number {
    color: #ffffff;
    background: #d87513;
    border-color: #d87513;
    box-shadow:
        0 0 0 0.3rem
        rgba(216, 117, 19, 0.13);
}


/*
 * Rubans pliables
 */

.tema-budget-accordion-stack {
    display: grid;
    gap: 0.75rem;
    min-width: 0;
}

.tema-budget-accordion {
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #d7e3ef;
    border-radius: 0.85rem;
    box-shadow:
        0 0.35rem 1.2rem
        rgba(11, 47, 87, 0.045);
}

.tema-budget-accordion[open] {
    border-color: #bdd6eb;
    box-shadow:
        0 0.55rem 1.5rem
        rgba(11, 47, 87, 0.065);
}

.tema-budget-accordion__summary {
    display: grid;
    grid-template-columns:
        auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.8rem;
    min-height: 4.5rem;
    padding: 0.8rem 1rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.tema-budget-accordion__summary::-webkit-details-marker {
    display: none;
}

.tema-budget-accordion__summary:hover {
    background: #f8fbfe;
}

.tema-budget-accordion[open]
.tema-budget-accordion__summary {
    background:
        linear-gradient(
            90deg,
            #f7fbff 0%,
            #ffffff 100%
        );
}

.tema-budget-accordion__code {
    display: inline-grid;
    place-items: center;
    width: 2.55rem;
    height: 2.55rem;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    background: #0b3b6e;
    border-radius: 0.7rem;
}

.tema-budget-accordion__heading {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
}

.tema-budget-accordion__heading strong {
    overflow-wrap: anywhere;
    color: #071f3c;
    font-size: 0.95rem;
}

.tema-budget-accordion__heading small {
    overflow-wrap: anywhere;
    color: #607493;
    font-size: 0.78rem;
    line-height: 1.35;
}

.tema-budget-accordion__meta {
    padding: 0.35rem 0.6rem;
    color: #526984;
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
    background: #f3f7fb;
    border: 1px solid #d9e4ef;
    border-radius: 999px;
}

.tema-budget-accordion__chevron {
    width: 0.62rem;
    height: 0.62rem;
    border-right: 2px solid #42617f;
    border-bottom: 2px solid #42617f;
    transform: rotate(45deg);
    transition: transform 160ms ease;
}

.tema-budget-accordion[open]
.tema-budget-accordion__chevron {
    transform: rotate(225deg);
}

.tema-budget-accordion__body {
    min-width: 0;
    padding: 1rem;
    border-top: 1px solid #e1e9f1;
}

.tema-budget-accordion__body
> .record-detail-section {
    margin: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.tema-budget-accordion__body
> .record-detail-section
> .record-detail-section__header {
    display: none;
}

.tema-budget-accordion--expenses
.tema-budget-accordion__code {
    background: #9b4d09;
}

.tema-budget-accordion--observations
.tema-budget-accordion__code {
    background: #5b4a98;
}

.tema-budget-accordion--actions
.tema-budget-accordion__code {
    background: #075a9c;
}

.tema-budget-accordion--amounts
.tema-budget-accordion__code {
    background: #087855;
}

.tema-budget-accordion--trace
.tema-budget-accordion__code {
    background: #4d6077;
}


/*
 * Contenu des actions en pleine largeur
 */

.tema-budget-accordion--actions
.tema-budget-detail-actions {
    display: grid;
    gap: 1rem;
    width: 100%;
}

.tema-budget-accordion--actions
.tema-budget-review-form,
.tema-budget-accordion--actions
.tema-payment-form,
.tema-budget-accordion--actions
.tema-payment-history {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
}

.tema-budget-accordion--actions
.tema-payment-summary {
    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );
}

@media (min-width: 1100px) {
    .tema-budget-accordion--actions
    .tema-payment-form__grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .tema-budget-accordion--actions
    .tema-payment-form__wide {
        grid-column: 1 / -1;
    }

    .tema-budget-accordion--actions
    .tema-payment-form textarea {
        min-height: 7.5rem;
    }
}


/*
 * Tablette
 */

@media (max-width: 1023px) {
    .tema-budget-shipment-summary
    .record-detail-section__grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .tema-budget-workflow-ribbon {
        padding: 0.8rem;
    }

    .tema-budget-accordion__body {
        padding: 0.85rem;
    }
}


/*
 * Mobile
 */

@media (max-width: 767px) {
    .tema-budget-detail-v13 {
        gap: 0.75rem;
    }

    .tema-budget-detail-hero {
        padding: 0.9rem;
    }

    .tema-budget-shipment-summary
    .record-detail-section__grid {
        grid-template-columns:
            minmax(0, 1fr);
    }

    .tema-budget-shipment-summary
    .record-detail-field {
        min-height: auto;
        padding: 0.8rem;
    }

    .tema-budget-container-summary {
        grid-column: auto;
    }

    .tema-budget-container-summary__heading {
        align-items: flex-start;
    }

    .tema-budget-container-summary__list {
        grid-template-columns:
            minmax(0, 1fr);
    }

    .tema-budget-workflow-ribbon {
        padding: 0.7rem 0.55rem;
        border-radius: 0.75rem;
    }

    .tema-budget-workflow-ribbon__track {
        grid-template-columns:
            repeat(
                5,
                minmax(5.4rem, 1fr)
            );
        min-width: 29rem;
    }

    .tema-budget-workflow-ribbon__step {
        padding-inline: 0.25rem;
    }

    .tema-budget-workflow-ribbon__step strong {
        font-size: 0.7rem;
    }

    .tema-budget-accordion-stack {
        gap: 0.6rem;
    }

    .tema-budget-accordion {
        border-radius: 0.75rem;
    }

    .tema-budget-accordion__summary {
        grid-template-columns:
            auto minmax(0, 1fr) auto;
        gap: 0.65rem;
        min-height: 4rem;
        padding: 0.7rem 0.75rem;
    }

    .tema-budget-accordion__code {
        width: 2.3rem;
        height: 2.3rem;
        border-radius: 0.6rem;
    }

    .tema-budget-accordion__meta {
        display: none;
    }

    .tema-budget-accordion__heading strong {
        font-size: 0.9rem;
    }

    .tema-budget-accordion__heading small {
        font-size: 0.72rem;
    }

    .tema-budget-accordion__body {
        padding: 0.7rem;
    }

    .tema-budget-accordion--actions
    .tema-payment-summary {
        grid-template-columns:
            minmax(0, 1fr);
    }

    .tema-budget-accordion--actions
    .tema-payment-form__grid {
        grid-template-columns:
            minmax(0, 1fr);
    }

    .tema-budget-accordion--actions
    .tema-payment-form__wide {
        grid-column: auto;
    }
}

/*
 * TEMA BUDGET MOBILE SHIPMENT GRID V1.3A1
 *
 * Les informations principales de l’expédition sont
 * présentées horizontalement sur deux colonnes.
 */

@media (max-width: 767px) {
    .tema-budget-shipment-summary
    .record-detail-section__grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .tema-budget-shipment-summary
    .record-detail-field {
        box-sizing: border-box;
        min-width: 0;
        min-height: 5.6rem;
        padding: 0.75rem;
    }

    .tema-budget-shipment-summary
    .record-detail-field > span {
        overflow-wrap: anywhere;
        font-size: 0.72rem;
        line-height: 1.3;
    }

    .tema-budget-shipment-summary
    .record-detail-field > strong {
        overflow-wrap: anywhere;
        word-break: break-word;
        font-size: 0.86rem;
        line-height: 1.35;
    }

    .tema-budget-shipment-summary
    .tema-budget-container-summary {
        grid-column: 1 / -1;
        min-height: auto;
    }
}

@media (max-width: 389px) {
    .tema-budget-shipment-summary
    .record-detail-section__grid {
        gap: 0;
    }

    .tema-budget-shipment-summary
    .record-detail-field {
        min-height: 5.25rem;
        padding: 0.65rem;
    }

    .tema-budget-shipment-summary
    .record-detail-field > strong {
        font-size: 0.8rem;
    }
}

/*
 * TEMA BUDGET MOBILE CONTAINER GRID V1.3A2
 *
 * Les conteneurs restent côte à côte sur mobile afin de
 * réduire la hauteur du récapitulatif de l'expédition.
 */
@media (max-width: 767px) {
    .tema-budget-container-summary__list {
        display: grid;
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        gap: 0.6rem;
        width: 100%;
    }

    .tema-budget-container-summary__list > * {
        box-sizing: border-box;
        min-width: 0;
        width: 100%;
        margin: 0;
        padding: 0.75rem;
    }

    .tema-budget-container-summary__list > * strong,
    .tema-budget-container-summary__list > * span,
    .tema-budget-container-summary__list > * small {
        min-width: 0;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .tema-budget-container-summary__list > * strong {
        font-size: 0.82rem;
        line-height: 1.25;
    }

    .tema-budget-container-summary__list > * small {
        font-size: 0.72rem;
        line-height: 1.25;
    }
}

@media (max-width: 389px) {
    .tema-budget-container-summary__list {
        gap: 0.45rem;
    }

    .tema-budget-container-summary__list > * {
        padding: 0.6rem;
    }

    .tema-budget-container-summary__list > * strong {
        font-size: 0.76rem;
    }

    .tema-budget-container-summary__list > * small {
        font-size: 0.68rem;
    }
}

/* =========================================================
   PORT FUNDING CONTEXTUAL WIZARD V1.0
   ========================================================= */

.port-funding-shipment-scope,
.port-funding-administrative-scope {
    grid-column: 1 / -1;
    min-width: 0;
}

.port-funding-shipment-scope[hidden],
.port-funding-administrative-scope[hidden],
[data-port-funding-availability][hidden] {
    display: none !important;
}

.port-funding-shipment-scope {
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(
            135deg,
            rgba(31, 111, 235, 0.06),
            rgba(31, 111, 235, 0.015)
        );
}

.port-funding-administrative-scope {
    padding: 1rem;
    border: 1px solid rgba(214, 135, 31, 0.3);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(
            135deg,
            rgba(245, 158, 11, 0.08),
            rgba(245, 158, 11, 0.02)
        );
}

.port-funding-administrative-scope
.record-form-grid {
    margin: 0;
}

[data-port-funding-request-type],
[data-port-funding-requesting-unit],
[data-port-funding-execution-mode] {
    border-inline-start-width: 3px;
}

[data-port-funding-request-type] {
    border-inline-start-color:
        var(--color-primary);
}

[data-port-funding-requesting-unit] {
    border-inline-start-color:
        var(--color-info);
}

[data-port-funding-execution-mode] {
    border-inline-start-color:
        var(--color-warning);
}

.port-funding-administrative-scope
.record-form-helper,
.port-funding-shipment-scope
.record-form-helper {
    display: block;
    margin-top: 0.45rem;
}

.tema-budget-wizard
.shipment-create-eligibility {
    margin-bottom: 1rem;
}

@media (max-width: 720px) {
    .port-funding-shipment-scope,
    .port-funding-administrative-scope {
        padding: 0.8rem;
        border-radius: var(--radius-md);
    }

    .port-funding-administrative-scope
    .record-form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    [data-port-funding-request-type],
    [data-port-funding-requesting-unit],
    [data-port-funding-execution-mode] {
        min-height: 2.85rem;
    }
}


/* PORT PROVIDERS H2F2 */

.provider-port-field {
    grid-column: 1 / -1;
}

.provider-port-field__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.provider-port-field__count {
    flex: 0 0 auto;
    padding: .45rem .75rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-surface-subtle);
    color: var(--color-text-muted);
    font-size: .78rem;
    font-weight: 700;
}

.provider-port-groups {
    display: grid;
    gap: 1rem;
}

.provider-port-group {
    min-width: 0;
    margin: 0;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
}

.provider-port-group legend {
    padding: 0 .45rem;
    color: var(--color-text);
    font-size: .82rem;
    font-weight: 800;
}

.provider-port-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: .7rem;
}

.provider-port-option {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
    padding: .8rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    cursor: pointer;
    transition:
        border-color .18s ease,
        background-color .18s ease,
        transform .18s ease;
}

.provider-port-option:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-soft);
    transform: translateY(-1px);
}

.provider-port-option:has(input:checked) {
    border-color: var(--color-primary);
    background: var(--color-primary-soft);
    box-shadow:
        inset 0 0 0 1px var(--color-primary);
}

.provider-port-option input {
    width: 1.05rem;
    height: 1.05rem;
    flex: 0 0 auto;
    accent-color: var(--color-primary);
}

.provider-port-option span {
    display: grid;
    min-width: 0;
    gap: .2rem;
}

.provider-port-option strong,
.provider-port-option small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.provider-port-option strong {
    color: var(--color-text);
    font-size: .86rem;
}

.provider-port-option small {
    color: var(--color-text-muted);
    font-size: .75rem;
}

@media (max-width: 760px) {
    .provider-port-field__heading {
        display: grid;
    }

    .provider-port-field__count {
        justify-self: start;
    }

    .provider-port-grid {
        grid-template-columns: 1fr;
    }

    .provider-port-group {
        padding: .8rem;
    }
}

/* PORT PROVIDER QUICK ACCESS H2J2 */
.shipment-create-eligibility__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

@media (max-width: 640px) {
    .shipment-create-eligibility__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .shipment-create-eligibility__actions .btn {
        justify-content: center;
        width: 100%;
    }
}


/* ==========================================================
 * H7M2G4E4D1 ROUTE AXIS WIZARD
 * ========================================================== */

.route-axis-form-page {
    max-width: 1380px;
    margin: 0 auto;
}

.route-axis-breadcrumb {
    margin-bottom: 1.25rem;
}

.route-axis-form-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.route-axis-form-head__content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    min-width: 0;
}

.route-axis-form-head__icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: #eaf3ff;
    color: #175cd3;
}

.route-axis-form-head__eyebrow {
    display: block;
    margin-bottom: .25rem;
    color: #175cd3;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .07em;
}

.route-axis-form-head h1 {
    margin: 0;
    color: #101828;
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    line-height: 1.12;
}

.route-axis-form-head p {
    max-width: 760px;
    margin: .45rem 0 0;
    color: #667085;
    line-height: 1.55;
}

.route-axis-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 44px;
    padding: .68rem 1rem;
    border: 1px solid #d0d5dd;
    border-radius: 12px;
    background: #fff;
    color: #344054;
    font-weight: 700;
    text-decoration: none;
}

.route-axis-wizard {
    overflow: hidden;
    border: 1px solid #e4e7ec;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(16, 24, 40, .075);
}

.route-axis-wizard__progress {
    padding: 1.25rem 1.4rem 1rem;
    border-bottom: 1px solid #eaecf0;
    background: #fbfcfe;
}

.route-axis-wizard__progress-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .9rem;
}

.route-axis-wizard__progress-top > div {
    display: grid;
    gap: .18rem;
}

.route-axis-wizard__progress-top strong {
    color: #101828;
    font-size: .96rem;
}

.route-axis-wizard__progress-eyebrow {
    color: #175cd3;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.route-axis-wizard__counter {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .42rem .7rem;
    border: 1px solid #dce5f0;
    border-radius: 999px;
    background: #fff;
    color: #667085;
    font-size: .76rem;
    white-space: nowrap;
}

.route-axis-wizard__bar {
    overflow: hidden;
    height: 4px;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: #e9eef5;
}

.route-axis-wizard__bar > span {
    display: block;
    width: 33.333%;
    height: 100%;
    border-radius: inherit;
    background: #175cd3;
    transition: width .22s ease;
}

.route-axis-wizard__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .7rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.route-axis-step-indicator {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
    padding: .7rem .8rem;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #667085;
    transition:
        background .18s ease,
        border-color .18s ease,
        color .18s ease;
}

.route-axis-step-indicator__number {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #eef2f6;
    color: #475467;
    font-weight: 800;
    font-size: .84rem;
}

.route-axis-step-indicator__text {
    display: grid;
    min-width: 0;
    gap: .12rem;
}

.route-axis-step-indicator__text strong {
    color: inherit;
    font-size: .88rem;
}

.route-axis-step-indicator__text small {
    overflow: hidden;
    color: #98a2b3;
    font-size: .72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.route-axis-step-indicator.is-active {
    border-color: #d1e3ff;
    background: #eef5ff;
    color: #175cd3;
}

.route-axis-step-indicator.is-active
.route-axis-step-indicator__number {
    background: #2563eb;
    color: #fff;
}

.route-axis-step-indicator.is-complete
.route-axis-step-indicator__number {
    background: #dcfce7;
    color: #15803d;
}

.route-axis-wizard__body {
    padding: 1.45rem;
}

.route-axis-wizard__panel[hidden] {
    display: none;
}

.route-axis-section-head {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    margin-bottom: 1.15rem;
}

.route-axis-section-head__number {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: #103b69;
    color: #fff;
    font-size: .77rem;
    font-weight: 850;
}

.route-axis-section-head h2 {
    margin: .05rem 0 0;
    color: #101828;
    font-size: 1.12rem;
}

.route-axis-section-head p {
    max-width: 720px;
    margin: .32rem 0 0;
    color: #667085;
    font-size: .86rem;
    line-height: 1.5;
}

.route-axis-helper {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    margin-bottom: 1.35rem;
    padding: .9rem 1rem;
    border: 1px solid #d7e8ff;
    border-radius: 12px;
    background: #f0f7ff;
}

.route-axis-helper__icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-weight: 800;
    font-size: .8rem;
}

.route-axis-helper strong {
    display: block;
    margin-bottom: .2rem;
    color: #184e87;
    font-size: .82rem;
}

.route-axis-helper p {
    margin: 0;
    color: #54708e;
    font-size: .79rem;
    line-height: 1.5;
}

.route-axis-fields,
.route-axis-point__body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem 1rem;
}

.route-axis-field {
    display: grid;
    align-content: start;
    min-width: 0;
    gap: .4rem;
}

.route-axis-field--wide {
    grid-column: 1 / -1;
}

.route-axis-field .form-control {
    min-height: 46px;
}

.route-axis-field textarea.form-control {
    min-height: 96px;
    resize: vertical;
}

.route-axis-field__hint {
    color: #98a2b3;
    font-size: .72rem;
    line-height: 1.35;
}

.route-axis-field__error {
    color: #b42318;
    font-size: .74rem;
    font-weight: 700;
}

.route-axis-points {
    display: grid;
    gap: 1rem;
}

.route-axis-point {
    overflow: hidden;
    border: 1px solid #dfe5ec;
    border-radius: 15px;
    background: #fff;
}

.route-axis-point__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1rem;
    border-bottom: 1px solid #eaecf0;
    background: #fafcff;
}

.route-axis-point__identity {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
}

.route-axis-point__number {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #103b69;
    color: #fff;
    font-size: .78rem;
    font-weight: 850;
}

.route-axis-point__identity > div {
    display: grid;
    min-width: 0;
    gap: .1rem;
}

.route-axis-point__identity strong {
    color: #101828;
    font-size: .9rem;
}

.route-axis-point__identity small {
    color: #667085;
    font-size: .74rem;
}

.route-axis-point__actions {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex: 0 0 auto;
}

.route-axis-point-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    padding: .42rem .62rem;
    border: 1px solid #d0d5dd;
    border-radius: 9px;
    background: #fff;
    color: #344054;
    font-weight: 750;
    cursor: pointer;
}

.route-axis-point-action:hover:not(:disabled) {
    border-color: #98a2b3;
    background: #f9fafb;
}

.route-axis-point-action--danger {
    color: #b42318;
}

.route-axis-point-action:disabled {
    opacity: .38;
    cursor: not-allowed;
}

.route-axis-point__body {
    padding: 1rem;
}

.route-axis-add-point {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    width: 100%;
    min-height: 70px;
    margin-top: 1rem;
    padding: .8rem 1rem;
    border: 1px dashed #84adf7;
    border-radius: 13px;
    background: #f7faff;
    color: #175cd3;
    cursor: pointer;
}

.route-axis-add-point > span:first-child {
    font-size: 1.25rem;
    font-weight: 700;
}

.route-axis-add-point > span:last-child {
    display: grid;
    gap: .08rem;
    text-align: left;
}

.route-axis-add-point strong {
    font-size: .85rem;
}

.route-axis-add-point small {
    color: #667085;
    font-size: .72rem;
}

.route-axis-review {
    display: grid;
    gap: 1rem;
}

.route-axis-review__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .8rem;
}

.route-axis-review__item {
    display: grid;
    gap: .28rem;
    min-width: 0;
    padding: .9rem;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #fafbfc;
}

.route-axis-review__item span {
    color: #667085;
    font-size: .72rem;
}

.route-axis-review__item strong {
    overflow-wrap: anywhere;
    color: #101828;
    font-size: .9rem;
}

.route-axis-review__route {
    overflow: hidden;
    border: 1px solid #dfe5ec;
    border-radius: 14px;
}

.route-axis-review__route > header {
    padding: .85rem 1rem;
    border-bottom: 1px solid #eaecf0;
    background: #fafcff;
}

.route-axis-review__route > header > div {
    display: grid;
    gap: .12rem;
}

.route-axis-review__route strong {
    color: #101828;
    font-size: .9rem;
}

.route-axis-review__route small {
    color: #667085;
    font-size: .74rem;
}

.route-axis-review__points {
    display: grid;
    gap: 0;
    margin: 0;
    padding: .5rem 1rem;
    list-style: none;
}

.route-axis-review-point {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem 0;
    border-bottom: 1px solid #f0f2f5;
}

.route-axis-review-point:last-child {
    border-bottom: 0;
}

.route-axis-review-point__number {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #eef5ff;
    color: #175cd3;
    font-size: .72rem;
    font-weight: 800;
}

.route-axis-review-point > div {
    display: grid;
    gap: .06rem;
}

.route-axis-review-point strong {
    font-size: .78rem;
}

.route-axis-review-point small {
    color: #667085;
}

.route-axis-review__warning {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    padding: .8rem .9rem;
    border: 1px solid #fde68a;
    border-radius: 11px;
    background: #fffbeb;
}

.route-axis-review__warning > span {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background: #f59e0b;
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
}

.route-axis-review__warning p {
    margin: 0;
    color: #92400e;
    font-size: .77rem;
    line-height: 1.45;
}

.route-axis-wizard__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 76px;
    padding: .9rem 1.4rem;
    border-top: 1px solid #eaecf0;
    background: #fff;
}

.route-axis-wizard__footer-left,
.route-axis-wizard__footer-right {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.route-axis-wizard__footer-help {
    margin-right: .4rem;
    color: #98a2b3;
    font-size: .72rem;
}

.route-axis-primary-action {
    min-width: 145px;
}


@media (max-width: 900px) {
    .route-axis-review__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 780px) {
    .route-axis-form-page {
        width: 100%;
    }

    .route-axis-breadcrumb {
        margin-bottom: 1rem;
    }

    .route-axis-form-head {
        display: grid;
        gap: 1rem;
    }

    .route-axis-form-head__icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    .route-axis-form-head h1 {
        font-size: 1.65rem;
    }

    .route-axis-back-link {
        width: fit-content;
        order: -1;
    }

    .route-axis-wizard {
        border-radius: 15px;
    }

    .route-axis-wizard__progress {
        padding: .85rem .75rem .7rem;
    }

    .route-axis-wizard__progress-top {
        margin-bottom: .75rem;
    }

    .route-axis-wizard__progress-top > div {
        display: none;
    }

    .route-axis-wizard__counter {
        margin-left: auto;
    }

    .route-axis-wizard__steps {
        gap: .3rem;
    }

    .route-axis-step-indicator {
        display: grid;
        justify-items: center;
        gap: .35rem;
        padding: .5rem .18rem;
        text-align: center;
    }

    .route-axis-step-indicator__number {
        width: 32px;
        height: 32px;
    }

    .route-axis-step-indicator__text {
        justify-items: center;
    }

    .route-axis-step-indicator__text strong {
        font-size: .7rem;
    }

    .route-axis-step-indicator__text small {
        display: none;
    }

    .route-axis-wizard__body {
        padding: 1rem .8rem;
    }

    .route-axis-section-head {
        gap: .7rem;
        margin-bottom: 1rem;
    }

    .route-axis-section-head__number {
        width: 36px;
        height: 36px;
    }

    .route-axis-section-head h2 {
        font-size: 1rem;
    }

    .route-axis-section-head p {
        font-size: .78rem;
    }

    .route-axis-helper {
        padding: .75rem;
    }

    .route-axis-fields,
    .route-axis-point__body {
        grid-template-columns: 1fr;
        gap: .9rem;
    }

    .route-axis-field--wide {
        grid-column: auto;
    }

    .route-axis-point__head {
        align-items: flex-start;
        padding: .75rem;
    }

    .route-axis-point__actions {
        gap: .3rem;
    }

    .route-axis-point-action {
        min-width: 34px;
        min-height: 34px;
        padding: .35rem .48rem;
        font-size: .75rem;
    }

    .route-axis-point__identity small {
        display: none;
    }

    .route-axis-point__body {
        padding: .8rem;
    }

    .route-axis-add-point {
        min-height: 62px;
    }

    .route-axis-review__grid {
        grid-template-columns: 1fr 1fr;
    }

    .route-axis-wizard__footer {
        position: sticky;
        z-index: 20;
        bottom: 0;
        align-items: stretch;
        min-height: auto;
        padding: .7rem;
        box-shadow: 0 -8px 22px rgba(16, 24, 40, .08);
    }

    .route-axis-wizard__footer-left,
    .route-axis-wizard__footer-right {
        flex: 1;
    }

    .route-axis-wizard__footer-left > *,
    .route-axis-wizard__footer-right > .btn {
        flex: 1;
    }

    .route-axis-wizard__footer-help {
        display: none;
    }

    .route-axis-primary-action {
        min-width: 0;
    }
}


@media (max-width: 480px) {
    .route-axis-form-head__content {
        gap: .75rem;
    }

    .route-axis-form-head__eyebrow {
        display: none;
    }

    .route-axis-form-head p {
        font-size: .82rem;
    }

    .route-axis-step-indicator__text strong {
        font-size: .64rem;
    }

    .route-axis-helper p {
        font-size: .74rem;
    }

    .route-axis-point__head {
        display: grid;
        gap: .7rem;
    }

    .route-axis-point__actions {
        width: 100%;
        justify-content: flex-end;
    }

    .route-axis-review__grid {
        grid-template-columns: 1fr;
    }

    .route-axis-wizard__footer {
        gap: .5rem;
    }

    .route-axis-wizard__footer-left,
    .route-axis-wizard__footer-right {
        gap: .45rem;
    }

    .route-axis-wizard__footer .btn {
        padding-left: .7rem;
        padding-right: .7rem;
        font-size: .78rem;
        white-space: nowrap;
    }
}

/* ==========================================================
   H7M2G4E5D3 — Mission route plan UI
   ========================================================== */

.mission-route-plan {
    scroll-margin-top: 1rem;
}

.mission-route-plan__head,
.mission-route-plan__history-head,
.mission-route-plan__form-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.mission-route-plan__head h2,
.mission-route-plan__head p,
.mission-route-plan__history-head h3,
.mission-route-plan__history-head p {
    margin: 0;
}

.mission-route-plan__head h2 {
    margin-top: .2rem;
}

.mission-route-plan__head p,
.mission-route-plan__history-head p {
    margin-top: .35rem;
    color: #64748b;
    line-height: 1.55;
}

.mission-route-plan__eyebrow {
    display: inline-flex;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #2563eb;
}

.mission-route-plan__status,
.mission-route-plan__history-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.85rem;
    padding: .25rem .65rem;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 800;
    white-space: nowrap;
}

.mission-route-plan__status--active,
.mission-route-plan__history-state--active {
    background: #dcfce7;
    color: #166534;
}

.mission-route-plan__status--empty,
.mission-route-plan__history-state {
    background: #f1f5f9;
    color: #475569;
}

.mission-route-plan__alert {
    margin-top: 1rem;
    padding: .9rem 1rem;
    border: 1px solid #fecaca;
    border-radius: .8rem;
    background: #fef2f2;
    color: #991b1b;
}

.mission-route-plan__alert ul {
    margin: .45rem 0 0 1.15rem;
    padding: 0;
}

.mission-route-plan__empty {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin-top: 1rem;
    padding: 1rem;
    border: 1px dashed #cbd5e1;
    border-radius: .9rem;
    background: #f8fafc;
}

.mission-route-plan__empty p {
    margin: .25rem 0 0;
    color: #64748b;
}

.mission-route-plan__empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    flex: 0 0 2.6rem;
    border-radius: 999px;
    background: #e0e7ff;
    color: #3730a3;
    font-size: 1.2rem;
    font-weight: 900;
}

.mission-route-plan__current {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #dbeafe;
    border-radius: 1rem;
    background:
        linear-gradient(
            180deg,
            #f8fbff 0%,
            #ffffff 100%
        );
}

.mission-route-plan__identity {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.mission-route-plan__identity > div {
    min-width: 0;
    padding: .75rem;
    border-radius: .75rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.mission-route-plan__identity span,
.mission-route-plan__identity small {
    display: block;
}

.mission-route-plan__identity span {
    margin-bottom: .25rem;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #64748b;
}

.mission-route-plan__identity strong {
    display: block;
    overflow-wrap: anywhere;
}

.mission-route-plan__identity small {
    margin-top: .2rem;
    color: #64748b;
    line-height: 1.35;
}

.mission-route-plan__path {
    position: relative;
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(145px, 1fr)
    );
    gap: .75rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.mission-route-plan__path li {
    position: relative;
    display: flex;
    gap: .65rem;
    min-width: 0;
    padding: .8rem;
    border: 1px solid #e2e8f0;
    border-radius: .8rem;
    background: #fff;
}

.mission-route-plan__path li > div {
    min-width: 0;
}

.mission-route-plan__path small,
.mission-route-plan__path strong,
.mission-route-plan__path li > div > span {
    display: block;
}

.mission-route-plan__path small {
    color: #64748b;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.mission-route-plan__path strong {
    margin-top: .15rem;
    overflow-wrap: anywhere;
}

.mission-route-plan__path li > div > span {
    margin-top: .2rem;
    color: #64748b;
    font-size: .78rem;
}

.mission-route-plan__sequence {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    flex: 0 0 1.75rem;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-size: .75rem;
    font-weight: 900;
}

.mission-route-plan__reference-note,
.mission-route-plan__snapshot-warning {
    margin: .85rem 0 0;
    padding: .7rem .8rem;
    border-radius: .7rem;
    background: #eff6ff;
    color: #475569;
    font-size: .8rem;
    line-height: 1.45;
}

.mission-route-plan__snapshot-warning {
    background: #fff7ed;
    color: #9a3412;
}

.mission-route-plan__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin-top: 1rem;
}

.mission-route-plan__action {
    border: 1px solid #e2e8f0;
    border-radius: .85rem;
    background: #fff;
    overflow: hidden;
}

.mission-route-plan__action > summary {
    cursor: pointer;
    padding: .8rem .9rem;
    font-weight: 800;
    color: #1e3a8a;
    list-style-position: inside;
}

.mission-route-plan__action--danger > summary {
    color: #b91c1c;
}

.mission-route-plan__action[open] > summary {
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.mission-route-plan__action-body {
    padding: .9rem;
}

.mission-route-plan__form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
}

.mission-route-plan__field {
    min-width: 0;
}

.mission-route-plan__field--wide {
    grid-column: 1 / -1;
}

.mission-route-plan__field label {
    display: block;
    margin-bottom: .35rem;
    font-size: .8rem;
    font-weight: 800;
    color: #334155;
}

.mission-route-plan__field input,
.mission-route-plan__field select {
    width: 100%;
    min-height: 2.65rem;
    padding: .55rem .7rem;
    border: 1px solid #cbd5e1;
    border-radius: .65rem;
    background: #fff;
    color: #0f172a;
    font: inherit;
}

.mission-route-plan__field input:focus,
.mission-route-plan__field select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
}

.mission-route-plan__field [aria-invalid="true"] {
    border-color: #ef4444;
}

.mission-route-plan__field-error {
    display: block;
    margin-top: .3rem;
    color: #b91c1c;
    font-size: .76rem;
    line-height: 1.4;
}

.mission-route-plan__form-footer {
    align-items: center;
    margin-top: .9rem;
}

.mission-route-plan__form-footer > span {
    color: #64748b;
    font-size: .76rem;
    line-height: 1.4;
}

.mission-route-plan__form-footer button {
    border: 0;
    border-radius: .7rem;
    padding: .7rem .95rem;
    background: #1d4ed8;
    color: #fff;
    font: inherit;
    font-size: .82rem;
    font-weight: 800;
    cursor: pointer;
}

.mission-route-plan__form-footer button:hover {
    background: #1e40af;
}

.mission-route-plan__form-footer
.mission-route-plan__danger-button {
    background: #b91c1c;
}

.mission-route-plan__form-footer
.mission-route-plan__danger-button:hover {
    background: #991b1b;
}

.mission-route-plan__form-empty {
    margin: 0;
    padding: .75rem;
    border-radius: .7rem;
    background: #f8fafc;
    color: #64748b;
    line-height: 1.5;
}

.mission-route-plan__history {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.mission-route-plan__history-head {
    align-items: center;
}

.mission-route-plan__history-head > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 .55rem;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-weight: 900;
}

.mission-route-plan__history-list {
    display: grid;
    gap: .65rem;
    margin-top: .8rem;
}

.mission-route-plan__history-item {
    border: 1px solid #e2e8f0;
    border-radius: .8rem;
    background: #fff;
    overflow: hidden;
}

.mission-route-plan__history-item > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    padding: .8rem .9rem;
}

.mission-route-plan__history-item[open] > summary {
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.mission-route-plan__history-title {
    min-width: 0;
}

.mission-route-plan__history-title strong,
.mission-route-plan__history-title span {
    display: block;
    overflow-wrap: anywhere;
}

.mission-route-plan__history-title span {
    margin-top: .15rem;
    color: #64748b;
    font-size: .78rem;
}

.mission-route-plan__history-summary {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: .45rem;
    color: #64748b;
    font-size: .76rem;
}

.mission-route-plan__history-body {
    padding: .9rem;
}

.mission-route-plan__history-path {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mission-route-plan__history-path li {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    max-width: 100%;
    padding: .35rem .55rem;
    border-radius: .55rem;
    background: #f1f5f9;
    font-size: .76rem;
}

.mission-route-plan__history-path li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
    background: #cbd5e1;
    font-size: .66rem;
    font-weight: 900;
}

.mission-route-plan__history-path strong {
    overflow-wrap: anywhere;
}

.mission-route-plan__history-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
    margin: .8rem 0 0;
}

.mission-route-plan__history-meta > div {
    padding: .65rem;
    border-radius: .6rem;
    background: #f8fafc;
}

.mission-route-plan__history-meta dt {
    margin: 0;
    color: #64748b;
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.mission-route-plan__history-meta dd {
    margin: .2rem 0 0;
    overflow-wrap: anywhere;
    font-size: .8rem;
    line-height: 1.4;
}

.mission-route-plan__history-empty {
    margin-top: .8rem;
    padding: .9rem;
    border: 1px dashed #cbd5e1;
    border-radius: .75rem;
    background: #f8fafc;
    color: #64748b;
    text-align: center;
}

@media (max-width: 760px) {
    .mission-route-plan__head,
    .mission-route-plan__history-head,
    .mission-route-plan__form-footer,
    .mission-route-plan__history-item > summary {
        align-items: stretch;
        flex-direction: column;
    }

    .mission-route-plan__status {
        align-self: flex-start;
    }

    .mission-route-plan__identity,
    .mission-route-plan__actions,
    .mission-route-plan__form-grid,
    .mission-route-plan__history-meta {
        grid-template-columns: 1fr;
    }

    .mission-route-plan__field--wide {
        grid-column: auto;
    }

    .mission-route-plan__path {
        grid-template-columns: 1fr;
    }

    .mission-route-plan__form-footer button {
        width: 100%;
    }

    .mission-route-plan__history-summary {
        justify-content: flex-start;
    }

    .mission-route-plan__history-path {
        display: grid;
        grid-template-columns: 1fr;
    }

    .mission-route-plan__history-path li {
        width: 100%;
    }
}

/*
 * BADICOM CONTAINER MAP — FRANCHISE
 * Valeur opérationnelle fournie par le Free-time Read Model.
 */
.container-map-franchise-card {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 500;
    min-width: 132px;
    max-width: calc(100% - 36px);
    padding: 10px 14px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
}

.container-map-franchise-card[hidden] {
    display: none;
}

.container-map-franchise-card > span {
    display: block;
    margin-bottom: 3px;
    color: #64748b;
    font-size: 0.66rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.container-map-franchise-card > strong {
    display: block;
    color: #0f172a;
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.25;
    white-space: nowrap;
}

@media (max-width: 780px) {
    .container-map-franchise-card {
        left: 12px;
        bottom: 12px;
        min-width: 116px;
        max-width: calc(100% - 24px);
        padding: 8px 11px;
        border-radius: 10px;
    }

    .container-map-franchise-card > span {
        font-size: 0.6rem;
    }

    .container-map-franchise-card > strong {
        font-size: 0.78rem;
    }
}

/*
 * BADICOM SHIPMENT MAP — FRANCHISE CONTRACTUELLE
 * Information contractuelle majeure de l'expédition.
 */
.shipment-map-franchise-card {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 500;

    display: inline-flex;
    align-items: center;
    gap: 11px;

    min-width: 190px;
    padding: 11px 15px 11px 11px;

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            rgba(8, 54, 93, 0.97),
            rgba(10, 73, 122, 0.96)
        );

    box-shadow:
        0 10px 28px rgba(8, 54, 93, 0.28),
        0 2px 7px rgba(15, 23, 42, 0.16);

    color: #ffffff;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    pointer-events: none;
}

.shipment-map-franchise-card[hidden] {
    display: none;
}

.shipment-map-franchise-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;
    flex: 0 0 38px;

    border-radius: 10px;

    background: rgba(255, 255, 255, 0.13);
    color: #ffffff;
}

.shipment-map-franchise-card__content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.shipment-map-franchise-card__content small {
    display: block;

    margin-bottom: 3px;

    color: rgba(255, 255, 255, 0.72);

    font-size: 0.61rem;
    font-weight: 800;
    line-height: 1.15;

    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.shipment-map-franchise-card__content strong {
    display: block;

    color: #ffffff;

    font-size: 1rem;
    font-weight: 900;
    line-height: 1.1;

    letter-spacing: 0.015em;
    white-space: nowrap;
}

@media (max-width: 780px) {
    .shipment-map-franchise-card {
        left: 12px;
        bottom: 12px;

        min-width: 164px;

        gap: 8px;
        padding: 9px 12px 9px 9px;

        border-radius: 11px;
    }

    .shipment-map-franchise-card__icon {
        width: 32px;
        height: 32px;
        flex-basis: 32px;

        border-radius: 8px;
    }

    .shipment-map-franchise-card__icon svg {
        width: 15px;
        height: 15px;
    }

    .shipment-map-franchise-card__content small {
        font-size: 0.54rem;
    }

    .shipment-map-franchise-card__content strong {
        font-size: 0.88rem;
    }
}

/*
 * BADICOM CONTAINER MAP — FRANCHISE
 * Alignement visuel avec la carte Franchise de l'expédition.
 * La donnée métier reste le Read Model individuel du conteneur.
 */
.container-map-franchise-card {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 500;

    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    min-width: 190px;
    min-height: 60px;
    padding: 10px 15px;

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            rgba(8, 54, 93, 0.97),
            rgba(10, 73, 122, 0.96)
        );

    box-shadow:
        0 10px 28px rgba(8, 54, 93, 0.28),
        0 2px 7px rgba(15, 23, 42, 0.16);

    color: #ffffff;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    pointer-events: none;
}

.container-map-franchise-card[hidden] {
    display: none;
}

.container-map-franchise-card > span {
    display: block;
    margin-bottom: 4px;

    color: rgba(255, 255, 255, 0.72);

    font-size: 0.61rem;
    font-weight: 800;
    line-height: 1.15;

    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.container-map-franchise-card > strong {
    display: block;

    color: #ffffff;

    font-size: 0.92rem;
    font-weight: 900;
    line-height: 1.15;

    white-space: nowrap;
}

@media (max-width: 780px) {
    .container-map-franchise-card {
        left: 12px;
        bottom: 12px;

        min-width: 164px;
        min-height: 52px;

        padding: 8px 12px;

        border-radius: 11px;
    }

    .container-map-franchise-card > span {
        font-size: 0.54rem;
    }

    .container-map-franchise-card > strong {
        font-size: 0.82rem;
    }
}

/* =========================================================
   BADICOM Dashboard V10 — Franchise containers
   H5-B5
   ========================================================= */

.dashboard-v10-franchise {
    margin: 0 0 22px;
    padding: 18px 20px 20px;
    border: 1px solid #dce5ef;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 38, 71, .06);
}

.dashboard-v10-franchise__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.dashboard-v10-franchise__heading {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.dashboard-v10-franchise__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: #eef4fb;
    color: #173d68;
}

.dashboard-v10-franchise__icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dashboard-v10-franchise__heading h2 {
    margin: 0;
    color: #173d68;
    font-size: 17px;
    font-weight: 800;
}

.dashboard-v10-franchise__heading p {
    margin: 3px 0 0;
    color: #748398;
    font-size: 12px;
}

.dashboard-v10-franchise__total {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex: 0 0 auto;
    padding: 7px 11px;
    border-radius: 999px;
    background: #f4f7fa;
    color: #637286;
    font-size: 11px;
}

.dashboard-v10-franchise__total strong {
    color: #173d68;
    font-size: 17px;
    line-height: 1;
}

.dashboard-v10-franchise__states {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.dashboard-v10-franchise-state {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid #e1e7ee;
    border-radius: 13px;
    background: #fafbfd;
    color: #25374d;
    text-decoration: none;
    transition:
        transform .16s ease,
        box-shadow .16s ease,
        border-color .16s ease;
}

.dashboard-v10-franchise-state:hover {
    transform: translateY(-1px);
    border-color: #cbd7e4;
    box-shadow: 0 6px 16px rgba(15, 38, 71, .07);
}

.dashboard-v10-franchise-state > span {
    overflow: hidden;
    color: #66768a;
    font-size: 11px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-v10-franchise-state > strong {
    margin: 4px 0 2px;
    color: #173d68;
    font-size: 25px;
    line-height: 1.1;
}

.dashboard-v10-franchise-state > small {
    overflow: hidden;
    color: #8794a5;
    font-size: 10px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-v10-franchise-state--waiting {
    border-color: #f0dfb7;
    background: #fffaf0;
}

.dashboard-v10-franchise-state--waiting > strong {
    color: #9a6a12;
}

.dashboard-v10-franchise-state--active {
    border-color: #cce7d8;
    background: #f3fbf7;
}

.dashboard-v10-franchise-state--active > strong {
    color: #24734a;
}

.dashboard-v10-franchise-state--overdue {
    border-color: #efc7c7;
    background: #fff5f5;
}

.dashboard-v10-franchise-state--overdue > span,
.dashboard-v10-franchise-state--overdue > strong {
    color: #b43b3b;
}

.dashboard-v10-franchise-state--returned {
    border-color: #d8e0e8;
    background: #f7f9fb;
}

.dashboard-v10-franchise-state--returned > strong {
    color: #526579;
}

@media (max-width: 900px) {
    .dashboard-v10-franchise__states {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .dashboard-v10-franchise {
        margin-bottom: 16px;
        padding: 15px;
        border-radius: 16px;
    }

    .dashboard-v10-franchise__header {
        align-items: flex-start;
        margin-bottom: 13px;
    }

    .dashboard-v10-franchise__heading {
        align-items: flex-start;
    }

    .dashboard-v10-franchise__heading p {
        max-width: 220px;
    }

    .dashboard-v10-franchise__total {
        padding: 6px 9px;
    }

    .dashboard-v10-franchise__states {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .dashboard-v10-franchise-state {
        padding: 11px 12px;
    }

    .dashboard-v10-franchise-state > strong {
        font-size: 22px;
    }

    .dashboard-v10-franchise-state:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 390px) {
    .dashboard-v10-franchise__header {
        flex-direction: column;
        gap: 10px;
    }

    .dashboard-v10-franchise__total {
        align-self: flex-start;
    }
}
/* =========================================================
   Dashboard Transport — H5-C
   ========================================================= */

.dashboard-v10-kpi__money {
    font-size: clamp(1rem, 1.4vw, 1.35rem) !important;
    white-space: nowrap;
}

.dashboard-v10-transport-overview {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.dashboard-v10-transport-status__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    padding: 16px;
}

.dashboard-v10-transport-status__grid > a {
    min-width: 0;
    padding: 14px;
    border: 1px solid #e5eaf0;
    border-radius: 14px;
    background: #f8fafc;
    color: #203047;
    text-decoration: none;
    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

.dashboard-v10-transport-status__grid > a:hover {
    transform: translateY(-2px);
    border-color: #c9d5e3;
    box-shadow: 0 8px 18px rgba(25, 48, 77, .08);
}

.dashboard-v10-transport-status__grid span,
.dashboard-v10-transport-status__grid strong {
    display: block;
}

.dashboard-v10-transport-status__grid span {
    color: #66758a;
    font-size: .78rem;
    font-weight: 700;
}

.dashboard-v10-transport-status__grid strong {
    margin-top: 5px;
    color: #16345b;
    font-size: 1.6rem;
}

.dashboard-v10-transport-status__grid .is-alert {
    border-color: #f0c6c6;
    background: #fff5f5;
}

.dashboard-v10-transport-status__grid .is-alert strong {
    color: #b42318;
}

.dashboard-v10-transport-summary-grid {
    display: grid;
    grid-template-columns:
        minmax(0, .9fr)
        minmax(0, 1.35fr)
        minmax(0, .9fr);
    gap: 18px;
}

.dashboard-v10-transport-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
}

.dashboard-v10-transport-metrics > a {
    padding: 15px;
    border: 1px solid #e6ebf1;
    border-radius: 14px;
    background: #f8fafc;
    color: inherit;
    text-decoration: none;
}

.dashboard-v10-transport-metrics small,
.dashboard-v10-transport-metrics strong,
.dashboard-v10-transport-metrics span {
    display: block;
}

.dashboard-v10-transport-metrics small {
    color: #6c7b8e;
    font-weight: 700;
}

.dashboard-v10-transport-metrics strong {
    margin: 5px 0 2px;
    color: #16345b;
    font-size: 1.65rem;
}

.dashboard-v10-transport-metrics span {
    color: #66758a;
    font-size: .78rem;
}

.dashboard-v10-transport-finance {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 16px 16px 8px;
}

.dashboard-v10-transport-finance > div {
    min-width: 0;
    padding: 12px;
    border-radius: 12px;
    background: #f8fafc;
}

.dashboard-v10-transport-finance small,
.dashboard-v10-transport-finance strong {
    display: block;
}

.dashboard-v10-transport-finance small {
    margin-bottom: 5px;
    color: #6c7b8e;
    font-weight: 700;
}

.dashboard-v10-transport-finance strong {
    color: #16345b;
    font-size: .95rem;
    overflow-wrap: anywhere;
}

.dashboard-v10-transport-finance .is-balance {
    background: #fff6e8;
}

.dashboard-v10-transport-finance .is-balance strong {
    color: #a85d08;
}

.dashboard-v10-transport-case-count {
    margin: 0;
    padding: 4px 16px 16px;
    color: #66758a;
    font-size: .8rem;
    font-weight: 700;
}

.dashboard-v10-transport-provider {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
}

.dashboard-v10-transport-provider > div {
    padding: 15px;
    border: 1px solid #e6ebf1;
    border-radius: 14px;
    background: #f8fafc;
}

.dashboard-v10-transport-provider strong,
.dashboard-v10-transport-provider span {
    display: block;
}

.dashboard-v10-transport-provider strong {
    color: #16345b;
    font-size: 1.65rem;
}

.dashboard-v10-transport-provider span {
    margin-top: 3px;
    color: #66758a;
    font-size: .78rem;
    font-weight: 700;
}

@media (max-width: 1100px) {
    .dashboard-v10-transport-status__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-v10-transport-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-v10-transport-summary-grid
    > .dashboard-v10-panel:nth-child(2) {
        grid-column: span 2;
    }
}

@media (max-width: 700px) {
    .dashboard-v10-transport-status__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 12px;
    }

    .dashboard-v10-transport-summary-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .dashboard-v10-transport-summary-grid
    > .dashboard-v10-panel:nth-child(2) {
        grid-column: auto;
    }

    .dashboard-v10-transport-finance {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 430px) {
    .dashboard-v10-transport-status__grid {
        gap: 8px;
    }

    .dashboard-v10-transport-status__grid > a {
        padding: 11px;
    }

    .dashboard-v10-transport-status__grid strong {
        font-size: 1.35rem;
    }

    .dashboard-v10-transport-metrics,
    .dashboard-v10-transport-provider {
        grid-template-columns: minmax(0, 1fr);
    }

    .dashboard-v10-transport-finance {
        gap: 8px;
        padding: 12px 12px 6px;
    }

    .dashboard-v10-transport-finance > div {
        padding: 10px;
    }

    .dashboard-v10-transport-finance strong {
        font-size: .86rem;
    }
}

/* =========================================================
   Dashboard Mixed — H5-D
   ========================================================= */

.dashboard-v10-mixed {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.dashboard-v10-mixed-kpis {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.dashboard-v10-mixed-kpi {
    min-width: 0;
    padding: 16px;
    border: 1px solid #e3e9f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(24, 49, 79, .045);
}

.dashboard-v10-mixed-kpi span,
.dashboard-v10-mixed-kpi strong,
.dashboard-v10-mixed-kpi small {
    display: block;
}

.dashboard-v10-mixed-kpi span {
    color: #65758a;
    font-size: .77rem;
    font-weight: 800;
}

.dashboard-v10-mixed-kpi strong {
    margin: 7px 0 4px;
    color: #16345b;
    font-size: 1.65rem;
    line-height: 1;
}

.dashboard-v10-mixed-kpi small {
    color: #738196;
    font-size: .72rem;
}

.dashboard-v10-mixed-kpi.is-risk {
    border-color: #efcaca;
    background: #fff7f7;
}

.dashboard-v10-mixed-kpi.is-risk strong {
    color: #b42318;
}

.dashboard-v10-mixed-kpi__money {
    font-size: 1rem !important;
    line-height: 1.2 !important;
}

.dashboard-v10-mixed-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, .8fr);
    gap: 18px;
}

.dashboard-v10-mixed-flow,
.dashboard-v10-mixed-risk,
.dashboard-v10-mixed-summary,
.dashboard-v10-mixed-finance {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.dashboard-v10-mixed-flow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-v10-mixed-risk,
.dashboard-v10-mixed-summary,
.dashboard-v10-mixed-finance {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-v10-mixed-flow > div,
.dashboard-v10-mixed-risk > div,
.dashboard-v10-mixed-summary > div,
.dashboard-v10-mixed-finance > div {
    min-width: 0;
    padding: 13px;
    border-radius: 13px;
    background: #f8fafc;
}

.dashboard-v10-mixed-flow span,
.dashboard-v10-mixed-risk span,
.dashboard-v10-mixed-summary span,
.dashboard-v10-mixed-finance span {
    display: block;
    color: #68778b;
    font-size: .74rem;
    font-weight: 800;
}

.dashboard-v10-mixed-flow strong,
.dashboard-v10-mixed-risk strong,
.dashboard-v10-mixed-summary strong {
    display: block;
    margin-top: 5px;
    color: #16345b;
    font-size: 1.45rem;
}

.dashboard-v10-mixed-risk .is-risk {
    background: #fff2f2;
}

.dashboard-v10-mixed-risk .is-risk strong {
    color: #b42318;
}

.dashboard-v10-mixed-finance strong {
    display: block;
    margin-top: 5px;
    color: #16345b;
    font-size: .9rem;
    overflow-wrap: anywhere;
}

.dashboard-v10-mixed-finance .is-balance {
    background: #fff6e8;
}

.dashboard-v10-mixed-finance .is-balance strong {
    color: #a85d08;
}

.dashboard-v10-mixed-count {
    padding: 6px 10px;
    border-radius: 999px;
    background: #edf3f9;
    color: #36536f;
    font-size: .75rem;
    font-weight: 800;
}

.dashboard-v10-mixed-table-wrap {
    overflow-x: auto;
}

.dashboard-v10-mixed-table {
    width: 100%;
    border-collapse: collapse;
}

.dashboard-v10-mixed-table th,
.dashboard-v10-mixed-table td {
    padding: 13px 15px;
    border-top: 1px solid #edf1f5;
    text-align: left;
    vertical-align: middle;
}

.dashboard-v10-mixed-table th {
    background: #fafbfd;
    color: #66758a;
    font-size: .72rem;
    text-transform: uppercase;
}

.dashboard-v10-mixed-table td {
    color: #34465c;
    font-size: .82rem;
}

.dashboard-v10-mixed-table td strong,
.dashboard-v10-mixed-table td small {
    display: block;
}

.dashboard-v10-mixed-table td small {
    margin-top: 3px;
    color: #7a8797;
}

.dashboard-v10-mixed-badge,
.dashboard-v10-mixed-no-mission {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    background: #edf3f8;
    color: #40576f;
    font-size: .7rem;
    font-weight: 800;
}

.dashboard-v10-mixed-badge.is-risk {
    background: #fff0f0;
    color: #b42318;
}

.dashboard-v10-mixed-no-mission {
    background: #f3f5f7;
    color: #697789;
}

@media (max-width: 1180px) {
    .dashboard-v10-mixed-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 850px) {
    .dashboard-v10-mixed-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-v10-mixed-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .dashboard-v10-mixed-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .dashboard-v10-mixed-table,
    .dashboard-v10-mixed-table tbody,
    .dashboard-v10-mixed-table tr,
    .dashboard-v10-mixed-table td {
        display: block;
        width: 100%;
    }

    .dashboard-v10-mixed-table thead {
        display: none;
    }

    .dashboard-v10-mixed-table tr {
        padding: 12px 14px;
        border-top: 1px solid #edf1f5;
    }

    .dashboard-v10-mixed-table td {
        display: grid;
        grid-template-columns: 105px minmax(0, 1fr);
        gap: 10px;
        padding: 7px 0;
        border: 0;
    }

    .dashboard-v10-mixed-table td::before {
        content: attr(data-label);
        color: #8490a0;
        font-size: .68rem;
        font-weight: 800;
        text-transform: uppercase;
    }
}

/* =========================================================
   H5-D mobile compact chains
   ========================================================= */

@media (max-width: 700px) {

    .dashboard-v10-mixed-chains
    .dashboard-v10-panel__header {
        align-items: flex-start;
        gap: 10px;
    }

    .dashboard-v10-mixed-chains
    .dashboard-v10-panel__header p:last-child {
        margin-top: 4px;
    }

    .dashboard-v10-mixed-count {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .dashboard-v10-mixed-table-wrap {
        overflow: visible;
    }

    .dashboard-v10-mixed-table {
        display: block;
    }

    .dashboard-v10-mixed-table tbody {
        display: grid;
        gap: 10px;
        padding: 12px;
    }

    .dashboard-v10-mixed-table tr {
        display: grid;
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr);
        grid-template-areas:
            "shipment container"
            "phase franchise"
            "transport transport"
            "route route";
        gap: 8px 10px;

        width: 100%;
        padding: 13px;

        border: 1px solid #e5ebf1;
        border-radius: 14px;
        background: #fff;

        box-shadow:
            0 3px 10px
            rgba(24, 49, 79, .035);
    }

    .dashboard-v10-mixed-table td {
        display: block;
        width: auto;
        min-width: 0;
        padding: 0;
        border: 0;
    }

    .dashboard-v10-mixed-table td::before {
        display: none;
        content: none;
    }

    .dashboard-v10-mixed-table
    td[data-label="Expédition"] {
        grid-area: shipment;
    }

    .dashboard-v10-mixed-table
    td[data-label="Conteneur"] {
        grid-area: container;
    }

    .dashboard-v10-mixed-table
    td[data-label="Phase"] {
        grid-area: phase;
    }

    .dashboard-v10-mixed-table
    td[data-label="Franchise"] {
        grid-area: franchise;
    }

    .dashboard-v10-mixed-table
    td[data-label="Transport"] {
        grid-area: transport;
    }

    .dashboard-v10-mixed-table
    td[data-label="Trajet"] {
        grid-area: route;
    }

    .dashboard-v10-mixed-table
    td[data-label="Expédition"] strong,
    .dashboard-v10-mixed-table
    td[data-label="Conteneur"] strong {
        overflow: hidden;
        color: #17385d;
        font-size: .84rem;
        font-weight: 800;
        line-height: 1.25;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .dashboard-v10-mixed-table
    td[data-label="Expédition"] small,
    .dashboard-v10-mixed-table
    td[data-label="Conteneur"] small {
        margin-top: 3px;
        color: #8190a3;
        font-size: .7rem;
        line-height: 1.2;
    }

    .dashboard-v10-mixed-table
    td[data-label="Conteneur"] {
        text-align: right;
    }

    .dashboard-v10-mixed-table
    td[data-label="Conteneur"] small {
        text-align: right;
    }

    .dashboard-v10-mixed-table
    td[data-label="Phase"],
    .dashboard-v10-mixed-table
    td[data-label="Franchise"] {
        align-self: center;
    }

    .dashboard-v10-mixed-table
    td[data-label="Franchise"] {
        text-align: right;
    }

    .dashboard-v10-mixed-table
    td[data-label="Franchise"]
    .dashboard-v10-mixed-badge {
        justify-content: center;
    }

    .dashboard-v10-mixed-badge,
    .dashboard-v10-mixed-no-mission {
        max-width: 100%;
        padding: 5px 9px;
        font-size: .68rem;
        line-height: 1.15;
        white-space: nowrap;
    }

    .dashboard-v10-mixed-table
    td[data-label="Transport"] {
        padding-top: 8px;
        border-top: 1px solid #eef2f6;
    }

    .dashboard-v10-mixed-table
    td[data-label="Transport"] strong {
        display: inline;
        color: #17385d;
        font-size: .78rem;
        line-height: 1.25;
    }

    .dashboard-v10-mixed-table
    td[data-label="Transport"] small {
        display: inline;
        margin: 0 0 0 5px;
        color: #7c899a;
        font-size: .72rem;
    }

    .dashboard-v10-mixed-table
    td[data-label="Transport"]
    small:not(:empty)::before {
        content: "· ";
    }

    .dashboard-v10-mixed-table
    td[data-label="Trajet"] {
        color: #65758a;
        font-size: .72rem;
        line-height: 1.35;
    }

    .dashboard-v10-mixed-table
    td[data-label="Trajet"] span,
    .dashboard-v10-mixed-table
    td[data-label="Trajet"] small {
        display: inline;
        margin: 0;
        color: inherit;
        font-size: inherit;
    }

    .dashboard-v10-mixed-table
    td[data-label="Trajet"] small {
        margin-left: 4px;
    }
}

@media (max-width: 430px) {

    .dashboard-v10-mixed-table tbody {
        gap: 9px;
        padding: 10px;
    }

    .dashboard-v10-mixed-table tr {
        padding: 12px;
        gap: 7px 8px;
    }

    .dashboard-v10-mixed-table
    td[data-label="Expédition"] strong,
    .dashboard-v10-mixed-table
    td[data-label="Conteneur"] strong {
        font-size: .8rem;
    }
}

/* =========================================================
   H5-D mobile hide empty route
   ========================================================= */

@media (max-width: 700px) {

    .dashboard-v10-mixed-table
    .dashboard-v10-mixed-row--no-mission
    td[data-label="Trajet"] {
        display: none;
    }

    .dashboard-v10-mixed-table
    .dashboard-v10-mixed-row--no-mission {
        grid-template-areas:
            "shipment container"
            "phase franchise"
            "transport transport";
    }
}

/* =========================================================
   BADICOM H5 FINANCE DASHBOARD
   ========================================================= */

.dashboard-finance {
    display: grid;
    gap: 22px;
}

.dashboard-finance__hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 26px 28px;
    border: 1px solid #dbe4ee;
    border-radius: 20px;
    background:
        linear-gradient(
            135deg,
            #071c33 0%,
            #0d2c4d 58%,
            #123b62 100%
        );
    box-shadow: 0 14px 34px rgba(7, 28, 51, .12);
    color: #fff;
}

.dashboard-finance__eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #9fc3e6;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
}

.dashboard-finance__hero h1 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.12;
}

.dashboard-finance__hero p {
    max-width: 650px;
    margin: 9px 0 0;
    color: #d5e2ef;
    font-size: 14px;
    line-height: 1.55;
}

.dashboard-finance__all {
    flex: 0 0 auto;
    padding: 11px 15px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 11px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition:
        background .18s ease,
        border-color .18s ease;
}

.dashboard-finance__all:hover {
    border-color: rgba(255, 255, 255, .48);
    background: rgba(255, 255, 255, .14);
}

.dashboard-finance__kpis {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.dashboard-finance-kpi {
    min-width: 0;
    padding: 17px 18px;
    border: 1px solid #e0e7ef;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(15, 35, 55, .055);
}

.dashboard-finance-kpi > span,
.dashboard-finance-kpi > small {
    display: block;
}

.dashboard-finance-kpi > span {
    color: #617287;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .025em;
    text-transform: uppercase;
}

.dashboard-finance-kpi > strong {
    display: block;
    margin-top: 8px;
    color: #102a43;
    font-size: 25px;
    line-height: 1.05;
}

.dashboard-finance-kpi > small {
    margin-top: 6px;
    color: #8796a8;
    font-size: 11px;
}

.dashboard-finance-kpi--attention {
    border-top: 3px solid #d89a24;
}

.dashboard-finance-kpi--payment {
    border-top: 3px solid #2676b8;
}

.dashboard-finance-kpi--success {
    border-top: 3px solid #3b8d6a;
}

.dashboard-finance-kpi--balance {
    border-top: 3px solid #102f50;
}

.dashboard-finance-kpi--balance > strong {
    font-size: 20px;
}

.dashboard-finance__workbench {
    display: grid;
    grid-template-columns:
        minmax(0, 1.08fr)
        minmax(0, .92fr);
    gap: 18px;
    align-items: start;
}

.dashboard-finance-panel {
    overflow: hidden;
    border: 1px solid #dfe7ef;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 9px 26px rgba(16, 42, 67, .065);
}

.dashboard-finance-panel--priority {
    border-top: 4px solid #d89a24;
}

.dashboard-finance-panel--payment {
    border-top: 4px solid #2676b8;
}

.dashboard-finance-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 21px 17px;
    border-bottom: 1px solid #edf1f5;
}

.dashboard-finance-panel__header > div {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.dashboard-finance-panel__index {
    display: grid;
    flex: 0 0 35px;
    width: 35px;
    height: 35px;
    place-items: center;
    border-radius: 10px;
    background: #edf4fa;
    color: #17466f;
    font-size: 11px;
    font-weight: 900;
}

.dashboard-finance-panel__header h2 {
    margin: 0;
    color: #102a43;
    font-size: 17px;
}

.dashboard-finance-panel__header p {
    margin: 5px 0 0;
    color: #718196;
    font-size: 12px;
    line-height: 1.45;
}

.dashboard-finance-panel__count {
    display: grid;
    flex: 0 0 34px;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    place-items: center;
    border-radius: 999px;
    background: #102f50;
    color: #fff;
    font-size: 13px;
}

.dashboard-finance-list {
    display: grid;
}

.dashboard-finance-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 21px;
    border-bottom: 1px solid #edf1f5;
    color: inherit;
    text-decoration: none;
    transition:
        background .16s ease,
        transform .16s ease;
}

.dashboard-finance-item:last-child {
    border-bottom: 0;
}

.dashboard-finance-item:hover {
    background: #f8fafc;
}

.dashboard-finance-item__main {
    min-width: 0;
}

.dashboard-finance-item__top {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.dashboard-finance-item__top > strong {
    overflow: hidden;
    color: #102a43;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-finance-item__subject {
    display: block;
    overflow: hidden;
    margin-top: 6px;
    color: #3e5064;
    font-size: 12px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-finance-item__main > small {
    display: block;
    margin-top: 5px;
    color: #8492a3;
    font-size: 11px;
}

.dashboard-finance-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 22px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 850;
}

.dashboard-finance-badge--submitted {
    background: #fff3d8;
    color: #8a5a00;
}

.dashboard-finance-badge--approved {
    background: #e6f1fb;
    color: #15578d;
}

.dashboard-finance-item__amount {
    display: grid;
    flex: 0 0 auto;
    justify-items: end;
    gap: 4px;
    text-align: right;
}

.dashboard-finance-item__amount strong {
    color: #102a43;
    font-size: 14px;
    white-space: nowrap;
}

.dashboard-finance-item__amount small {
    color: #8290a0;
    font-size: 10px;
}

.dashboard-finance-item__amount span {
    color: #1769aa;
    font-size: 11px;
    font-weight: 800;
}

.dashboard-finance-empty {
    display: grid;
    gap: 5px;
    padding: 28px 21px;
    text-align: center;
}

.dashboard-finance-empty strong {
    color: #2f455b;
    font-size: 13px;
}

.dashboard-finance-empty span {
    color: #8492a3;
    font-size: 12px;
}

.dashboard-finance__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 20px;
    border: 1px solid #dfe7ef;
    border-radius: 15px;
    background: #fff;
}

.dashboard-finance__footer > div {
    display: grid;
    gap: 3px;
}

.dashboard-finance__footer strong {
    color: #102a43;
    font-size: 13px;
}

.dashboard-finance__footer span {
    color: #7b8999;
    font-size: 11px;
}

.dashboard-finance__footer a {
    color: #1769aa;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 1180px) {
    .dashboard-finance__kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 850px) {
    .dashboard-finance__hero {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-finance__all {
        align-self: flex-start;
    }

    .dashboard-finance__workbench {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .dashboard-finance {
        gap: 14px;
    }

    .dashboard-finance__hero {
        gap: 17px;
        padding: 20px 17px;
        border-radius: 16px;
    }

    .dashboard-finance__hero h1 {
        font-size: 23px;
    }

    .dashboard-finance__all {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .dashboard-finance__kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .dashboard-finance-kpi {
        padding: 14px 13px;
        border-radius: 13px;
    }

    .dashboard-finance-kpi > strong {
        font-size: 21px;
    }

    .dashboard-finance-kpi--balance > strong {
        font-size: 16px;
    }

    .dashboard-finance-panel {
        border-radius: 15px;
    }

    .dashboard-finance-panel__header {
        padding: 16px 14px 14px;
    }

    .dashboard-finance-panel__index {
        display: none;
    }

    .dashboard-finance-panel__header p {
        font-size: 11px;
    }

    .dashboard-finance-item {
        align-items: flex-start;
        padding: 15px 14px;
    }

    .dashboard-finance-item__top {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .dashboard-finance-item__subject {
        max-width: 52vw;
    }

    .dashboard-finance-item__amount strong {
        font-size: 12px;
    }

    .dashboard-finance__footer {
        align-items: flex-start;
        flex-direction: column;
        padding: 15px;
    }
}

@media (max-width: 390px) {
    .dashboard-finance__kpis {
        grid-template-columns: 1fr;
    }

    .dashboard-finance-item {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .dashboard-finance-item__subject {
        max-width: none;
    }

    .dashboard-finance-item__amount {
        justify-items: start;
        text-align: left;
    }
}

/* =========================================================
   BADICOM — Dashboard scope navigation
   ========================================================= */

.dashboard-scope-nav {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    margin: 0 0 16px;
    padding: 4px;
    overflow-x: auto;
    border: 1px solid #dfe6ef;
    border-radius: 12px;
    background: #f7f9fc;
    scrollbar-width: none;
}

.dashboard-scope-nav::-webkit-scrollbar {
    display: none;
}

.dashboard-scope-nav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 7px 13px;
    border-radius: 9px;
    color: #526174;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background-color 0.16s ease,
        color 0.16s ease,
        box-shadow 0.16s ease;
}

.dashboard-scope-nav__link:hover {
    color: #102a43;
    background: #ffffff;
}

.dashboard-scope-nav__link.is-active {
    color: #ffffff;
    background: #102a43;
    box-shadow: 0 3px 9px rgba(16, 42, 67, 0.18);
}

@media (max-width: 780px) {
    .dashboard-scope-nav {
        display: flex;
        width: 100%;
        margin-bottom: 12px;
    }

    .dashboard-scope-nav__link {
        flex: 0 0 auto;
        min-height: 38px;
        padding-right: 14px;
        padding-left: 14px;
    }
}

/* BADICOM E1-C1-B6-R2 PREMIUM REGISTER */

.containers-v23-table-wrap:has(table[data-e1-container-register]) {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: #a7b9cc #eef3f8;
}

table[data-e1-container-register] {
    width: 2290px !important;
    min-width: 2290px !important;
    max-width: none !important;
    table-layout: fixed !important;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12.5px;
    color: #183451;
}

table[data-e1-container-register] thead th {
    box-sizing: border-box;
    height: 49px;
    padding: 12px 14px;
    background: #edf3f9;
    color: #24466c;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.35;
    letter-spacing: .035em;
    text-transform: uppercase;
    text-align: left;
    vertical-align: middle;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    max-width: none;
}

table[data-e1-container-register] tbody td {
    box-sizing: border-box;
    height: 63px;
    padding: 12px 14px;
    vertical-align: middle;
    font-size: 12.5px;
    line-height: 1.45;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    background: #fff;
    border-bottom: 1px solid #e6edf5;
}

table[data-e1-container-register] tbody tr:nth-child(even) td {
    background: #fafcff;
}

table[data-e1-container-register] tbody tr:hover td {
    background: #eef6ff;
}

table[data-e1-container-register] tbody tr[data-container-open] {
    cursor: pointer;
}

table[data-e1-container-register] tbody td:first-child {
    box-shadow: inset 3px 0 0 #b7cee4;
}

table[data-e1-container-register] tbody td strong {
    color: #12365e;
    font-weight: 750;
}

table[data-e1-container-register] tbody td small {
    display: block;
    margin-top: 5px;
    color: #687f99;
    font-size: 11px;
}

table[data-e1-container-register] tbody td:nth-child(3) strong {
    color: #07549a;
    font-weight: 800;
    white-space: nowrap;
}

table[data-e1-container-register] .badge {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    line-height: 1.3;
}

table[data-e1-container-register] th:nth-child(1) { width: 190px; }
table[data-e1-container-register] th:nth-child(2) { width: 190px; }
table[data-e1-container-register] th:nth-child(3) { width: 185px; }
table[data-e1-container-register] th:nth-child(4) { width: 85px; }
table[data-e1-container-register] th:nth-child(5) { width: 255px; }
table[data-e1-container-register] th:nth-child(6) { width: 165px; }
table[data-e1-container-register] th:nth-child(7) { width: 250px; }
table[data-e1-container-register] th:nth-child(8) { width: 230px; }
table[data-e1-container-register] th:nth-child(9) { width: 165px; }
table[data-e1-container-register] th:nth-child(10) { width: 190px; }
table[data-e1-container-register] th:nth-child(11) { width: 165px; }
table[data-e1-container-register] th:nth-child(12) { width: 220px; }

/* E1-C2-B3-R2 SORT HEADERS */
table[data-e1-container-register] .e1-sort-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}
table[data-e1-container-register] .e1-sort-link:hover {
    color: #07549a;
}
table[data-e1-container-register] .e1-sort-link span {
    font-size: 14px;
    opacity: .7;
}
/* BADICOM-E1-UI-R7-R2 */
table[data-e1-container-register] .e1-arrival-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    min-width: 155px;
}

table[data-e1-container-register] .e1-arrival-heading {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .045em;
    color: #67819e;
    text-transform: uppercase;
}

table[data-e1-container-register] .e1-arrival-date {
    font-size: 14px;
    font-weight: 800;
    color: #073d77;
}

table[data-e1-container-register] .e1-arrival-free {
    display: inline-flex;
    padding: 4px 9px;
    border-radius: 999px;
    background: #eef6ff;
    border: 1px solid #c7e0fa;
    font-size: 11px;
    font-weight: 700;
    color: #0864ae;
}

table[data-e1-container-register] .e1-arrival-alert {
    display: inline-flex;
    align-items: flex-start;
    gap: 7px;
    max-width: 100%;
    padding: 8px 10px;
    border: 1px solid;
    border-radius: 9px;
    line-height: 1.2;
    font-size: 11px;
}

table[data-e1-container-register] .e1-arrival-alert strong {
    font-size: 11px;
}

table[data-e1-container-register] .e1-arrival-alert small {
    display: block;
    margin-top: 3px;
    font-size: 10px;
}

table[data-e1-container-register] .e1-arrival-alert--normal {
    background: #eff8ff;
    border-color: #b9dcf7;
    color: #075b9b;
}

table[data-e1-container-register] .e1-arrival-alert--warning {
    background: #fff7e9;
    border-color: #f6d094;
    color: #9b5804;
}

table[data-e1-container-register] .e1-arrival-alert--danger {
    background: #fff0f0;
    border-color: #f9b2b2;
    color: #ba2020;
}

/* BADICOM DSH-V2 C1 — transport operational cockpit */
.dsh-v2-command{margin:0 0 24px;display:grid;gap:16px}.dsh-v2-heading{display:flex;justify-content:space-between;align-items:center;gap:18px}.dsh-v2-heading h2{font-size:clamp(20px,2vw,27px);margin:4px 0}.dsh-v2-heading p,.dsh-v2-board-head p{margin:3px 0;color:#617792;font-size:13px}.dsh-v2-eyebrow{font-size:11px;font-weight:800;letter-spacing:.12em;color:#17639d}.dsh-v2-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.dsh-v2-metric{background:#fff;border:1px solid #e1e9f2;border-radius:15px;padding:15px;display:flex;flex-direction:column;gap:7px;text-decoration:none;color:#142f52;min-width:0}.dsh-v2-metric strong{font-size:29px;line-height:1}.dsh-v2-metric small{font-size:12px;font-weight:750}.dsh-v2-metric span{font-size:11px;color:#647c98}.dsh-v2-metric--risk{border-color:#ffd3d6;background:#fffafa}.dsh-v2-metric--risk strong{color:#bb2440}.dsh-v2-board{background:#fff;border:1px solid #e1e9f2;border-radius:17px;overflow:hidden}.dsh-v2-board-head{display:flex;justify-content:space-between;align-items:center;padding:17px 20px;border-bottom:1px solid #e7edf4}.dsh-v2-board-head h3{margin:0;font-size:17px}.dsh-v2-board-head>span{font-size:12px;color:#607997}.dsh-v2-table-wrap{overflow:auto}.dsh-v2-table{width:100%;border-collapse:collapse;font-size:13px;min-width:790px}.dsh-v2-table th{text-align:left;padding:12px 16px;background:#f5f8fc;color:#536781;font-size:11px;text-transform:uppercase;white-space:nowrap}.dsh-v2-table td{padding:13px 16px;border-top:1px solid #edf1f6;vertical-align:middle}.dsh-v2-table td strong{display:block}.dsh-v2-table td small,.dsh-v2-table td>span:not(.dsh-v2-status){display:block;font-size:11px;color:#667c99;margin-top:4px}.dsh-v2-table a{color:#1769b1;font-weight:750}.dsh-v2-status{display:inline-block;border-radius:20px;padding:5px 10px;background:#edf3fa;color:#235d93;font-size:11px;font-weight:750}.dsh-v2-status--in_progress{background:#e9f7ef;color:#137547}.dsh-v2-status--suspended{background:#fff0ed;color:#bb3c29}.dsh-v2-steps{height:7px;min-width:110px;background:#e5edf5;border-radius:30px;overflow:hidden}.dsh-v2-steps__fill{display:block;height:100%;background:#2774b8;border-radius:30px}.dsh-v2-note{margin:0;padding:11px 20px;font-size:11px;color:#637d98;border-top:1px solid #e8eff6}.dsh-v2-empty{text-align:center;padding:28px!important;color:#678!important}@media(max-width:1280px){.dsh-v2-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:700px){.dsh-v2-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.dsh-v2-heading{align-items:flex-start;flex-direction:column}.dsh-v2-table{min-width:750px}}

/* BADICOM DSH-V2-C4: operational cockpit layout (Transport scope only) */
.dsh-v2-c4-main { margin-top: 18px; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); align-items: stretch; }
.dsh-v2-c4-main > .dashboard-v10-alerts { order: 1; }
.dsh-v2-c4-main > .dashboard-v10-map-panel { order: 2; }
.dsh-v2-c4-main .dashboard-v10-map { min-height: 300px; height: 330px; }
.dsh-v2-c4-main .dashboard-v10-alert-list { max-height: 340px; overflow-y: auto; }
.dsh-v2-c4-resources { margin-top: 18px; gap: 10px; }
.dsh-v2-c4-resources .dashboard-v10-transport-summary-grid { gap: 12px; }
.dsh-v2-c4-resources .dashboard-v10-transport-metrics,
.dsh-v2-c4-resources .dashboard-v10-transport-finance,
.dsh-v2-c4-resources .dashboard-v10-transport-provider { padding: 12px; }
@media (max-width: 900px) {
  .dsh-v2-c4-main { grid-template-columns: 1fr; }
  .dsh-v2-c4-main > .dashboard-v10-alerts { order: 1; }
  .dsh-v2-c4-main > .dashboard-v10-map-panel { order: 2; }
  .dsh-v2-c4-main .dashboard-v10-map { min-height: 250px; height: 280px; }
}

/* BADICOM DSH-V2-C6 PREMIUM READABILITY — Transport cockpit only */
.dsh-v2-command { color: #122b4c; }
.dsh-v2-command .dsh-v2-heading h2 { color: #102747; font-weight: 800; letter-spacing: -.025em; }
.dsh-v2-command .dsh-v2-eyebrow { color: #15598d; font-size: 12px; letter-spacing: .105em; }
.dsh-v2-command .dsh-v2-heading p,
.dsh-v2-command .dsh-v2-board-head p { color: #405c7b; font-size: 13px; font-weight: 500; line-height: 1.5; }
.dsh-v2-command .dsh-v2-metric { border-color: #d6e1ed; box-shadow: 0 2px 10px rgba(18,44,78,.035); transition: border-color .15s, box-shadow .15s; }
.dsh-v2-command a.dsh-v2-metric:hover { border-color: #90bce0; box-shadow: 0 5px 16px rgba(18,44,78,.09); }
.dsh-v2-command .dsh-v2-metric small,
section[aria-label="Demandes de fonds Transport"] .dsh-v2-metric small { color: #16365b; font-size: 12px; font-weight: 750; }
.dsh-v2-command .dsh-v2-metric strong,
section[aria-label="Demandes de fonds Transport"] .dsh-v2-metric strong { color: #0d294e; font-weight: 800; font-variant-numeric: tabular-nums; }
.dsh-v2-command .dsh-v2-metric--risk strong { color: #b61e3c; }
.dsh-v2-command .dsh-v2-metric span,
section[aria-label="Demandes de fonds Transport"] .dsh-v2-metric span { color: #455f7e; font-size: 12px; font-weight: 500; line-height: 1.4; }
.dsh-v2-command .dsh-v2-board-head h3,
section[aria-label="Demandes de fonds Transport"] .dsh-v2-board-head h3 { color: #102b4b; font-weight: 750; }
.dsh-v2-command .dsh-v2-board-head > span { color: #405c7b; font-weight: 600; }
.dsh-v2-command .dsh-v2-table th,
section[aria-label="Demandes de fonds Transport"] .dsh-v2-table th { color: #375473; background: #f0f5fa; font-size: 11px; font-weight: 800; }
.dsh-v2-command .dsh-v2-table td,
section[aria-label="Demandes de fonds Transport"] .dsh-v2-table td { color: #1d3858; line-height: 1.5; }
.dsh-v2-command .dsh-v2-table td strong,
section[aria-label="Demandes de fonds Transport"] .dsh-v2-table td strong { color: #102f54; font-weight: 750; }
.dsh-v2-command .dsh-v2-table td small,
.dsh-v2-command .dsh-v2-table td > span:not(.dsh-v2-status),
section[aria-label="Demandes de fonds Transport"] .dsh-v2-table td small { color: #476483; font-size: 12px; }
.dsh-v2-command .dsh-v2-note { color: #486584; font-size: 12px; }
.dsh-v2-command .dsh-v2-empty,
section[aria-label="Demandes de fonds Transport"] .dsh-v2-empty { color: #45617d !important; font-size: 13px; font-weight: 500; }
.dsh-v2-command .dsh-v2-table a,
section[aria-label="Demandes de fonds Transport"] .dsh-v2-table a { color: #075d9b; font-weight: 750; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.dsh-v2-command .dsh-v2-table a:focus-visible,
.dsh-v2-command a.dsh-v2-metric:focus-visible { outline: 3px solid #1e83c8; outline-offset: 3px; }
@media(max-width:700px) {
 .dsh-v2-command .dsh-v2-metric span,
 section[aria-label="Demandes de fonds Transport"] .dsh-v2-metric span { font-size: 11.5px; }
}
