/* Levées de fonds — palette shared with carte-hti.css: navy #0F2A3A, orange #FF6D0C. */
.hti-levees { font-family: 'Open Sans', Arial, 'Helvetica Neue', sans-serif; color: #0F2A3A; margin: 0 0 24px; }
.hti-levees__updated { font-size: 12px; color: #64748B; margin: 0 0 8px; }
.hti-levees__toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.hti-levees__toolbar input[type=search], .hti-levees__toolbar input[type=date] { padding: 6px 10px; border: 1px solid #CBD5E1; border-radius: 0; font-size: 13px; }
.hti-levees__toolbar input[type=search] { flex: 1 1 240px; min-width: 200px; }
.hti-levees__date { font-size: 12px; color: #475569; display: flex; align-items: center; gap: 4px; }
.hti-levees__btn { padding: 7px 14px; border: 1px solid #0F2A3A; background: #fff; color: #0F2A3A; font-size: 13px; font-weight: 600; cursor: pointer; border-radius: 0; }
.hti-levees__btn:hover { background: #F8FAFC; }
.hti-levees__btn--search { background: #FF6D0C; border-color: #FF6D0C; color: #fff; }
.hti-levees__btn--search:hover { background: #e55f06; }
.hti-levees__btn--search:disabled { opacity: .6; cursor: progress; }
.hti-levees__status { font-size: 13px; color: #475569; margin: 0 0 10px; }
.hti-levees__btn--alert { background: #0F2A3A; color: #fff; }
.hti-levees__btn--alert:hover { background: #1b3d52; }
.hti-levees__filter { position: relative; font-size: 13px; }
.hti-levees__filter summary { cursor: pointer; padding: 6px 12px; border: 1px solid #CBD5E1; background: #fff; list-style: none; user-select: none; }
.hti-levees__filter[open] summary { border-color: #0F2A3A; }
.hti-levees__filter .hti-levees__checks { position: absolute; z-index: 20; top: 100%; left: 0; width: 280px; max-height: 280px; overflow: auto; background: #fff; border: 1px solid #0F2A3A; padding: 8px; box-shadow: 0 6px 16px rgba(15, 42, 58, .15); }
.hti-levees__checks label { display: block; font-size: 12.5px; padding: 2px 0; cursor: pointer; }
.hti-levees__alert { border: 1px solid #E2E8F0; background: #F8FAFC; padding: 12px 16px; margin-bottom: 12px; font-size: 13px; }
.hti-levees__alert-hint { color: #64748B; font-size: 12px; margin: 0 0 8px; }
.hti-levees__alert-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.hti-levees__alert-filters details { position: relative; }
.hti-levees__alert-filters summary { cursor: pointer; padding: 5px 10px; border: 1px solid #CBD5E1; background: #fff; }
.hti-levees__alert-filters .hti-levees__checks { position: absolute; z-index: 20; top: 100%; left: 0; width: 280px; max-height: 240px; overflow: auto; background: #fff; border: 1px solid #0F2A3A; padding: 8px; }
.hti-levees__alert-msg { margin-left: 10px; font-size: 12.5px; color: #475569; }
.hti-levees__scroll { overflow-x: auto; border: 1px solid #E2E8F0; }
.hti-levees__table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; }
.hti-levees__table th { text-align: left; padding: 9px 12px; background: #F8FAFC; border-bottom: 1px solid #E2E8F0; font-family: 'Montserrat', Arial, sans-serif; font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: #0F2A3A; white-space: nowrap; }
.hti-levees__table th[data-sort] { cursor: pointer; }
.hti-levees__table th[aria-sort="ascending"]::after { content: " ▲"; color: #FF6D0C; }
.hti-levees__table th[aria-sort="descending"]::after { content: " ▼"; color: #FF6D0C; }
.hti-levees__table td { padding: 9px 12px; border-bottom: 1px solid #F1F5F9; vertical-align: top; }
.hti-levees__table tfoot td { font-weight: 700; background: #F8FAFC; border-top: 1px solid #E2E8F0; }
.hti-levees__num { text-align: right; white-space: nowrap; }
.hti-levees__empty { text-align: center; color: #64748B; padding: 24px; }
.hti-levees--teaser .hti-levees__blur td { filter: blur(5px); user-select: none; pointer-events: none; }

/* [hti_levees_stats] */
.hti-levees-stats { font-family: 'Open Sans', Arial, sans-serif; color: #0F2A3A; margin: 0 0 24px; }
.hti-levees-stats__kpis { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.hti-levees-stats__kpis div { flex: 1 1 160px; border: 1px solid #E2E8F0; border-top: 4px solid #FF6D0C; background: #fff; padding: 12px 16px; }
.hti-levees-stats__kpis strong { display: block; font-family: 'Montserrat', Arial, sans-serif; font-size: 24px; }
.hti-levees-stats__kpis span { font-size: 12px; color: #64748B; }
.hti-levees-stats__group { margin-bottom: 18px; }
.hti-levees-stats__group h4 { font-family: 'Montserrat', Arial, sans-serif; font-size: 11px; letter-spacing: 1.3px; text-transform: uppercase; margin: 0 0 8px; }
.hti-levees-stats__group ul { list-style: none; margin: 0; padding: 0; }
.hti-levees-stats__group li { display: grid; grid-template-columns: 200px 1fr 120px; gap: 10px; align-items: center; font-size: 13px; padding: 3px 0; }
.hti-levees-stats__bar { background: #F1F5F9; height: 10px; }
.hti-levees-stats__bar i { display: block; height: 100%; background: #0F2A3A; }
.hti-levees-stats__val { text-align: right; color: #475569; font-size: 12px; white-space: nowrap; }
.hti-levees-stats__top { margin: 0; padding-left: 20px; font-size: 13px; }
.hti-levees-stats__empty { color: #64748B; }
@media (max-width: 600px) { .hti-levees-stats__group li { grid-template-columns: 1fr 80px; } .hti-levees-stats__label { grid-column: 1 / -1; } }

/* [hti_levees_alerte]: specific selectors, the theme styles every h3/p of an article body (.card__txt ...) */
.hti-levees-alert { border: 1px solid #E2E8F0; background: #F8FAFC; padding: 18px 20px; margin: 0 0 24px; font-family: 'Open Sans', Arial, sans-serif; color: #0F2A3A; }
.hti-levees-alert .hti-levees-alert__title { font-family: 'Montserrat', Arial, sans-serif; font-size: 18px; font-weight: 800; line-height: 1.3; margin: 0 0 6px; color: #0F2A3A; }
.hti-levees-alert .hti-levees-alert__text { font-size: 13.5px; line-height: 1.55; color: #475569; margin: 0 0 12px; text-align: left; }
.hti-levees-alert__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hti-levees-alert .hti-levees-alert__status { font-size: 13px; color: #475569; margin: 10px 0 0; text-align: left; min-height: 1em; }
.hti-levees-alert__stop { color: #64748B; border-color: #CBD5E1; }

/* comment tooltip */
.hti-levees__note { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-left: 6px; padding: 0; border: 1px solid #94A3B8; border-radius: 50%; background: #fff; color: #475569; font: italic 700 10px/1 Georgia, serif; cursor: help; vertical-align: middle; }
.hti-levees__note:hover, .hti-levees__note:focus-visible { background: #0F2A3A; border-color: #0F2A3A; color: #fff; outline: none; }
.hti-levees__tip { position: fixed; z-index: 9999; max-width: 300px; padding: 9px 12px; background: #0F2A3A; color: #fff; font: 12.5px/1.45 'Open Sans', Arial, sans-serif; white-space: pre-line; box-shadow: 0 6px 16px rgba(15, 42, 58, .25); pointer-events: none; }

/* organisation fiche (front) */
.organisation-fiche .hti-fiche-levees { margin: 0 0 18px; }
.organisation-fiche .hti-fiche-levees p { margin: 0 0 8px; text-align: left; }
.organisation-fiche .hti-fiche-levees__table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; }
.organisation-fiche .hti-fiche-levees__table th { text-align: left; padding: 7px 10px; background: #F8FAFC; border-bottom: 1px solid #E2E8F0; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: #0F2A3A; white-space: nowrap; }
.organisation-fiche .hti-fiche-levees__table td { padding: 7px 10px; border-bottom: 1px solid #F1F5F9; vertical-align: top; }
