:root {
    --ink: #0B1220;
    --muted: #667085;
    --bg: #F3F5F8;
    --paper: #F3F5F8;
    --card: #FFFFFF;
    --line: #E4E7EC;
    --line-2: #D0D5DD;
    --brand: #0D7377;
    --brand-2: #14919B;
    --brand-soft: #E6F4F4;
    --sidebar: #07111F;
    --gold: #C9A227;
    --gold-soft: #F8E9BE;
    --terracotta: #E11D48;
    --ok: #059669;
    --ok-soft: #D1FAE5;
    --danger-soft: #FFE4E6;
    --focus: rgba(13, 115, 119, 0.22);
    --shadow: 0 1px 2px rgba(11, 18, 32, 0.04), 0 12px 32px rgba(11, 18, 32, 0.06);
    --radius: 14px;
    --sidebar-w: 256px;
    --field-h: 46px;
    --olive: #0D7377;
    --olive-2: #14919B;
}

* { box-sizing: border-box; }
html {
    margin: 0;
    min-height: 100%;
    min-height: 100dvh;
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
body {
    margin: 0;
    min-height: 100%;
    min-height: 100dvh;
    overflow-x: clip;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}
h1, h2, h3, h4 { margin: 0; font-weight: 750; letter-spacing: -0.035em; overflow-wrap: break-word; }
a { color: var(--brand); }
img { max-width: 100%; }
svg { width: 20px; height: 20px; display: block; }

.app {
    display: grid;
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
    min-height: 100vh;
    min-height: 100dvh;
}
.rail {
    background: var(--sidebar);
    color: #E8EDF5;
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    overflow: auto;
}
.brand {
    display: flex;
    gap: 12px;
    align-items: center;
    color: inherit;
    text-decoration: none;
    padding: 0 8px;
}
.brand strong { display: block; font-size: 20px; font-weight: 800; }
.brand small { color: #8B97AB; font-size: 12px; font-weight: 500; }
.brand-mark {
    width: 40px; height: 40px; border-radius: 11px;
    background: var(--brand); color: #fff;
    display: grid; place-items: center;
    font-size: 18px; font-weight: 800;
}
.brand-mark.lg { width: 56px; height: 56px; font-size: 26px; margin-bottom: 12px; border-radius: 14px; }
.rail-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.rail-nav a {
    display: flex; align-items: center; gap: 10px;
    color: #B7C0D0;
    text-decoration: none;
    padding: 11px 12px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
}
.rail-nav a svg { opacity: .75; }
.rail-nav a.is-active,
.rail-nav a:hover { background: #122033; color: #fff; }
.rail-nav a.is-active { box-shadow: inset 3px 0 0 var(--brand-2); }
.rail-nav a.is-active svg { opacity: 1; color: var(--brand-2); }
.rail-user {
    border-top: 1px solid #1C2A3F;
    padding: 16px 8px 4px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}
.rail-user small { display: block; color: #8B97AB; font-size: 12px; }
.rail-user strong { font-size: 13px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linkish {
    background: none; border: 0; color: #9CA8BA; font: inherit; cursor: pointer; padding: 0; font-weight: 600; font-size: 12px;
}
.linkish:hover { color: #fff; }

.workspace { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.topbar {
    position: sticky; top: 0; z-index: 12;
    display: flex; align-items: center; justify-content: space-between; gap: 12px 16px;
    flex-wrap: wrap;
    padding: 14px 28px;
    background: rgba(243, 245, 248, .88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}
.view-trigger {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    text-align: left;
    min-width: 0;
    flex: 1 1 220px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px 14px;
    cursor: pointer;
    box-shadow: var(--shadow);
    color: inherit;
    font: inherit;
}
.view-trigger:hover { border-color: var(--brand); }
.view-kicker {
    grid-column: 1;
    font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand);
}
.view-trigger strong { grid-column: 1; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.view-trigger small { grid-column: 1; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.view-trigger svg { grid-row: 1 / -1; grid-column: 2; align-self: center; color: var(--muted); }
.topbar-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.topbar-logout { display: none; margin: 0; }
.topbar-logout .btn { gap: 6px; }
.topbar-session { display: none; }

.main { padding: 28px 32px 48px; max-width: 1240px; width: 100%; min-width: 0; }
.page-head {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 22px;
}
.page-head.tight { margin: 22px 0 14px; }
.page-head h1 { font-size: clamp(24px, 4.2vw, 34px); overflow-wrap: break-word; }
.page-head h2 { font-size: 22px; }
.eyebrow {
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 11px;
    font-weight: 800;
    color: var(--brand);
}
.eyebrow a { color: inherit; text-decoration: none; }
.lede { margin: 6px 0 0; color: var(--muted); max-width: 52ch; overflow-wrap: break-word; }

.filter-bar, .filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.filter-bar {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}
.filter-bar label, .field.compact { display: flex; flex-direction: column; gap: 6px; min-width: min(100%, 140px); flex: 1; }
.filter-bar label span, .field.compact span, .field-label {
    font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.filter-search { flex: 1.4; min-width: min(100%, 180px); }

select, input, textarea, button, .btn { font: inherit; }
select, input:not([type="radio"]):not([type="checkbox"]), textarea {
    width: 100%;
    max-width: 100%;
    border: 1px solid var(--line-2);
    background: #fff;
    border-radius: 10px;
    padding: 0 14px;
    min-height: var(--field-h);
    color: var(--ink);
    font-size: 16px;
    transition: border-color .15s, box-shadow .15s;
}
input[type="search"] {
    -webkit-appearance: none;
    appearance: none;
}
select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}
input[type="radio"], input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    accent-color: var(--brand);
    flex-shrink: 0;
}
[hidden] { display: none !important; }
.field-hint { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); font-weight: 500; }
textarea { min-height: 92px; padding: 12px 14px; resize: vertical; }
select:focus, input:not([type="radio"]):not([type="checkbox"]):focus, textarea:focus {
    outline: 0;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--focus);
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field label, .form-grid label:not(.check) { font-size: 13px; font-weight: 650; color: #344054; }
.form-page { display: flex; flex-direction: column; gap: 16px; }
.stack { display: flex; flex-direction: column; }
.stack label { margin: 10px 0 6px; font-size: 13px; font-weight: 650; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 600; min-height: 40px; }
.check input { width: auto; min-height: 0; }
.check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
    gap: 10px;
    margin-top: 12px;
}
.check-tile {
    display: flex; gap: 10px; align-items: flex-start;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    background: #fff;
    cursor: pointer;
}
.check-tile:has(input:checked) {
    border-color: var(--brand);
    background: var(--brand-soft);
    box-shadow: 0 0 0 3px var(--focus);
}
.check-tile input { width: auto; min-height: 0; margin-top: 3px; }
.check-tile small { display: block; color: var(--muted); font-weight: 500; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px; padding: 11px 16px; border: 1px solid transparent;
    cursor: pointer; font-weight: 700; text-decoration: none;
    min-height: 44px; letter-spacing: -0.01em;
    transition: background .15s, transform .1s, box-shadow .15s;
    touch-action: manipulation;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: var(--brand); color: #fff;
    box-shadow: 0 8px 18px rgba(13, 115, 119, .22);
}
.btn-primary:hover { background: var(--brand-2); }
.btn-secondary { background: #fff; border-color: var(--line-2); color: var(--ink); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { background: #fff; }
.btn-danger { background: var(--terracotta); color: #fff; }
.btn-danger:hover { filter: brightness(.95); }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 13px; }
.btn-block { width: 100%; margin-top: 8px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.table-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.table-actions form { margin: 0; }
.danger-zone {
    margin-top: 28px;
    padding: 18px 20px;
    border: 1px solid #FECDD3;
    background: #FFF1F2;
    border-radius: 16px;
}
.danger-zone.tight { margin-top: 12px; padding: 12px 14px; }
.danger-zone h2 { font-size: 16px; margin: 0 0 6px; }
.danger-zone p { margin: 0 0 12px; color: #9F1239; }

.kpi-grid {
    display: grid;
    grid-template-columns: 1.45fr repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 6px;
}
.kpi {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    color: inherit;
    text-decoration: none;
    display: block;
}
a.kpi { cursor: pointer; transition: transform .12s, box-shadow .12s, border-color .12s; }
a.kpi:hover {
    border-color: var(--brand);
    box-shadow: 0 10px 22px rgba(13, 115, 119, .14);
    transform: translateY(-1px);
}
a.kpi-hero:hover { border-color: transparent; }
.kpi span { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.kpi strong { display: block; font-size: clamp(20px, 2.4vw, 28px); margin: 8px 0 4px; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpi em, .kpi small { color: var(--muted); font-style: normal; }
.kpi-hero {
    background: linear-gradient(145deg, #0A3D40 0%, var(--brand) 100%);
    color: #fff; border-color: transparent;
}
.kpi-hero span, .kpi-hero em, .kpi-hero small { color: #C8E8E9; }
.kpi-hero strong { font-size: clamp(22px, 2.8vw, 32px); }
.kpi-next { border-color: #B6E0E2; background: #F3FBFC; }
.kpi-reste { border-color: #F5D98A; background: #FFFCF3; }
.btn-reste {
    background: #B45309;
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 18px rgba(180, 83, 9, .22);
}
.btn-reste:hover { background: #9A3B04; color: #fff; }
.card-restes { border-color: #F5D98A; }
.reste-banner {
    background: #FFF8E8;
    border: 1px solid #F5D98A;
    border-radius: 14px;
    padding: 14px 16px;
    margin: 0 0 16px;
}
.reste-banner strong { display: block; color: #92400E; margin-bottom: 4px; }
.reste-banner span { color: #78350F; }
.collect-list a.is-reste { border-color: #F5D98A; background: #FFFCF3; }
.collect-list a.is-reste:hover { border-color: #B45309; }
tr.is-reste td { background: #FFFCF3; }
.feed li.is-reste { background: #FFFCF3; border-radius: 12px; padding: 8px; }
.reste-tag { color: #B45309 !important; font-weight: 700; }
.recu-sheet.is-reste { border-color: #F5D98A; }
.recu-reste-flag {
    margin: 0 0 14px;
    padding: 10px 12px;
    background: #FFF8E8;
    color: #92400E;
    font-weight: 700;
    border-radius: 10px;
}
#restes { scroll-margin-top: 88px; }
.danger { color: var(--terracotta) !important; }

.bar {
    height: 7px;
    background: rgba(255,255,255,.2);
    border-radius: 99px;
    overflow: hidden;
    margin: 12px 0 6px;
}
.kpi:not(.kpi-hero) .bar, .site-card .bar { background: #E8ECF1; }
.bar i { display: block; height: 100%; background: var(--gold); border-radius: 99px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.section-space { margin-top: 16px; }
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
}
.card h2 { font-size: 18px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.card-head a { font-weight: 700; font-size: 13px; }
.card-warn { border-color: #FECDD3; }
.muted { color: var(--muted); }
.section-label {
    margin: 22px 0 12px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}
.section-label:first-of-type { margin-top: 0; }
.empty-state {
    background: var(--brand-soft);
    border: 1px dashed #9ED4D6;
    border-radius: var(--radius);
    padding: 40px 28px;
    text-align: center;
}
.empty-state p { color: var(--muted); margin: 8px auto 18px; max-width: 42ch; }
.card-link, .ghost-submit {
    display: block; width: 100%; color: inherit; text-decoration: none;
    background: none; border: 0; text-align: left; padding: 0; cursor: pointer; font: inherit;
}
.card-link:hover, .card-as-form:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(11, 18, 32, .08); }
.card-as-form { transition: transform .15s, box-shadow .15s; }
.card-cta { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--brand); }

.site-bars, .feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.site-bars-link { display: block; color: inherit; text-decoration: none; }
.site-bars-top, .feed li { display: flex; justify-content: space-between; gap: 12px; }
.feed li { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.feed li:last-child { border: 0; }
.feed a { color: inherit; text-decoration: none; }
.feed small, .site-bars small { display: block; color: var(--muted); }
.feed-amt { text-align: right; }
.feed-amt strong { font-variant-numeric: tabular-nums; }

.cards-sites, .cards-people {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 14px;
}
.site-card header, .person header { display: flex; justify-content: space-between; gap: 8px; align-items: start; }
.site-card h2, .person h2 { font-size: 18px; }
.person-id { display: flex; gap: 12px; align-items: flex-start; }
.mini-stats { display: flex; gap: 16px; margin: 14px 0 4px; flex-wrap: wrap; }
.mini-stats dt { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.mini-stats dd { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }
.sites-line { margin: 6px 0 0; font-size: 14px; color: #344054; }
.is-off { opacity: .55; }
.site-card.is-current { border-color: var(--brand); box-shadow: 0 0 0 3px var(--focus); }

.avatar {
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--brand-soft); color: var(--brand);
    display: grid; place-items: center;
    font-weight: 800; font-size: 12px; flex: 0 0 auto;
}
.avatar.sm { width: 32px; height: 32px; font-size: 11px; }
.avatar.xl { width: 68px; height: 68px; border-radius: 18px; font-size: 20px; background: var(--sidebar); color: #fff; }
.fiche-hero {
    display: flex; gap: 22px; align-items: center;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 24px;
    box-shadow: var(--shadow);
}
.fiche-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 14px 20px;
    flex: 1;
}
.fiche-meta span { display: block; font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.fiche-meta strong { font-size: 18px; }

.people-chips { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.people-chips li { display: flex; gap: 10px; align-items: center; }
.people-chips small { display: block; color: var(--muted); }
.assign-form { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); }

.pill {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 999px;
    background: #EEF2F6;
    color: #344054;
}
.pill-ok, .pill-paye { background: var(--ok-soft); color: var(--ok); }
.pill-impaye { background: var(--danger-soft); color: var(--terracotta); }
.pill-partiel { background: var(--gold-soft); color: #8A6D12; }
.pill-prochain { background: #E0F2FE; color: #0369A1; }

.table-wrap { overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.journal-table td small { display: block; color: var(--muted); }
.journal-pager {
    display: flex; align-items: center; gap: 12px;
    margin-top: 16px;
}
.table-wrap.flush { border: 0; box-shadow: none; margin: 0 -6px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
td small { display: block; color: var(--muted); }
table.data tbody tr:hover { background: #F8FAFC; }

.pay-attendu { margin: 0 0 14px; }
.modal {
    border: 0;
    border-radius: 18px;
    padding: 26px;
    width: min(520px, calc(100% - 24px));
    max-height: min(88dvh, 720px);
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: var(--shadow);
}
.modal::backdrop { background: rgba(7, 17, 31, .55); }
.modal h3 { font-size: 24px; margin-bottom: 4px; }
.modal-vue { width: min(560px, calc(100% - 24px)); }
.vue-form { display: flex; flex-direction: column; gap: 8px; }
.vue-choice {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    width: 100%; text-align: left;
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    padding: 14px 16px; cursor: pointer; font: inherit; color: inherit;
}
.vue-choice small { display: block; color: var(--muted); }
.vue-choice:hover, .vue-choice.is-on { border-color: var(--brand); background: var(--brand-soft); }
.vue-choice svg { color: var(--brand); }

.toast {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 14px;
    font-weight: 600;
}
.toast-ok { background: var(--ok-soft); color: #065F46; }
.toast-err { background: var(--danger-soft); color: #9F1239; }

.auth-body {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    background: var(--bg);
}
.auth-visual {
    background:
        radial-gradient(800px 420px at 10% 0%, #14919B55 0, transparent 50%),
        linear-gradient(165deg, #07111F 0%, #0A3D40 100%);
    color: #fff;
    padding: 56px 56px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.auth-visual h1 { font-size: clamp(28px, 5vw, 48px); max-width: 11ch; }
.auth-visual p { color: #C8D0DC; max-width: 36ch; font-size: 17px; }
.auth-visual ul { margin: 28px 0 0; padding: 0; list-style: none; color: #C8E8E9; }
.auth-visual li { margin: 8px 0; font-weight: 600; }
.auth-wrap { display: grid; place-items: center; padding: 32px; }
.auth-panel { width: min(420px, 100%); }
.auth-panel h1 { font-size: 32px; margin-bottom: 6px; }
.auth-panel .lede { margin-bottom: 22px; }
.auth-panel .form { display: flex; flex-direction: column; gap: 14px; }

.sheet-wrap { overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.sheet { width: 100%; min-width: 860px; border-collapse: collapse; }
.sheet th, .sheet td { padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.sheet thead th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); position: sticky; top: 0; background: var(--card); }
.sheet th:first-child, .sheet td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--card);
    box-shadow: 6px 0 10px -8px rgba(11, 18, 32, .35);
    min-width: 132px;
}
.sheet thead th:first-child { z-index: 2; }
.sheet .month { text-align: center; width: 56px; }
.sheet tfoot th { font-size: 11px; font-weight: 700; }
.foot-amt small { display: block; color: var(--muted); font-weight: 500; }
.sheet-total { white-space: nowrap; font-weight: 800; font-variant-numeric: tabular-nums; }
.cell {
    width: 100%;
    min-width: 42px;
    border: 0;
    border-radius: 8px;
    padding: 8px 4px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
}
.year-strip div.cell { cursor: default; }
.cell-paye { background: var(--ok-soft); color: var(--ok); }
.cell-impaye { background: var(--danger-soft); color: var(--terracotta); }
.cell-partiel { background: var(--gold-soft); color: #8A6D12; }
.cell-prochain { background: #E0F2FE; color: #0369A1; }
.cell-hors {
    background: #F2F4F7;
    color: #98A2B3;
    cursor: default;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 36px;
    border-radius: 8px;
}
.year-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.year-strip .cell {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    min-height: 88px; padding: 10px 6px; border-radius: 12px;
}
.year-strip em { font-style: normal; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.year-strip small { font-weight: 600; font-size: 11px; opacity: .8; }
.strip-total { margin: 14px 0 0; }

.bottom-nav { display: none; }
.sidebar { display: none; }

@media (max-width: 1080px) {
    .kpi-grid, .kpi-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kpi-hero { grid-column: auto; }
    .super-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .super-hero { flex-direction: column; align-items: flex-start; padding: 22px 20px; }
    .super-hero h1 { font-size: 26px; }
    .app { grid-template-columns: minmax(0, 1fr); }
    .rail { display: none; }
    .topbar { padding: 12px 16px; }
    .topbar-logout, .topbar-session { display: flex; align-items: center; }
    .view-trigger { min-width: 0; flex: 1 1 220px; }
    .main { padding: 18px 16px calc(104px + env(safe-area-inset-bottom, 0px)); }
    .year-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .fiche-hero { flex-direction: column; align-items: flex-start; }
    .sticky-actions { bottom: calc(8px + 62px + env(safe-area-inset-bottom, 0px)); }
    .bottom-nav {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
        position: fixed;
        left: 0; right: 0; bottom: 0;
        background: #fff;
        border-top: 1px solid var(--line);
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
        padding-left: max(4px, env(safe-area-inset-left));
        padding-right: max(4px, env(safe-area-inset-right));
        z-index: 20;
    }
    .bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        min-width: 0;
        text-align: center;
        text-decoration: none;
        color: var(--muted);
        font-size: 10px;
        font-weight: 700;
        padding: 6px 2px;
        border-radius: 10px;
        line-height: 1.15;
    }
    .bottom-nav a svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .8; }
    .bottom-nav a span {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .bottom-nav a.is-active { color: var(--brand); background: var(--brand-soft); }
    .bottom-nav a.is-active svg { opacity: 1; color: var(--brand); }
    .btn-sm { min-height: 44px; }
    .cell, .year-strip .cell { min-height: 44px; }
}

@media (max-width: 800px) {
    .auth-body { grid-template-columns: minmax(0, 1fr); }
    .auth-visual { min-height: 0; padding: 20px 20px 16px; }
    .auth-visual h1 { max-width: none; font-size: 22px; }
    .auth-visual p, .auth-visual ul { display: none; }
    .auth-visual .brand-mark.lg { width: 40px; height: 40px; font-size: 18px; margin-bottom: 8px; }
    .auth-wrap { padding: 20px 16px 32px; }
    .btn-wa-web { display: none !important; }
}

.sticky-actions {
    position: sticky;
    bottom: 12px;
    background: var(--bg);
    padding: 12px 0;
    z-index: 5;
}
@supports (-webkit-touch-callout: none) {
    .sticky-actions { position: static; }
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
    margin-top: 14px;
}
.form-grid .span-2 { grid-column: 1 / -1; }
.maisons-list { display: flex; flex-direction: column; gap: 12px; }
.maison-card header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.maison-card h3 { font-size: 18px; }
.maison-card h4 { margin: 16px 0 0; font-size: 15px; }
.locataire-block { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.doc-files { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.doc-files li {
    display: flex; justify-content: space-between; gap: 12px; align-items: center;
    flex-wrap: wrap;
    border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff;
}
.doc-files small { display: block; color: var(--muted); }
.docs-list { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.sheet-legend { margin-top: 10px; font-size: 13px; }
.dossier { display: flex; flex-direction: column; gap: 16px; }
.dossier-cover {
    display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; flex-wrap: wrap;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 24px 26px;
    box-shadow: var(--shadow);
}
.dossier-id { display: flex; gap: 18px; align-items: flex-start; min-width: min(100%, 420px); }
.dossier-sub { margin: 6px 0 10px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }
.dossier-sub a { font-weight: 700; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.dossier-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.export-menu { position: relative; display: inline-block; }
.export-menu > summary {
    list-style: none;
    cursor: pointer;
}
.export-menu > summary::-webkit-details-marker { display: none; }
.export-menu > summary::marker { content: ''; }
.export-menu[open] > summary { background: var(--brand-soft); }
.export-menu-list {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 30;
    min-width: 196px;
    max-width: min(280px, calc(100vw - 32px));
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 6px;
    display: grid;
    gap: 2px;
}
.export-menu-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 650;
}
.export-menu-list a:hover { background: var(--brand-soft); color: var(--ink); }
.export-menu-list small { color: var(--muted); font-weight: 600; }
.fact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}
.fact {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px 16px 14px;
    box-shadow: var(--shadow);
}
.fact span { display: block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.fact strong { display: block; font-size: 18px; letter-spacing: -0.03em; }
.fact small, .fact a { display: block; margin-top: 4px; font-size: 13px; font-weight: 650; }
.fact .ok { color: var(--ok); }
.notes-card h2 { font-size: 16px; margin-bottom: 8px; }
.notes-card p { margin: 0; color: #344054; white-space: pre-wrap; }
.modal-wide { width: min(640px, calc(100% - 24px)); }
.linkish.dark { color: var(--brand); font-size: 13px; margin-top: 8px; }
.year-strip .cell-hors { min-height: 88px; flex-direction: column; width: 100%; gap: 4px; }
.pill-hors { background: #F2F4F7; color: #667085; }

@media (max-width: 640px) {
    .dossier-cover { padding: 18px 16px; }
    .dossier-id { flex-direction: column; min-width: 0; }
}

.card-arrieres { border-color: #FECDD3; }
.arriere-hint { margin: 0 16px 12px; }
.arriere-banner {
    background: #FFF1F2;
    border: 1px solid #FECDD3;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 16px;
}
.arriere-banner strong { display: block; color: #9F1239; }
.arriere-banner span { display: block; margin-top: 4px; color: #881337; font-size: 14px; }
.month-bar { margin-bottom: 12px; }
.month-picks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}
.month-pick {
    display: block;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    background: #fff;
}
.month-pick em { display: block; font-style: normal; font-size: 12px; font-weight: 800; color: var(--muted); }
.month-pick strong { display: block; margin: 4px 0 2px; }
.month-pick small { color: var(--muted); }
.month-pick.is-on { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(13, 115, 119, .12); }
.month-pick.is-arriere { border-color: #FECDD3; }
.month-pick.is-arriere.is-on { box-shadow: 0 0 0 3px rgba(190, 18, 60, .12); }
.danger-text { color: #9F1239 !important; font-weight: 700; }
.soldé-block { padding: 22px 20px; }
.soldé-block h2 { margin: 6px 0 10px; }
.soldé-block p { margin: 0 0 10px; color: #344054; }

.pay-type { display: grid; gap: 10px; margin: 12px 0 16px; }
.pay-type-opt {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
    background: #fff;
}
.pay-type-opt:hover { border-color: var(--brand); }
.pay-type-opt:has(input:checked) {
    border-color: var(--brand);
    background: var(--brand-soft);
    box-shadow: 0 0 0 3px rgba(13, 115, 119, .12);
}
.pay-type-opt input { margin: 0; }
.pay-type-opt strong { display: block; font-size: 15px; }
.pay-type-opt small { display: block; color: var(--muted); margin-top: 2px; font-weight: 500; }
.settle-complete {
    margin: 0 0 14px;
    padding: 12px 14px;
    background: var(--brand-soft);
    border-radius: 10px;
    font-weight: 650;
    color: var(--ink);
}
.collect-split { display: flex; gap: 8px; align-items: stretch; }
.collect-split > a:first-child { flex: 1; min-width: 0; }
.recu-sheet.is-annule { opacity: .92; }
.recu-annule {
    margin: 12px 0 0;
    padding: 10px 12px;
    background: #FFF1F2;
    color: #9F1239;
    font-weight: 800;
    border-radius: 10px;
    letter-spacing: .04em;
}
.arriere-banner .btn { margin-top: 10px; }
.lede-tight { margin: 0 0 14px; font-size: 15px; }
.ecart-sum { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.ecart-sum li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}
.ecart-sum .is-plus strong { color: var(--ok); }
.ecart-sum .is-moins strong { color: #9F1239; }

.settle-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}
.settle-live {
    margin: 14px 0 0;
    font-weight: 700;
    color: var(--ink);
}
.recu-break {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    background: var(--brand-soft);
    border-radius: 12px;
    overflow: hidden;
}
.recu-break > div { padding: 14px 16px; }
.recu-break > div + div { border-left: 1px solid rgba(13, 115, 119, .12); }
.recu-break span {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}
.recu-break strong { display: block; margin-top: 4px; font-size: 18px; letter-spacing: -0.03em; }
.recu-break .is-solde strong { color: var(--ok); }
.recu-break .is-reste strong { color: var(--danger, #B42318); }
.collect-amt small { display: block; margin: 2px 0 6px; font-size: 11px; }
.collect-amt .ok { color: var(--ok); }
.fact .danger { color: var(--danger, #B42318); }

.site-card.is-hot { border-color: #FECDD3; }
.collect-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.collect-list a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    min-width: 0;
}
.collect-list a:hover { border-color: var(--brand); }
.collect-list small { display: block; color: var(--muted); overflow-wrap: anywhere; }
.collect-list strong { overflow-wrap: anywhere; }
.collect-amt { text-align: right; }
.collect-amt strong { display: block; font-variant-numeric: tabular-nums; }
.recu-sheet {
    max-width: 640px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px 24px 18px;
    box-shadow: var(--shadow);
}
.recu-head {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}
.recu-brand small { display: block; color: var(--muted); font-weight: 600; }
.recu-no { margin-left: auto; text-align: right; }
.recu-no span { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.recu-no strong { font-size: 16px; letter-spacing: -0.02em; }
.recu-rows {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
    margin: 0 0 16px;
}
.recu-rows span {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}
.recu-rows strong { display: block; margin-top: 2px; font-size: 15px; }
.recu-total {
    background: var(--brand-soft);
    border-radius: 14px;
    padding: 16px 18px;
}
.recu-total span { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); }
.recu-total strong { display: block; font-size: 32px; letter-spacing: -0.04em; }
.recu-note { color: var(--muted); margin: 12px 0 0; font-size: 13px; }
.recu-sheet footer { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.recu-tranches-title {
    margin: 4px 0 8px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}
.recu-tranches-wrap { overflow-x: auto; margin: 0 0 14px; }
.recu-tranches {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.recu-tranches th,
.recu-tranches td {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}
.recu-tranches th {
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 800;
}
.recu-tranches td small { display: block; color: var(--muted); font-weight: 500; margin-top: 2px; }
.recu-tranches tr.is-annule td { opacity: .55; text-decoration: line-through; }
.recu-tranches tr.is-annule td:last-child { text-decoration: none; }
.recu-tranche-etat { color: #9F1239; font-weight: 700; }
.recu-tranches tr:target { background: #FFF8E8; outline: 2px solid #F5D98A; }
.recu-tranches tr[id^="t-"] { scroll-margin-top: 88px; }
.recu-solde-flag {
    margin: 0 0 14px;
    padding: 10px 12px;
    background: var(--brand-soft);
    color: var(--ink);
    font-weight: 700;
    border-radius: 10px;
}
.recu-cancel-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.recu-cancel-list li {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    background: #fff;
}
.recu-cancel-list small { display: block; color: var(--muted); margin-top: 2px; }
.recu-cancel-form { margin-top: 10px; }
.recu-list-mois { background: var(--brand-soft); border-radius: 12px; padding: 8px; }
.recu-list-tranche { padding-left: 10px; }
#suivi, #arrieres, #maisons-site { scroll-margin-top: 88px; }

.super-id {
    display: grid;
    min-width: 0;
    flex: 1 1 180px;
}
.super-id .view-kicker { margin-bottom: 2px; }
.super-id strong { display: block; font-size: 16px; }
.super-id small { color: var(--muted); }
.rail-user small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 138px;
}
.super-hero {
    background: linear-gradient(145deg, #07111F 0%, #0A3D40 58%, var(--brand) 140%);
    color: #fff;
    border-radius: 20px;
    padding: 28px 32px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-end;
    box-shadow: var(--shadow);
}
.super-hero h1 { font-size: 32px; }
.super-hero .lede { color: #C8E8E9; max-width: 52ch; }
.super-hero .eyebrow { color: #9ED4D6; }
.super-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.super-hero-ghost {
    background: rgba(255,255,255,.12);
    color: #fff;
    border-color: rgba(255,255,255,.28);
}
.super-hero-ghost:hover { background: rgba(255,255,255,.22); color: #fff; }
.kpi-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.super-banner {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    background: #FFF8E8;
    border: 1px solid #F5D98A;
    border-radius: 16px;
    padding: 16px 18px;
    margin: 0 0 18px;
}
.super-banner strong { display: block; color: #92400E; margin-bottom: 4px; }
.super-banner span { color: #78350F; display: block; max-width: 64ch; }
.super-banner-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.super-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 18px 0 4px;
}
.super-action {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow);
    transition: transform .12s, border-color .12s, box-shadow .12s;
}
.super-action:hover {
    border-color: var(--brand);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(13, 115, 119, .12);
}
.super-action strong { font-size: 15px; }
.super-action small { color: var(--muted); }
.people-chips a { color: inherit; text-decoration: none; }
.people-chips a:hover strong { color: var(--brand); }
.feed li a { min-width: 0; flex: 1; }

@media print {
    .rail, .topbar, .bottom-nav, .no-print, .toast, .export-menu { display: none !important; }
    .app { display: block; }
    .main { padding: 0; max-width: none; }
    .recu-sheet { box-shadow: none; border: 0; max-width: none; }
    .recu-tranches { font-size: 12px; }
    .recu-tranches th, .recu-tranches td { padding: 8px 6px; }
    .sheet th:first-child, .sheet td:first-child { position: static; box-shadow: none; }
}

@media (max-width: 640px) {
    .kpi-grid, .grid-2, .kpi-grid.cols-4, .super-actions { grid-template-columns: minmax(0, 1fr); }
    .form-grid { grid-template-columns: minmax(0, 1fr); }
    .form-grid .span-2 { grid-column: auto; }
    .year-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .recu-break { grid-template-columns: minmax(0, 1fr); }
    .recu-break > div + div { border-left: 0; border-top: 1px solid rgba(13, 115, 119, .12); }
    .recu-rows { grid-template-columns: minmax(0, 1fr); }
    .filter-bar label, .field.compact, .filter-search { min-width: 100%; }
    .filter-bar .btn { width: 100%; }
    .page-head .dossier-actions { width: 100%; }
    .page-head .dossier-actions .btn,
    .page-head .export-menu,
    .page-head .export-menu > summary { width: 100%; }
    .page-head > .btn { width: 100%; }
    .collect-split { flex-direction: column; }
    .collect-split > .btn { width: 100%; }
    .collect-list a { grid-template-columns: auto minmax(0, 1fr); }
    .collect-amt {
        grid-column: 1 / -1;
        text-align: left;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
    }
    .card { padding: 16px; }
    .recu-sheet { padding: 16px 14px 14px; }
    .recu-total strong { font-size: 26px; }
    .modal, .modal-vue, .modal-wide { width: calc(100% - 16px); padding: 20px 16px; }
    .auth-visual { padding: 16px 16px 12px; }
    .auth-panel h1 { font-size: 26px; }
    .person header { flex-wrap: wrap; }
}

@media (max-width: 400px) {
    .bottom-nav a { font-size: 9px; padding: 5px 1px; }
    .bottom-nav a svg { width: 16px; height: 16px; }
    .kpi { padding: 14px; }
    .main { padding-left: 12px; padding-right: 12px; }
}

@media (max-height: 500px) and (orientation: landscape) {
    .auth-visual { padding: 14px 20px; }
    .auth-visual ul, .auth-visual p { display: none; }
    .auth-visual h1 { font-size: 22px; }
    .bottom-nav { padding-top: 4px; padding-bottom: calc(4px + env(safe-area-inset-bottom, 0px)); }
    .bottom-nav a { padding: 4px 2px; font-size: 9px; }
    .sticky-actions { bottom: calc(4px + 48px + env(safe-area-inset-bottom, 0px)); }
}

.catchup-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}
.catchup-list li {
    display: grid;
    gap: 4px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.catchup-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.catchup-list small, .catchup-list span {
    color: var(--muted);
    font-size: 13px;
}
.catchup-months {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.catchup-month {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid var(--line-2);
    border-radius: 10px;
    background: var(--card);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.catchup-month:has(input:checked) {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand);
}
.catchup-month input { width: 16px; height: 16px; accent-color: var(--brand); }
.catchup-month.is-locked {
    cursor: default;
    opacity: 0.72;
    background: var(--soft, #f4f4f2);
}
.catchup-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}
.catchup-actions .btn { min-height: 48px; }

.card-impot .lede-tight { margin: 0 0 16px; }
.impot-year { margin: 0; }
.impot-year label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
}
.impot-year select { min-width: 96px; }
.impot-forms {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 16px;
    margin: 18px 0 8px;
}
.impot-attendu, .impot-payer {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
}
.impot-payer {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
}
.impot-payer .btn { grid-column: 1 / -1; }
@media (max-width: 800px) {
    .impot-forms { grid-template-columns: minmax(0, 1fr); }
    .impot-payer { grid-template-columns: minmax(0, 1fr); }
}
