:root {
    --kassmat-blue: #163144;
    --kassmat-blue-soft: #21465f;
    --kassmat-bg: #f4f7fb;
    --kassmat-card: #ffffff;
    --kassmat-border: #e4edf5;
    --kassmat-text: #163144;
    --kassmat-muted: #6b7c8f;
    --kassmat-primary: #2563eb;
    --kassmat-primary-hover: #1d4ed8;
    --kassmat-danger: #dc3545;
    --kassmat-success: #198754;
    --kassmat-warning: #f59e0b;
    --kassmat-shadow-card: 0 8px 20px rgba(15, 42, 63, 0.06);
    --kassmat-shadow-soft: 0 6px 16px rgba(15, 42, 63, 0.05);
    --kassmat-radius-card: 18px;
    --kassmat-radius-inner: 14px;
    --kassmat-radius-btn: 10px;

    color-scheme: light;

    --ink: #1f2a2e;
    --muted: #657276;
    --line: #dde5e3;
    --paper: #f7f8f5;
    --panel: #ffffff;
    --teal: #1f7a72;
    --teal-dark: #13554f;
    --mint: #dff1ec;
    --blue: #dcecff;
    --green: #e1f2d8;
    --coral: #ffe0d8;
    --gold: #f8d98b;

    font-family:
        Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
}

html,
body {
    min-height: 100%;
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--kassmat-bg);
    color: var(--kassmat-text);
    font-size: 13px;
}

body {
    display: flex;
    flex-direction: column;
}

/* =====================================================
   Topbar / navigation
   ===================================================== */

.kassmat-topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #10283a, #163144);
    color: #fff;
    box-shadow: 0 8px 22px rgba(10, 31, 47, 0.18);
}

.kassmat-topbar-inner {
    min-height: 74px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.kassmat-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    flex-shrink: 0;
}

.kassmat-logo-symbol {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}

.kassmat-logo-symbol img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-mark {
    font-size: 24px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 8px;
    background: var(--gold);
    color: #26312e;
    font-weight: 800;
}

.kassmat-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.kassmat-brand-title {
    font-weight: 800;
    font-size: 17px;
    letter-spacing: 0.2px;
}

.kassmat-brand-subtitle {
    font-size: 11px;
    opacity: 0.75;
}

.brand span,
.sidebar-card span,
.eyebrow {
    color: #869795;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform-old: uppercase;
}

.kassmat-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.kassmat-nav a,
.kassmat-nav button {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.kassmat-nav a:hover,
.kassmat-nav button:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.kassmat-user-zone {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.kassmat-role-select {
    min-width: 130px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 12px;
    padding: 6px 28px 6px 12px;
}

.kassmat-role-select option {
    color: #163144;
}

.kassmat-user-btn,
.kassmat-menu-btn {
    border-radius: 999px !important;
    font-weight: 700;
    font-size: 12px !important;
    padding: 7px 12px !important;
}

.dropdown-menu {
    border: 1px solid var(--kassmat-border);
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 14px 32px rgba(15, 42, 63, 0.18);
}

.dropdown-menu .dropdown-item {
    font-size: 12px;
    padding: 7px 10px;
    border-radius: 10px;
    line-height: 1.25;
}

.dropdown-menu .dropdown-item:hover {
    background: #f0f6fc;
    color: var(--kassmat-blue);
}

.dropdown-header {
    font-size: 11px;
    padding: 8px 10px 4px;
    font-weight: 800;
    color: var(--kassmat-blue);
}

.dropdown-divider {
    margin: 6px 0;
}

.kassmat-user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #f8d98b;
    color: #163144;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 12px;
    margin-right: 4px;
}

.kassmat-user-meta {
    font-size: 11px;
    color: #6b7c8f;
    line-height: 1.35;
}

.kassmat-version-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    background: #eef5f8;
    color: #163144;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 700;
}

/* =====================================================
   Layout général
   ===================================================== */

