body.admin { font-size: 16px; }
main.wide { max-width: 1000px; }
.top .brand { color: var(--teal); font-weight: 900; font-size: 18px; text-decoration: none; }
.link { background: none; border: 0; color: var(--teal); font-weight: 700; font: inherit; text-decoration: underline; cursor: pointer; }
.login { max-width: 380px; margin: 40px auto; display: grid; gap: 14px; }
.login h1 { margin: 0; font-size: 24px; }

.tabs3 { display: flex; gap: 6px; margin: 16px 0; overflow-x: auto; }
.tabs3 button {
  flex: 1; min-height: 46px; padding: 0 12px; white-space: nowrap;
  border: 2px solid var(--lagoon); border-radius: 12px; background: #fff; color: var(--lagoon);
  font-family: inherit; font-weight: 700; font-size: 15px; line-height: 1; cursor: pointer;
}
.tabs3 button[aria-selected="true"] { background: var(--lagoon); color: #fff; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; align-items: center; }
.filters select { width: auto; min-height: 44px; font-size: 15px; }
.btn.small { width: auto; min-height: 44px; font-size: 15px; padding: 0 14px; }
.count { color: var(--muted); margin: 4px 0 10px; font-size: 14px; }

.list { display: grid; gap: 12px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 8px; }
.card .head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.card h3 { margin: 0; font-size: 17px; }
.card .meta { color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.card .desc { white-space: pre-line; margin: 0; }
.card select, .card input { min-height: 40px; font-size: 15px; padding: 6px 10px; }
.card .wa { color: #128c4b; font-weight: 700; text-decoration: none; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: #eee; }
.st-nouvelle { background: #fde8c8; color: #8a5400; }
.st-pros_contactes { background: #e2ecfb; color: #1f4f99; }
.st-devis_envoyes { background: #ece3fb; color: #5b2a99; }
.st-conclue { background: #dcf3e4; color: #17673a; }
.st-perdue { background: #f1e1e0; color: #8a2a22; }
.st-verifie { background: #dcf3e4; color: #17673a; }
.st-a_verifier { background: #fde8c8; color: #8a5400; }

.pros-box { border-top: 1px dashed var(--line); padding-top: 8px; display: grid; gap: 8px; }
.devis-row { display: grid; grid-template-columns: 1fr 110px 120px auto auto; gap: 6px; align-items: center; }
.devis-row .name { font-weight: 600; }
.add-row { display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.icon-btn { min-height: 40px; padding: 0 12px; border-radius: 10px; border: 2px solid var(--line); background: #fff; cursor: pointer; font: inherit; }
.icon-btn.go { background: #25d366; border-color: #25d366; color: #fff; font-weight: 700; }
.danger { color: #a1281f; }
.actions { display: flex; gap: 8px; }
.actions .btn { width: auto; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.kpi b { display: block; font-size: 30px; color: var(--lagoon); }
.kpi span { color: var(--muted); font-size: 14px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.grid2 h3 { margin: 0 0 10px; font-size: 16px; }
.bar { display: grid; grid-template-columns: 150px 1fr 36px; gap: 8px; align-items: center; font-size: 14px; margin: 6px 0; }
.bar .track { height: 12px; background: #f1ebe2; border-radius: 6px; overflow: hidden; }
.bar .fill { height: 100%; background: var(--lagoon); border-radius: 6px; }
.empty { color: var(--muted); }

@media (max-width: 640px) {
  .devis-row { grid-template-columns: 1fr 1fr; }
  .devis-row .name { grid-column: 1 / -1; }
  .bar { grid-template-columns: 110px 1fr 30px; }
}

.wish { margin: 0; padding: 6px 10px; border-radius: 10px; background: #fde6d5; color: var(--coral-2); font-weight: 800; font-size: 14px; }
.link-out { display: grid; gap: 6px; }
.link-out input { font-size: 13px; min-height: 40px; }
.offer-row { grid-template-columns: 84px 1fr; }
.offer-row.is-off { opacity: .6; }
.thumb { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; background: #f1ebe2; display: block; }

.devis-item { border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; gap: 6px; background: #fffdf9; }
.devis-item.won { border-color: var(--green); background: #f3fbf6; }
.devis-head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.devis-head .icon-btn { margin-left: auto; text-decoration: none; }
.devis-state { font-size: 14px; font-weight: 700; color: var(--muted); }
.devis-item details summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.devis-item .devis-row { grid-template-columns: 1fr 1fr auto auto; margin-top: 6px; }
.goal { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.goal .bar-big { height: 14px; background: #f1ebe2; border-radius: 8px; overflow: hidden; margin: 8px 0 4px; }
.goal .bar-big div { height: 100%; background: linear-gradient(90deg, var(--lagoon), var(--teal)); }
.goal small { color: var(--muted); }

.en-toggle { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; }
.en-toggle input { width: 20px; height: 20px; min-height: 0; }

.cover { margin-bottom: 12px; display: grid; gap: 8px; }
.cover-head { display: flex; flex-wrap: wrap; gap: 6px 12px; justify-content: space-between; align-items: baseline; }
.cover-scroll { overflow-x: auto; }
#cover { border-collapse: separate; border-spacing: 4px; width: 100%; font-size: 14px; }
#cover th { text-align: left; font-weight: 800; color: var(--muted); white-space: nowrap; padding: 4px 6px; }
#cover td.cv { text-align: center; padding: 8px 6px; border-radius: 10px; cursor: pointer; white-space: nowrap; }
#cover td.c0 { background: #fbe3e0; } #cover td.c1 { background: #fdf0d5; } #cover td.c2 { background: #dcf3e4; }
#cover td small { color: var(--muted); }
.search { min-height: 44px; font-size: 15px; width: auto; flex: 1; min-width: 160px; }
.prospect .p-row { display: grid; grid-template-columns: 170px 1fr; gap: 8px; }
.prospect.is-off { opacity: .6; }
@media (max-width: 640px) { .prospect .p-row { grid-template-columns: 1fr; } }

/* En-tête de l'admin (sans le menu du site public) */
.admin .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; }
