/* FuturIntrosWebApp/Front/MainPage/Modules/HealsAndFood/Heals/Training/Training.css */
/* Force all form elements to be clickable */
input,
textarea,
select,
button {
    pointer-events: auto !important;
}
.TrainingContentArea {
    width: 100%;
    height: 100%;
    display: flex;
    overflow: auto;
    color: var(--text-color);
    background: radial-gradient(circle at top left, rgba(86, 166, 250, 0.08), transparent 55%), radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.08), transparent 45%);
    pointer-events: auto;
}
.TrainingEntryConfirmationToast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1600;
    max-width: min(360px, calc(100vw - 32px));
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid rgba(74, 222, 128, 0.42);
    background: linear-gradient(135deg, rgba(21, 128, 61, 0.96), rgba(34, 197, 94, 0.92));
    color: #f0fdf4;
    font-weight: 600;
    box-shadow: 0 18px 34px rgba(21, 128, 61, 0.26);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
}
.TrainingEntryConfirmationToast.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.TrainingShell {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    pointer-events: auto;
}
.TrainingHeader {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.7), rgba(30, 41, 59, 0.8));
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}
.TrainingEyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 11px;
    color: rgba(226, 232, 240, 0.7);
}
.TrainingTitle {
    margin: 6px 0 4px;
    font-size: 28px;
}
.TrainingSubtitle {
    margin: 0;
    color: rgba(226, 232, 240, 0.7);
}
.TrainingHeaderActions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.TrainingGhostBtn,
.TrainingPrimaryBtn,
.TrainingTinyBtn {
    border-radius: 12px;
    border: 1px solid transparent;
    padding: 10px 16px;
    font-weight: 600;
    cursor: pointer;
    background: rgba(148, 163, 184, 0.1);
    color: var(--text-color);
    pointer-events: auto !important;
    z-index: 10;
}
.TrainingPrimaryBtn {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: #0f172a;
    border-color: rgba(14, 165, 233, 0.4);
}
.TrainingTabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.58);
    border: 1px solid rgba(148, 163, 184, 0.28);
    position: relative;
    z-index: 140;
}
.TrainingTab {
    border: 1px solid rgba(148, 163, 184, 0.48);
    background: rgba(15, 23, 42, 0.92);
    padding: 10px 18px;
    border-radius: 999px;
    cursor: pointer;
    color: #e2e8f0;
    font-weight: 600;
    pointer-events: auto !important;
    z-index: 10;
    box-shadow: inset 0 0 0 1px rgba(2, 6, 23, 0.35);
    &.is-active {
        background: linear-gradient(135deg, rgba(56, 189, 248, 0.8), rgba(59, 130, 246, 0.8));
        color: #0f172a;
        border-color: rgba(56, 189, 248, 0.8);
        box-shadow: 0 6px 16px rgba(14, 165, 233, 0.28);
    }
}
.TrainingPanels {
    display: flex;
    flex-direction: column;
    gap: 16px;
    pointer-events: auto;
}
.TrainingPanel {
    display: none;
    pointer-events: auto;
    &.is-active {
        display: block;
        pointer-events: auto;
    }
}
.TrainingPanelGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    pointer-events: auto;
    align-items: start;
}
.TrainingCard {
    padding: 18px 20px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.15);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.25);
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: auto;
    position: relative;
    z-index: 2;
    align-self: start;
    min-height: 0;
}
.TrainingCard.TrainingCardSearchOpen {
    z-index: 160;
}
.TrainingCardWide {
    grid-column: span 2;
}

.TrainingPanelGrid--parametrage {
    grid-auto-rows: min-content;
}

.TrainingCardNomenclatures {
    overflow: visible;
    grid-column: 1 / -1;
}

.TrainingNomenclatureLayout {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    min-height: 0;
    overflow: visible;
}

.TrainingNomenclatureEditor {
    display: grid;
    gap: 12px;
    align-content: start;
    overflow: visible;
}

.TrainingCardTableBuilder,
.TrainingCardMedia,
.TrainingCardSync,
.TrainingCardProfile {
    min-height: 0;
}

.HistoryEntry,
.HistoryEntry * {
    pointer-events: auto !important;
}

