/* Variables pour thème (couleurs) */
:root {
    --color-bg: #ffffff;
    --color-text: #10111a;
    --color-primary: #3F69C7;
    --color-accent: #e1757d;
    --color-border: #ddd;
    --sidebar-width: 280px;
    --sidebar-width-collapsed: 64px;
    --container-max-width: 100%;
    --gutter: clamp(16px, 2vw, 32px);
    --radius-lg: 32px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--color-bg);
    color: white;
    line-height: 1.5;
    min-height: 100vh;
}

a {
    color: white;
    text-decoration: none;
}
a:hover {
    text-decoration: none;
}

img, picture, video, canvas, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Boutons */
button {
    background-color: var(--color-primary);
    border: none;
    color: white;
    padding: 10px 18px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}
button:hover {
    background-color: #345bb5;
    color:white;
}

/* Formulaires */
input, select, textarea {
    border: 2px solid;
    border-color:#5dc7ec;
    padding: 8px;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
    margin-top: 4px;
    margin-bottom: 12px;
}

/* Tableaux */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
th, td {
    border: 1px solid var(--color-border);
    padding: 10px;
    text-align: left;
    color:rgb(0, 0, 0);
    white-space: nowrap;
}
td.card-more-cell {
    display: none;
}

/* Layout simplifié pour dashboard */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: clamp(16px, 2vw, 32px);
    background-color: #283459;
    border-radius: 2rem;
}

/* Header simple */
header {
    background-color: var(--color-primary);
    color: white;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
header img.logo {
    height: 40px;
}

/* Responsive basique */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
}

/* Menu latéral */
.wrapper {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 220px;
  background-color: #2c3e50;
  color: white;
  display: flex;
  flex-direction: column;
  padding: 20px 15px;
}

.sidebar-header {
  text-align: center;
  margin-bottom: 20px;
}

.sidebar-header .logo {
  height: 40px;
  margin-bottom: 10px;
}

.sidebar-nav a {
  color: white;
  text-decoration: none;
  padding: 10px 8px;
  display: block;
  border-radius: 4px;
  margin-bottom: 5px;
}

.sidebar-nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-nav a.active {
  background-color: var(--color-primary);
}

.main-content {
  flex: 1;
  padding: 30px;
  background-color: var(--color-bg);
}

/* Dashboard Styles */
.dashboard-header h1 {
    color: #2d3748;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.welcome-message {
    color: #718096;
    font-size: 1.1rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.dashboard-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card-header {
    background: #3F69C7;
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
}

.card-header i {
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.card-content {
    padding: 1.5rem;
    background-color: white;
    color:black
}

/* Stats Card */
.stats-card .stat-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    margin-bottom: 10px;
    background-color: darkblue;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.stats-card .stat-item:last-child {
    border-bottom: none;
    background-color: darkblue;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
    color: white;
}

/* Couleurs spécifiques pour les icônes */
.stat-item:nth-child(1) .stat-icon {
    background: rgba(63, 105, 199, 0.4);
}

.stat-item:nth-child(2) .stat-icon {
    background: rgba(225, 117, 125, 0.4);
    color: #ff6b6b;
}

.stat-item:nth-child(3) .stat-icon {
    background: rgba(40, 167, 69, 0.4);
    color: #51cf66;
}

.stat-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.stat-label {
    flex-grow: 1;
    padding: 0 1rem;
    color: white;
}

.arrow-icon {
    opacity: 0.5;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.stat-item:hover .arrow-icon {
    opacity: 1;
    transform: translateX(3px);
}

/* Activity Card */
.activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-item {
    display: flex;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    margin-right: 1rem;
    font-size: 1.2rem;
}

.activity-icon.success {
    color: #38a169;
}

.activity-icon.warning {
    color: #dd6b20;
}

.activity-icon.primary {
    color: #3182ce;
}

.activity-details p {
    margin: 0;
    font-weight: 500;
    color:white;
}

.activity-details small {
    color: #718096;
    font-size: 0.875rem;
}

/* Quick Actions */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1rem;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 0.5rem;
    background: #f7fafc;
    border-radius: 0.5rem;
    text-align: center;
    transition: transform 0.2s;
    height: auto;
    min-height: 120px;
}

.quick-action:hover {
    transform: translateY(-2px);
}

.quick-action i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #3F69C7;
}

.quick-action span {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background: #202d3b;
    color: white;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    padding: 25px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #202d3b;
}

.sidebar-header .logo {
    max-width: 160px;
    margin-bottom: 10px;
    filter: brightness(0) invert(1);
}

.sidebar-header h2 {
    margin: 5px 0 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.sidebar-nav {
    flex: 1;
    padding: 15px 0;
    overflow-y: auto;
}

.sidebar-nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 12px 25px;
    margin: 3px 15px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar-nav a:hover {
    background: rgba(63, 105, 199, 0.3);
    transform: translateX(5px);
}

.sidebar-nav a.active {
    background-color: #3F69C7;
    box-shadow: 0 4px 8px rgba(63, 105, 199, 0.3);
}

.sidebar-nav i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.2);
}

.user-panel {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #3F69C7;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.user-info {
    line-height: 1.3;
}