.kassmat-main-shell {
    flex: 1;
    width: 100%;
    padding: 12px 24px 56px;
}

main {
    max-width: 1440px;
    margin: 0 auto;
    background: transparent;
}

.kassmat-alert-zone {
    max-width: 1440px;
    margin: 0 auto 14px;
}

footer {
    height: 34px;
    background: #10283a;
    text-align: center;
    padding: 7px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.82);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
}

/* =====================================================
   Bootstrap harmonisation
   ===================================================== */

.card {
    border-radius: 18px;
    border: 1px solid var(--kassmat-border);
    box-shadow: 0 8px 20px rgba(15, 42, 63, 0.06);
    font-size: 13px;
}

.card-header {
    border-top-left-radius: 18px !important;
    border-top-right-radius: 18px !important;
    border-bottom: 1px solid var(--kassmat-border);
}

.btn {
    font-size: 13px;
    border-radius: 10px;
    padding: 7px 13px;
    font-weight: 600;
}

.btn-sm {
    font-size: 12px;
    padding: 6px 10px;
}

.table {
    font-size: 12px;
}

.table th,
.table td {
    font-size: 12px;
}

form label {
    font-size: 13px;
    font-weight: 600;
}

form input,
form select,
form textarea {
    font-size: 13px;
}

h1 {
    font-size: 24px;
    font-weight: 800;
}

h2 {
    font-size: 21px;
    font-weight: 800;
}

h3 {
    font-size: 18px;
    font-weight: 800;
}

h4 {
    font-size: 16px;
    font-weight: 800;
}

h5 {
    font-size: 15px;
    font-weight: 800;
}

small,
.form-text,
.text-muted {
    font-size: 12px;
}

/* =====================================================
   Socle commun pages Kassmat V1.05
   ===================================================== */

.kassmat-content-page {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    color: #0f2742;
}

.kassmat-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin: 0 0 4px;
}

.kassmat-page-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 3px;
}

.kassmat-page-title i {
    font-size: 17px;
    color: #2563eb;
}

.kassmat-page-subtitle {
    margin: 0;
    color: #6b7c8f;
    font-size: 12px;
    line-height: 1.35;
}

.kassmat-page-separator {
    border: none;
    border-top: 1px solid #d4e0ec;
    margin: 4px 0 8px;
}

.kassmat-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid #d8e1ea;
    background: #eef2f6;
    color: #536579;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.kassmat-back-btn:hover {
    background: #e5ebf2;
    color: #163144;
}

.kassmat-card {
    background: #fff;
    border: 1px solid #dfeaf4;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 6px 16px rgba(15, 42, 63, 0.05);
}

.kassmat-action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.kassmat-primary-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2563eb;
    color: #fff;
    border: 1px solid #2563eb;
    border-radius: 12px;
    padding: 9px 14px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.kassmat-primary-action:hover {
    background: #1d4ed8;
    color: #fff;
}

/* =====================================================
   Cartes standard Kassmat
   ===================================================== */

.contract-card {
    background: #fff;
    border: 1px solid #dfeaf4;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(15, 42, 63, 0.06);
    overflow: hidden;
}

.contract-card-header {
    min-height: 48px;
    padding: 12px 16px;
    background: #f8fbff;
    border-bottom: 1px solid #dfeaf4;
    color: #163144;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contract-card-header-actions {
    justify-content: space-between;
    gap: 12px;
}

.contract-card-body {
    padding: 16px;
}

.contract-card-footer {
    padding: 12px 16px;
    background: #fbfdff;
    border-top: 1px solid #dfeaf4;
}

/* =====================================================
   Design System — Toolbar / recherche / filtres
   ===================================================== */

.kassmat-list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.kassmat-list-toolbar-left,
.kassmat-list-toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.kassmat-search-box {
    position: relative;
    min-width: 260px;
    max-width: 420px;
    flex: 1 1 280px;
}