.HistoryEntry {
    position: relative;
    z-index: 4;
    grid-column: 1 / -1;
}
.TrainingCardHeader {
    font-weight: 700;
    font-size: 16px;
}
.TrainingCardText {
    margin: 0;
    color: rgba(226, 232, 240, 0.7);
}
.TrainingField {
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: auto;
    & label {
        font-size: 13px;
        color: rgba(226, 232, 240, 0.7);
    }
    & input,
    & textarea,
    & select {
        border-radius: 10px;
        border: 1px solid rgba(148, 163, 184, 0.3);
        padding: 10px 12px;
        background: rgba(15, 23, 42, 0.6);
        color: var(--text-color);
        pointer-events: auto !important;
    }
}

.TrainingSearchSelectNative {
    display: none;
}

.TrainingSearchSelect {
    position: relative;
    width: 100%;
    z-index: 6;
}

.TrainingSearchSelect.is-open {
    z-index: 220;
}

.TrainingSearchSelectTrigger {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    padding: 10px 12px;
    background: rgba(15, 23, 42, 0.9);
    color: var(--text-color);
    text-align: left;
    cursor: pointer;
}

.TrainingSearchSelectTrigger.is-placeholder {
    color: rgba(226, 232, 240, 0.62);
}

.TrainingSearchSelectMenu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 221;
    border: 1px solid rgba(56, 189, 248, 0.52);
    border-radius: 12px;
    background: #0b1324;
    box-shadow:
        0 16px 32px rgba(2, 6, 23, 0.82),
        0 0 0 1px rgba(56, 189, 248, 0.2);
    padding: 8px;
    display: grid;
    gap: 8px;
    opacity: 1;
}

.TrainingSearchSelectMenu[hidden] {
    display: none !important;
}

.TrainingSearchSelectSearch {
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    padding: 8px 10px;
    background: rgba(2, 6, 23, 0.72);
    color: var(--text-color);
}

.TrainingSearchSelectOptions {
    max-height: 240px;
    overflow-y: auto;
    display: grid;
    gap: 4px;
}

.TrainingSearchSelectGroup {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.92);
    padding: 5px 6px 3px;
}

.TrainingSearchSelectOption {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.66);
    color: var(--text-color);
    text-align: left;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 13px;
}

.TrainingSearchSelectOption:hover {
    background: rgba(56, 189, 248, 0.24);
    border-color: rgba(56, 189, 248, 0.5);
}

.TrainingSearchSelectOption.is-selected {
    border-color: rgba(56, 189, 248, 0.7);
    background: rgba(56, 189, 248, 0.34);
}

