body{
    margin:0;
    font-family:Arial, Helvetica, sans-serif;
    background:#f5f7fb;
    color:#1e293b;
}

/* Header / topbar */

.cm-topbar{
    background:#0f172a;
    color:#fff;
    padding:14px 22px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
}

.cm-topbar-left{
    display:flex;
    align-items:center;
    gap:18px;
    flex-wrap:wrap;
}

.cm-brand{
    color:#fff;
    text-decoration:none;
    font-size:18px;
    font-weight:700;
}

.cm-menu{
    display:flex;
    align-items:center;
    gap:14px;
    flex-wrap:wrap;
}

.cm-menu a{
    color:rgba(255,255,255,.88);
    text-decoration:none;
    font-size:14px;
    font-weight:600;
}

.cm-menu a:hover{
    color:#fff;
}

.cm-topbar-right{
    margin-left:auto;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:12px;
    text-align:right;
}

.cm-user{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    line-height:1.2;
}

.cm-user-name{
    font-size:14px;
    font-weight:700;
    color:#fff;
}

.cm-logout{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    height:36px;
    padding:0 12px;
    border:1px solid rgba(255,255,255,.18);
    border-radius:10px;
    color:#fff;
    text-decoration:none;
    font-size:13px;
    font-weight:700;
}

.cm-logout:hover{
    background:rgba(255,255,255,.08);
}

/* Layout */

.cm-page-wrap{
    max-width:1400px;
    margin:0 auto;
    padding:24px 20px 40px;
}

/* Dossiers page */

.cm-card{
    background:#fff;
    border-radius:16px;
    box-shadow:0 8px 28px rgba(15,23,42,.08);
    overflow:hidden;
}

.cm-header{
    padding:24px 24px 12px;
}

.cm-header h1{
    margin:0 0 6px;
    font-size:28px;
}

.cm-header p{
    margin:0;
    color:#64748b;
}

.cm-filters{
    padding:0 24px 20px;
}

.cm-grid{
    display:grid;
    grid-template-columns:2fr 1fr 1fr 1fr 120px 220px;
    gap:12px;
    align-items:end;
}

.cm-field label{
    display:block;
    font-size:13px;
    font-weight:bold;
    margin-bottom:6px;
}

.cm-field input,
.cm-field select{
    width:100%;
    height:42px;
    border:1px solid #cbd5e1;
    border-radius:10px;
    padding:0 12px;
    box-sizing:border-box;
    background:#fff;
}

.cm-actions{
    display:flex;
    gap:10px;
}

.cm-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    height:42px;
    padding:0 14px;
    border-radius:10px;
    text-decoration:none;
    border:1px solid #cbd5e1;
    background:#fff;
    color:#0f172a;
    font-weight:bold;
    box-sizing:border-box;
    cursor:pointer;
}

.cm-btn-primary{
    background:#0f172a;
    border-color:#0f172a;
    color:#fff;
}

.cm-toolbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 24px 14px;
    color:#475569;
    font-size:14px;
}

.cm-table-wrap{
    overflow-x:auto;
    border-top:1px solid #e2e8f0;
}

.cm-table{
    width:100%;
    min-width:1000px;
    border-collapse:collapse;
}

.cm-table th,
.cm-table td{
    padding:13px 14px;
    border-bottom:1px solid #eef2f7;
    text-align:left;
    font-size:14px;
}

.cm-table th{
    background:#f8fafc;
}

.cm-table tr:hover td{
    background:#f8fbff;
}

.cm-badge{
    display:inline-block;
    padding:4px 10px;
    border-radius:999px;
    background:#e2e8f0;
    font-size:12px;
    font-weight:bold;
}

.cm-pagination{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 24px 24px;
    gap:12px;
    flex-wrap:wrap;
}

.cm-pages{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}

.cm-page-link{
    min-width:40px;
    height:40px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:0 12px;
    border:1px solid #cbd5e1;
    border-radius:10px;
    text-decoration:none;
    color:#0f172a;
    background:#fff;
    font-weight:bold;
    box-sizing:border-box;
}

.cm-page-link.active{
    background:#0f172a;
    border-color:#0f172a;
    color:#fff;
}

.cm-empty{
    padding:40px 24px;
    text-align:center;
    color:#64748b;
}

@media (max-width:1100px){
    .cm-grid{
        grid-template-columns:1fr 1fr;
    }
}

@media (max-width:700px){
    .cm-grid{
        grid-template-columns:1fr;
    }

    .cm-toolbar{
        flex-direction:column;
        align-items:flex-start;
    }

    .cm-topbar{
        flex-direction:column;
        align-items:flex-start;
    }

    .cm-topbar-right{
        margin-left:0;
        width:100%;
        justify-content:space-between;
        text-align:left;
    }

    .cm-user{
        align-items:flex-start;
    }
}

