/* Coordonnées (module « coordonnees »). */
.cx__view {
    display: grid;
    align-content: start;
    gap: 14px;
}

.cx__xy {
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}

.cx__xy input {
    width: 100%;
    min-height: 42px;
    padding: 8px 11px;
    border: 1px solid #c9d7da;
    border-radius: 8px;
    color: var(--ink);
    background: var(--white);
    font: inherit;
}

.cx__xy input:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 0;
    border-color: var(--accent);
}

.cx__add {
    min-width: 42px;
    padding: 0 10px;
}

.cx__input {
    display: grid;
    gap: 10px;
}

.cx__import {
    display: grid;
    gap: 8px;
}

.cx__file {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.cx__choose {
    position: relative;
    cursor: pointer;
}

.cx__choose input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.cx__choose:focus-within {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

.cx__filename {
    flex: 1 1 120px;
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cx__count {
    margin: 0;
    color: var(--navy);
    font-size: 0.82rem;
    font-weight: 600;
}

.cx__rule {
    width: 100%;
    margin: 0;
    border: 0;
    border-top: 1px solid var(--line);
}

.cx__heading {
    margin: 0;
    color: var(--navy);
    font-size: 0.95rem;
}

.cx__map {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}

.cx__map img {
    display: block;
    width: 100%;
    min-height: 120px;
}

.cx__tables {
    display: grid;
    gap: 10px;
    max-height: 320px;
    overflow: auto;
}

.cx-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
}

.cx-table th,
.cx-table td {
    padding: 5px 7px;
    border: 1px solid var(--line);
    text-align: start;
    white-space: nowrap;
}

.cx-table th {
    color: var(--navy);
    background: var(--paper);
}

.cx-table tbody tr:nth-child(even) td {
    background: #f9fbfb;
}

.cx__downloads {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.cx__downloads .btn {
    flex-direction: column;
    min-height: 54px;
    padding: 6px 4px;
    gap: 3px;
    font-size: 0.74rem;
}

.cx__back {
    transform: scaleX(-1);
}

[dir="rtl"] .cx__back {
    transform: none;
}
