/* ==========================================================================
   1. GLOBAL LAYOUT & CONTAINERS
   ========================================================================== */
section#wrapper > div.container:first-child:has(div.box-learner-content) {
    width: 90%;
}

.wrapper_a_pmi_learner_formation,
.wrapper_a_pmi_learner {
    display: flex;
    gap: 30px;
    width: 100%;
    align-items: flex-start;
}

.wrapper_a_pmi_learner_formation_apprenant {
    display: flex;
    flex-direction: column;
}

.dashboard-render-area,
.box-learner-content-formation {
    flex: 1;
    min-width: 0;
}

.box-learner-content {
    margin-top: 10px !important;
    width: 100% !important;
    max-width: none !important;
    padding: 25px !important;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    box-sizing: border-box;
}

.box-learner-content.box-learner-content-formation {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
}

/* ==========================================================================
   2. DASHBOARD HEADER (SUMMARY & STATISTICS)
   ========================================================================== */

.lms-redesign-container {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #2c3e50;
    width: 100%;
    margin: 0;  
}

.lms-card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: nowrap; 
}

.lms-card-left, .lms-card-right {
    flex: 1 1 0%; 
    min-width: 0;
}

.lms-card-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lms-header-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0; 
}

.lms-header-title h2 {
    margin: 0;
    font-size: 19px !important;
}

.lms-card-center {
    /* flex: 1; */
    text-align: center;
    color: #1a202c;
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 40px;
    flex: 0 0 auto;
    padding: 10px 30px;
    background: #f8fafc; 
    border-radius: 50px; 
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}

.lms-card-center::before, 
.lms-card-center::after {
    content: "";
    position: absolute;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, #edf2f7, transparent);
}

.lms-card-center::before { left: 0; }
.lms-card-center::after { right: 0; }

/* Style for the Name only */
.lms-customer-name {
    font-size: 18px;
    font-weight: 800;
    color: #2d3748;
    text-transform: uppercase;
    display: block;
}

.lms-customer-id {
    font-size: 11px;
    color: #94a3b8;
    letter-spacing: 1px;
    font-weight: 700;
}

.lms-card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Main Card */
.lms-main-card {
    background: #fff;
    border-radius: 16px;
    padding: 15px 25px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #edf2f7;
    position: relative;
    margin-bottom: 15px; 
    width: 100%; 
}