.cm-dashboard{
    display:flex;
    flex-direction:column;
    gap:22px;
}

.cm-dashboard-top{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:18px;
    flex-wrap:wrap;
}

.cm-dashboard-title{
    margin:0;
    font-size:34px;
    line-height:1.1;
    font-weight:800;
    color:#0f172a;
}

.cm-dashboard-subtitle{
    margin:8px 0 0;
    color:#64748b;
    font-size:15px;
}

.cm-dashboard-top-actions{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.cm-dashboard-grid{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:18px;
}

.cm-widget{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:22px;
    box-shadow:0 10px 28px rgba(15,23,42,.06);
    padding:20px;
    overflow:hidden;
    position:relative;
}

.cm-widget-hero{
    grid-column:span 2;
    min-height:260px;
    background:
        radial-gradient(circle at top right, rgba(59,130,246,.18), transparent 35%),
        linear-gradient(135deg, #0f172a 0%, #172554 100%);
    color:#fff;
}

.cm-widget-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    margin-bottom:18px;
}

.cm-widget h2{
    margin:0;
    font-size:20px;
    font-weight:800;
}

.cm-widget-hero h2{
    color:#fff;
}

.cm-widget-link{
    text-decoration:none;
    color:#2563eb;
    font-weight:700;
    font-size:14px;
}

.cm-widget-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:34px;
    height:34px;
    padding:0 12px;
    border-radius:999px;
    font-weight:800;
    font-size:13px;
}

.cm-widget-badge-danger{
    background:#ef4444;
    color:#fff;
}

.cm-hero-number{
    font-size:84px;
    line-height:1;
    font-weight:900;
    letter-spacing:-2px;
    margin:18px 0 10px;
}

.cm-hero-number.is-alert{
    animation: cmBlinkSoft 1.2s ease-in-out 12;
}

.cm-hero-text{
    margin:0 0 18px;
    color:rgba(255,255,255,.88);
    font-size:16px;
}

.cm-hero-actions{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.cm-widget-hero .cm-btn{
    border-color:rgba(255,255,255,.20);
    background:rgba(255,255,255,.08);
    color:#fff;
}

.cm-widget-hero .cm-btn-primary{
    background:#fff;
    color:#0f172a;
    border-color:#fff;
}

.cm-kpi-list{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:12px;
}

.cm-kpi-item{
    background:#f8fafc;
    border:1px solid #e2e8f0;
    border-radius:16px;
    padding:16px;
}

.cm-kpi-value{
    font-size:34px;
    font-weight:900;
    line-height:1;
    color:#0f172a;
}

.cm-kpi-label{
    margin-top:8px;
    color:#64748b;
    font-size:13px;
    font-weight:700;
}

.cm-mini-list{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.cm-mini-row{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:12px;
    text-decoration:none;
    color:inherit;
    background:#f8fafc;
    border:1px solid #e2e8f0;
    border-radius:14px;
    padding:12px 14px;
    transition:transform .15s ease, box-shadow .15s ease;
}

.cm-mini-row:hover{
    transform:translateY(-1px);
    box-shadow:0 8px 18px rgba(15,23,42,.08);
}

.cm-mini-main{
    display:flex;
    flex-direction:column;
    gap:4px;
}

.cm-mini-main span{
    color:#64748b;
    font-size:13px;
}

.cm-mini-meta{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:4px;
    color:#475569;
    font-size:12px;
    font-weight:700;
    white-space:nowrap;
}

.cm-team-list{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.cm-team-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    background:#f8fafc;
    border:1px solid #e2e8f0;
    border-radius:14px;
    padding:12px 14px;
}

.cm-team-user{
    display:flex;
    align-items:center;
    gap:10px;
}

.cm-team-dot{
    width:12px;
    height:12px;
    border-radius:50%;
    display:inline-block;
    flex:0 0 12px;
}

.cm-team-dot.is-present{
    background:#10b981;
    box-shadow:0 0 0 4px rgba(16,185,129,.14);
}

.cm-team-dot.is-absent{
    background:#ef4444;
    box-shadow:0 0 0 4px rgba(239,68,68,.14);
}

.cm-team-sub{
    margin-top:3px;
    color:#64748b;
    font-size:12px;
    text-transform:uppercase;
    font-weight:700;
}

.cm-status-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:80px;
    height:30px;
    padding:0 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:800;
}

.cm-status-badge.is-present{
    background:#dcfce7;
    color:#166534;
}

.cm-status-badge.is-absent{
    background:#fee2e2;
    color:#991b1b;
}

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

.cm-module-card{
    display:flex;
    align-items:center;
    gap:10px;
    min-height:58px;
    padding:14px 16px;
    border-radius:16px;
    text-decoration:none;
    color:#0f172a;
    font-weight:800;
    background:linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border:1px solid #e2e8f0;
    transition:transform .15s ease, box-shadow .15s ease;
}

.cm-module-card:hover{
    transform:translateY(-2px);
    box-shadow:0 12px 22px rgba(15,23,42,.08);
}

.cm-module-icon{
    font-size:20px;
}

.cm-roadmap-list{
    margin:0;
    padding-left:18px;
    color:#475569;
    display:flex;
    flex-direction:column;
    gap:8px;
    font-weight:600;
}

.cm-empty-state{
    color:#64748b;
    font-size:14px;
    padding:8px 0;
}

@keyframes cmBlinkSoft{
    0%, 100%{ opacity:1; transform:scale(1); }
    50%{ opacity:.55; transform:scale(1.02); }
}

@media (max-width:1100px){
    .cm-dashboard-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }

    .cm-widget-hero{
        grid-column:span 2;
    }

    .cm-kpi-list{
        grid-template-columns:1fr;
    }
}