.TrainingSearchSelectEmpty {
    color: rgba(148, 163, 184, 0.9);
    font-size: 12px;
    padding: 8px 10px;
}
.TrainingProfileFormGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.TrainingProfileActivityField {
    grid-column: 1 / -1;
}
.TrainingProfileForm .TrainingPrimaryBtn {
    justify-self: start;
}
.TrainingTableActions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.TrainingTableActionsSave {
    justify-content: flex-end;
    margin-top: 10px;
}
.TrainingImportExportActions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.TrainingImportExportActions input[type='file'] {
    max-width: 100%;
}
.TrainingSyncActions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.TrainingSyncStatus {
    min-height: 18px;
    font-size: 12px;
    color: rgba(226, 232, 240, 0.75);
}
.TrainingTinyBtn {
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 10px;
}
.TrainingTinyGhost {
    background: transparent;
    border-color: rgba(148, 163, 184, 0.3);
}
.TrainingTableWrapper {
    overflow: auto;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.TrainingTableWrapper,
.TrainingTableWrapper .TrainingTable,
.TrainingTableWrapper .TrainingTable td,
.TrainingTableWrapper .TrainingTable th,
.TrainingRowActionsCell,
.TrainingRowRemove,
.TrainingTinyBtn.TrainingTinyGhost {
    position: relative;
    z-index: 3;
    pointer-events: auto !important;
}

.TrainingTable {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
    & th,
    & td {
        border-bottom: 1px solid rgba(148, 163, 184, 0.2);
        padding: 10px 12px;
        text-align: left;
    }
    & th {
        background: rgba(15, 23, 42, 0.7);
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        position: relative;
    }
    & input {
        width: 100%;
        border: none;
        background: transparent;
        color: var(--text-color);
        pointer-events: auto !important;
    }
}
.TrainingHeaderContent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.TrainingHeaderLabel {
    cursor: pointer;
    white-space: nowrap;
}
.TrainingHeaderRemove,
.TrainingRowRemove {
    border: none;
    background: rgba(239, 68, 68, 0.15);
    color: #fecaca;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    line-height: 1;
    pointer-events: auto !important;
    z-index: 10;
}
.TrainingRowActionsCell {
    text-align: center;
}
.TrainingHeaderInput {
    width: 100%;
    border-radius: 6px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.7);
    color: var(--text-color);
    padding: 4px 6px;
    font-size: 12px;
    text-transform: none;
    pointer-events: auto !important;
}
.TrainingMediaGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
}
.TrainingMediaSlot {
    border-radius: 12px;
    border: 1px dashed rgba(148, 163, 184, 0.35);
    padding: 18px 12px;
    text-align: center;
    color: rgba(226, 232, 240, 0.6);
}
.TrainingList {
    margin: 0;
    padding-left: 18px;
    color: rgba(226, 232, 240, 0.75);
}
.TrainingNomenclatureList {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    flex: 1 1 auto;
}
.TrainingListHeader {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(226, 232, 240, 0.6);
}
.TrainingListBody {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-content: start;
    min-height: 0;
    max-height: min(40vh, 420px);
    overflow: auto;
    padding-right: 4px;
}
.TrainingListBody::-webkit-scrollbar {
    width: 8px;
}
.TrainingListBody::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.32);
    border-radius: 999px;
}
.TrainingListBody::-webkit-scrollbar-track {
    background: transparent;
}
.TrainingListGroup {
    display: grid;
    gap: 8px;
    align-content: start;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(2, 6, 23, 0.34);
}
.TrainingListGroupTitle {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(125, 211, 252, 0.88);
}
.TrainingListGroupItems {
    display: grid;
    gap: 8px;
    align-content: start;
}
.TrainingListItem {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.45);
}
.TrainingListItemHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.TrainingListItemTitle {
    font-weight: 600;
}
.TrainingListItemRemove {
    border: none;
    background: rgba(239, 68, 68, 0.15);
    color: #fecaca;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    line-height: 1;
    pointer-events: auto !important;
    z-index: 10;
}
.TrainingListItemMeta {
    font-size: 12px;
    color: rgba(226, 232, 240, 0.7);
}

.TrainingPanelGrid--saisieContent {
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

.TrainingCardEntryTable {
    grid-column: span 7;
}

.TrainingCardJournal {
    grid-column: span 5;
    min-height: 0;
}

.TrainingJournalForm,
.TrainingJournalReplyForm {
    display: grid;
    gap: 10px;
}

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

.TrainingJournalCol--subject {
    grid-column: span 5;
}

.TrainingJournalCol--mentions {
    grid-column: span 7;
}

.TrainingJournalCol--full {
    grid-column: 1 / -1;
}

.TrainingJournalCol--submit {
    grid-column: span 4;
    justify-self: start;
}

.TrainingJournalInput,
.TrainingJournalTextarea,
.TrainingJournalToolbar input[type='color'] {
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(15, 23, 42, 0.66);
    color: var(--text-color);
    box-sizing: border-box;
}

.TrainingJournalInput,
.TrainingJournalTextarea {
    width: 100%;
    padding: 10px 12px;
}

.TrainingJournalTextarea {
    resize: vertical;
    min-height: 120px;
}

.TrainingJournalToolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.TrainingJournalToolbar input[type='color'] {
    width: 42px;
    height: 34px;
    padding: 2px;
}

.TrainingJournalList {
    display: grid;
    gap: 12px;
    max-height: min(56vh, 720px);
    overflow: auto;
    padding-right: 4px;
}

.TrainingJournalThread {
    display: grid;
    gap: 8px;
}

.TrainingJournalRichText {
    line-height: 1.55;
    color: rgba(241, 245, 249, 0.96);
}

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

.TrainingJournalReplies {
    display: grid;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(148, 163, 184, 0.26);
}

.TrainingJournalReply {
    display: grid;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(2, 6, 23, 0.36);
}

.TrainingJournalReplyForm {
    padding-top: 8px;
    border-top: 1px dashed rgba(148, 163, 184, 0.26);
}

.TrainingJournalReplyForm .TrainingJournalCol--mentions {
    grid-column: 1 / -1;
}

.TrainingJournalPreview {
    display: grid;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    background: rgba(2, 6, 23, 0.4);
}

.TrainingJournalPreview[hidden] {
    display: none !important;
}

.TrainingJournalSuggestions {
    display: grid;
    gap: 2px;
    max-height: 220px;
    overflow: auto;
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 10px;
    background: rgba(11, 19, 36, 0.96);
}

.TrainingJournalSuggestions[hidden] {
    display: none !important;
}

.TrainingJournalSuggestion {
    width: 100%;
    border: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    background: transparent;
    color: var(--text-color);
    padding: 8px 10px;
    text-align: left;
    cursor: pointer;
}

.TrainingJournalSuggestion:last-child {
    border-bottom: 0;
}

.TrainingJournalSuggestion:hover,
.TrainingJournalSuggestion:focus,
.TrainingJournalSuggestion.is-active {
    outline: none;
    background: rgba(56, 189, 248, 0.18);
}

.TrainingJournalSuggestionRich {
    display: grid;
    gap: 3px;
}

.TrainingJournalSuggestionTitle {
    font-weight: 600;
}

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

.TrainingMention {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.32);
    background: rgba(56, 189, 248, 0.14);
    font-size: 12px;
    color: rgba(240, 249, 255, 0.96);
}

