/*
|--------------------------------------------------------------------------
| Navigation principale Web / PDF
|--------------------------------------------------------------------------
*/

.main-mode-selector {
    display: flex;
    gap: 28px;
    margin: 0 0 20px 0;
    padding: 0;
    border: 0;
}

.main-mode-selector label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    font-weight: 700;
    cursor: pointer;
}

.main-mode-selector input {
    margin: 0;
}

/*
|--------------------------------------------------------------------------
| Filtres PDF — colonne de gauche
|--------------------------------------------------------------------------
*/

#pdf-sidebar-content {
    height: calc(100vh - 125px);
    overflow: hidden;
}

#pdf-sidebar-content .streets-section {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pdf-filter-modes {
    display: flex;
    gap: 18px;
    margin: 0 0 18px 0;
}

.pdf-filter-modes label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-weight: 700;
    cursor: pointer;
}

.pdf-filter-modes input {
    margin: 0;
}

.pdf-search-input {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    margin: 0 0 12px 0;
    padding: 9px 11px;
    font-size: 1rem;
}

.pdf-search-input::placeholder {
    color: #a5a5a5;
    opacity: 1;
}

.pdf-selection-tools {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.pdf-selection-tools button {
    flex: 1;
    min-height: 42px;
}

#pdf-filter-status {
    margin: 0 0 10px 0;
}

.pdf-filter-list {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    border-top: 1px solid #dddddd;
    border-bottom: 1px solid #dddddd;
}

.pdf-filter-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    box-sizing: border-box;
    width: 100%;
    padding: 11px 5px;
    border-bottom: 1px solid #e1e1e1;
    cursor: pointer;
}

.pdf-filter-item:hover {
    background: #f7f8fa;
}

.pdf-filter-item input {
    flex: 0 0 auto;
    margin-top: 3px;
}

.pdf-filter-item-content {
    min-width: 0;
}

.pdf-filter-item strong {
    display: block;
    overflow-wrap: anywhere;
}

.pdf-filter-item small {
    display: block;
    margin-top: 3px;
    color: #606b75;
}

.pdf-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.pdf-actions button {
    flex: 1;
    min-height: 45px;
    font-weight: 700;
}

/*
|--------------------------------------------------------------------------
| Zone d’aperçu PDF à droite
|--------------------------------------------------------------------------
*/

.pdf-preview-area {
    box-sizing: border-box;
    height: 100vh;
    overflow: auto;
    padding: 24px;
    background: #edf0f4;
}

.pdf-preview-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: min(100%, 1120px);
    margin: 0 auto 16px auto;
}

.pdf-preview-toolbar h2 {
    margin: 0;
}

.pdf-preview-summary {
    color: #5f6872;
}

.pdf-preview-page {
    box-sizing: border-box;
    width: min(100%, 1120px);
    min-height: 297mm;
    margin: 0 auto;
    padding: 10mm;
    background: #ffffff;
    box-shadow: 0 6px 24px rgb(0 0 0 / 16%);
}

.pdf-preview-title {
    margin: 0 0 3px 0;
    text-align: center;
    font-size: 1.45rem;
    font-weight: 800;
}

.pdf-preview-subtitle {
    margin: 0 0 16px 0;
    text-align: center;
    color: #5f6872;
    font-size: 0.95rem;
}

.pdf-preview-empty {
    margin-top: 130px;
    text-align: center;
    color: #7a838d;
    font-size: 1.05rem;
}

/*
|--------------------------------------------------------------------------
| Tableau compact
|--------------------------------------------------------------------------
*/

.pdf-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.pdf-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 9pt;
    line-height: 1.12;
}

.pdf-table col.pdf-column-destination {
    width: 48%;
}

.pdf-table col.pdf-column-street {
    width: 29%;
}

.pdf-table col.pdf-column-number {
    width: 7%;
}

.pdf-table col.pdf-column-commune {
    width: 16%;
}

.pdf-table th,
.pdf-table td {
    box-sizing: border-box;
    padding: 2.5px 4px;
    border: 1px solid #8e98a3;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.pdf-table thead th {
    background: #eadfc8;
    color: #172431;
    font-weight: 700;
}

/*
|--------------------------------------------------------------------------
| Alternance bleu pastel / rose pastel
|--------------------------------------------------------------------------
*/

.pdf-table tbody tr:nth-child(odd) td {
    background: rgba(173, 216, 230, 0.30);
}

.pdf-table tbody tr:nth-child(even) td {
    background: rgba(255, 182, 193, 0.30);
}

.pdf-table td.pdf-number-cell,
.pdf-table th.pdf-number-cell {
    text-align: center;
}

.pdf-table tbody tr {
    break-inside: avoid;
    page-break-inside: avoid;
}

/*
|--------------------------------------------------------------------------
| Éléments masqués
|--------------------------------------------------------------------------
*/

[hidden] {
    display: none !important;
}

/*
|--------------------------------------------------------------------------
| Espacement entre les tableaux
|--------------------------------------------------------------------------
*/

.pdf-table-group {
    margin: 0 0 10px 0;
}

.pdf-table-group-title {
    margin: 0 0 3px 0;
    padding: 0;
    border-bottom: none;
    font-size: 13pt;
    font-weight: 700;
}

.pdf-table-group:last-child {
    margin-bottom: 0;
}