@media (max-width:700px){
    .cm-dashboard-grid{
        grid-template-columns:1fr;
    }

    .cm-widget-hero{
        grid-column:span 1;
    }

    .cm-module-grid{
        grid-template-columns:1fr;
    }

    .cm-mini-row,
    .cm-team-row{
        flex-direction:column;
        align-items:flex-start;
    }

    .cm-mini-meta{
        align-items:flex-start;
    }
}

.cm-no-scroll{
    overflow:hidden;
}

.cm-widget-clickable{
    cursor:pointer;
}

.cm-widget-clickable:hover{
    transform:translateY(-2px);
    box-shadow:0 14px 30px rgba(15,23,42,.10);
}

.cm-dashboard-overlay{
    position:fixed;
    inset:0;
    background:rgba(2,6,23,.55);
    backdrop-filter:blur(4px);
    z-index:9999;
    display:none;
    align-items:center;
    justify-content:center;
    padding:28px;
}

.cm-dashboard-overlay.is-visible{
    display:flex;
}

.cm-dashboard-overlay-card{
    width:min(1200px, 96vw);
    max-height:92vh;
    overflow:hidden;
    border-radius:26px;
    background:#ffffff;
    box-shadow:0 30px 80px rgba(15,23,42,.28);
    transform:scale(.92);
    opacity:0;
    transition:transform .22s ease, opacity .22s ease;
    display:flex;
    flex-direction:column;
}

.cm-dashboard-overlay-card.is-open{
    transform:scale(1);
    opacity:1;
}

.cm-dashboard-overlay-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:22px 24px;
    border-bottom:1px solid #e5e7eb;
    background:linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.cm-dashboard-overlay-head h2{
    margin:0;
    font-size:24px;
    font-weight:900;
    color:#0f172a;
}

.cm-dashboard-overlay-close{
    width:42px;
    height:42px;
    border:none;
    border-radius:12px;
    background:#0f172a;
    color:#fff;
    font-size:24px;
    line-height:1;
    cursor:pointer;
}

.cm-dashboard-overlay-body{
    padding:24px;
    overflow:auto;
}

.cm-focus-panel{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.cm-focus-intro{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    flex-wrap:wrap;
}

.cm-focus-intro-text{
    color:#475569;
    font-size:14px;
}

.cm-focus-kpi{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:72px;
    height:72px;
    border-radius:20px;
    background:#ef4444;
    color:#fff;
    font-size:30px;
    font-weight:900;
    box-shadow:0 14px 34px rgba(239,68,68,.26);
}

.cm-focus-table-wrap{
    overflow:auto;
    border:1px solid #e2e8f0;
    border-radius:18px;
}

.cm-focus-table{
    width:100%;
    border-collapse:collapse;
    min-width:900px;
}

.cm-focus-table th,
.cm-focus-table td{
    padding:14px 16px;
    border-bottom:1px solid #eef2f7;
    text-align:left;
    font-size:14px;
    vertical-align:middle;
}

.cm-focus-table th{
    background:#f8fafc;
    color:#334155;
    font-weight:800;
}

.cm-focus-table tr:hover td{
    background:#f8fbff;
}

.cm-focus-actions{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.cm-hidden-detail{
    display:none !important;
}

@media (max-width:700px){
    .cm-dashboard-overlay{
        padding:12px;
    }

    .cm-dashboard-overlay-card{
        width:100%;
        max-height:95vh;
        border-radius:20px;
    }

    .cm-dashboard-overlay-head{
        padding:16px 18px;
    }

    .cm-dashboard-overlay-body{
        padding:18px;
    }

    .cm-focus-kpi{
        min-width:60px;
        height:60px;
        font-size:24px;
    }
}

.cm-widget-detail{
    display:none !important;
}

.cm-widget-open-indicator{
    font-size:18px;
    font-weight:900;
    color:#94a3b8;
    transition:.18s;
}

.cm-widget-clickable:hover .cm-widget-open-indicator{
    color:#2563eb;
    transform:translate(2px,-2px) scale(1.08);
}

.cm-widget-clickable{
    transition:all .18s ease;
}

.cm-widget-clickable:hover{
    border-color:#c7d2fe;
    box-shadow:
        0 18px 38px rgba(37,99,235,.12),
        0 4px 10px rgba(15,23,42,.08);
}

.cm-action-form{
    margin:0;
}

.cm-check-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:10px 16px;
    padding:4px 0;
}

.cm-check-item{
    display:flex;
    align-items:center;
    gap:8px;
    font-size:14px;
    font-weight:600;
    color:#334155;
}

.cm-check-item input[type="checkbox"]{
    width:18px;
    height:18px;
}

@media (max-width:900px){
    .cm-check-grid{
        grid-template-columns:1fr;
    }

    
    .cm-dashboard-overlay-card{
  width:min(96vw, 1680px);
  max-width:1680px;
}

.cm-dashboard-overlay-body{
  max-height:calc(100vh - 120px);
  overflow:auto;
}

.cm-focus-table-wrap{
  overflow:auto;
}

.cm-focus-table{
  min-width:1400px;
}}

#cmDashboardOverlay .cm-dashboard-overlay-card{
  width: 96vw !important;
  max-width: 1700px !important;
  height: 90vh !important;
}