.TrainingMuted {
    color: rgba(226, 232, 240, 0.7);
}

.TrainingGhostBtn.TrainingDangerBtn,
.TrainingTinyBtn.TrainingDangerBtn {
    border-color: rgba(244, 63, 94, 0.45);
    background: rgba(159, 18, 57, 0.18);
    color: #fecdd3;
}

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

    .TrainingCardEntryTable,
    .TrainingCardJournal,
    .HistoryEntry {
        grid-column: 1 / -1;
    }
}

@media (min-width: 901px) and (max-width: 1499px) {
    .TrainingPanelGrid--parametrage {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
    }
}

@media (min-width: 1500px) {
    .TrainingPanelGrid--parametrage {
        grid-template-columns: minmax(360px, 420px) minmax(0, 1.45fr) minmax(250px, 0.95fr);
    }
}

@media (min-width: 1200px) {
    .TrainingCardNomenclatures .TrainingListBody {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .TrainingListBody {
        max-height: min(48vh, 420px);
    }

    .TrainingJournalCol--subject,
    .TrainingJournalCol--mentions,
    .TrainingJournalCol--submit {
        grid-column: 1 / -1;
    }
}
@media (max-width: 640px) {
    .TrainingEntryConfirmationToast {
        right: 16px;
        left: 16px;
        bottom: 16px;
        max-width: none;
    }
}
.TrainingInlineTag {
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.2);
    color: rgba(226, 232, 240, 0.9);
    font-size: 12px;
    margin-right: 0;
}
.TrainingTags {
    display: grid;
    gap: 12px;
}
.TrainingTagGroup {
    display: grid;
    gap: 8px;
}
.TrainingTagGroupTitle {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.72);
}
.TrainingTagGroupItems {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.TrainingCollabForm {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    align-items: end;
}
.TrainingCollabForm label {
    display: grid;
    gap: 6px;
    font-size: 13px;
    color: rgba(226, 232, 240, 0.78);
}
.TrainingCollabForm input[type='text'],
.TrainingCollabForm input[type='date'],
.TrainingCollabForm select {
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    padding: 9px 10px;
    background: rgba(15, 23, 42, 0.66);
    color: var(--text-color);
}
.TrainingCollabForm input[type='checkbox'] {
    margin-right: 6px;
}
.TrainingCollabFilters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: end;
}
.TrainingCollabFilters label {
    display: grid;
    gap: 6px;
    min-width: 180px;
    font-size: 13px;
    color: rgba(226, 232, 240, 0.78);
}
.TrainingCollabFilters input[type='date'],
.TrainingCollabFilters select {
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    padding: 9px 10px;
    background: rgba(15, 23, 42, 0.66);
    color: var(--text-color);
}
.TrainingCollabKpiGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}
.TrainingPanelEmpty {
    border-radius: 18px;
    padding: 40px;
    text-align: center;
    background: rgba(15, 23, 42, 0.6);
    border: 1px dashed rgba(148, 163, 184, 0.35);
}
.TrainingEmptyTitle {
    font-size: 22px;
    margin-bottom: 8px;
}