.lms-icon-check-wrapper i { font-size: 32px; color: #48bb78; }
.lms-bravo-text { color: #718096; margin: 5px 0 0 0; font-size: 14px; }

.lms-badge-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

/* Base Pill Style */
.lms-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border: 1px solid transparent;
}

.lms-pill i {
    font-size: 16px;
}

/* Variant: Dispense (Teal/Soft Green) */
.lms-pill--dispense {
    background-color: #f0fff4;
    color: #276749;
    border-color: #c6f6d5;
}

/* Variant: Prolongation (Amber/Orange) */
.lms-pill--prolongation {
    background-color: #fffaf0;
    color: #9c4221;
    border-color: #feebc8;
}

/* Variant: Requirement (Light Blue/Grey) */
.lms-pill--requirement {
    background-color: #ebf8ff;
    color: #2b6cb0;
    border-color: #bee3f8;
    text-transform: none; 
}

.lms-pill--requirement strong {
    margin-left: 2px;
}


/* Color contexts */
.lms-context-success .lms-trophy-circle { background: #f0fff4; }
.lms-context-success .lms-trophy-circle i { color: #38a169; }

/* Success State (Green) */
.lms-context-success .lms-icon-check-wrapper i {
    color: #48bb78 !important; /* Matches the green checkmark/trophy */
}

/* In Progress State (Blue) */
.lms-context-info .lms-icon-check-wrapper i {
    color: #3182ce !important; /* Matches the blue bar/footer */
}

.lms-context-incomplete .lms-icon-check-wrapper i {
    color: #ce314b !important; 
}

/* Global Score */
.lms-big-score {
    font-size: 38px !important; 
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
}

.lms-score-sep {
    font-size: 20px;
    color: #cbd5e0;
}

.lms-main-progress-wrapper {
    width: 100%;
    max-width: 280px; 
    margin: 8px 0 !important;
}

.progress.lms-bar-bg {
    height: 18px !important; 
    background-color: #edf2f7 !important;
    border-radius: 20px !important;
    position: relative;
    overflow: hidden;
}

.progress-pct {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%); 
    font-weight: 800;
    font-size: 11px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    line-height: 1;
}

.lms-quick-stats {
    margin-top: 5px;
    font-size: 12px;
    color: #718096;
    display: flex;
    justify-content: flex-end;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Footer Pills */
.lms-footer-pill {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    background-color: #eef2f7; 
    color: #4a5568;
}

.lms-footer-pill.info {
    background-color: #ebf8ff;
    color: #2b6cb0;
    border: 1px solid #bee3f8;
}

.lms-footer-pill i {
    font-size: 16px;
}
.lms-footer-pill.success {
    background-color: #f0fff4;
    color: #2f855a;
}

.lms-footer-pill.info {
    background-color: #edf2f7;
    color: #2c3e50;
}

.lms-footer-pill.info i {
    color: #3182ce;
}

/* Trophy */
.lms-trophy-container {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1; 
    z-index: 1;
}

.lms-trophy-circle {
    width: 80px; 
    height: 80px;
    background: #f0fdf4;
    border: 2px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lms-trophy-circle i {
    font-size: 40px;
}

.lms-category-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 15px; 
    margin-bottom: 20px; 
    padding: 0 5px;
}

.lms-cat-card {
    background: #fff;
    border-radius: 12px;
    padding: 12px 15px; 
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    border-left: 6px solid #ddd;
}

.lms-cat-header { 
    display: flex; 
    gap: 10px; 
    margin-bottom: 8px; 
    align-items: center; 
}

.rule-border-maximum { border-left-color: #3182ce; }
.rule-border-minimum { border-left-color: #38a169; }
.rule-border-exact { border-left-color: #e53e3e; }

.lms-cat-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.icon-maximum { background: #ebf8ff; color: #3182ce; }
.icon-minimum { background: #f0fff4; color: #38a169; }
.icon-exact { background: #fff5f5; color: #e53e3e; }

.lms-cat-titles h4 { margin: 0; font-size: 16px; font-weight: 700; }
.lms-rule-tag { font-size: 11px; font-weight: 800; }
.tag-maximum { color: #3182ce; }
.tag-minimum { color: #38a169; }
.tag-exact { color: #e53e3e; }

.lms-cat-stats { font-size: 20px; margin-bottom: 10px; }
.lms-cat-stats b { font-weight: 800; }
.lms-cat-stats .sep { color: #a0aec0; font-size: 14px; }

.lms-cat-bar { height: 6px !important; margin-bottom: 8px !important; }
.lms-cat-realized { font-size: 12px; color: #a0aec0; font-style: italic; }

.lms-footer-note { text-align: center; color: #718096; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 20px; }

@media (max-width: 991px) {
    .lms-category-grid { grid-template-columns: 1fr; }
    .lms-card-content { flex-direction: column; }
    .lms-trophy-container { display: none; }
}

#header-customer-dashboard {
    /* background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%); */
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 20px rgba(0, 0, 0, .06);
    border: 1px solid #e6e8eb;
    margin-bottom: 0px;
    position: relative;
}

#header-customer-dashboard + * {
    border-top: 1px solid #eceff2;
    padding-top: 5px;
}

.dashboard-global {
    flex: 0 0 30%;
    padding: 25px;
    background: #f8f9fa;
    border-right: 1px solid #e1e1e1;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.global-score {
    font-size: 36px;
    font-weight: 800;
    color: #2c3e50;
    margin: 15px 0;
}

.score-separator { color: #ccc; font-weight: 300; }
.score-target { color: #7f8c8d; font-size: 24px; }
.score-unit {
    display: inline-block;
    margin-left: 6px;
    font-size: 12px;
    color: #777;
}

.dashboard-breakdown {
    flex: 1;
    padding: 25px;
    background: #f8f9fa;
}

.dashboard-breakdown h3 {
    font-size: 13px;
    letter-spacing: .04em;
    color: #6c757d;
    margin-bottom: 12px;
}

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

.breakdown-header {
    margin-bottom: 6px;
}

.breakdown-item {
    background: #ffffff;
    border-radius: 8px;
    padding: 10px 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
    transition: transform .15s ease, box-shadow .15s ease;
}

.breakdown-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-color: #ddd;
}

.cat-name { font-weight: 700; color: #34495e; }
.cat-score { color: #7f8c8d; font-size: 13px; }
.cat-score b { color: #2c3e50; }

.dashboard-badge img { height: 48px; }

.card-block {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

/* Legacy Header Elements */
.header-periode label { margin: 0; }

.hours-informations {
    border: solid 1px #bbb;
    border-left: solid 8px green;
    padding: 5px;
    background-color: #ededed;
    width: fit-content;
}

.prolongation-informations {
    border: solid 1px #bbb;
    border-left: solid 8px #ff8400;
    background-color: #ededed;
    width: fit-content;
    margin-top: 10px;
}

.prolongation-child {
    border-left: solid 8px #ff8400;
    padding: 5px;
    margin-left: 5px;
}

/* ==========================================================================
   3. NAVIGATION BAR & CONTROL CENTER
   ========================================================================== */
.horizontal-dashboard-nav {
    width: 100% !important;
    background-color: #2e353d;
    border-radius: 10px;
    display: flex !important;
    justify-content: space-between;
    align-items: stretch !important;
    padding: 0 10px !important;
    height: 60px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.horizontal-dashboard-nav {
    font-family: verdana;
    font-size: 12px;
    font-weight: 200;
    background-color: #2e353d;
    width: 250px;
    height: fit-content;
    color: #e1ffff;
    float: left;
    margin-top: 5px;
  }

  .horizontal-dashboard-nav .brand {
    background-color: #23282e;
    line-height: 50px;
    display: block;
    text-align: center;
    font-size: 14px;
  }
  
  .horizontal-dashboard-nav .toggle-btn {
    display: none;
  }
  
  .horizontal-dashboard-nav ul,
  .horizontal-dashboard-nav li {
    list-style: none;
    padding: 0px;
    margin: 0px;
    line-height: 35px;
    cursor: pointer;

  }
  
  .horizontal-dashboard-nav ul :not(collapsed) .arrow:before,
  .horizontal-dashboard-nav li :not(collapsed) .arrow:before {
    font-family: FontAwesome;
    content: "\f078";
    display: inline-block;
    padding-left: 10px;
    padding-right: 10px;
    vertical-align: middle;
    float: right;
  }
  
  .horizontal-dashboard-nav ul .active,
  .horizontal-dashboard-nav li .active {
    border-left: 3px solid #d19b3d;
    background-color: #4f5b69;
  }
  
  .horizontal-dashboard-nav ul .sub-menu li.active,
  .horizontal-dashboard-nav li .sub-menu li.active {
    color: #d19b3d;
  }
  
  .horizontal-dashboard-nav ul .sub-menu li.active a,
  .horizontal-dashboard-nav li .sub-menu li.active a {
    color: #d19b3d;
  }
  
  /* FIN */
  
  .horizontal-dashboard-nav ul .sub-menu li,
  .horizontal-dashboard-nav li .sub-menu li {
    background-color: #181c20;
    border: none;
    line-height: 28px;
    border-bottom: 1px solid #23282e;
    margin-left: 0px;
  }
  
  .horizontal-dashboard-nav ul .sub-menu li:hover,
  .horizontal-dashboard-nav li .sub-menu li:hover {
    background-color: #020203;
  }
  
  .horizontal-dashboard-nav ul .sub-menu li:before,
  .horizontal-dashboard-nav li .sub-menu li:before {
    font-family: FontAwesome;
    content: "\f105";
    display: inline-block;
    padding-left: 10px;
    padding-right: 10px;
    vertical-align: middle;
  }
  
  .horizontal-dashboard-nav li {
    padding-left: 0px;
    border-left: 3px solid #2e353d;
    border-bottom: 1px solid #23282e;
  }
  
  .horizontal-dashboard-nav li a {
    text-decoration: none;
    color: #e1ffff;
  }
  
  .horizontal-dashboard-nav li a i {
    padding-left: 10px;
    width: 20px;
    padding-right: 20px;
  }
  
  .horizontal-dashboard-nav li:hover {
    border-left: 3px solid #d19b3d;
    background-color: #4f5b69;
    -webkit-transition: all 1s ease;
    -moz-transition: all 1s ease;
    -o-transition: all 1s ease;
    -ms-transition: all 1s ease;
    transition: all 1s ease;
  }

.nav-links {
    display: flex !important;
    flex-direction: row !important;
    height: 100%;
    margin: 0; padding: 0;
    list-style: none;
}

.nav-links a {
    text-decoration: none !important;
    height: 100%;
}

.nav-links li {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 15px !important;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 500;
    border-bottom: none !important;
    transition: all 0.2s ease;
}

.nav-links li i {
    margin-right: 6px;
    font-size: 18px;
    color: #ffffff !important;
}

.nav-links li.active {
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 -3px 0 0 #d19b3d;
}

.nav-links li:hover {
    background-color: #3d464f;
}

/* Period & View Controls */
.nav-controls {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-period-icon {
    color: #9da6af; 
    font-size: 18px !important;
    margin-right: 5px;
}

.nav-period-label {
    color: #9da6af;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 5px;
    white-space: nowrap;
}

.input-group-nav {
    display: flex;
    align-items: center;
    background: #23282e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0 10px;
    height: 38px;
    transition: all 0.3s ease;
}

.input-group-nav:hover { border-color: #d19b3d; }
.input-group-nav i { color: #9da6af; font-size: 16px; margin-right: 8px; }

.input-group-nav select {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    padding-right: 20px;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 18px;
}

.nav-toggle-form {
    height: 100%;
    display: flex;
    align-items: center;
}

.btn-group-nav {
    display: flex;
    background: #1e2227;
    padding: 3px;
    border-radius: 8px;
    margin-right: 5px;
}

.nav-toggle-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    justify-content: center;
    line-height: 1;
    min-width: 65px;
    height: 100%;
    padding: 2px 8px !important;
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-toggle-btn i { font-size: 18px !important; margin-bottom: 2px; }
.nav-toggle-btn span { font-size: 9px !important; text-transform: uppercase; white-space: nowrap; }

.nav-toggle-btn.active {
    background: #4a5568;
    color: #fff !important;
}

/* View Mode Toggles */
.dashboard-view-toggle-bar {
    margin-bottom: 0 !important;
    align-self: center;
}

.dashboard-view-toggle-bar form {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.dashboard-view-toggle-bar .toggle-btn {
    background-color: #434d58 !important;
    color: #cbd5e0 !important;
    border: 1px solid #4a5568 !important;
    transition: all 0.2s ease;
}

.dashboard-view-toggle-bar .toggle-btn:hover { background-color: #f0f0f0 !important; }

.dashboard-view-toggle-bar .toggle-btn.active {
    background-color: #2e353d !important;
    color: #fff !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-color: #d19b3d !important;
}

/* ==========================================================================
   4. TABLES (GENERIC & COMPACT)
   ========================================================================== */
.table-container {
    width: 100%;
    overflow-x: auto;
}

#table-formation {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

#table-formation th,
#table-formation td {
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
}

#table-formation td { min-width: 110px; }

#table-formation th {
    background-color: #f9f9f9;
    border: solid 3px #ddd;
    color: #7a7a7a;
    white-space: nowrap;
    vertical-align: middle;
}

.cellules-table td:nth-child(3) {
    word-break: normal;
    overflow-wrap: break-word;
    min-width: 250px;
}

.category-header-title {
    color: #2c3e50;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-group-wrapper .table-formation {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Category View Specifics */
.lms-compact-grid th {
    background-color: #f1f3f5 !important;
    border-bottom: 2px solid #dee2e6 !important;
    color: #495057 !important;
    text-transform: uppercase;
    font-size: 11px;
}

.lms-compact-grid .cellules-table:hover td {
    background-color: #f8f9fa !important;
}

/* ==========================================================================
   5. UI COMPONENTS (BADGES, PROGRESS BARS, TOOLTIPS)
   ========================================================================== */
/* Header alignment for the title and the small info note */
.breakdown-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.flex-note {
    font-size: 11px;
    color: #856404;
    background: #fff3cd;
    padding: 4px 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.flex-note i { font-size: 14px; }

/* Category Identity layout */
.cat-identity {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.rule-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: -2px;
}

/* Subtle Left-Border Accents per rule type */
.rule-accent-exact { border-left: 3px solid #dc3545 !important; }
.rule-accent-minimum { border-left: 3px solid #28a745 !important; }
.rule-accent-maximum { border-left: 3px solid #007bff !important; }

/* Realized text polish */
.realized-text {
    font-size: 10px;
    color: #999;
    font-style: italic;
}

.text-transparent { opacity: 0; }
/* Progress Bars */
.progress {
    height: 14px;
    background-color: #e9ecef;
    border-radius: 5px;
    margin-bottom: 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    transition: width 0.6s ease;
    line-height: 14px;
    font-size: 11px;
}

.bg-success { background-color: #28a745; }
.bg-info    { background-color: #17a2b8; }
.bg-warning { background-color: #ffc107; }
.bg-danger  { background-color: #dc3545; }

.lms-bar-container {
    height: 6px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 4px;
    border: 1px solid #dee2e6;
}

.lms-bar-fill {
    height: 100%;
    transition: width 0.4s ease;
}

/* Badges */
.lms-badge-display-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px; 
    margin: 15px 0 25px 0;
}

/* The Primary Badge (Complet / Incomplet) */
.lms-badge-primary img {
    height: 100px; 
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* The Modifier Badge (Prolongation / Dispense) */
.lms-badge-modifier img {
    height: 80px;
    width: auto;
    opacity: 0.9;
}

/* Responsive adjustment for small mobile */
@media (max-width: 480px) {
    .lms-badge-display-row {
        gap: 15px;
    }
    .lms-badge-primary img { height: 75px; }
    .lms-badge-modifier img { height: 60px; }

    .horizontal-dashboard-nav .menu-list .menu-content {
        display: block;
      }

      .horizontal-dashboard-nav {
        position: relative;
        width: 100%;
        margin-bottom: 10px;
      }
    
      .horizontal-dashboard-nav .toggle-btn {
        display: block;
        cursor: pointer;
        position: absolute;
        right: 10px;
        top: 10px;
        z-index: 10 !important;
        padding: 3px;
        background-color: #ffffff;
        color: #000;
        width: 40px;
        text-align: center;
      }
}

.lms-badge {
    display: block;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 800;
    color: #fff;
    text-align: center;
}

.lms-badge-non-live { background-color: #5d6d7e; }
.lms-badge-live     { background-color: #17a2b8; }
.lms-badge-external { background-color: #f39c12; }
.lms-badge-dispense { background-color: #8e44ad; }

.lms-badges-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    min-height: 77px;
}

.lms-badge-item img {
    height: 80px;
    width: auto;
    transition: transform 0.2s ease;
}

.lms-badge-modifier img {
    height: 70px;
}

.lms-badge-item:hover img {
    transform: scale(1.05);
}

/* UDF Tooltips */
.udf-cell { cursor: help; }
.udf-tooltip-data { display: none; }

/* ==========================================================================
   6. FORMS & MODALS
   ========================================================================== */
#form-ajout {
    margin-left: 5%;
}

#form-ajout .form-line {
    padding-bottom: 4%;
}

#form-ajout .form-line label {
    width: 30%;
    text-align: left;
    font-size: 16px;
}

#form-ajout .form-line label span { color: red; }

#form-ajout .form-line input,
#form-ajout .form-line textarea {
    background-color: #ececec;
    border: solid 1px gray;
    box-shadow: 4px 4px 5px #C7C7C7;
    border-radius: 10px;
    padding: 5px 10px;
    width: 50%;
}

#form-ajout #duree_heures,
#form-ajout #duree_minutes {
    width: 50px;
    text-align: center;
}

#form-ajout #date { width: 160px; }

#form-ajout .ajout-numero-attestation {
    display: flex;
    align-items: center;
}

#form-ajout .ajout-numero-attestation textarea { height: 200px; }

#form-ajout .ajout-pieces-jointes {
    display: flex;
}

#form-ajout .ajout-pieces-jointes .input_piece_jointe {
    display: flex;
    flex-direction: column;
    padding-left: 5px;
    width: 70%;
}

#form-ajout .ajout-pieces-jointes #piece_jointe {
    background-color: unset;
    border: unset;
    box-shadow: unset;
    border-radius: unset;
    padding: unset;
    width: 100%;
}

#form-ajout .ajout-pieces-jointes span {
    opacity: 0.5;
    font-size: 14px;
    margin-top: 5px;
}

#form-ajout .ajout-button {
    text-align: end;
}

#form-ajout .ajout-button button {
    border: 0;
    color: white;
    padding: 2%;
    font-size: 20px;
    border-radius: 15px;
    width: 150px;
    cursor: pointer;
    transition: all ease 0.3s;
    background: #53c953;
}

#form-ajout .ajout-button button:hover { background-color: #329c32; }
#form-ajout .ajout-button button[disabled] { background-color: #789d73; cursor: not-allowed; }

/* Profil Page */
.profil-learner {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 800px;
}

.profil-learner-info {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f8f9fa;
    padding-bottom: 10px;
}

.profil-learner-info label {
    width: 250px;
    margin: 0;
    font-weight: 600;
    color: #4a5568;
}

.profil-learner-info .info-value { flex: 1; }

.learner-profil-form-input {
    width: 100%;
    max-width: 400px;
    display: block;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 14px;
}

.disabled-field {
    background-color: #f1f3f5;
    color: #6c757d;
    border: 1px solid #dee2e6;
    cursor: not-allowed;
}

.editable-field {
    background-color: #ffffff;
    border: 2px solid #2e353d;
    color: #2e353d;
}

.editable-label { color: #2e353d !important; }
.profil-learner-page-local .editable-field {
    width: 100%;
    max-width: 400px;
    display: block;
    height: 42px;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.4;
    box-sizing: border-box;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    color: #6c757d;
    box-shadow: none;
    outline: none;
}

.profil-learner-page-local .editable-field:focus {
    border: 1px solid #adb5bd;
    box-shadow: none;
    color: #495057;
}

.profil-learner-page-local .profil-local-help-text {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #6c757d;
    line-height: 1.3;
}

.profil-learner-page-local .disabled-field {
    min-height: 42px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.profil-learner-page-local .info-value {
    max-width: 400px;
}

.profil-learner-page-local .profil-learner-info label {
    margin-right: 15px;
}

/* Error Handling */
.udf-field-error {
    color: #d9534f;
    font-size: 11px;
    display: none;
    margin-top: 2px;
    font-weight: 500;
}

.udf-input-calc.invalid {
    border-color: #d9534f !important;
    background-color: #fff8f8;
}

/* ==========================================================================
   7. ATTACHMENT DISPLAY & MANAGEMENT
   ========================================================================== */
.attachments {
    display: flex;
    align-items: center;
    text-align: left;
}

.attachments a {
    text-align: left;
    display: flex;
    align-items: center;
}

td.attachment-wrapper {
    border-bottom: 0 !important;
    display: flex;
    justify-content: space-between;
    border-left: 0 !important;
    border-right: 0 !important;
    margin-top: -1.5px;
    margin-bottom: -2px;
}

td.attachment-wrapper .attachment-list { min-width: 600px; }

.without-attachment-wrapper {
    border-bottom: 0 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-left: 0 !important;
    border-right: 0 !important;
    margin-top: -1.5px;
    margin-bottom: -2px;
}

.without-attachment-wrapper p {
    text-align: center;
    width: 100%;
    font-size: 16px;
    color: black;
    font-weight: 500;
    margin: 0;
    min-width: 100px;
}

.without-attachment-no-waiting-wrapper {
    border-bottom: 0 !important;
}

.without-attachment-no-waiting-wrapper p {
    text-align: center;
    width: 100%;
    font-size: 16px;
    color: black;
    font-weight: 500;
    margin: 0;
    min-width: 100px;
}

/* ==========================================================================
   8. RESPONSIVE & MISC
   ========================================================================== */
@media (max-width: 768px) {
    #header-customer-dashboard { flex-direction: column; }
    .dashboard-global { border-right: none; border-bottom: 1px solid #e1e1e1; }
    #header-customer-automatique { gap: 50px; }
    .info-heures { width: 120px; }
    .info-heures .nombre-dheure { font-size: 15px; }
    .wrapper_a_pmi_learner_formation, .wrapper_a_pmi_learner { flex-direction: column; }
}

.summary-info {
    position: relative;
    margin-left: 6px;
    cursor: pointer;
}

.lms-recognized-summary {
    text-align: center;
    margin-top: -15px; 
    margin-bottom: 15px;
    font-family: inherit;
}

.label-reconnu {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.label-brut-detail {
    font-size: 12px;
    color: #7f8c8d;
    margin-left: 5px;
}

.label-brut-detail strong {
    color: #34495e;
}

/* Tooltip UI Polish */
.summary-tooltip {
    display: none;
    position: absolute;
    top: 120%;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px 12px;
    font-size: 11px;
    width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
    z-index: 10;
    min-width: 220px !important;
    padding: 12px !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    border: 1px solid #ced4da !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15) !important;
}

.summary-info:hover .summary-tooltip,
.summary-info:focus .summary-tooltip {
    display: block;
}

.dashboard-content-area {
    width: 75vw;
    padding: 20px;
}

/* période en blanc */
.input-group-nav select option {
    color: #000;
    background: #fff;
}

.footer-period{
    margin: 20px 6px;
}
