/* ZaZa Cadastre (18/11/2026) — carte + panneau, fiches, documents imprimables. */

.cad-ecran { display: flex; gap: 12px; height: calc(100vh - 52px - 24px); min-height: 480px; }
.cad-carte-cadre { position: relative; flex: 1 1 auto; min-width: 0; border-radius: 6px; overflow: hidden; }
.cad-carte { width: 100%; height: 100%; }
.cad-panneau { flex: 0 0 400px; overflow-y: auto; padding: 14px; }

.cad-bandeau {
    position: absolute; left: 10px; bottom: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px;
    background: rgba(255, 255, 255, .93); border-radius: 4px; padding: 4px 10px; font-size: .78rem; box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}
.cad-leg { display: inline-block; width: 14px; height: 10px; border: 2px solid transparent; border-radius: 2px; margin-left: 6px; }
.cad-attente {
    position: absolute; left: 50%; top: 10px; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; max-width: 90%;
    background: #fff4d6; color: #7a5200; border: 1px solid #f0c060; border-radius: 16px; padding: 5px 14px; font-size: .82rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}

.cad-discret { color: #6b7280; font-size: .8rem; }
.cad-alerte { color: #b45309; font-size: .8rem; }
.cad-lien { color: #0a4fc4; text-decoration: none; font-weight: 500; }
.cad-lien:hover { text-decoration: underline; }
.cad-ancien { opacity: .55; }

.cad-bloc { border-top: 1px solid #e5e7eb; margin-top: 12px; padding-top: 8px; }
.cad-bloc-titre { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: .9rem; color: #0e2038; margin-bottom: 4px; }
.cad-carte { border: 1px solid #e5e7eb; border-radius: 6px; padding: 6px 8px; margin-bottom: 6px; font-size: .86rem; }
.cad-local { border-left: 3px solid #cbd5e1; padding: 2px 0 2px 8px; margin: 6px 0 2px 4px; font-size: .84rem; }
.cad-sous-form { background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 6px; padding: 8px; margin: 6px 0; }
.cad-ligne { display: flex; justify-content: space-between; gap: 8px; font-size: .86rem; padding: 2px 0; }
.cad-histo { border-left: 3px solid #cbd5e1; padding: 1px 0 2px 8px; margin-bottom: 4px; font-size: .8rem; }

.cad-resultats { max-height: 320px; overflow-y: auto; margin-top: 6px; }
.cad-resultat { display: flex; gap: 8px; align-items: flex-start; padding: 6px 4px; border-radius: 4px; cursor: pointer; }
.cad-resultat:hover { background: #f1f5f9; }
.cad-resultat-nom { font-size: .88rem; font-weight: 500; }

.cad-badge { display: inline-block; padding: 1px 8px; border-radius: 10px; background: #eef2f7; color: #374151; font-size: .74rem; white-space: nowrap; }
.cad-st-A_RECENSER { background: #eceef1; color: #4b5563; }
.cad-st-RECENSEE { background: #dbe7fb; color: #0a4fc4; }
.cad-st-LITIGE { background: #fde9d3; color: #b45309; }
.cad-st-RADIEE { background: #f3f4f6; color: #9ca3af; }
.cad-bt-A_VERIFIER { background: #fff4d6; color: #7a5200; }
.cad-bt-VERIFIEE { background: #efe3d6; color: #6b3a10; }
.cad-bt-RADIEE { background: #f3f4f6; color: #9ca3af; }
.cad-av-EMIS { background: #fde2e2; color: #b91c1c; }
.cad-av-PAYE_PARTIEL { background: #fff4d6; color: #7a5200; }
.cad-av-PAYE { background: #dcf3e3; color: #15803d; }
.cad-av-ANNULE { background: #f3f4f6; color: #6b7280; text-decoration: line-through; }

.cad-tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 16px; }
.cad-tuile { background: #fff; border: 1px solid #e6ebf2; border-radius: 12px; padding: 14px; font-size: .84rem; color: #4b5563; }
.cad-tuile-v { font-size: 1.4rem; font-weight: 800; color: #0e2038; }

/* Documents imprimables (avis, quittance). */
.cad-doc { max-width: 780px; margin: 24px auto; background: #fff; padding: 32px 40px; font-family: Georgia, "Times New Roman", serif; color: #111; }
.cad-doc h2 { text-align: center; font-size: 1.15rem; margin: 22px 0 12px; letter-spacing: .5px; }
.cad-doc h3 { font-size: 1rem; margin-top: 18px; }
.cad-doc table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.cad-doc th, .cad-doc td { border: 1px solid #9ca3af; padding: 6px 8px; text-align: left; vertical-align: top; }
.cad-doc th { width: 28%; background: #f3f4f6; font-weight: 600; }
.cad-doc-total td, .cad-doc-total th { font-weight: 700; font-size: 1rem; }
.cad-doc-entete { display: flex; justify-content: space-between; border-bottom: 2px solid #111; padding-bottom: 10px; }
.cad-doc-rep { font-weight: 700; font-size: .85rem; }
.cad-doc-commune { margin-top: 6px; font-size: 1.05rem; font-weight: 700; }
.cad-doc-num { text-align: right; font-size: .9rem; }
.cad-doc-essai { border: 2px solid #b91c1c; color: #b91c1c; text-align: center; font-weight: 700; padding: 6px; margin-bottom: 10px; }
.cad-doc-payer { margin-top: 18px; padding: 10px 12px; background: #f8fafc; border: 1px solid #cbd5e1; font-size: .88rem; }
.cad-doc-actions { text-align: right; margin-bottom: 8px; }
.cad-doc-actions button { padding: 6px 16px; cursor: pointer; }
@media print {
    .cad-doc-actions { display: none; }
    .cad-doc { margin: 0; padding: 0; max-width: none; }
    body { background: #fff !important; }
}

@media (max-width: 900px) {
    .cad-ecran { flex-direction: column; height: auto; }
    .cad-carte-cadre { height: 60vh; flex: none; }
    .cad-panneau { flex: none; }
}