.TrainingTdbGrid {
    grid-template-columns: repeat(auto-fit, minmax(800px, 1fr));
    overflow-x: auto;
}

.TrainingTdbGrid .TrainingCard {
    min-width: 600px;
    width: 600px;
    min-height: 0;
}

.TrainingTdbGrid .TrainingCardWide {
    grid-column: 1 / -1;
}

.TrainingTdbEnergyCard {
    gap: 14px;
}

.TrainingTdbFilters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
}

.TrainingTdbFilterField {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 170px;
}

.TrainingTdbFilterField .TrainingCardText {
    font-size: 12px;
    color: rgba(226, 232, 240, 0.75);
}

.TrainingTdbDateInput {
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    padding: 10px 12px;
    background: rgba(15, 23, 42, 0.68);
    color: var(--text-color);
    min-height: 40px;
}

.TrainingTdbDateInput:focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.7);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.TrainingTdbApplyBtn {
    min-height: 40px;
    white-space: nowrap;
}

.TrainingTdbSummary {
    display: grid;
    gap: 10px;
}

.TrainingTdbPeriod {
    margin: 0 0 8px;
    font-size: 12px;
    color: rgba(148, 163, 184, 0.9);
}

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

.TrainingTdbKpiCard {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(2, 6, 23, 0.45);
    display: grid;
    gap: 6px;
}

.TrainingTdbKpiCard span {
    font-size: 12px;
    color: rgba(226, 232, 240, 0.72);
}

.TrainingTdbKpiCard strong {
    font-size: 20px;
    line-height: 1.1;
}

.TrainingTdbKpiCard em {
    font-size: 12px;
    color: rgba(148, 163, 184, 0.85);
    font-style: normal;
}

.TrainingTdbEnergyMeta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(14, 165, 233, 0.26);
    border-radius: 12px;
    padding: 10px 12px;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.12), rgba(30, 41, 59, 0.35));
}

.TrainingTdbEnergyMetaTag {
    font-size: 12px;
    color: rgba(186, 230, 253, 0.9);
}

.TrainingTdbEnergyMeta strong {
    font-size: 16px;
    line-height: 1;
    color: rgba(241, 245, 249, 0.98);
}

.TrainingTdbEnergyMetaDivider {
    color: rgba(148, 163, 184, 0.7);
}

.TrainingTdbChart {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.5);
    padding: 10px;
    overflow-x: auto;
}

.TrainingTdbChartCanvas {
    min-width: 800px;
    display: grid;
    gap: 10px;
}

.TrainingTdbChartCanvas--interactive {
    position: relative;
}

.TrainingTdbSvg {
    width: 100%;
    min-width: 0;
    height: auto;
    display: block;
}