#cmDashboardOverlay .cm-dashboard-overlay-body{
  max-height: calc(90vh - 90px) !important;
  overflow: auto !important;
}

#cmDashboardOverlay .cm-focus-panel{
  width: 100% !important;
  max-width: none !important;
}

#cmDashboardOverlay .cm-focus-table-wrap{
  overflow: auto !important;
}

#cmDashboardOverlay .cm-focus-table{
  min-width: 1450px !important;
}

.cm-urgences-carousel{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.cm-urgences-carousel-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
}

.cm-urgences-carousel-title-wrap{
    flex:1;
    text-align:center;
}

.cm-urgences-carousel-kicker{
    font-size:12px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.08em;
    color:#64748b;
    margin-bottom:4px;
}

.cm-urgences-carousel-title{
    font-size:28px;
    font-weight:900;
    color:#0f172a;
    line-height:1.1;
}

.cm-urgences-nav{
    width:46px;
    height:46px;
    border:none;
    border-radius:14px;
    background:#0f172a;
    color:#fff;
    font-size:28px;
    line-height:1;
    cursor:pointer;
    flex:0 0 46px;
}

.cm-urgences-nav:hover{
    background:#1e293b;
}

.cm-urgences-dots{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}

.cm-urgences-dot{
    width:11px;
    height:11px;
    border:none;
    border-radius:999px;
    background:#cbd5e1;
    cursor:pointer;
    padding:0;
    transition:transform .15s ease, background .15s ease;
}

.cm-urgences-dot.is-active{
    background:#2563eb;
    transform:scale(1.22);
}

.cm-urgences-slide{
    display:none;
}

.cm-urgences-slide.is-active{
    display:block;
}

.cm-urgences-placeholder{
    padding:40px 24px;
    border:1px dashed #cbd5e1;
    border-radius:18px;
    background:#f8fafc;
    text-align:center;
}

.cm-urgences-placeholder h3{
    margin:0 0 8px;
    font-size:24px;
    color:#0f172a;
}

.cm-urgences-placeholder p{
    margin:0;
    color:#64748b;
    font-size:14px;
}

@media (max-width:700px){
    .cm-urgences-carousel-head{
        gap:10px;
    }

    .cm-urgences-carousel-title{
        font-size:22px;
    }

    .cm-urgences-nav{
        width:40px;
        height:40px;
        font-size:24px;
        flex-basis:40px;
    }
}

.cm-hero-carousel-controls{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:16px;
    margin-top:10px;
}

.cm-carousel-arrow{
    width:40px;
    height:40px;
    border-radius:12px;
    border:none;
    font-size:26px;
    font-weight:900;
    cursor:pointer;
    background:rgba(255,255,255,.15);
    color:#fff;
}

.cm-carousel-arrow:hover{
    background:#fff;
    color:#0f172a;
}

.cm-carousel-dots{
    display:flex;
    gap:8px;
}

.cm-carousel-dot{
    width:10px;
    height:10px;
    border-radius:50%;
    background:rgba(255,255,255,.35);
    cursor:pointer;
}

.cm-carousel-dot.active{
    background:#fff;
}

.cm-delivery-input{
    height:42px;
    border:1px solid #cbd5e1;
    border-radius:10px;
    padding:0 10px;
    box-sizing:border-box;
    background:#fff;
}

/* Overlay tables - lecture plus aérée */
#cmDashboardOverlay .cm-focus-table{
  min-width: 1450px !important;
}

