/* Premium II2P-inspired Theme Styling for Thera Connect */

:root {
    --ii2p-blue: #41b3e4;
    --ii2p-blue-hover: #2da2d4;
    --ii2p-blue-light: #d9f0fa;
    --ii2p-text-dark: #7a868d;
    --ii2p-text-light: #7a868d;
    --ii2p-bg: #f8f9fa;
    --ii2p-border: #e2e8f0;
    --bs-body-font-family: 'Lato', sans-serif;
    --bs-font-sans-serif: 'Lato', sans-serif;
}

*, *::before, *::after {
    font-family: 'Lato', sans-serif;
}

html, body {
    font-family: 'Lato', sans-serif !important;
    background-color: white;
    color: var(--ii2p-text-dark);
    margin: 0;
    min-height: 100vh;
}

button, input, select, textarea, optgroup {
    font-family: 'Lato', sans-serif !important;
}

/* Espace Pro Text Inputs Styling (blue border) */
.form-control:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not(.border-0),
.form-select:not(.border-0),
input[type="text"]:not(.border-0),
input[type="search"]:not(.border-0),
input[type="email"]:not(.border-0),
input[type="password"]:not(.border-0),
input[type="number"]:not(.border-0),
input[type="tel"]:not(.border-0),
input[type="url"]:not(.border-0),
textarea.form-control:not(.border-0) {
    border: 1px solid var(--ii2p-blue) !important;
    border-radius: 6px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not(.border-0):focus,
.form-select:not(.border-0):focus,
input[type="text"]:not(.border-0):focus,
input[type="search"]:not(.border-0):focus,
input[type="email"]:not(.border-0):focus,
input[type="password"]:not(.border-0):focus,
input[type="number"]:not(.border-0):focus,
input[type="tel"]:not(.border-0):focus,
input[type="url"]:not(.border-0):focus,
textarea.form-control:not(.border-0):focus {
    border-color: var(--ii2p-blue) !important;
    box-shadow: 0 0 0 3px rgba(65, 179, 228, 0.2) !important;
    outline: none !important;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Lato', sans-serif !important;
}

/* App Layout Grid */
.tc-app-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

.tc-anonymous-layout .tc-main-container {
    margin-left: 0 !important;
}

/* Left Sidebar */
.tc-sidebar {
    width: 280px;
    min-width: 280px;
    background-color: white;
    border-right: 1px solid var(--ii2p-border);
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: margin-left 0.3s ease;
}

.sidebar-header {
    padding: 30px 24px;
}

.welcome-text {
    font-size: 0.85rem;
    color: var(--ii2p-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 300;
}

.user-name {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--ii2p-text-dark);
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sidebar navigation */
.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
    overflow-y: auto;
}

.sidebar-nav .nav-item {
    border-bottom: 1px solid rgba(226, 232, 240, 0.4);
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    padding: 18px 24px;
    color: #7a868d !important;
    text-decoration: none;
    font-weight: 300 !important; /* Lato Light (moins gras) */
    font-size: 1.3rem; /* Font plus grosse */
    gap: 16px;
    border-left: none !important; /* Pas de border left */
    transition: all 0.15s ease;
}

.sidebar-nav .nav-link span {
    color: #7a868d !important;
    font-weight: 300 !important; /* Lato Light (moins gras) */
    line-height: 1.25;
}

.sidebar-nav .nav-link i {
    font-size: 1.65rem; /* Icones fins et nets */
    color: #7a868d !important; /* Texte et icon en 7a868d */
    width: 32px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.15s ease;
    font-weight: 300 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.sidebar-nav .nav-link:hover {
    background-color: #d9f0fa !important;
    color: #7a868d !important;
    border-left: none !important;
    font-weight: 300 !important;
}

.sidebar-nav .nav-link:hover i,
.sidebar-nav .nav-link:hover span {
    color: #7a868d !important;
    font-weight: 300 !important;
}

.sidebar-nav .nav-link.active,
.sidebar-nav .nav-link.active:hover {
    background-color: #d9f0fa !important;
    color: #41b3e4 !important;
    border-left: none !important;
    font-weight: 300 !important;
}

.sidebar-nav .nav-link.active i,
.sidebar-nav .nav-link.active span,
.sidebar-nav .nav-link.active:hover i,
.sidebar-nav .nav-link.active:hover span {
    color: #41b3e4 !important;
    font-weight: 300 !important;
}

.disabled-link {
    opacity: 0.6;
    cursor: not-allowed !important;
}

.disabled-link:hover {
    background-color: transparent !important;
    color: #7a868d !important;
}

.disabled-link:hover i {
    color: #7a868d !important;
}

/* Main Container */
.tc-main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    background-color: var(--ii2p-bg);
    min-width: 0;
}

/* Top Header */
.tc-top-header {
    height: 80px;
    background-color: white;
    border-bottom: 1px solid var(--ii2p-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 0 40px;
    position: sticky;
    top: 0;
    z-index: 90;
}

.header-left {
    display: flex;
    align-items: center;
}

.brand-logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.brand-logo-img {
    height: 42px;
    width: auto;
    max-width: 190px;
    object-fit: contain;
    display: block;
}

.brand-title {
    font-size: 2.15rem;
    font-weight: 800;
    color: var(--ii2p-text-dark);
    letter-spacing: -1px;
}

.brand-title span {
    color: var(--ii2p-blue);
}

.brand-vertical-divider {
    font-size: 2rem;
    color: #cbd5e1;
    font-weight: 300;
}

.brand-description-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.desc-main {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ii2p-text-light);
    letter-spacing: 0;
    text-transform: none;
}

.desc-sub {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ii2p-blue);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.1;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #7a868d;
    height: 100%;
    padding: 0 24px;
}