.TrainingTdbHoverTooltip {
    position: absolute;
    left: 0;
    top: 0;
    max-width: min(360px, calc(100% - 20px));
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(56, 189, 248, 0.24);
    background: rgba(10, 15, 28, 0.96);
    color: #e5e7eb;
    font-size: 12px;
    line-height: 1.35;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    z-index: 18;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.TrainingTdbGridLine {
    stroke: rgba(148, 163, 184, 0.2);
    stroke-width: 1;
}

.TrainingTdbAxisLabel {
    fill: rgba(148, 163, 184, 0.85);
    font-size: 10px;
}

.TrainingTdbBar--rest {
    fill: rgba(148, 163, 184, 0.8);
}

.TrainingTdbBar--fit {
    fill: rgba(56, 189, 248, 0.92);
}

.TrainingTdbBar--strength {
    fill: rgba(34, 197, 94, 0.92);
}

.TrainingTdbBar--steps {
    fill: rgba(14, 165, 233, 0.9);
}

.TrainingTdbBar--active {
    fill: rgba(250, 204, 21, 0.82);
}

.TrainingTdbBar--load {
    fill: rgba(249, 115, 22, 0.9);
}

.TrainingTdbBar--metric {
    fill: rgba(129, 140, 248, 0.88);
}

.TrainingTdbLineArea {
    fill: rgba(56, 189, 248, 0.18);
}

.TrainingTdbLinePath {
    fill: none;
    stroke: rgba(56, 189, 248, 0.95);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.TrainingTdbLineDot {
    fill: rgba(125, 211, 252, 0.95);
}

.TrainingTdbLineArea--fitcal {
    fill: rgba(14, 165, 233, 0.14);
}

.TrainingTdbLinePath--fitcal {
    stroke: rgba(14, 165, 233, 0.95);
}

.TrainingTdbLineArea--weight {
    fill: rgba(34, 197, 94, 0.14);
}

.TrainingTdbLinePath--weight {
    stroke: rgba(34, 197, 94, 0.95);
}

.TrainingTdbLineArea--fat {
    fill: rgba(249, 115, 22, 0.14);
}

.TrainingTdbLinePath--fat {
    stroke: rgba(249, 115, 22, 0.95);
}

.TrainingTdbLineArea--metric {
    fill: rgba(129, 140, 248, 0.14);
}

.TrainingTdbLinePath--metric {
    stroke: rgba(129, 140, 248, 0.95);
}

.TrainingTdbChart .TrainingTdbSvg + .TrainingTdbSvg {
    margin-top: 10px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding-top: 10px;
}

.TrainingTdbLegend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 8px;
    font-size: 12px;
    color: rgba(226, 232, 240, 0.78);
}

.TrainingTdbLegend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.TrainingTdbDot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
}

.TrainingTdbDot--rest {
    background: rgba(148, 163, 184, 0.85);
}

.TrainingTdbDot--fit {
    background: rgba(56, 189, 248, 0.95);
}

.TrainingTdbDot--strength {
    background: rgba(34, 197, 94, 0.95);
}

.TrainingTdbEmpty {
    padding: 14px;
    color: rgba(148, 163, 184, 0.85);
    font-size: 12px;
}

.TrainingTdbViewer {
    position: relative;
    width: 100%;
    height: 560px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: radial-gradient(circle at 50% 15%, rgba(148, 163, 184, 0.18), rgba(15, 23, 42, 0.96) 62%);
    overflow: hidden;
    touch-action: none;
}

.TrainingTdbStatus {
    font-size: 12px;
}
.TrainingModuleContentArea {
    .TrainingModuleContent {
        display: none;
        flex-direction: column;
    }
    .TrainingModuleToggle {
        cursor: pointer;
        display: flex;
        flex-direction: row;
    }
    .TrainingModuleIcon {
        width: 30px;
        height: 30px;
    }
    .TrainingModuleHeader {
        color: var(--unselected-text-color);
    }
    .TrainingModuleContent.Open {
        display: flex;
    }
}
@media (max-width: 900px) {
    .TrainingShell {
        padding: 0;
    }
    .TrainingCardWide {
        grid-column: span 1;
    }
    .TrainingTdbKpiGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .TrainingTdbFilterField {
        min-width: 150px;
    }
    .TrainingTable {
        min-width: 420px;
    }
}
@media (max-width: 600px) {
    .TrainingContentArea {
        scroll-padding-top: 140px;
    }

    .TrainingShell {
        padding: 112px 12px 24px;
    }

    .TrainingHeader {
        padding: 16px;
    }
    .TrainingTitle {
        font-size: 22px;
    }
    .TrainingTabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        overflow: visible;
        position: fixed;
        top: calc(58px + env(safe-area-inset-top, 0px));
        left: 12px;
        right: 12px;
        z-index: 340;
        padding: 10px 8px 12px;
        height: auto;
        background: linear-gradient(180deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.88));
        border: 1px solid rgba(148, 163, 184, 0.28);
        box-shadow: 0 10px 22px rgba(2, 6, 23, 0.55);
        border-radius: 12px;
        backdrop-filter: blur(14px);
    }
    .HistoryEntry {
        margin-bottom: 24px;
    }
    .TrainingTab {
        width: 100%;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        min-height: 38px;
        font-size: 14px;
        text-align: center;
        white-space: normal;
    }
    .TrainingCard.TrainingCardSearchOpen {
        z-index: 180;
    }
    .TrainingSearchSelect.is-open {
        z-index: 260;
    }
    .TrainingSearchSelectMenu {
        z-index: 280;
        max-height: min(52vh, 320px);
    }
    .TrainingTdbKpiGrid {
        grid-template-columns: 1fr;
    }
    .TrainingTdbFilters {
        flex-direction: column;
        align-items: stretch;
    }
    .TrainingTdbFilterField {
        width: 100%;
        min-width: 0;
    }
    .TrainingTdbApplyBtn {
        width: 100%;
    }
    .TrainingTdbViewer {
        height: 420px;
    }
    .TrainingProfileFormGrid {
        grid-template-columns: 1fr;
    }
}
.TrainingHistoryDaySeparator td {
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.15), transparent);
    font-weight: 600;
    padding: 8px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