.user-info small {
    display: block;
    font-size: 0.8rem;
    opacity: 0.8;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 15px;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.logout-btn:hover {
    background-color: rgba(225, 117, 125, 0.3);
}

/* Sidebar Logo */
.sidebar-logo {
  max-width: 200px !important;
  height: auto;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.sidebar-logo:hover {
  transform: scale(1.05);
}

/* Dashboard Header */
.dashboard-header h1 {
  color: white !important;
  font-weight: bold !important;
  font-size: 2.5rem;
  margin-bottom: 10px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.dashboard-header .welcome-message {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-top: 0;
}

/* Main Content Background */
.main-content {
  background: linear-gradient(135deg, #3F69C7 0%, #1e3c8b 100%);
  padding: 40px;
  min-height: 100vh;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .sidebar-logo {
    max-width: 200px !important;
  }
}

@media (max-width: 768px) {
  .sidebar-logo {
    max-width: 150px !important;
  }
  
  .dashboard-header h1 {
    font-size: 2rem;
  }
}

/* Dashboard Container */
.dashboard-content {
    padding: 20px;
    color: white;
}

/* Cards General Styles */
.dashboard-card {
    background-color: #2b3e73;
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.card-header {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    background-color: #283459;
    border-bottom: 5px solid rgba(255, 255, 255, 0.1);
    border-color:white;
}

.card-header i {
    font-size: 1.2rem;
    margin-right: 12px;
    color: white;
}

.card-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
}

.view-all {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-decoration: none;
}

.view-all:hover {
    color: white;
    text-decoration: none;
}

/* Stats Card Specific */
.stats-card .card-content {
    padding: 15px;
    background-color: white;
}

.stat-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(63, 105, 199, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
    color: white;
}

.stat-info {
    flex: 1;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 500;
}

.arrow-icon {
    opacity: 0.5;
    transition: all 0.3s ease;
    margin-left: 15px;
}

.stat-item:hover .arrow-icon {
    opacity: 1;
    transform: translateX(3px);
}

/* Activity Card Specific */
.activity-item {
    display: flex;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1rem;
}

.activity-icon.success {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.activity-icon.warning {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.activity-icon.primary {
    background: rgba(13, 110, 253, 0.2);
    color: #0d6efd;
}

.activity-title {
    margin: 0 0 5px 0;
    font-weight: 500;
    color: white;
}

.activity-meta {
    display: flex;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.activity-time {
    margin-right: 15px;
}

/* Quick Actions */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 15px;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    height: auto;
    min-height: 0;
}

.quick-action:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.action-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(63, 105, 199, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading state */
.loading-state {
    text-align: center;
    padding: 20px;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(63, 105, 199, 0.3);
    border-radius: 50%;
    border-top-color: #3F69C7;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error state */
.error-state {
    color: #e53e3e;
    text-align: center;
    padding: 20px;
}

.error-state i {
    font-size: 24px;
    margin-bottom: 10px;
}

/* ─────────────────────────────────────────────
   Pages leasing/inventaire/fournisseurs
   ───────────────────────────────────────────── */
.page-shell {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.page-hero {
    background: linear-gradient(135deg, rgba(63,105,199,0.08), rgba(225,117,125,0.08));
    border: 1px solid rgba(63,105,199,0.1);
    border-radius: 16px;
    padding: 16px 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.page-hero h1 {
    margin: 0;
    color: #0e1b3d;
    font-weight: 700;
}

.page-hero .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.stat-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 10px 30px rgba(16,17,26,0.04);
}

.stat-card .stat-label {
    color: #586174;
    font-size: 0.9rem;
}

.stat-card .stat-value {
    font-weight: 700;
    font-size: 1.4rem;
    color: #0e1b3d;
}

.stat-card .stat-chip {
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    background: rgba(63,105,199,0.12);
    color: #2a4fa3;
}

.surface {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 10px 40px rgba(16,17,26,0.05);
}

.surface + .surface {
    margin-top: 10px;
}

.surface-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.surface-header h2,
.surface-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #0e1b3d;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.9rem;
    border: 1px solid rgba(0,0,0,0.08);
    background: rgba(63,105,199,0.06);
    color: #0e1b3d;
}

.pill.warning { background: rgba(255,193,7,0.18); border-color: rgba(255,193,7,0.35); color: #7c4b00; }
.pill.danger  { background: rgba(225,117,125,0.15); border-color: rgba(225,117,125,0.35); color: #7b1f26; }
.pill.success { background: rgba(40,167,69,0.14); border-color: rgba(40,167,69,0.35); color: #1e5731; }
.pill.neutral { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.1); color: #2f3640; }

.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.08);
    background: rgba(0,0,0,0.03);
    color: #0e1b3d;
    font-size: 0.85rem;
    cursor: default;
}

.table-responsive-soft {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    max-width: 100%;
}

.table-responsive-soft table {
    margin: 0;
    width: 100%;
}

.table-responsive-soft th,
.table-responsive-soft td {
    white-space: normal;
    vertical-align: middle;
    word-break: break-word;
}

.table-responsive-soft {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive-soft thead th {
    background: #f7f9fc;
    color: #2f3640;
}

.table-compact td,
.table-compact th {
    padding: 9px 10px;
}

.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.attachment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.attachment-card {
    border: 1px dashed rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 10px 12px;
    background: #fbfcff;
}

.attachment-card .name {
    font-weight: 600;
    color: #0e1b3d;
    word-break: break-word;
}

.attachment-card .meta {
    color: #6c7387;
    font-size: 0.85rem;
}

.toast-stack {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1055;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast-stack .alert {
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    border-radius: 10px;
    padding: 10px 14px;
    opacity: 0.98;
}

.wizard-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.wizard-step {
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.08);
    background: rgba(0,0,0,0.03);
    font-weight: 600;
    color: #2f3640;
}

.wizard-step.active {
    background: rgba(63,105,199,0.12);
    border-color: rgba(63,105,199,0.4);
    color: #1e3c8b;
}

.wizard-step.done {
    background: rgba(40,167,69,0.15);
    border-color: rgba(40,167,69,0.35);
    color: #1e5731;
}

.sticky-summary {
    position: sticky;
    top: 12px;
}

@media (max-width: 992px) {
    .page-hero {
        padding: 14px;
    }
    .surface {
        padding: 14px;
    }
    .main-content {
        padding: 18px;
    }
    .table-mobile-cards table thead {
        display: none;
    }
    .table-mobile-cards table,
    .table-mobile-cards table tbody,
    .table-mobile-cards table tr,
    .table-mobile-cards table td {
        display: block;
        width: 100%;
    }
    .table-mobile-cards table tr {
        background: #fff;
        margin-bottom: 12px;
        border: 1px solid rgba(0,0,0,0.06);
        border-radius: 12px;
        padding: 10px;
    }
    .table-mobile-cards table td {
        border: none;
        padding: 4px 0;
    }
    .table-mobile-cards table td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.85rem;
        color: #6c7387;
        margin-bottom: 2px;
    }
    .inline-actions {
        width: 100%;
    }
}

/* === Thème clair modernisé (overrides) ============================= */
:root {
  --color-bg: #eef2f8;
  --color-surface: #ffffff;
  --color-text: #0b1021;
  --color-muted: #4b5563;
  --color-border: #e2e8f0;
  --color-primary: #246bff;
  --color-primary-2: #7c3aed;
  --color-primary-soft: #e6edff;
  --color-success: #12b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --radius: 14px;
  --shadow: 0 12px 34px rgba(15, 23, 42, 0.12);
  --glass: rgba(255, 255, 255, 0.8);
  --gradient-hero: radial-gradient(circle at 20% 20%, #2c44ff 0, rgba(255,255,255,0) 30%), radial-gradient(circle at 80% 0%, #8b5cf6 0, rgba(255,255,255,0) 30%), linear-gradient(135deg, #0b1224, #111a32 60%, #0b1224);
  --font-main: "Inter", "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
}

body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
}

a { color: var(--color-primary); }
a:hover { color: #1d4ed8; }

button, .btn {
  background: #f4f6fb;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}
button:hover, .btn:hover { filter: brightness(0.98); }
.btn-primary, .login-button {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-2));
  color: #fff;
  border: none;
  box-shadow: 0 10px 22px rgba(36, 107, 255, 0.25);
}
.btn-secondary { background:#0f172a; color:#fff; border:none; }
.btn-success { background:#12b981; color:#fff; border:none; }
.btn-info { background:#0ea5e9; color:#fff; border:none; }
.btn-warning { background:#f59e0b; color:#0b1021; border:none; }
.btn-danger { background:#ef4444; color:#fff; border:none; }
.btn-light { background:#f8fafc; color:var(--color-text); }
.btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.btn-icon i { font-size: 15px; }
.btn-icon.neutral { background:#f4f6fb; color: #111827; border:1px solid var(--color-border); }
.btn-icon.info    { background:#e0f2fe; color:#0ea5e9; border:1px solid #bae6fd; }
.btn-icon.edit    { background:#ecfdf3; color:#16a34a; border:1px solid #bbf7d0; }
.btn-icon.view    { background:#18c1e6; color:#0b1b22; border:1px solid #0fb5d7; }
.btn-icon.download{ background:#fff7ed; color:#f97316; border:1px solid #fed7aa; }
.btn-icon.delete  { background:#fef2f2; color:#b91c1c; border:1px solid #fecdd3; }
.btn-icon:hover { transform: translateY(-1px); transition: transform 0.15s ease; }

input, select, textarea {
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 6px;
  margin-bottom: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(36, 107, 255, 0.18);
}

table th, table td {
  color: var(--color-text);
  border-color: var(--color-border);
  background: #fff;
}
table thead th {
  background: #f7f9fd;
  font-weight: 700;
}
.custom-table tbody tr:nth-child(odd),
table tbody tr:nth-child(odd) { background:#f3f7ff !important; }
.custom-table tbody tr:nth-child(even),
table tbody tr:nth-child(even) { background:#ffffff !important; }
.custom-table tbody tr:hover,
table tbody tr:hover { background:#e7edf9 !important; }

.container {
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.wrapper { background: linear-gradient(180deg, #f5f7fb 0%, #eef2f8 100%); }
.main-content {
  background: transparent;
  color: var(--color-text);
  padding: 32px;
}

.sidebar {
  background: #0f172a;
  color: #fff;
  border-right: none;
  box-shadow: 6px 0 20px rgba(0,0,0,0.08);
}
.sidebar-header { background: transparent; border-bottom: 1px solid rgba(255,255,255,0.08); }
.sidebar-nav a {
  color: rgba(255,255,255,0.9);
  background: transparent;
}
.sidebar-nav a:hover {
  background: rgba(255,255,255,0.08);
  transform: translateX(4px);
}
.sidebar-nav a.active {
  background: linear-gradient(135deg, rgba(36,107,255,0.35), rgba(124,58,237,0.35));
  color: #fff;
  box-shadow: 0 8px 18px rgba(36, 107, 255, 0.2);
}
.sidebar-logo { filter: brightness(1) invert(0); }
.user-panel { background: rgba(255,255,255,0.06); color: #fff; }
.logout-btn { color: #fff; }
.logout-btn:hover { background: rgba(255,255,255,0.1); }

.dashboard-header h1 {
  color: var(--color-text) !important;
  text-shadow: none;
}
.welcome-message { color: var(--color-muted) !important; }

.dashboard-card {
  background: var(--glass);
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
}
.card-header {
  background: #f8fafc;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}
.card-header i, .card-header h3 { color: var(--color-text); }
.card-content { background: transparent; color: var(--color-text); }

.stats-card .stat-item {
  background: #f8fafc;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.stat-icon { background: linear-gradient(135deg, rgba(36,107,255,0.15), rgba(124,58,237,0.15)); color: var(--color-primary); }
.stat-value { color: var(--color-text); }
.stat-label { color: var(--color-muted); }

.quick-action {
  background: #f8fafc;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  box-shadow: 0 6px 14px rgba(0,0,0,0.04);
}
.quick-action i { color: var(--color-primary); }

.activity-item { border-color: var(--color-border); }
.activity-title { color: var(--color-text); }
.activity-meta { color: var(--color-muted); }

.alert {
  border-radius: 12px;
  border: 1px solid var(--color-border);
}
.alert-success { background: #ecfdf3; color: #166534; }
.alert-danger { background: #fef2f2; color: #b91c1c; }
.alert-warning { background: #fffbeb; color: #92400e; }

.login-page, .twofa-page { background: linear-gradient(180deg, #eef2f8 0%, #e3e8f2 100%) !important; }
.login-form-container, .twofa-page .dashboard-card {
  background: #ffffff !important;
  color: var(--color-text) !important;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}
.login-form-container label,
.login-form-container p,
.login-form-container h1 { color: var(--color-text); }

.sidebar-mobile-toolbar button {
  background: #fff;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

/* Hero / header stylé (ex: opportunités) */
.hero-banner {
  background: var(--gradient-hero);
  color: #e5e7eb;
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.hero-banner h1, .hero-banner h2, .hero-banner h3 { color: #f8fafc; }
.hero-badge { background: rgba(255,255,255,0.08); color: #e5e7eb; border-radius: 999px; padding: 6px 12px; }

/* Hero bar générique (bandeaux titres modules) */
.module-hero {
  background: linear-gradient(135deg, #0f172a 0%, #111a32 60%, #0f172a 100%);
  color: #e5e7eb;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.module-hero h1, .module-hero h2 { color:#fff; margin:0; }
.module-hero small { color:rgba(255,255,255,0.75); }

/* Sections cartes raffinées */
.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}
.section-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  max-height: 680px;
  min-height: 180px;
}
/* Contenu scrollable pour limiter la hauteur des colonnes */
.section-card .card-scrollable {
  overflow-y: auto;
  padding-right: 4px;
}
/* Drag & drop */
.draggable-card {
  cursor: grab;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.draggable-card:active {
  cursor: grabbing;
}
.draggable-card.dragging {
  opacity: 0.85;
  box-shadow: 0 10px 24px rgba(0,0,0,0.15);
  transform: scale(1.01);
}
.drag-placeholder {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  min-height: 120px;
  background: #f8fafc;
}
/* Carte large (prend deux colonnes si la grille le permet) */
.section-card.wide-card {
  grid-column: span 2;
}
@media (max-width: 1200px) {
  .section-card.wide-card {
    grid-column: span 1;
  }
}

/* Forcer le thème malgré styles inline anciens */
.dashboard-card,
.dashboard-card *[style]:not(.btn):not(button),
.card-header,
.card-content,
.quick-action,
.stats-card .stat-item,
.activity-item,
.login-container,
.login-form-container,
.twofa-page .dashboard-card {
  background: inherit;
  color: inherit;
  border-color: var(--color-border);
}
.card-header { border-bottom: 1px solid var(--color-border) !important; }
.quick-action i { color: var(--color-primary) !important; }
.dashboard-header h1,
.dashboard-header p,
.dashboard-header .welcome-message {
  color: var(--color-text) !important;
}
.stat-icon { background: linear-gradient(135deg, rgba(36,107,255,0.12), rgba(124,58,237,0.12)) !important; color: var(--color-primary) !important; }
.stat-value { color: var(--color-text) !important; }
.stat-label { color: var(--color-muted) !important; }
.view-all { color: var(--color-primary) !important; }

.mobile-highlight {
    animation: pulse-highlight 1s ease;
}

@keyframes pulse-highlight {
    0% { box-shadow: 0 0 0 0 rgba(63, 105, 199, 0.45); }
    70% { box-shadow: 0 0 0 12px rgba(63, 105, 199, 0); }
    100% { box-shadow: 0 0 0 0 rgba(63, 105, 199, 0); }
}

/* Search box improvements */
.search-box {
    position: relative;
    width: 300px;
}

.search-box input {
    padding-right: 35px;
}

.search-box button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    background: none;
    border: none;
    color: #3F69C7;
}

/* Login Page Styles */
.login-page {
    background: black;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: white;
}

.login-container {
    display: flex;
    max-width: 1000px;
    width: 100%;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.login-header {
    flex: 1;
    background: linear-gradient(135deg, #3F69C7 0%, #1e3c8b 100%);
    padding: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.login-logo {
    max-width: 200px;
    margin-bottom: 30px;
}

.login-header h2 {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    font-size: 1.3rem;
    margin-top: 20px;
}

.login-form-container {
    flex: 1;
    padding: 50px;
    color: #333;
}

.login-form-container h1 {
    color: #3F69C7;
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.login-subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 1rem;
}

.login-error {
    background: #e1757d;
    color: white;
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: white;
    font-weight: 500;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
}

.input-with-icon input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.input-with-icon input:focus {
    border-color: #3F69C7;
    outline: none;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #777;
    cursor: pointer;
    padding: 0;
}

.login-button {
    width: 100%;
    background: #3F69C7;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-button:hover {
    background: #345bb5;
}

.login-footer {
    margin-top: 30px;
    text-align: center;
    color: #999;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }
    
    .login-header {
        padding: 30px 20px;
    }
    
    .login-form-container {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .login-header h2 {
        font-size: 1.1rem;
    }
    
    .login-form-container h1 {
        font-size: 1.5rem;
    }
}

/* Styles spécifiques pour la fiche client */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.header-title h1 {
    margin: 0;
    font-size: 2rem;
    color: white;
}

.company-type {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

/* Grid layout pour la fiche client */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.info-card {
    grid-column: 1 / -1;
}

.notes-card, .appels-card {
    height: 400px;
    display: flex;
    flex-direction: column;
}

/* Layout pour les deux cartes côte à côte */
@media (min-width: 768px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .info-card {
        grid-column: 1 / -1;
    }
}

/* Contenu des cartes */
.card-content {
    flex: 1;
    overflow-y: auto;
    color:white
}

/* Boutons d'action */
.action-buttons-container {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-back {
    background-color: #6c757d;
    color: white;
}

.btn-edit {
    background-color: #f5c344;
    color: white;
}

.btn-delete {
    background-color: #e43b48;
    color: white;
}

/* Liste des notes et appels */
.notes-list, .appels-list {
    max-height: 300px;
    overflow-y: auto;
}

.note-item, .appel-item {
    padding: 10px;
    margin-bottom: 8px;
    background: #283459;;
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 767px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .action-buttons-container {
        width: 100%;
        justify-content: flex-end;
    }
}
/* Styles pour le contenu des détails */
.note-content, .appel-content {
    white-space: pre-wrap;
    margin-top: 15px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.note-meta, .appel-meta {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    font-size: 0.9em;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
/* Point vert pour statut actif */
.status-dot.green {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #28a745;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

/* Style pour statut suspendu */
.status-badge.suspended {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.red-icon {
    color: #dc3545;
    font-size: 14px;
}

.red-text {
    color: #dc3545;
}

/* Alignement vertical des éléments du statut */
.status-badge {
    display: inline-flex;
    align-items: center;
}
/* Styles pour le module Devis/Factures */
.document-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.document-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}
/* Styles pour les résultats d'autocomplétion */
.autocomplete-results {
    z-index: 1050;
    max-height: 260px;
    overflow-y: auto;
    position: absolute;
    background: white;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

/* Curseur pointeur sur les éléments de la liste */
.autocomplete-results .list-group-item {
    cursor: pointer;
}

/* Réduction de la taille minimale des champs de tableau */
table#lignesTable input {
    min-width: 90px;
}
/*--------------------------------------------------DESIGN POUR LE TABLEAU CLIENTS-----------------------*/
/* Styles “document” */
.document-container { background:#fff; border-radius:12px; padding:20px; box-shadow:0 2px 10px rgba(0,0,0,0.1); margin-bottom:2rem; }
.document-header { display:flex; justify-content:space-between; align-items:center; background:#283459; border-radius:8px 8px 0 0; padding:15px 20px; }
.document-header h1 { color:#fff; font-size:1.75rem; margin:0; }
.document-header .text-muted { color: rgba(255,255,255,0.85); }
.btn-success { background:#28a745; color:#fff; padding:8px 14px; border-radius:6px; }

/* Table stylée */
.custom-table { width:100%; border-collapse:collapse; margin-top:1.5rem; overflow:hidden; border-radius:0 0 8px 8px; }
.custom-table thead { background:#283459 !important; }
.custom-table thead th { color:#fff; font-weight:500; padding:12px 15px; font-size:0.95rem; border-bottom:2px solid #1f2a4b; text-align:left; }
.custom-table tbody tr:nth-child(even) { background:#f5f5f7; }
.custom-table tbody tr:hover       { background:#e8ecf3; }
.custom-table tbody td { padding:12px 15px; font-size:0.9rem; border-bottom:1px solid #e1e1e6; color:#1d1d1f; }
.custom-table .actions .btn-action { display:inline-block; width:32px; height:32px; line-height:32px; text-align:center; border-radius:6px; margin-right:6px; transition:background 0.2s; }
.custom-table .actions .view   { background:#00c6ff; color:#fff; }
.custom-table .actions .edit   { background:#ffc300; color:#333; }
.custom-table .actions .delete { background:#6c757d; color:#fff; }
.custom-table .actions .view:hover   { background:#00b0e0; }
.custom-table .actions .edit:hover   { background:#e6b100; }
.custom-table .actions .delete:hover { background:#5a636e; }

/* === Forcer les titres de colonnes en blanc === */
.custom-table thead {
  background: #283459 !important;
}
.custom-table thead th,
.custom-table thead th a.sort-link {
  color: #fff !important;
}
/* === Table stylée pour module Clients & Devis/Factures === */
.custom-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}

.custom-table thead {
  background: #283459;
}
.custom-table thead th {
  color: #000000;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-bottom: 2px solid #1f2a4b;
  text-align: left;
}

.custom-table tbody td {
  padding: 12px 15px;
  color: var(--text-base);
  font-size: 0.9rem;
  border: 1px solid var(--border);
}

.custom-table tbody tr:nth-child(odd) {
  background: #f2f2f2;
}
.custom-table tbody tr:nth-child(even) {
  background: #ffffff;
}

.custom-table tbody tr:hover {
  background: #e8ecf3;
}

/* Conserve vos styles d’actions */
.custom-table .actions .btn-action { /* inchangé */ }
.custom-table .actions .view   { /* inchangé */ }
.custom-table .actions .edit   { /* inchangé */ }
.custom-table .actions .delete { /* inchangé */ }
/* …et leurs hover */
/* === Bouton “poubelle” en rouge #e43b48 === */
.custom-table .actions .delete {
  background: #e43b48;
  color: #fff;           /* pour garder l’icône visible */
}

.custom-table .actions .delete:hover {
  background: #c7373f;   /* optionnel : version un peu plus foncée au survol */
}

/* === Table Clients : titres lisibles + zébrage clair === */
.custom-table.clients-table thead { background: #e8f0ff !important; }
.custom-table.clients-table thead th,
.custom-table.clients-table thead th a.sort-link { color: #0b1021 !important; font-weight: 700; }
.custom-table.clients-table thead th a.sort-link { text-decoration: none; }
.custom-table.clients-table thead th a.sort-link i { color: #0b1021 !important; }
.custom-table.clients-table tbody tr:nth-child(odd) {
  background: #f7f9fc;
}
.custom-table.clients-table tbody tr:nth-child(even) {
  background: #ffffff;
}
.custom-table.clients-table tbody tr:hover {
  background: #eef2fb;
}
/* ===== Global fiche client ===== */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #3F69C7;
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}
.dashboard-header .header-title h1 {
    font-size: 1.8rem;
    margin: 0;
}
.dashboard-header .company-type {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Boutons actions */
.action-buttons-container {
    display: flex;
    gap: .5rem;
}
.action-btn {
    background: #fff;
    color: #3F69C7;
    border: none;
    padding: .5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
    transition: all .2s ease;
}
.action-btn:hover {
    background: #e9f0ff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.action-btn.btn-delete {
    color: #e1757d;
}
.action-btn.btn-edit {
    color: #3F69C7;
}

/* ===== Cards générales ===== */
.dashboard-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: transform .2s ease;
}
.dashboard-card:hover {
    transform: translateY(-3px);
}
.dashboard-card .card-header {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
    margin-bottom: 1rem;
    padding-bottom: .5rem;
}
.dashboard-card .card-header h3 {
    font-size: 1.2rem;
    margin: 0 0 0 .5rem;
    font-weight: 600;
}

/* ===== Infos client ===== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    gap: .8rem;
}
.info-item {
    padding: .5rem 0;
    border-bottom: 1px solid #f1f1f1;
}
.info-label {
    font-weight: 600;
    color: #10111a;
}
.info-value {
    margin-left: .3rem;
    color: #555;
}

/* ===== Tables devis & factures ===== */
.table {
    border-radius: 8px;
    overflow: hidden;
}
.table th {
    background: #f8f9fc;
    font-weight: 600;
}
.badge {
    font-size: 0.85rem;
    padding: .4rem .6rem;
}

/* Toggle devis/factures */
.toggle-switch .btn {
    border-radius: 20px;
    font-size: 0.9rem;
}
.toggle-switch .btn.active {
    background: #3F69C7;
    color: #fff;
}

/* ===== Notes & appels ===== */
.notes-list, .appels-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: .8rem;
}
.note-item, .appel-item {
    background: #f9faff;
    padding: .7rem 1rem;
    border-radius: 8px;
    border: 1px solid #eee;
    cursor: pointer;
    transition: all .2s ease;
}
.note-item:hover, .appel-item:hover {
    background: #eef3ff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.note-subject, .appel-sujet {
    font-weight: 600;
    color: #3F69C7;
}
.note-date, .appel-date {
    font-size: 0.85rem;
    color: #777;
    margin-top: .3rem;
}

/* Empty states */
.empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: #777;
}
.empty-state i {
    font-size: 2rem;
    color: #ccc;
    margin-bottom: .5rem;
}
.empty-state button {
    margin-top: .8rem;
    border-radius: 20px;
}
/*CE QUE J AJOUTE                                                       -----------------------------     */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(16px, 2vw, 24px);
    width: 100%;
}
@media (max-width:768px){
    .dashboard-grid{grid-template-columns:1fr;}
}

.dashboard-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    height: auto;
    min-width: 0;
    padding:10px;
}

/* Header */
.dashboard-card .card-header {
    background: #fff;
    border-bottom: 1px solid #ddd;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #3F69C7;
}

/* Contenu */
.dashboard-card .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
}

/* Bloc haut : taille fixe */
.dashboard-card .bloc-haut {
    height: 100px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Bloc bas : remplit le reste */
.dashboard-card .bloc-bas {
    flex: 1;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Quick actions */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap: clamp(10px, 1.5vw, 16px);
    width: 100%;
}
.quick-action {
    background: #3F69C7;
    color: #fff;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
}

/* Chart : verrouillage hauteur */
.carte-suivi-paiements canvas {
    width: 100% !important;
    height: 200px !important;
}
/* === Modales du Calendrier en clair =============================== */
/* Contenu principal des deux modales */
#cal-share-modal .modal-content,
#eventModal .modal-content {
  background: #ffffff !important;
  color: #111827 !important;          /* gris-900 */
  border: 1px solid #e5e7eb !important;/* gris-200 */
}

/* Cartes et listes internes de la modale Partage */
#cal-share-modal .card,
#cal-share-modal .list-group-item {
  background: #ffffff !important;
  border-color: #e5e7eb !important;
}

/* Textes secondaires */
#cal-share-modal .text-muted,
#eventModal .text-muted {
  color: #6b7280 !important; /* gris-500 */
}

/* Onglets/Buttons outline dans une modale claire */
#cal-share-modal .btn-outline-light,
#eventModal .btn-outline-light {
  color: #111827 !important;
  border-color: #d1d5db !important; /* gris-300 */
}
#cal-share-modal .btn-outline-light:hover,
#eventModal .btn-outline-light:hover {
  background: #f3f4f6 !important;    /* gris-100 */
}

/* (au cas où) zones internes non-Bootstrap du #eventModal */
#eventModal .ed-dialog,
#eventModal .ed-panel,
#eventModal .ed-card,
#eventModal .ed-body,
#eventModal .ed-header,
#eventModal .ed-footer {
  background: #ffffff !important;
  color: #111827 !important;
  border-color: #e5e7eb !important;
}

/* ================================================================
   Couche responsive globale (shell + tables + formulaires)
   ================================================================ */
.wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
    background: var(--color-bg);
}

body.sidebar-open {
    overflow: hidden;
}

.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    min-height: 100vh;
}

.sidebar-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(32, 45, 59, 0.25);
    background: rgba(32, 45, 59, 0.05);
    color: #202d3b;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.sidebar-toggle i {
    font-size: 1.05rem;
}

.sidebar-toggle:hover,
.sidebar-toggle:focus {
    outline: none;
    background: rgba(63, 105, 199, 0.12);
    border-color: rgba(63, 105, 199, 0.5);
    color: #3F69C7;
}

.sidebar-backdrop {
    display: none;
}

.main-content {
    flex: 1;
    width: 100%;
    min-height: 100vh;
    padding: clamp(16px, 3vw, 48px);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

.container-wide {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
}

.container.container-wide {
    max-width: 100%;
    margin: 0 auto;
}

/* Forcer la pleine largeur même avec Bootstrap chargé après */
.wrapper .container,
.main-content .container,
.container.container-wide {
    width: 100%;
    max-width: 100% !important;
    padding-inline: clamp(16px, 2vw, 32px);
}

.page-stack {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 2.5vw, 32px);
}

.table-responsive,
.table-wrapper,
.table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-spacing: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.action-buttons-container,
.document-header,
.dashboard-header,
.card-header {
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 1200px) {
    .container {
        border-radius: calc(var(--radius-lg) - 8px);
        padding: clamp(16px, 3vw, 28px);
    }
}

@media (max-width: 992px) {
    .wrapper {
        flex-direction: column;
    }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        height: 100vh;
        width: min(78vw, 320px);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1050;
        box-shadow: 12px 0 30px rgba(0, 0, 0, 0.35);
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .sidebar-backdrop {
        content: "";
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 1045;
    }

    body.sidebar-open .sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .sidebar-toggle {
        display: inline-flex;
    }

    .main-content {
        padding: clamp(16px, 6vw, 40px);
    }

    header,
    .dashboard-header,
    .document-header,
    .action-buttons-container {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: clamp(12px, 5vw, 24px);
    }

    .container {
        border-radius: 14px;
        padding: clamp(12px, 4vw, 18px);
    }

    input,
    select,
    textarea,
    .form-control {
        width: 100%;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-card,
    .document-container,
    .card,
    .login-container {
        border-radius: 12px;
        box-shadow: none;
    }

    .login-container {
        flex-direction: column;
    }

    .document-container,
    .table-responsive,
    .table-wrapper,
    .table-scroll {
        overflow-x: auto;
    }

    .document-container table,
    .table-responsive table,
    .table-wrapper table,
    .table-scroll table,
    table.table-mobile-wide {
        width: 100%;
        min-width: 0;
        table-layout: auto;
    }

    .document-container table th,
    .document-container table td,
    .table-responsive table th,
    .table-responsive table td,
    .table-wrapper table th,
    .table-wrapper table td,
    .table-scroll table th,
    .table-scroll table td,
    table.table-mobile-wide th,
    table.table-mobile-wide td {
        white-space: normal;
        padding: 8px 10px;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 15px;
    }

    .container,
    .document-container,
    .card {
        padding: 12px;
    }

    .card-header,
    .document-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    table,
    .table {
        font-size: 0.85rem;
    }

    /* Mode cartes pour les tableaux */
    .table-mobile-cards {
        width: 100%;
        border: none;
        border-collapse: separate;
        border-spacing: 0;
        display: block;
        background: transparent;
    }

    .table-mobile-cards thead {
        display: none;
    }

    .table-mobile-cards tbody {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .table-mobile-cards tr {
        display: block;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        padding: 10px 12px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    }

    .table-mobile-cards td {
        display: flex;
        gap: 8px;
        align-items: flex-start;
        padding: 6px 0;
        border: none !important;
        width: 100%;
        color: #10111a;
    }

    .table-mobile-cards td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #3F69C7;
        min-width: 120px;
        font-size: 0.85rem;
        line-height: 1.3;
    }

    .table-mobile-cards td:last-child {
        padding-bottom: 0;
    }

    .table-mobile-cards.mobile-collapsed td.mobile-secondary {
        display: none;
    }

    .table-mobile-cards td.card-more-cell {
        display: block;
        padding: 10px 0 0 0;
    }

    .table-mobile-cards td.card-more-cell::before {
        display: none;
    }

    .table-mobile-cards .card-more-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin-top: 6px;
        padding: 8px 10px;
        background: rgba(63, 105, 199, 0.1);
        color: #3F69C7;
        border: 1px solid rgba(63, 105, 199, 0.35);
        border-radius: 8px;
        font-weight: 600;
        cursor: pointer;
        width: 100%;
        justify-content: center;
    }

    .table-mobile-cards tr.details-open td.mobile-secondary {
        display: flex;
    }

    .mobile-table-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
        background: #3F69C7;
        color: #fff;
        border: none;
        border-radius: 999px;
        padding: 8px 14px;
        font-weight: 600;
        margin: 8px 0 4px;
        box-shadow: 0 3px 10px rgba(63, 105, 199, 0.25);
        width: max-content;
        cursor: pointer;
    }

    .mobile-table-toggle[aria-expanded="true"] {
        background: #283459;
    }

    /* Barre d’actions fixe en bas */
    .mobile-action-bar {
        position: fixed;
        inset: auto 12px 12px 12px;
        display: flex;
        gap: 8px;
        background: rgba(32, 45, 59, 0.92);
        color: #fff;
        border-radius: 14px;
        padding: 10px 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
        z-index: 1200;
    }

    .mobile-action-bar button {
        flex: 1;
        border: none;
        border-radius: 10px;
        padding: 10px 12px;
        font-weight: 700;
        color: #fff;
        background: #3F69C7;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        cursor: pointer;
    }

    .mobile-action-bar button.ghost {
        background: rgba(255, 255, 255, 0.14);
    }

    .mobile-action-bar button:active {
        transform: translateY(1px);
    }

    /* Garder de l’espace pour la barre */
    body {
        padding-bottom: 76px;
    }
}

/* Notifications */
.notifications-card {
    overflow: auto;
    padding: 10px 12px 16px 12px;
}
.notifications-wrapper {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-bottom: 12px;
}
.notification-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 12px 14px;
    background: #f8fbff;
    color: var(--color-text);
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
    width: 100%;
}
.notification-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
    border-color: rgba(36, 107, 255, 0.25);
}
.notification-item.unread {
    border-color: rgba(36, 107, 255, 0.3);
    background: #eef2ff;
}
.notification-item.disabled {
    cursor: default;
    opacity: 0.8;
    box-shadow: none;
}
.notification-item, .notification-item * { color: inherit; text-decoration: none; }
.notification-item .notif-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.notification-item .notif-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.notif-tone-primary { background: #e6edff; color: #246bff; }
.notif-tone-info    { background: #e0f2fe; color: #0284c7; }
.notif-tone-warning { background: #fff7ed; color: #b45309; }
.notif-tone-danger  { background: #fef2f2; color: #b91c1c; }
.notification-item .notif-title {
    font-weight: 700;
    color: var(--color-text);
}
.notification-item .notif-message {
    color: var(--color-muted);
    line-height: 1.45;
}
.notification-item .notif-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    color: var(--color-muted);
    font-size: 0.9rem;
}
.notification-item .notif-badge {
    border-radius: 999px;
    padding: 4px 10px;
    font-weight: 700;
    border: 1px solid var(--color-border);
    background: #f8fafc;
    color: var(--color-text);
}
.notification-item .notif-badge-status {
    background: #dbeafe;
    color: #1d4ed8;
    border-color: rgba(36, 107, 255, 0.3);
}

@media (max-width: 576px) {
    .notification-item {
        padding: 12px;
        gap: 10px;
    }
    .notification-item .notif-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* === Bandeaux pages comptabilité (et autres pages sombres) === */
.page-hero,
.page-hero * {
    color: #ffffff !important;
}

.page-hero .text-muted {
    color: rgba(255,255,255,0.75) !important;
}

.page-hero .badge,
.page-hero .chip {
    color: #ffffff !important;
}
/* ==== FIX BANDEAU "document-header" (COMPTA) ==== */
.document-container .document-header,
.document-container .document-header h1,
.document-container .document-header .text-muted,
.document-container .document-header label {
  color: #fff !important;
}

.document-container .document-header .text-muted {
  color: rgba(255,255,255,.78) !important;
}

/* Champs et selects dans le bandeau (lisibles sur fond sombre) */
.document-container .document-header .form-select,
.document-container .document-header .form-control {
  color: #fff !important;
  background-color: rgba(255,255,255,.06) !important;
  border-color: rgba(255,255,255,.18) !important;
}

.document-container .document-header .form-select option {
  color: #111 !important; /* options lisibles dans le dropdown */
}
/* ==== FIX COMPTA : lisibilité bandeau document-header ==== */
.document-container .document-header h1,
.document-container .document-header .text-muted {
  color: #fff !important;
}
.document-container .document-header .text-muted{
  color: rgba(255,255,255,.78) !important;
}
.document-container .document-header .form-select,
.document-container .document-header .form-control{
  color: #fff !important;
}



/* ==== COMPTA : alignement des boutons oeil dans la liste écritures ==== */
.document-container td.cell-entryno{
  display: flex;
  align-items: center;
  gap: 10px;
}

.document-container td.cell-source{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.document-container td.cell-entryno .btn-icon,
.document-container td.cell-source .btn-icon{
  flex: 0 0 auto;
}


/* ==== COMPTA : aligner la colonne # (numéro fixe) ==== */
.document-container td.cell-entryno{
  display:flex;
  align-items:center;
  gap:10px;
}

.document-container td.cell-entryno > :first-child{
  display:inline-block;
  width: 34px;          /* ajuste si tu veux plus large */
  text-align: right;
  font-variant-numeric: tabular-nums;
}


/* ==== COMPTA : alignement FINAL colonne # (numéro + oeil) ==== */
.document-container td.cell-entryno{
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Numéro d'écriture : largeur mini, aligné à droite, chiffres stables */
.document-container td.cell-entryno > :first-child{
  display: inline-block;
  min-width: 36px;              /* supporte 1 à 4 chiffres */
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Bouton oeil toujours stable */
.document-container td.cell-entryno .btn-icon{
  flex: 0 0 auto;
}


/* ==== COMPTA : alignement DEFINITIF colonne # ==== */
.document-container td.cell-entryno{
  display:flex;
  align-items:center;
  gap:10px;
}

.document-container td.cell-entryno .entry-no{
  display:inline-block;
  min-width: 42px;              /* largeur stable (1 à 4 chiffres) */
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.document-container td.cell-entryno .btn-icon{
  flex: 0 0 auto;
}


/* ==== COMPTA : Source badge clickable, oeil source masqué ==== */
.document-container .cell-source .yui-source-link.btn-icon.view{
  display: none !important;
}
.document-container .cell-source .badge.yui-source-badge{
  cursor: pointer;
}

/* ==== COMPTA UI : barre filtres/synthèse (bleu dégradé) ==== */
.yui-sticky-summary{
  background: linear-gradient(135deg, #0f172a 0%, #111a32 60%, #0f172a 100%) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  color: #fff !important;
}
.yui-sticky-summary .text-muted{
  color: rgba(255,255,255,.75) !important;
}
.yui-sticky-summary .fw-semibold,
.yui-sticky-summary #yuiSumDebitV2,
.yui-sticky-summary #yuiSumCreditV2,
.yui-sticky-summary #yuiSumGapV2,
.yui-sticky-summary #yuiSumCountV2{
  color: #fff !important;
}

/* ==== Groupée : fond cohérent (pas gris plat) ==== */
#yuiGroupWrapV2 .accordion-item{
  background: rgba(255,255,255,.03) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
}
#yuiGroupWrapV2 .accordion-button{
  background: rgba(15,23,42,.75) !important;
  color: #fff !important;
}
#yuiGroupWrapV2 .accordion-button:not(.collapsed){
  background: rgba(17,26,50,.92) !important;
}

/* =========================
   COMPTA : VOLETS (ACCORDÉONS) PRO
   ========================= */

/* Header du volet */
#yuiGroupWrapV2 .accordion-button{
  background: linear-gradient(135deg, #0f172a 0%, #111a32 60%, #0f172a 100%) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.10) !important;
}

/* Flèche (chevron) à droite en blanc */
#yuiGroupWrapV2 .accordion-button::after{
  filter: invert(1) grayscale(1) brightness(2) !important;
  opacity: 1 !important;
}

/* Hover / ouvert */
#yuiGroupWrapV2 .accordion-button:not(.collapsed){
  background: linear-gradient(135deg, #0f172a 0%, #111a32 60%, #0f172a 100%) !important;
  color: #fff !important;
}

/* Contenu du volet */
#yuiGroupWrapV2 .accordion-body{
  background: rgba(15,23,42,.55) !important;
  color: #fff !important;
  border-top: 1px solid rgba(255,255,255,.08) !important;
}

/* Texte interne (compteurs, libellés, petites infos) */
#yuiGroupWrapV2, 
#yuiGroupWrapV2 *{
  color: #fff !important;
}

/* Tables clonées dans les volets : mode sombre lisible */
#yuiGroupWrapV2 table{
  color: #fff !important;
  background: transparent !important;
}

#yuiGroupWrapV2 table thead th{
  color: rgba(255,255,255,.85) !important;
  border-color: rgba(255,255,255,.10) !important;
}

#yuiGroupWrapV2 table tbody td{
  border-color: rgba(255,255,255,.08) !important;
}

#yuiGroupWrapV2 table tbody tr{
  background: rgba(255,255,255,.02) !important;
}

#yuiGroupWrapV2 table tbody tr:nth-child(2n){
  background: rgba(255,255,255,.04) !important;
}

/* Badges dans les volets */
#yuiGroupWrapV2 .badge{
  color: #fff !important;
  background: rgba(255,255,255,.14) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
}

/* =========================
   COMPTA : BARRE FILTRES + SYNTHÈSE (texte blanc + gradient)
   ========================= */
.yui-sticky-summary{
  background: linear-gradient(135deg, #0f172a 0%, #111a32 60%, #0f172a 100%) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  color: #fff !important;
}
.yui-sticky-summary .text-muted{
  color: rgba(255,255,255,.75) !important;
}

/* =========================
   COMPTA : BANDEAU PAGE (gradient)
   ========================= */
.page-hero,
.page-hero.bg-dark,
.header-hero,
.module-hero,
.card-hero,
.card-header.hero,
.hero,
.hero-header{
  background: linear-gradient(135deg, #0f172a 0%, #111a32 60%, #0f172a 100%) !important;
}

/* ==== COMPTA : alignement barre "Dernières écritures" + select Afficher ==== */
.yui-limitbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

.yui-limitbar .yui-left{
  display:flex;
  align-items:baseline;
  gap:18px;
  flex-wrap:wrap;
}

.yui-limitbar .yui-right{
  display:flex;
  align-items:center;
  gap:10px;
}

.yui-limitbar label{
  margin:0 !important;
  line-height:1.1;
}

.yui-limitbar select.form-select-sm{
  min-width: 140px;
}




/* ==== COMPTA : bandeau exact (document-header) ==== */
.document-container .document-header{
  background: linear-gradient(135deg, #0f172a 0%, #111a32 60%, #0f172a 100%) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  border-radius: 16px !important;
  padding: 18px 18px !important;
}

/* Titres / sous-titre */
.document-container .document-header h1{
  color:#fff !important;
  margin:0 !important;
}
.document-container .document-header .text-muted{
  color: rgba(255,255,255,.75) !important;
}

/* Boutons et select du bandeau */
.document-container .document-header .form-select,
.document-container .document-header .btn{
  border-color: rgba(255,255,255,.18) !important;
}
.document-container .document-header .form-select{
  background-color: rgba(255,255,255,.08) !important;
  color:#fff !important;
}
.document-container .document-header .form-select option{
  color:#111 !important; /* dropdown OS */
}
.document-container .document-header .btn-outline-light{
  color:#fff !important;
}

/* ==== COMPTA : "Afficher :" sur une seule ligne ==== */
.yui-limitbar label[for="limit"]{
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}
.yui-limitbar label[for="limit"]::after{
  content: ":" !important;
  margin-left: 0 !important;
}

/* ==== COMPTA : bouton "Exports légaux" (action réglementaire) ==== */
.document-header a.btn.btn-secondary[href*="exports"]{
  background-color: #4b5563 !important; /* gris réglementaire */
  border-color: #4b5563 !important;
  color: #ffffff !important;
  font-weight: 500;
}

.document-header a.btn.btn-secondary[href*="exports"]:hover{
  background-color: #6b7280 !important;
  border-color: #6b7280 !important;
  color: #ffffff !important;
}

/* KPI dashboard — drag handle */
.kpi{
  overflow: visible;
}

/* Drag handle KPI */
.kpi-handle{
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #666;
  cursor: grab;
}

.kpi-handle:hover{
  background: rgba(0,0,0,.08);
}

.kpi-handle:active{
  cursor: grabbing;
}

/* KPI drag handle — header */
.kpi .kpi-handle{
  font-size: 14px;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 6px;
  color: #6b7280;
}

.kpi .kpi-handle:hover{
  background: rgba(0,0,0,.06);
}

/* KPI drag handle (header) */
.kpi-head{
  display: flex;
  align-items: center;
  gap: 8px;
}

.kpi-handle{
  font-size: 14px;
  padding: 4px 6px;
  border-radius: 6px;
  color: #6b7280;
}

.kpi-handle:hover{
  background: rgba(0,0,0,.06);
  cursor: grab;
}

/* KPI drag handle — ALWAYS visible */
.kpi-handle{
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #555;
  cursor: grab;
}

.kpi-handle:hover{
  background: rgba(0,0,0,.12);
}

.kpi-handle:active{
  cursor: grabbing;
}