/* Language switcher dropdown link style */
.lang-dropdown .dropdown-toggle {
    color: white !important;
    font-size: 0.95rem;
    border: none;
    outline: none;
    border-bottom: 1px solid white;
    border-radius: 0;
    padding-bottom: 2px !important;
    font-weight: 400 !important;
}

.lang-dropdown .dropdown-toggle:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* User avatar dropdown circle */
.avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: transparent;
    border: 1px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
}

/* Page content area */
.tc-content-area {
    flex: 1;
    padding: 40px;
    background-color: white;
}

/* Page Header and Titles */
h1.tc-page-title,
h2.tc-page-title,
.tc-page-title,
h1 {
    font-family: 'Lato', sans-serif !important;
    font-size: 2rem !important;
    font-weight: 300;
    text-transform: uppercase;
    color: #7a868d !important;
    letter-spacing: -0.5px;
    margin-bottom: 0;
    display: inline-block;
    text-align: center;
}

h1.tc-page-title::after,
h2.tc-page-title::after,
.tc-page-title::after {
    content: "";
    width: 100px;
    max-width: 100px;
    height: 3px;
    display: block;
    margin: 8px auto 0 auto;
    background-color: var(--ii2p-blue);
    border-radius: 2px;
}

/* Neutralize span-specific underline so centered 100px after is used */
.tc-title-underline {
    color: inherit;
}

.tc-title-underline::after {
    display: none !important;
}

/* Header badge matching Espace Pro action button style */
.btn-ii2p-header-badge {
    background-color: var(--ii2p-blue);
    color: #ffffff !important;
    border-radius: 6px;
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(65, 179, 228, 0.25);
    border: none;
    letter-spacing: 0.2px;
}

/* Search bar resembling the Espace Pro mock-up (no border, no round) */
.search-card {
    background-color: #f1f4f7 !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 24px 28px;
    margin-bottom: 25px;
}

.search-title {
    font-size: 0.95rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #7a868d;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.search-input-group {
    display: flex;
    gap: 12px;
    max-width: 750px;
}