html.light-theme .TrainingContentArea {
    --training-surface: rgba(255, 255, 255, 0.94);
    --training-surface-soft: rgba(246, 249, 252, 0.92);
    --training-surface-strong: rgba(238, 243, 248, 0.96);
    --training-border: rgba(48, 69, 96, 0.16);
    --training-border-strong: rgba(48, 69, 96, 0.24);
    --training-shadow: 0 12px 30px rgba(48, 69, 96, 0.12);
    --training-muted: rgba(48, 69, 96, 0.72);
    --training-muted-strong: rgba(48, 69, 96, 0.84);
    --training-strong: #20344c;
    --training-popover-bg: rgba(255, 255, 255, 0.98);
    --training-popover-shadow: 0 18px 40px rgba(48, 69, 96, 0.16);
    background:
        radial-gradient(circle at top left, rgba(86, 166, 250, 0.12), transparent 55%), radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.1), transparent 45%), var(--mainPageContent-bg-color);
}

html.light-theme .TrainingHeader {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 245, 251, 0.92));
    border-color: var(--training-border);
    box-shadow: var(--training-shadow);
}

html.light-theme .TrainingEyebrow,
html.light-theme .TrainingSubtitle,
html.light-theme .TrainingCardText,
html.light-theme .TrainingField label,
html.light-theme .TrainingSearchSelectTrigger.is-placeholder,
html.light-theme .TrainingSearchSelectGroup,
html.light-theme .TrainingSyncStatus,
html.light-theme .TrainingListHeader,
html.light-theme .TrainingListItemMeta,
html.light-theme .TrainingMuted,
html.light-theme .TrainingCollabForm label,
html.light-theme .TrainingCollabFilters label,
html.light-theme .TrainingTdbFilterField .TrainingCardText,
html.light-theme .TrainingTdbPeriod,
html.light-theme .TrainingTdbKpiCard span,
html.light-theme .TrainingTdbKpiCard em,
html.light-theme .TrainingTdbLegend,
html.light-theme .TrainingTdbEmpty {
    color: var(--training-muted);
}

html.light-theme .TrainingGhostBtn,
html.light-theme .TrainingTinyBtn {
    border-color: var(--training-border);
    background: rgba(255, 255, 255, 0.84);
    color: var(--text-color);
}

html.light-theme .TrainingTabs {
    background: rgba(255, 255, 255, 0.82);
    border-color: var(--training-border);
}

html.light-theme .TrainingTab {
    border-color: var(--training-border-strong);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

html.light-theme .TrainingCard,
html.light-theme .TrainingListGroup,
html.light-theme .TrainingListItem,
html.light-theme .TrainingJournalReply,
html.light-theme .TrainingJournalPreview,
html.light-theme .TrainingTdbKpiCard,
html.light-theme .TrainingTdbChart,
html.light-theme .TrainingPanelEmpty {
    border-color: var(--training-border);
    background: var(--training-surface);
    box-shadow: 0 10px 24px rgba(48, 69, 96, 0.12);
}

html.light-theme .TrainingTableWrapper {
    border-color: var(--training-border);
    background: var(--training-surface);
}

html.light-theme .TrainingField input,
html.light-theme .TrainingField textarea,
html.light-theme .TrainingField select,
html.light-theme .TrainingSearchSelectTrigger,
html.light-theme .TrainingSearchSelectSearch,
html.light-theme .TrainingHeaderInput,
html.light-theme .TrainingJournalInput,
html.light-theme .TrainingJournalTextarea,
html.light-theme .TrainingCollabForm input[type='text'],
html.light-theme .TrainingCollabForm input[type='date'],
html.light-theme .TrainingCollabForm select,
html.light-theme .TrainingCollabFilters input[type='date'],
html.light-theme .TrainingCollabFilters select,
html.light-theme .TrainingTdbDateInput {
    border-color: var(--training-border-strong);
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-color);
    box-shadow: inset 0 0 0 1px rgba(48, 69, 96, 0.04);
    color-scheme: light;
}