#cmDashboardOverlay .cm-focus-table th,
#cmDashboardOverlay .cm-focus-table td{
  padding: 11px 12px !important;
  font-size: 13px !important;
  line-height: 1.35;
  vertical-align: middle;
}

#cmDashboardOverlay .cm-focus-table th{
  white-space: nowrap;
}

#cmDashboardOverlay .cm-focus-table td strong{
  font-size: 13px;
}

#cmDashboardOverlay .cm-status-badge{
  min-width: 74px;
  height: 28px;
  padding: 0 9px;
  font-size: 11px;
}

#cmDashboardOverlay .cm-btn{
  height: 36px;
  padding: 0 12px;
  font-size: 12px;
}

.cm-dossier-link{
  color: #0f172a;
  text-decoration: none;
  font-weight: 800;
}

.cm-dossier-link:hover{
  color: #2563eb;
  text-decoration: underline;
}

#cmDashboardOverlay{
  padding: 10px !important;
}

#cmDashboardOverlay .cm-dashboard-overlay-card{
  width: 98vw !important;
  max-width: 1800px !important;
  height: 94vh !important;
  border-radius: 18px !important;
}

#cmDashboardOverlay .cm-dashboard-overlay-body{
  max-height: calc(94vh - 86px) !important;
  overflow: auto !important;
  padding: 14px !important;
}

#cmDashboardOverlay .cm-focus-table-wrap{
  overflow: auto !important;
}

#cmDashboardOverlay .cm-focus-table{
  min-width: 1700px !important;
}

#cmDashboardOverlay .cm-focus-table th,
#cmDashboardOverlay .cm-focus-table td{
  padding: 10px 11px !important;
  font-size: 13px !important;
  line-height: 1.3 !important;
  vertical-align: middle !important;
}

.cm-hero-main{
    display:grid;
    grid-template-columns: minmax(220px, 320px) 1fr;
    gap:24px;
    align-items:start;
}

.cm-hero-left{
    display:flex;
    flex-direction:column;
    justify-content:center;
    min-height:150px;
}

.cm-hero-right{
    animation: cmHeroFadeIn .28s ease;
}

.cm-hero-quicklist{
    display:flex;
    flex-direction:column;
    gap:10px;
    padding-top:8px;
}