.kassmat-search-box i {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: #7b8da0;
    font-size: 13px;
}

.kassmat-search-input {
    width: 100%;
    min-height: 38px;
    border: 1px solid #d8e1ea;
    border-radius: 12px;
    background: #fff;
    padding: 8px 12px 8px 34px;
    color: #163144;
    font-size: 13px;
}

.kassmat-search-input:focus {
    border-color: #93b4f8;
    box-shadow: 0 0 0 0.18rem rgba(37, 99, 235, 0.12);
    outline: none;
}

.kassmat-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.kassmat-filter-select {
    min-height: 38px;
    border: 1px solid #d8e1ea;
    border-radius: 12px;
    background-color: #fff;
    color: #163144;
    padding: 7px 32px 7px 12px;
    font-size: 13px;
}

.kassmat-toolbar-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    border-radius: 12px;
    padding: 8px 13px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

/* =====================================================
   Design System — Responsive List V1.05
   Desktop : tableau / Mobile : cartes
   ===================================================== */

.kassmat-list-card {
    background: #fff;
    border: 1px solid #dfeaf4;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(15, 42, 63, 0.06);
    overflow: hidden;
}

.kassmat-list-card-header {
    min-height: 48px;
    padding: 12px 16px;
    background: #f8fbff;
    border-bottom: 1px solid #dfeaf4;
    color: #163144;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.kassmat-list-card-body {
    padding: 0;
}

.kassmat-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.kassmat-responsive-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    vertical-align: middle;
}

.kassmat-responsive-table thead th {
    background: #f8fbff;
    color: #536579;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border-bottom: 1px solid #dfeaf4;
    padding: 11px 12px;
    white-space: nowrap;
}

.kassmat-responsive-table tbody td {
    color: #163144;
    font-size: 12px;
    border-bottom: 1px solid #edf3f8;
    padding: 12px;
    vertical-align: middle;
}

.kassmat-responsive-table tbody tr:last-child td {
    border-bottom: none;
}

.kassmat-responsive-table tbody tr:hover {
    background: #fbfdff;
}

.kassmat-table-main {
    font-weight: 800;
    color: #163144;
}

.kassmat-table-secondary {
    color: #6b7c8f;
    font-size: 12px;
    margin-top: 2px;
}

.kassmat-table-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.kassmat-table-actions .btn,
.kassmat-table-actions a,
.kassmat-table-actions button {
    white-space: nowrap;
}

/* Alias temporaire pour les anciennes pages */
.kassmat-table-responsive {
    width: 100%;
    overflow-x: auto;
}

/* =====================================================
   Badges / statuts
   ===================================================== */

.kassmat-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.kassmat-badge-primary {
    background: #e8f0ff;
    color: #1d4ed8;
}

.kassmat-badge-success {
    background: #e7f7ee;
    color: #137047;
}

.kassmat-badge-warning {
    background: #fff4df;
    color: #9a5b00;
}

.kassmat-badge-danger {
    background: #fee8e8;
    color: #b42318;
}

.kassmat-badge-muted {
    background: #eef2f6;
    color: #536579;
}

/* =====================================================
   Empty state
   ===================================================== */

.kassmat-empty-state {
    background: #fff;
    border: 1px dashed #cfdbe8;
    border-radius: 18px;
    padding: 28px 20px;
    text-align: center;
    color: #536579;
}

.kassmat-empty-state i {
    display: block;
    margin-bottom: 10px;
    font-size: 32px;
    color: #9aaabd;
}

.kassmat-empty-state-title {
    margin: 0 0 6px;
    color: #163144;
    font-size: 15px;
    font-weight: 800;
}

.kassmat-empty-state-text {
    margin: 0 auto;
    max-width: 520px;
    font-size: 13px;
    color: #6b7c8f;
}

/* =====================================================
   Modales
   ===================================================== */