.search-input-group .form-control {
    border-radius: 6px;
    border: 1px solid var(--ii2p-blue) !important;
    padding: 10px 16px;
    font-size: 0.95rem;
    background-color: white;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-input-group .form-control:focus {
    border-color: var(--ii2p-blue) !important;
    box-shadow: 0 0 0 3px rgba(65, 179, 228, 0.2) !important;
}

.search-input-group .form-control::placeholder {
    color: #94a3b8;
}

.btn-ii2p-search {
    background-color: var(--ii2p-blue);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.15s ease;
    white-space: nowrap;
}

.btn-ii2p-search:hover {
    background-color: var(--ii2p-blue-hover);
    color: white;
}

/* Alphabet & quick filter pill links */
.alphabet-filters {
    margin-top: 14px;
    font-size: 0.85rem;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.alphabet-filters a {
    color: var(--ii2p-blue);
    text-decoration: none;
    font-weight: 600;
}

.alphabet-filters a:hover {
    text-decoration: underline;
}

.tc-filter-pill {
    color: var(--ii2p-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 3px 10px;
    border-radius: 4px;
    transition: all 0.15s ease;
    background-color: transparent;
    cursor: pointer;
}

.tc-filter-pill:hover,
.tc-filter-pill.active {
    background-color: var(--ii2p-blue);
    color: white !important;
    text-decoration: none;
}

/* Action button at top-right */
.btn-ii2p-add {
    background-color: var(--ii2p-blue);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.15s ease;
}

.btn-ii2p-add:hover {
    background-color: var(--ii2p-blue-hover);
    color: white;
}

/* Lists and list items mimicking mockup */
.tc-list-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tc-list-item {
    background-color: #ffffff;
    border: none !important;
    border-radius: 0 !important;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.tc-list-item:hover {
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.item-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.item-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--ii2p-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 4px 10px rgba(51, 163, 220, 0.2);
}

.item-details {
    display: flex;
    flex-direction: column;
}

.item-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ii2p-text-dark);
}

.item-subtitle {
    font-size: 0.85rem;
    color: var(--ii2p-text-light);
    margin-top: 2px;
}

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

.btn-ii2p-action {
    background-color: var(--ii2p-blue);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background-color 0.15s ease;
}

.btn-ii2p-action:hover {
    background-color: var(--ii2p-blue-hover);
    color: white;
}

.btn-ii2p-action-outline {
    background-color: transparent;
    border: 1px solid var(--ii2p-blue);
    color: var(--ii2p-blue);
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.15s ease;
}

.btn-ii2p-action-outline:hover {
    background-color: var(--ii2p-blue-light);
    color: var(--ii2p-blue);
}

/* Sidebar Collapse state for all screens */
.sidebar-collapsed .tc-sidebar {
    margin-left: -280px;
}

/* Responsive sidebar */
@media (max-width: 991.98px) {
    .tc-sidebar {
        margin-left: -280px;
        position: fixed;
    }
    /* On mobile, sidebar-collapsed class reveals it instead of hiding it */
    .sidebar-collapsed .tc-sidebar {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .tc-top-header {
        padding-left: 16px;
    }
    .brand-vertical-divider,
    .brand-description-text {
        display: none;
    }
    .brand-logo-img {
        height: 32px;
    }
}

/* Glass card overrides for Login */
.login-container {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--ii2p-bg);
}

.login-card {
    background-color: white;
    border: 1px solid var(--ii2p-border);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    width: 100%;
    max-width: 440px;
    padding: 40px;
}

.login-logo {
    font-size: 2.3rem;
    font-weight: 800;
    text-align: center;
    color: var(--ii2p-text-dark);
    margin-bottom: 24px;
}

.login-logo span {
    color: var(--ii2p-blue);
}

.login-logo img,
.login-logo-img {
    max-height: 52px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: inline-block;
}

/* Iframe Full Height Page Layout (No page scroll, iframe fills remaining space) */
@media (min-width: 769px) {
    body:has(.iframe-container-wrapper) {
        overflow: hidden;
    }

    body:has(.iframe-container-wrapper) .tc-app-layout {
        height: 100vh;
        max-height: 100vh;
        overflow: hidden;
    }

    body:has(.iframe-container-wrapper) .tc-main-container {
        height: 100vh;
        max-height: 100vh;
        overflow: hidden;
    }

    body:has(.iframe-container-wrapper) .tc-content-area {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        padding: 30px 40px 24px 40px;
    }

    body:has(.iframe-container-wrapper) .iframe-container-wrapper {
        flex: 1;
        height: auto;
        min-height: 450px;
    }
}

.tc-content-area:has(.iframe-container-wrapper) {
    display: flex;
    flex-direction: column;
    padding-bottom: 24px;
}

.iframe-container-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--ii2p-bg);
    border-radius: 0 !important;
    border: none !important;
    overflow: hidden;
    height: calc(100vh - 210px);
    min-height: 550px;
}

/* Adapt height when Impersonation banner is active */
.tc-content-area:has(.tc-impersonation-banner) .iframe-container-wrapper {
    height: calc(100vh - 290px);
}

.iframe-header {
    background-color: var(--ii2p-bg);
    border-bottom: 1px solid var(--ii2p-border);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.iframe-body {
    flex: 1;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.iframe-body iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .iframe-container-wrapper {
        height: calc(100vh - 170px);
        min-height: 500px;
    }
    .tc-content-area:has(.tc-impersonation-banner) .iframe-container-wrapper {
        height: calc(100vh - 240px);
    }
}

/* Metric cards background override - pas de border, pas de round */
.metric-card {
    background-color: var(--ii2p-bg) !important;
    border: none !important;
    border-radius: 0 !important;
}

/* General card: pas de border, pas de round (style Espace Pro) */
.card,
.card-header,
.card-footer,
.card-body {
    border-radius: 0 !important;
}

.card {
    border: none !important;
    border-radius: 0 !important;
    background-color: #f1f4f7 !important;
}

/* Dashboard custom widgets */
.activity-card {
    background-color: var(--ii2p-blue-light) !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 30px;
}

.onboarding-products-card {
    background-color: var(--ii2p-bg) !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 30px;
    min-height: 100%;
}

.action-grid-card {
    background-color: var(--ii2p-bg);
    border: none !important;
    border-radius: 0 !important;
    padding: 35px 20px;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    height: 100%;
}

.action-grid-card:hover {
    background-color: var(--ii2p-blue-light);
    border: none !important;
    transform: translateY(-2px);
}

.action-grid-card i {
    font-size: 3rem;
    color: #7a868d;
    transition: color 0.2s ease;
}

.action-grid-card:hover i {
    color: var(--ii2p-blue);
}

.action-grid-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #7a868d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.action-grid-card:hover .action-grid-title {
    color: var(--ii2p-blue);
}