.cm-hero-quicklink{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    width:100%;
    text-align:left;
    padding:12px 14px;
    border:1px solid rgba(255,255,255,.14);
    border-radius:14px;
    background:rgba(255,255,255,.08);
    color:#fff;
    cursor:pointer;
    transition:
        transform .18s ease,
        background .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

.cm-hero-quicklink:hover{
    transform:translateX(4px);
    background:rgba(255,255,255,.14);
    border-color:rgba(255,255,255,.28);
    box-shadow:0 12px 28px rgba(2,6,23,.18);
}

.cm-hero-quicklink-main{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
    font-size:14px;
    line-height:1.35;
    color:#fff;
}

.cm-hero-quicklink-main strong{
    font-size:18px;
    font-weight:900;
    color:#fff;
}

.cm-hero-quicklink-meta{
    flex:0 0 auto;
    font-size:12px;
    color:rgba(255,255,255,.76);
    white-space:nowrap;
}

.cm-widget-hero.is-switching .cm-hero-left,
.cm-widget-hero.is-switching .cm-hero-right{
    animation: cmHeroSlideFade .24s ease;
}

.cm-carousel-arrow,
.cm-carousel-dot{
    transition:
        transform .18s ease,
        background .18s ease,
        box-shadow .18s ease,
        opacity .18s ease;
}

.cm-carousel-arrow:hover{
    transform:translateY(-1px) scale(1.04);
    box-shadow:0 10px 22px rgba(2,6,23,.22);
}

.cm-carousel-dot{
    border:none;
    box-shadow:none;
}

.cm-carousel-dot:hover{
    transform:scale(1.18);
    background:rgba(255,255,255,.62);
}

.cm-carousel-dot.active{
    transform:scale(1.2);
    box-shadow:0 0 0 4px rgba(255,255,255,.12);
}

@keyframes cmHeroFadeIn{
    from{
        opacity:0;
        transform:translateY(6px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

@keyframes cmHeroSlideFade{
    from{
        opacity:.2;
        transform:translateY(8px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

@media (max-width:980px){
    .cm-hero-main{
        grid-template-columns:1fr;
        gap:16px;
    }

    .cm-hero-left{
        min-height:auto;
    }
}

@media (max-width:700px){
    .cm-hero-quicklink{
        flex-direction:column;
        align-items:flex-start;
    }

    .cm-hero-quicklink-meta{
        white-space:normal;
    }
}

/* =========================
   OCEAN IMPORT DASHBOARD
   Scope local pour ne pas casser les autres pages
   ========================= 

.cm-ocean-dashboard {
    width: 95vw;
    max-width: 95vw;
    margin: 0 auto;
    padding: 18px 0 28px;
}

.cm-ocean-dashboard .cm-dashboard-grid-top {
    display: grid;
    grid-template-columns: 280px minmax(520px, 1fr) 280px;
    gap: 18px;
    align-items: stretch;
}

.cm-ocean-dashboard .cm-widget {
    min-height: 280px;
    height: 100%;
}

.cm-ocean-dashboard .cm-widget-middle {
    min-height: 320px;
}

.cm-ocean-dashboard .cm-hero-main {
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr;
    gap: 24px;
    align-items: start;
}

.cm-ocean-dashboard .cm-hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 150px;
}

.cm-ocean-dashboard .cm-hero-right {
    animation: cmHeroFadeIn .28s ease;
}

.cm-ocean-dashboard .cm-widget-middle .cm-widget-head h2,
.cm-ocean-dashboard .cm-widget-middle .cm-widget-head,
.cm-ocean-dashboard .cm-widget-middle .cm-hero-number,
.cm-ocean-dashboard .cm-widget-middle .cm-hero-text,
.cm-ocean-dashboard .cm-widget-middle .cm-hero-quicklink,
.cm-ocean-dashboard .cm-widget-middle .cm-hero-quicklink-main strong,
.cm-ocean-dashboard .cm-widget-middle .cm-hero-quicklink-main span,
.cm-ocean-dashboard .cm-widget-middle .cm-hero-quicklink-meta {
    color: #0f172a !important;
}

.cm-ocean-dashboard .cm-widget-middle .cm-hero-quicklist {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-height: 265px;
    overflow: hidden;
    position: relative;
}

.cm-ocean-dashboard .cm-widget-middle .cm-hero-quicklist.is-scrollable:hover {
    overflow: auto;
}

.cm-ocean-dashboard .cm-widget-middle .cm-hero-quicklink {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    min-height: 84px;
    text-decoration: none;
}

.cm-ocean-dashboard .cm-widget-middle .cm-hero-quicklink-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cm-ocean-dashboard .cm-widget-middle .cm-hero-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border-radius: 12px;
    background: #e2e8f0;
    color: #334155;
    font-weight: 700;
    font-size: 13px;
    min-height: 84px;
}

.cm-ocean-dashboard .cm-widget .cm-mini-list {
    max-height: 265px;
    overflow: hidden;
}

.cm-ocean-dashboard .cm-widget .cm-mini-list.is-scrollable:hover {
    overflow: auto;
}

.cm-ocean-dashboard .cm-widget .cm-mini-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    margin-bottom: 8px;
    transition: all .15s ease;
}

.cm-ocean-dashboard .cm-widget .cm-mini-row:hover {
    transform: translateY(-1px);
}

.cm-ocean-dashboard .cm-widget .cm-mini-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cm-ocean-dashboard .cm-widget .cm-mini-main strong,
.cm-ocean-dashboard .cm-widget .cm-mini-main span,
.cm-ocean-dashboard .cm-widget .cm-mini-meta {
    color: #0f172a !important;
}

.cm-ocean-dashboard .cm-widget .cm-mini-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
    font-size: 13px;
}

.cm-ocean-dashboard .cm-dashboard-overlay,
.cm-ocean-dashboard .cm-note-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.cm-ocean-dashboard .cm-dashboard-overlay.is-visible,
.cm-ocean-dashboard .cm-note-overlay.is-visible {
    display: flex;
}

.cm-ocean-dashboard .cm-dashboard-overlay-card,
.cm-ocean-dashboard .cm-note-overlay-card {
    width: 80vw;
    max-width: 1400px;
    max-height: 85vh;
    overflow: auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.18);
    transform: translateY(20px);
    transition: transform .18s ease;
}

.cm-ocean-dashboard .cm-dashboard-overlay-card.is-open,
.cm-ocean-dashboard .cm-note-overlay-card.is-open {
    transform: translateY(0);
}

.cm-ocean-dashboard .cm-dashboard-overlay-head,
.cm-ocean-dashboard .cm-note-overlay-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid #e2e8f0;
}

.cm-ocean-dashboard .cm-dashboard-overlay-close,
.cm-ocean-dashboard .cm-note-overlay-close,
.cm-ocean-dashboard .cm-carousel-arrow {
    border: 0;
    background: #e2e8f0;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 20px;
}

.cm-ocean-dashboard .cm-dashboard-overlay-body,
.cm-ocean-dashboard .cm-note-overlay-body {
    padding: 22px;
}

.cm-ocean-dashboard .cm-carousel-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cm-ocean-dashboard .cm-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 0;
    background: #cbd5e1;
    cursor: pointer;
}

.cm-ocean-dashboard .cm-carousel-dot.active {
    background: #0f172a;
}

.cm-ocean-dashboard .cm-no-scroll {
    overflow: hidden;
}

.cm-ocean-dashboard .cm-table td,
.cm-ocean-dashboard .cm-table th {
    vertical-align: top;
}

.cm-ocean-dashboard .cm-inline-date {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.cm-ocean-dashboard .cm-milestone-cell {
    text-align: center;
    white-space: nowrap;
}

.cm-ocean-dashboard .cm-milestone-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.cm-ocean-dashboard .cm-disabled-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: 6px 8px;
    border-radius: 10px;
    background: #e2e8f0;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.cm-ocean-dashboard .cm-note-btn {
    white-space: nowrap;
}

.cm-ocean-dashboard .cm-delivery-container-wrap {
    display: none;
}

.cm-ocean-dashboard .cm-delivery-container-box {
    margin-top: 10px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 14px;
}

@media (max-width: 1450px) {
    .cm-ocean-dashboard .cm-dashboard-grid-top {
        grid-template-columns: 1fr;
    }

    .cm-ocean-dashboard .cm-widget-middle .cm-hero-quicklist {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .cm-ocean-dashboard .cm-hero-main {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cm-ocean-dashboard .cm-hero-left {
        min-height: auto;
    }
}

@media (max-width: 700px) {
    .cm-ocean-dashboard .cm-widget-middle .cm-hero-quicklink {
        flex-direction: column;
        align-items: flex-start;
    }
}*/

/* ===== OCEAN IMPORT DASHBOARD FIX FINAL ===== */

.cm-page-wrap{
    width:95vw !important;
    max-width:95vw !important;
    margin:0 auto !important;
    padding:18px 0 28px !important;
}

.cm-dashboard-grid-top{
    display:grid !important;
    grid-template-columns:280px minmax(620px,1fr) 280px !important;
    gap:18px !important;
    align-items:stretch !important;
}

.cm-dashboard-grid-top > .cm-widget{
    min-height:280px !important;
    height:100% !important;
}

.cm-dashboard-grid-top > .cm-widget.cm-widget-middle{
    min-height:320px !important;
}

.cm-widget.cm-widget-middle .cm-widget-head h2{
    color:#fff !important;
}

.cm-widget.cm-widget-middle .cm-widget-badge{
    color:#fff !important;
}

.cm-widget.cm-widget-middle .cm-hero-main{
    display:grid !important;
    grid-template-columns:minmax(220px,320px) 1fr !important;
    gap:24px !important;
    align-items:start !important;
}

.cm-widget.cm-widget-middle .cm-hero-left{
    display:flex !important;
    flex-direction:column !important;
    justify-content:center !important;
    min-height:150px !important;
}

.cm-widget.cm-widget-middle .cm-hero-right{
    display:block !important;
}

.cm-widget.cm-widget-middle .cm-hero-number{
    color:#fff !important;
}

.cm-widget.cm-widget-middle .cm-hero-text{
    color:rgba(255,255,255,.88) !important;
}

.cm-widget.cm-widget-middle .cm-hero-quicklist{
    display:grid !important;
    grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
    gap:10px !important;
    max-height:265px !important;
    overflow:hidden !important;
    position:relative !important;
}

.cm-widget.cm-widget-middle .cm-hero-quicklist.is-scrollable:hover{
    overflow:auto !important;
}

.cm-widget.cm-widget-middle .cm-hero-quicklink{
    display:flex !important;
    flex-direction:column !important;
    justify-content:space-between !important;
    gap:6px !important;
    padding:10px 12px !important;
    border-radius:12px !important;
    background:rgba(255,255,255,.10) !important;
    border:1px solid rgba(255,255,255,.18) !important;
    min-height:84px !important;
    text-decoration:none !important;
    color:#fff !important;
}

.cm-widget.cm-widget-middle .cm-hero-quicklink-main{
    display:flex !important;
    flex-direction:column !important;
    gap:4px !important;
}

.cm-widget.cm-widget-middle .cm-hero-quicklink-main strong{
    color:#fff !important;
    font-weight:900 !important;
}

.cm-widget.cm-widget-middle .cm-hero-quicklink-main span{
    color:rgba(255,255,255,.88) !important;
}

.cm-widget.cm-widget-middle .cm-hero-quicklink-meta{
    color:rgba(255,255,255,.72) !important;
    font-size:12px !important;
}

.cm-widget.cm-widget-middle .cm-hero-more{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    padding:8px 10px !important;
    border-radius:12px !important;
    background:rgba(255,255,255,.14) !important;
    color:#fff !important;
    font-weight:700 !important;
    font-size:13px !important;
    min-height:84px !important;
}

.cm-widget .cm-mini-list{
    max-height:265px !important;
    overflow:hidden !important;
}

.cm-widget .cm-mini-list.is-scrollable:hover{
    overflow:auto !important;
}

.cm-widget:not(.cm-widget-middle) .cm-mini-row{
    display:flex !important;
    justify-content:space-between !important;
    gap:10px !important;
    padding:10px 12px !important;
    border-radius:12px !important;
    background:#f8fafc !important;
    border:1px solid #e2e8f0 !important;
    margin-bottom:8px !important;
}

.cm-widget:not(.cm-widget-middle) .cm-mini-main{
    display:flex !important;
    flex-direction:column !important;
    gap:4px !important;
}

.cm-widget:not(.cm-widget-middle) .cm-mini-main strong,
.cm-widget:not(.cm-widget-middle) .cm-mini-main span,
.cm-widget:not(.cm-widget-middle) .cm-mini-meta{
    color:#0f172a !important;
}

.cm-widget:not(.cm-widget-middle) .cm-mini-meta{
    display:flex !important;
    flex-direction:column !important;
    gap:4px !important;
    text-align:right !important;
    font-size:13px !important;
}

@media (max-width:1450px){
    .cm-dashboard-grid-top{
        grid-template-columns:1fr !important;
    }

    .cm-widget.cm-widget-middle .cm-hero-quicklist{
        grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width:980px){
    .cm-widget.cm-widget-middle .cm-hero-main{
        grid-template-columns:1fr !important;
        gap:16px !important;
    }
}

/* ===== FIX OCEAN IMPORT TOP + NOTES ===== */

.cm-ocean-dashboard .cm-dashboard-grid-top{
    display:grid !important;
    grid-template-columns:260px minmax(500px, 1fr) 260px !important;
    gap:18px !important;
    align-items:stretch !important;
}

.cm-ocean-dashboard .cm-widget-small{
    min-height:260px !important;
}

.cm-ocean-dashboard .cm-widget-middle{
    min-height:290px !important;
}

.cm-ocean-dashboard .cm-widget-middle .cm-widget-head h2,
.cm-ocean-dashboard .cm-widget-middle .cm-widget-badge,
.cm-ocean-dashboard .cm-widget-middle .cm-hero-number,
.cm-ocean-dashboard .cm-widget-middle .cm-hero-text{
    color:#fff !important;
}

.cm-ocean-dashboard .cm-widget-middle .cm-hero-main{
    display:grid !important;
    grid-template-columns:minmax(190px,260px) 1fr !important;
    gap:18px !important;
    align-items:start !important;
}

.cm-ocean-dashboard .cm-widget-middle .cm-hero-quicklist{
    display:grid !important;
    grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
    gap:10px !important;
    max-height:255px !important;
    overflow:hidden !important;
}

.cm-ocean-dashboard .cm-widget-middle .cm-hero-quicklist.is-scrollable:hover{
    overflow:auto !important;
}

.cm-ocean-dashboard .cm-widget-middle .cm-hero-quicklink{
    display:flex !important;
    flex-direction:column !important;
    justify-content:space-between !important;
    gap:6px !important;
    padding:10px 12px !important;
    min-height:80px !important;
    border-radius:12px !important;
    background:rgba(255,255,255,.12) !important;
    border:1px solid rgba(255,255,255,.22) !important;
    color:#fff !important;
    text-decoration:none !important;
}

.cm-ocean-dashboard .cm-widget-middle .cm-hero-quicklink-main strong,
.cm-ocean-dashboard .cm-widget-middle .cm-hero-quicklink-main span,
.cm-ocean-dashboard .cm-widget-middle .cm-hero-quicklink-meta{
    color:#fff !important;
}

.cm-ocean-dashboard .cm-widget-badge-neutral{
    background:#e2e8f0 !important;
    color:#0f172a !important;
}

.cm-ocean-dashboard .cm-widget-small .cm-mini-list{
    max-height:255px !important;
    overflow:hidden !important;
    transition:max-height .18s ease !important;
}

.cm-ocean-dashboard .cm-widget-small:hover .cm-mini-list{
    max-height:520px !important;
    overflow:auto !important;
}

.cm-ocean-dashboard .cm-widget-small .cm-mini-row{
    display:flex !important;
    justify-content:space-between !important;
    gap:10px !important;
    padding:10px 12px !important;
    border-radius:12px !important;
    background:#f8fafc !important;
    border:1px solid #e2e8f0 !important;
    margin-bottom:8px !important;
    text-decoration:none !important;
    color:#0f172a !important;
}

.cm-ocean-dashboard .cm-mini-more{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:40px;
    border-radius:12px;
    background:#e2e8f0;
    color:#334155;
    font-weight:800;
    font-size:13px;
}

.cm-ocean-dashboard .cm-note-overlay{
    display:none;
}

.cm-ocean-dashboard .cm-note-overlay.is-visible{
    display:flex !important;
}

@media (max-width:1450px){
    .cm-ocean-dashboard .cm-dashboard-grid-top{
        grid-template-columns:1fr !important;
    }

    .cm-ocean-dashboard .cm-widget-middle .cm-hero-quicklist{
        grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    }
}