html.light-theme .TrainingSearchSelectMenu,
html.light-theme .TrainingJournalSuggestions {
    border-color: rgba(56, 189, 248, 0.24);
    background: var(--training-popover-bg);
    box-shadow: var(--training-popover-shadow);
}

html.light-theme .TrainingSearchSelectOption {
    border-color: var(--training-border);
    background: var(--training-surface-soft);
}

html.light-theme .TrainingTable th,
html.light-theme .TrainingTable td {
    border-bottom-color: var(--training-border);
}

html.light-theme .TrainingTable th {
    background: var(--training-surface-strong);
    color: var(--training-muted-strong);
}

html.light-theme .TrainingHeaderRemove,
html.light-theme .TrainingRowRemove,
html.light-theme .TrainingListItemRemove,
html.light-theme .TrainingGhostBtn.TrainingDangerBtn,
html.light-theme .TrainingTinyBtn.TrainingDangerBtn {
    border-color: rgba(220, 38, 38, 0.24);
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
}

html.light-theme .TrainingMediaSlot {
    border-color: rgba(48, 69, 96, 0.28);
    color: var(--training-muted);
}

html.light-theme .TrainingList,
html.light-theme .TrainingJournalRichText {
    color: var(--text-color);
}

html.light-theme .TrainingListGroupTitle,
html.light-theme .TrainingTdbEnergyMetaTag {
    color: #0369a1;
}

html.light-theme .TrainingJournalReplies,
html.light-theme .TrainingJournalReplyForm {
    border-top-color: rgba(48, 69, 96, 0.22);
}

html.light-theme .TrainingMention,
html.light-theme .TrainingInlineTag {
    border-color: rgba(56, 189, 248, 0.24);
    background: rgba(56, 189, 248, 0.12);
    color: var(--text-color);
}

html.light-theme .TrainingTagGroupTitle {
    color: #0369a1;
}

html.light-theme .TrainingEntryConfirmationToast {
    border-color: rgba(34, 197, 94, 0.36);
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.96), rgba(74, 222, 128, 0.92));
    color: #052e16;
    box-shadow: 0 18px 34px rgba(34, 197, 94, 0.24);
}

html.light-theme .TrainingTdbEnergyMeta {
    border-color: rgba(56, 189, 248, 0.24);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.14), rgba(255, 255, 255, 0.84));
}

html.light-theme .TrainingTdbEnergyMeta strong {
    color: var(--training-strong);
}

html.light-theme .TrainingTdbEnergyMetaDivider {
    color: var(--training-muted);
}

html.light-theme .TrainingTdbGridLine {
    stroke: rgba(48, 69, 96, 0.18);
}

html.light-theme .TrainingTdbAxisLabel {
    fill: var(--training-muted);
}

html.light-theme .TrainingTdbHoverTooltip {
    border-color: rgba(56, 189, 248, 0.28);
    background: var(--training-popover-bg);
    color: #1f2937;
    box-shadow: 0 10px 24px rgba(48, 69, 96, 0.16);
}

html.light-theme .TrainingTdbViewer {
    border-color: var(--training-border-strong);
    background: radial-gradient(circle at 50% 15%, rgba(56, 189, 248, 0.1), rgba(255, 255, 255, 0.98) 62%);
}

html.light-theme .TrainingHistoryDaySeparator td {
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.12), transparent);
    border-top-color: rgba(48, 69, 96, 0.12);
}

@media (max-width: 600px) {
    html.light-theme .TrainingTabs {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 252, 0.94));
        border-color: var(--training-border);
        box-shadow: 0 10px 22px rgba(48, 69, 96, 0.14);
    }
}