.action-grid-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    font-size: 0.85rem;
    color: #7a868d;
    width: 100%;
}

.action-grid-list li {
    margin-bottom: 4px;
    position: relative;
    padding-left: 12px;
}

.action-grid-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--ii2p-blue);
}

/* Custom range slider range input */
.custom-slider-range {
    height: 8px !important;
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
    background: #e2e8f0;
    transition: background 0.1s ease;
}

.custom-slider-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: white !important;
    border: 2px solid var(--ii2p-border) !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: transform 0.1s ease;
}

.custom-slider-range::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    border-color: var(--ii2p-blue) !important;
}

/* Challenges Screen Styles */
.tc-challenges-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tc-challenge-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease !important;
    border: none !important;
    border-radius: 0 !important;
    background-color: #f1f4f7 !important;
    padding: 22px 28px !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
}

.tc-challenge-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(65, 179, 228, 0.09) !important;
    border: none !important;
}

.challenges-container-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.shadow-sm {
    box-shadow: var(--bs-box-shadow-sm) !important;
}

.tc-col-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #8fa0ac;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.tc-file-box {
    background-color: #ffffff;
    border: 1px solid #dbe2e8;
    border-radius: 6px;
    padding: 6px 12px;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.tc-file-box:hover {
    background-color: #ffffff;
    border-color: var(--ii2p-blue);
}

.tc-sellout-link {
    color: #7a868d !important;
    text-decoration: underline !important;
    font-size: 0.92rem;
    font-weight: 400;
    max-width: 190px;
    transition: color 0.15s ease;
    cursor: pointer;
}

.tc-sellout-link:hover {
    color: var(--ii2p-blue) !important;
}

.tc-months-list {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.tc-month-pill {
    padding: 4px 9px;
    font-size: 0.74rem;
    font-weight: 700;
    border-radius: 6px;
    letter-spacing: 0.2px;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.tc-month-filled {
    background-color: #0d9488 !important; /* Teal matching theme */
    color: white !important;
    box-shadow: 0 1px 3px rgba(13, 148, 136, 0.2);
}

.tc-month-missing {
    background-color: #dc2626 !important; /* Red matching theme */
    color: white !important;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(220, 38, 38, 0.2);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.tc-month-missing:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.tc-status-box {
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.25;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
}

.tc-status-badge-success {
    background-color: #ecfdf5 !important;
    color: #047857 !important;
    border: 1px solid #a7f3d0;
}

.tc-status-badge-warning {
    background-color: #fffbeb !important;
    color: #b45309 !important;
    border: 1px solid #fde68a;
}

.tc-payment-pill {
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-block;
}

.tc-payment-badge-paid {
    background-color: #ecfdf5 !important;
    color: #047857 !important;
    border: 1px solid #a7f3d0;
}

.tc-payment-badge-pending {
    background-color: #fffbeb !important;
    color: #b45309 !important;
    border: 1px solid #fde68a;
}

.btn-challenge-icon,
.tc-action-circle-btn,
.tc-action-download-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    border-radius: 50% !important;
    border: none !important;
    background-color: var(--ii2p-blue) !important;
    color: white !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    padding: 0;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(65, 179, 228, 0.4);
    cursor: pointer;
}

.btn-challenge-icon i,
.tc-action-circle-btn i,
.tc-action-download-btn i {
    color: white !important;
    font-size: 1.05rem;
    line-height: 1;
}

.btn-challenge-icon:hover,
.tc-action-circle-btn:hover,
.tc-action-download-btn:hover {
    background-color: var(--ii2p-blue-hover) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(65, 179, 228, 0.5);
}

.btn-challenge-icon:hover i,
.tc-action-circle-btn:hover i,
.tc-action-download-btn:hover i {
    color: white !important;
}

.btn-challenge-icon:active,
.tc-action-circle-btn:active,
.tc-action-download-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(65, 179, 228, 0.4);
}

/* Tooltip pour commentaire sur historique de prescription */
.tc-tooltip-comment .tooltip-inner {
    max-width: 320px;
    text-align: left;
    padding: 8px 12px;
    font-size: 0.82rem;
    line-height: 1.45;
    white-space: pre-wrap;
    background-color: #0f172a;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.08);
}

.tc-tooltip-comment .tooltip-arrow::before {
    border-top-color: #0f172a;
}

/* Picto commentaire historique prescription */
.tc-comment-icon {
    font-size: 0.82rem;
    color: #0284c7;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    position: relative;
    top: 1px;
    opacity: 0.85;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

tr:hover .tc-comment-icon {
    opacity: 1;
    transform: scale(1.1);
}