.kassmat-modal-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef5ff;
    color: #2563eb;
    font-size: 20px;
}

.kassmat-modal-danger .kassmat-modal-icon {
    background: #fee8e8;
    color: #dc3545;
}

/* =====================================================
   Offcanvas
   ===================================================== */

.kassmat-offcanvas-header {
    border-bottom: 1px solid #dfeaf4;
    background: #f8fbff;
}

.kassmat-offcanvas-title {
    font-size: 15px;
    font-weight: 800;
    color: #163144;
}

.kassmat-offcanvas-body {
    font-size: 13px;
    color: #163144;
}

.kassmat-offcanvas-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #f8fbff;
    border: 1px solid #dfeaf4;
    border-radius: 16px;
}

.kassmat-offcanvas-avatar {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #e8f0ff;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

/* =====================================================
   Pages mot de passe / assistance
   ===================================================== */

.kassmat-reset-page {
    max-width: 1120px;
    width: 100%;
    margin: 24px auto;
    display: flex;
    gap: 0;
    align-items: stretch;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(8, 35, 55, 0.12);
    border: 1px solid #e6eef7;
    min-height: 420px;
}

.kassmat-reset-page > .reset-panel {
    flex: 1 1 0;
    min-width: 0;
}

.reset-panel {
    padding: 32px 46px;
}

.reset-panel.left {
    background: linear-gradient(180deg, #f7fbff, #ffffff);
    border-right: 1px solid #edf2f7;
}

.reset-panel.right {
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.reset-visual {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 24px;
    background: linear-gradient(145deg, #e8f3ff, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    box-shadow: inset 0 0 0 1px #d8eaff;
}

.reset-icon-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.reset-icon-badge {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #edf5ff;
    color: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex: 0 0 auto;
}

.reset-panel h1 {
    font-size: 2.1rem;
    line-height: 1.2;
    margin: 0 0 20px;
    color: #102a43;
    font-weight: 800;
}

.reset-panel h2 {
    font-size: 1.18rem;
    line-height: 1.25;
    margin: 0 0 16px;
    color: #102a43;
    font-weight: 800;
    text-align: center;
}

.reset-panel p,
.reset-panel li {
    font-size: 0.92rem;
    line-height: 1.5;
    color: #334e68;
}

.info-box {
    margin-top: 25px;
    padding: 18px;
    border-radius: 12px;
    background: #f8fbff;
    border: 1px solid #b9d7ff;
}

.info-box strong {
    color: #0b63ce;
    display: block;
    margin-bottom: 8px;
}

.error-box {
    background: #fff5f5;
    border: 1px solid #ffc9c9;
    color: #7a1f1f;
    border-radius: 12px;
    padding: 15px 18px;
    margin: 14px 0 18px;
}

.kassmat-input,
.reset-panel input[type="email"],
.reset-panel input[type="password"],
.reset-panel input[type="text"] {
    width: 100%;
    height: 44px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 0.92rem;
    margin: 6px 0 14px;
    box-sizing: border-box;
}

.kassmat-textarea,
.reset-panel textarea {
    width: 100%;
    min-height: 110px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.92rem;
    margin: 6px 0 14px;
    box-sizing: border-box;
}

.kassmat-primary-btn,
.kassmat-secondary-btn {
    width: 100%;
    min-height: 44px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    margin-top: 8px;
    padding: 14px 20px;
    white-space: normal;
    text-align: center;
}

.kassmat-primary-btn {
    background: linear-gradient(135deg, #0d6efd, #0758d6);
    color: white;
    border: none;
    box-shadow: 0 8px 18px rgba(13, 110, 253, 0.18);
}

.kassmat-secondary-btn {
    background: #fff;
    color: #0d6efd;
    border: 1px solid #b9d7ff;
}

.reset-link {
    display: block;
    margin: 12px 0 4px;
    font-size: 0.9rem;
    color: #0d6efd;
    text-align: center;
    font-weight: 600;
}

.reset-help-line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 8px;
    color: #64748b;
    font-size: 0.82rem;
}

.reset-help-line::before,
.reset-help-line::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

/* =====================================================
   Responsive global
   ===================================================== */

@media (max-width: 1100px) {
    .kassmat-nav {
        display: none;
    }
}

@media (max-width: 760px) {
    .kassmat-topbar {
        position: sticky;
        top: 0;
        height: auto;
    }

    .kassmat-topbar-inner {
        min-height: 64px;
        padding: 10px 14px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .kassmat-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
    }

    .kassmat-brand-title {
        font-size: 16px;
    }

    .kassmat-brand-subtitle,
    .kassmat-nav {
        display: none;
    }

    .brand-mark {
        width: 30px;
        height: 30px;
        font-size: 22px;
    }

    .kassmat-user-zone {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        flex-shrink: 0;
    }

    .kassmat-main-menu-dropdown,
    .kassmat-user-menu-dropdown {
        position: relative;
    }

    .kassmat-menu-btn,
    .kassmat-user-btn {
        height: 36px;
        padding: 6px 12px !important;
        font-size: 12px !important;
        border-radius: 999px !important;
        white-space: nowrap;
    }

    .kassmat-user-btn {
        max-width: 95px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dropdown-menu {
        margin-top: 8px;
        width: min(340px, calc(100vw - 24px));
        max-height: 70vh;
        overflow-y: auto;
        border-radius: 16px;
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
    }

    .kassmat-main-menu-dropdown .dropdown-menu {
        right: 0;
        left: auto;
    }

    .kassmat-user-menu-dropdown .dropdown-menu {
        right: 0;
        left: auto;
    }

    .dropdown-menu .dropdown-item {
        font-size: 13px;
        padding: 8px 10px;
    }

    .dropdown-header {
        font-size: 12px;
        font-weight: 700;
    }

    .kassmat-main-shell {
        padding: 16px 12px 56px;
    }

    main {
        width: 100%;
        max-width: 100%;
    }

    .dashboard-page,
    .kassmat-home-page,
    .kassmat-content-page,
    .kassmat-onboarding-page,
    .register-page,
    .account-help-page {
        margin-top: 0 !important;
    }

    .page-titlebar,
    .dashboard-titlebar,
    .home-titlebar,
    .register-titlebar,
    .account-titlebar {
        margin-top: 0 !important;
        margin-bottom: 6px !important;
    }

    .kassmat-reset-page {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        margin: 0 auto 40px;
        border-radius: 18px;
        min-height: auto;
    }

    .kassmat-reset-page > .reset-panel {
        width: 100%;
        flex: none;
    }

    .reset-panel {
        padding: 22px;
    }

    .reset-panel.left {
        border-right: none;
        border-bottom: 1px solid #edf2f7;
    }

    .reset-panel h1 {
        font-size: 22px;
    }

    .reset-panel h2 {
        font-size: 18px;
    }

    footer {
        font-size: 11px;
        height: 34px;
    }

    .kassmat-content-page {
        max-width: 100%;
    }

    .kassmat-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .kassmat-back-btn {
        width: 100%;
    }

    .kassmat-card {
        padding: 12px;
    }

    .kassmat-list-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .kassmat-list-toolbar-left,
    .kassmat-list-toolbar-right,
    .kassmat-search-box,
    .kassmat-filter-group,
    .kassmat-toolbar-action {
        width: 100%;
    }

    .kassmat-filter-select {
        width: 100%;
    }

    .kassmat-table-wrapper {
        overflow-x: visible;
    }

    .kassmat-responsive-table,
    .kassmat-responsive-table thead,
    .kassmat-responsive-table tbody,
    .kassmat-responsive-table th,
    .kassmat-responsive-table td,
    .kassmat-responsive-table tr {
        display: block;
        width: 100%;
    }

    .kassmat-responsive-table thead {
        display: none;
    }

    .kassmat-responsive-table tbody {
        padding: 10px;
    }

    .kassmat-responsive-table tbody tr {
        background: #fff;
        border: 1px solid #dfeaf4;
        border-radius: 16px;
        box-shadow: 0 6px 16px rgba(15, 42, 63, 0.05);
        margin-bottom: 10px;
        overflow: hidden;
    }

    .kassmat-responsive-table tbody tr:last-child {
        margin-bottom: 0;
    }

    .kassmat-responsive-table tbody td {
        border-bottom: 1px solid #edf3f8;
        padding: 10px 12px;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 14px;
        text-align: right;
    }

    .kassmat-responsive-table tbody td:last-child {
        border-bottom: none;
    }

    .kassmat-responsive-table tbody td::before {
        content: attr(data-label);
        flex: 0 0 42%;
        text-align: left;
        color: #6b7c8f;
        font-size: 11px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.02em;
    }

    .kassmat-responsive-table tbody td[data-label=""],
    .kassmat-responsive-table tbody td:not([data-label]) {
        display: block;
        text-align: left;
    }

    .kassmat-responsive-table tbody td[data-label=""]::before,
    .kassmat-responsive-table tbody td:not([data-label])::before {
        display: none;
    }

    .kassmat-table-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .kassmat-table-actions .btn,
    .kassmat-table-actions a,
    .kassmat-table-actions button {
        flex: 1 1 auto;
    }
}

   /* =====================================================
   Catalogue / annonces de disponibilité
   ===================================================== */

	.kassmat-catalog-search-form {
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		gap: 12px;
		align-items: end;
	}

	.kassmat-catalog-grid {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.kassmat-catalog-card .kassmat-card {
		transition: all 0.18s ease;
	}

	.kassmat-catalog-card .kassmat-card:hover {
		transform: translateY(-2px);
		box-shadow: 0 12px 24px rgba(15, 42, 63, 0.08);
	}

	.annonce-title {
		display: flex;
		align-items: center;
		gap: 8px;
		font-size: 15px;
		font-weight: 800;
		color: #163144;
		margin-bottom: 8px;
	}

	.annonce-title i {
		color: #2563eb;
	}

	.annonce-location {
		font-size: 12px;
		color: #6b7c8f;
		margin-bottom: 10px;
	}

	.annonce-message {
		font-size: 13px;
		color: #23384d;
		line-height: 1.55;
		margin-bottom: 12px;
	}

	.annonce-message p:last-child {
		margin-bottom: 0;
	}

	.annonce-meta {
		font-size: 12px;
		color: #6b7c8f;
		border-top: 1px solid #edf2f7;
		margin-top: 12px;
		padding-top: 10px;
	}

	.pagination .page-link {
		color: #2563eb;
	}

	.pagination .page-item.active .page-link {
		background: #2563eb;
		border-color: #2563eb;
	}

	@media (max-width: 760px) {
		.kassmat-catalog-search-form {
			grid-template-columns: 1fr;
		}

		.kassmat-catalog-grid {
			grid-template-columns: 1fr;
		}
	}
	
	/* =====================================================
	Suivi des liens de partage
	===================================================== */

	.kassmat-summary-strip {
		display: flex;
		gap: 14px;
		flex-wrap: wrap;
		padding: 12px 14px;
		background: linear-gradient(135deg, #f8fbff, #eef7ff);
		border: 1px solid #dbe7f3;
		border-radius: 16px;
		box-shadow: 0 2px 8px rgba(15, 42, 63, 0.03);
	}

	.kassmat-summary-strip > div {
		min-width: 165px;
	}

	.summary-label {
		display: block;
		font-size: 10.5px;
		text-transform: uppercase;
		letter-spacing: 0.04em;
		color: #6b7c8f;
		margin-bottom: 3px;
	}

	.kassmat-info-grid {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 12px;
	}

	.kassmat-info-item {
		display: flex;
		align-items: center;
		gap: 10px;
		padding: 12px;
		border-radius: 14px;
		background: #f8fbff;
		border: 1px solid #dbe7f3;
		color: #536579;
		font-size: 13px;
	}

	.kassmat-info-item i {
		color: #2563eb;
		font-size: 18px;
		flex-shrink: 0;
	}

	.kassmat-code-badge {
		display: inline-block;
		padding: 4px 8px;
		border-radius: 8px;
		background: #f8fafc;
		border: 1px solid #e5edf5;
		color: #163144;
		font-size: 12px;
	}

	.kassmat-modal-content {
		border: none;
		border-radius: 16px;
		overflow: hidden;
		box-shadow: 0 18px 45px rgba(15, 42, 63, 0.18);
	}

	.kassmat-modal-header-email {
		background: #16a34a;
		color: #ffffff;
	}

	.kassmat-email-preview {
		padding: 14px;
		border-radius: 14px;
		background: #f8fbff;
		border: 1px solid #dbe7f3;
	}

	.kassmat-email-preview .preview-title {
		font-weight: 700;
		color: #163144;
		margin-bottom: 10px;
	}

	.kassmat-email-preview .preview-line {
		display: flex;
		justify-content: space-between;
		gap: 12px;
		padding: 5px 0;
		font-size: 13px;
		color: #536579;
	}

	.kassmat-email-preview .preview-line strong {
		color: #163144;
		text-align: right;
	}

	.kassmat-secure-note {
		display: flex;
		gap: 8px;
		align-items: flex-start;
		padding: 12px;
		border-radius: 12px;
		background: #ecfdf5;
		border: 1px solid #bbf7d0;
		color: #166534;
		font-size: 13px;
	}

	.kassmat-delete-preview {
		padding: 12px;
		border-radius: 12px;
		background: #fff5f5;
		border: 1px solid #fecaca;
		color: #7f1d1d;
		font-size: 13px;
	}

	@media (max-width: 1000px) {
		.kassmat-info-grid {
			grid-template-columns: repeat(2, minmax(0, 1fr));
		}
	}

	@media (max-width: 700px) {
		.kassmat-summary-strip {
			flex-direction: column;
			gap: 8px;
		}

		.kassmat-summary-strip > div {
			min-width: 100%;
		}

		.kassmat-info-grid {
			grid-template-columns: 1fr;
		}
	}
	
	
	/* =====================================================
	Déclarations fiscales
	===================================================== */

	.declaration-create-card {
		padding: 16px;
	}

	.declaration-create-row {
		display: flex;
		align-items: flex-end;
		justify-content: space-between;
		gap: 16px;
	}

	.declaration-create-row h2 {
		font-size: 15px;
		font-weight: 700;
		color: #163144;
		margin: 0 0 6px;
	}

	.declaration-create-row h2 i {
		color: #2563eb;
		margin-right: 6px;
	}

	.declaration-create-row p {
		margin: 0;
		font-size: 12.5px;
		color: #536579;
		line-height: 1.45;
	}

	.declaration-create-form {
		display: flex;
		align-items: center;
		justify-content: flex-end;
		gap: 12px;
		flex-wrap: wrap;
	}

	.declaration-create-form label {
		font-size: 12px;
		font-weight: 700;
		color: #163144;
		margin: 0;
		white-space: nowrap;
	}

	.declaration-create-form input {
		width: 150px;
		border: 1px solid #cbd5e1;
		border-radius: 10px;
		padding: 8px 10px;
		font-size: 13px;
	}

	.declaration-create-form .kassmat-primary-action {
		white-space: nowrap;
	}

	.editable {
		cursor: pointer;
	}

	.editable .value {
		font-weight: 700;
		color: #163144;
	}

	.editable:hover .value {
		color: #0d6efd;
		text-decoration: underline dotted;
	}

	.editable:hover .bi-pencil {
		color: #0d6efd !important;
	}

	.editable.editing {
		background: #eef6ff;
	}

	.editable .edit-input {
		max-width: 140px;
		border: 1px solid #2563eb;
		border-radius: 8px;
		padding: 5px 8px;
		font-size: 12px;
	}

	.kassmat-help-box {
		border-radius: 12px;
		background: #f8fbff;
		border: 1px solid #dbe7f3;
		padding: 10px 12px;
		font-size: 12px;
		color: #536579;
	}

	.kassmat-help-box i {
		color: #2563eb;
		margin-right: 5px;
	}

	.declaration-delete-details {
		border-radius: 12px;
		background: #fbfdff;
		border: 1px solid #eef2f6;
		padding: 12px;
		font-size: 12.5px;
	}

	.declaration-delete-details ul {
		margin-bottom: 0;
		padding-left: 18px;
	}

	@media (max-width: 760px) {
		.declaration-create-form {
			width: 100%;
			justify-content: stretch;
			align-items: stretch;
		}

		.declaration-create-form label,
		.declaration-create-form input,
		.declaration-create-form button {
			width: 100%;
		}
	}
	
	
	
	/* =====================================================
	Design System — List Header
	===================================================== */

	.kassmat-list-header-standard {
		align-items: flex-start;
		flex-wrap: wrap;
	}

	.kassmat-list-header-title {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		color: #163144;
		font-size: 14px;
		font-weight: 800;
		padding-top: 7px;
	}

	.kassmat-list-header-title i {
		color: #2563eb;
		font-size: 15px;
	}

	.kassmat-list-header-tools {
		display: flex;
		flex-direction: column;
		align-items: flex-end;
		gap: 6px;
		min-width: 280px;
	}

	.kassmat-list-header-search {
		min-width: 280px;
		max-width: 380px;
		width: 380px;
		flex: none;
	}

	.kassmat-list-header-count {
		color: #6b7c8f;
		font-size: 12px;
		font-weight: 700;
	}

	@media (max-width: 760px) {
		.kassmat-list-header-standard {
			align-items: stretch;
		}

		.kassmat-list-header-title,
		.kassmat-list-header-tools,
		.kassmat-list-header-search {
			width: 100%;
			min-width: 100%;
		}

		.kassmat-list-header-tools {
			align-items: stretch;
		}

		.kassmat-list-header-count {
			text-align: left;
		}
	}
	
	/* =====================================================
	Déclarations - Action Bar
	===================================================== */

	.declaration-action-title {
		display: flex;
		align-items: center;
		gap: 10px;
		font-weight: 700;
		color: #163144;
		font-size: 15px;
	}

	.declaration-action-title i {
		color: #2563eb;
		font-size: 18px;
	}
	
	/* =====================================================
   Design System — Action Bar
   ===================================================== */

	.kassmat-action-bar-card {
		padding: 12px 14px;
	}

	.kassmat-action-bar-standard {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 14px;
		flex-wrap: wrap;
	}

	.kassmat-action-bar-title {
		display: inline-flex;
		align-items: center;
		gap: 10px;
		color: #163144;
		font-size: 15px;
		font-weight: 800;
	}

	.kassmat-action-bar-title i {
		color: #2563eb;
		font-size: 18px;
	}

	.kassmat-action-bar-content {
		display: flex;
		align-items: center;
		justify-content: flex-end;
		gap: 10px;
		flex-wrap: wrap;
	}

	@media (max-width: 760px) {
		.kassmat-action-bar-standard,
		.kassmat-action-bar-content {
			flex-direction: column;
			align-items: stretch;
		}

		.kassmat-action-bar-title {
			width: 100%;
		}

		.kassmat-action-bar-content .btn,
		.kassmat-action-bar-content a,
		.kassmat-action-bar-content button {
			width: 100%;
			justify-content: center;
		}
	}