/* Theme gradient dark endpoint */
:root {
    --bs-primary-dark: #28a0ac;
}

/* navbar */
/*
html{
    font-size: 1.025vw;
}*/
html {
    font-size: calc(0.4855em + 1vmin) !important;
}

/* Sidebar profile image sizing and dependent section spacing. */
:root {
    --sidebar-profile-image-size: 100px;
    --sidebar-profile-image-size-mini: 90px;
}

.filesSegment {
    width: 100%;
    min-width: 0;
    display: flow-root;
}

/* Keep nested client file sections constrained to parent width. */
.clientFilesSectionsRow {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.clientFilesSectionsLeft {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
}

.clientFilesSectionsLeft .filesSegment,
.clientFilesSectionsLeft .card-body,
.clientFilesSectionsLeft .future-list,
.clientFilesSectionsLeft .future-list .list-group-item {
    min-width: 0;
    max-width: 100%;
}

.clientFilesSectionsLeft .future-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
}

/* Generic cap for note/eval file lists outside clientFilesSectionsLeft wrappers. */
.files-list .future-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
}

.clientFilesSectionsLeft .future-list .list-group-item {
    width: 100%;
}

.files-list .future-list .list-group-item {
    width: 100%;
}

.clientFilesSectionsLeft .future-list .list-group-item > .d-flex {
    min-width: 0;
}

.clientFilesSectionsLeft .future-list .table-link {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.files-list .future-list .table-link {
    display: inline-block;
    max-width: min(100%, 28rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.clientFilesSectionsLeft .future-list .btn-group {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    align-self: flex-start;
    flex: 0 0 auto;
    width: auto;
    margin-left: auto;
}

.clientFilesSectionsLeft .future-list .filerename-block {
    flex-basis: 100%;
    max-width: 100%;
}

.clientFilesSectionsLeft .future-list .client-file-content {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    flex-wrap: wrap;
    width: 100%;
    min-width: 0;
}

.clientFilesSectionsLeft .future-list .client-file-link {
    flex: 1 1 0;
    min-width: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    line-height: 1.2;
    max-height: calc(1.2em * 2);
}

.clientFilesSectionsLeft .future-list .client-file-actions {
    flex: 0 0 auto;
    margin-left: auto;
}

.file-action-group {
    gap: 0.35rem;
}

.file-action-group .btn {
    border-radius: 0.25rem !important;
}

.client-file-inline-input,
.progress-note-file-inline-input {
    min-width: 10rem;
}

.client-uploaded-files-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.client-uploaded-files-info-btn {
    background: transparent;
    border: none;
    padding: 0;
    line-height: 1;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
}

.client-uploaded-files-info-btn .material-icons {
    font-size: 18px;
}

#suiviForm .ui.disabled.segment {
    opacity: 0.85;
    color: rgba(40, 40, 40, 0.3);
}
.note-selected {
    background-color: #d3d3d3;
}
.suivisSegment {
    width: 100%;
    min-width: 0;
}

#myModal table {
    width: 76%;
    margin-left: auto;
    margin-right: auto;
}

#open-modal-doctor {
    font-size: 1.2rem !important;
}

/* Start Export note button */
.with-check {
    position: relative;
    overflow: visible;
    flex-direction: column-reverse;
    margin-right: 0;
}

.check-overlay {
    position: absolute;
    bottom: -3px;
    right: -4px;
    font-size: 0.98em;
    color: green;
}

/* End Export note button */

#weeksPregnancy {
    margin-top: 20px;
    margin-bottom: 25px;
}

#pregnancySection {
    margin-top: 10px;
}
#myModal .menu {
    margin-right: 5%;
}

.pdf-export .list-group-item {
    padding: 10px 12px;
    cursor: pointer;
    border: none;
    border-radius: 6px !important;
    margin-bottom: 2px;
    color: #333;
    transition: background-color 0.15s ease;
}

.pdf-export .list-group-item:hover:not(.isDisabled) {
    background-color: #f0f7f8;
}

.pdf-export .list-group-item i.icon {
    margin-right: 10px;
    color: var(--bs-primary);
    width: 18px;
    text-align: center;
}

.pdf-export .list-group-item.isDisabled i.icon {
    color: inherit;
}

.pdf-export hr {
    border-color: #e9ecef;
    opacity: 0.6;
}

.export-dimmer {
    display: none;
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 4px;
    background: rgba(var(--bs-primary-rgb), 0.08);
}

.inline-dropdown {
    margin-left: 18px;
    margin-right: 8px;
}
.bristol-column {
    margin-top: 10px;
}
.thumbnail {
    border: 1px solid #ddd; /* Gray border */
    border-radius: 4px; /* Rounded border */
    padding: 5px; /* Some padding */
    width: 150px; /* Set a small width */
    cursor: pointer;
}

.thumbnail:hover {
    box-shadow: 0 0 2px 1px rgba(0, 140, 186, 0.5);
}

.center.screen.ui.toast-container {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.ui.mini.dropdown,
.ui.mini.dropdown .menu > .item {
    font-size: 0.785714rem !important;
}

/* #sideBarImgItem — moved to sidebar2.css */
.actionlist {
    margin-top: 10px;
    margin-bottom: 30px;
}
.actionInfo {
    font-size: 0.58571429rem !important;
    margin-left: 15px !important;
}

#eatBehavList .item,
#influency-section .item {
    max-width: 90%;
    padding: 0 !important;
}

#eatBehavList .item > .ui.checkbox,
#influency-section .item > .ui.checkbox {
    display: block;
    width: 100%;
    padding: 0.5rem;
}

#eatBehavList .item > .ui.checkbox > label,
#influency-section .item > .ui.checkbox > label {
    width: 100%;
    cursor: pointer;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.dataTable.ui.celled.table > tbody > tr > td {
    border-left: 0 !important;
}
.miniLogo {
    width: 30px;
    height: 30px;
}

/* #sideBarCompanyItem, #username, #sidebarSections, #sideBarImgDiv — moved to sidebar2.css */
#suiviForm input[type='checkbox'] {
    width: 100%;
}

/* #originalPlanificationObjectifs {
  list-style-position: inside;
  padding-left: 0;
}

#originalPlanificationObjectifs ul, 
#originalPlanificationObjectifs ol {
    margin: 0;
    padding-left: 20px;
}

#originalPlanificationObjectifs li {
    display: list-item;
} */

.spinnerRewrite {
    width: 18px;
    height: 18px;
    border: 3px solid #ccc;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#evaluationObjectif {
    display: none;
}

#editableEvaluationObjectif {
    border: 1px solid #ccc;
    padding: 10px;
    margin-top: 10px;
    background-color: #f9f9f9;
    white-space: pre-wrap;
    min-height: 100px;
    resize: vertical; /* allows vertical resizing only */
    overflow: auto;
    white-space: normal !important;
}

#editableEvaluationObjectif ul,
#editableEvaluationObjectif ol {
    padding-left: 15px !important; /* Reduce left indent */
    margin-left: 10px;
    margin-bottom: 10px;
}

#editableEvaluationObjectif p {
    margin-bottom: 10px;
    margin-top: 20px;
}

#editableEvaluationObjectif li {
    margin-bottom: 10px !important; /* No space between bullets */
    padding: 0px !important; /* No extra padding */
    line-height: 1.2 !important; /* Reduce line height */
}

/* For PlanificationObjectifs */

#planificationObjectifs {
    display: none !important;
}

#editablePlanificationObjectifs {
    border: 1px solid #ccc;
    padding: 10px;
    margin-top: 10px;
    background-color: #f9f9f9;
    white-space: pre-wrap;
    min-height: 100px;
    resize: vertical; /* allows vertical resizing only */
    overflow: auto;
    white-space: normal !important;
}

#editablePlanificationObjectifs ul,
#editablePlanificationObjectifs ol {
    padding-left: 15px !important; /* Reduce left indent */
    margin-left: 10px;
    margin-bottom: 10px;
}

#editablePlanificationObjectifs p {
    margin-bottom: 10px;
    margin-top: 20px;
}

#editablePlanificationObjectifs li {
    margin-bottom: 10px !important; /* No space between bullets */
    padding: 0px !important; /* No extra padding */
    line-height: 1.2 !important; /* Reduce line height */
}

.goals-recommendations-split {
    display: flex;
    gap: 14px;
    margin-top: 5px;
}

.goals-recommendations-editor {
    flex: 0 0 60%;
    min-width: 0;
}

#editablePlanificationObjectifs {
    margin-top: 0;
    min-height: 380px;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
}

.grocery-list-panel {
    flex: 0 0 40%;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fff;
    min-height: 380px;
    height: 380px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.grocery-list-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid #ebebeb;
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.grocery-list-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #131722;
}

.grocery-new-list-btn.ui.button {
    margin: 0 !important;
    border: 1px solid #54bad2 !important;
    color: #54bad2 !important;
    background: #fff !important;
    border-radius: 8px !important;
    font-weight: 700;
    font-size: 14px !important;
    padding: 8px 12px !important;
    box-shadow: none !important;
}

.grocery-new-list-btn.ui.button:hover,
.grocery-new-list-btn.ui.button:focus {
    background: #54bad2 !important;
    color: #fff !important;
}

.grocery-list-panel-body {
    min-height: 300px;
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* ── Grocery list side panel ─────────────────────────────────────────────── */

.grocery-panel-overlay {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.grocery-panel-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.grocery-panel {
    position: relative;
    width: 40vw;
    min-width: 300px;
    max-width: 720px;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.22s ease;
    overflow: hidden;
}

.grocery-panel-overlay.open .grocery-panel {
    transform: translateX(0);
}

.grocery-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
    background: rgba(91, 176, 189, 0.1) !important;
    gap: 8px;
    flex-shrink: 0;
}

.grocery-panel-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 1;
}

.grocery-panel-name {
    font-size: 16px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.grocery-panel-rename-icon,
.grocery-panel-verified {
    width: 24px;
    height: 24px;
    padding: 0;
    box-sizing: border-box;
    cursor: pointer;
    border-radius: 50%;
    background: #5bb0bd;
    color: #fff !important;
    font-size: 12px !important;
    line-height: 1 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 2px !important;
}

.grocery-panel-rename-icon.icon,
.grocery-panel-verified.icon {
    margin: 0 0 0 2px !important;
    width: 24px !important;
    height: 24px !important;
    font-size: 12px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-indent: 0 !important;
}

.grocery-panel-rename-icon.icon:before,
.grocery-panel-verified.icon:before {
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
}

.grocery-panel-rename-icon:hover {
    color: #1f6f79;
}

.grocery-panel-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.grocery-panel-icon-btn {
    background: rgba(91, 176, 189, 0.25);
    border: none;
    cursor: pointer;
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 50%;
    color: #2b8d99;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}

.grocery-panel-icon-btn:hover {
    background: rgba(91, 176, 189, 0.35);
    color: #1f6f79;
}

.grocery-panel-options-wrap {
    position: relative;
}

.grocery-panel-options-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    min-width: 150px;
    z-index: 100;
    overflow: hidden;
}

.grocery-panel-options-menu.open {
    display: block;
}

.grocery-panel-option-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 13px;
    color: #374151;
    white-space: nowrap;
}

.grocery-panel-option-item:hover {
    background: #f3f4f6;
}

.grocery-panel-option-delete {
    color: #ef4444;
}

.grocery-panel-option-delete:hover {
    background: #fef2f2;
}

.grocery-panel-tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    background: rgba(91, 176, 189, 0.1);
    flex-shrink: 0;
}

.grocery-panel-tab {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 16px;
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

.grocery-panel-tab.active {
    color: #5BB0BD;
    border-bottom-color: #5BB0BD;
    background: rgba(91, 176, 189, 0.1);
}

.grocery-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 0px 12px 16px;
    position: relative;
}

.grocery-panel-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: -6px;
    z-index: 2;
    background: #fff;
    padding: 10px;
    margin-bottom: 10px;
}

.grocery-hide-purchased {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #374151;
    white-space: nowrap;
}

.grocery-hide-purchased-toggle {
    margin: 0 !important;
}

.grocery-hide-purchased-label {
    margin: 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.1;
    color: #111827;
    white-space: nowrap;
}

.grocery-panel-toolbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.grocery-organise-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, rgba(255,95,109,0.2), rgba(255,195,113,0.2), rgba(157,80,187,0.2), rgba(0,201,255,0.2));
    border: 1.5px solid #FF5F6D;
    color: #131722;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
}

.grocery-organise-btn:hover {
    opacity: 0.85;
}

.grocery-undo-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: linear-gradient(135deg, rgba(255,95,109,0.2), rgba(255,195,113,0.2), rgba(157,80,187,0.2), rgba(0,201,255,0.2));
    border: 1.5px solid #FF5F6D;
    color: #131722;
    border-radius: 20px;
    padding: 5px 10px;
    font-size: 13px;
    cursor: pointer;
    transition: opacity 0.15s;
}

.grocery-undo-btn:hover {
    opacity: 0.85;
}

.grocery-organise-btn.loading {
    pointer-events: none;
    border-color: transparent;
    background: linear-gradient(90deg,
        rgba(255,95,109,0.25) 0%,
        rgba(255,195,113,0.35) 25%,
        rgba(157,80,187,0.35) 50%,
        rgba(0,201,255,0.35) 75%,
        rgba(255,95,109,0.25) 100%);
    background-size: 200% 100%;
    animation: groceryOrganiseShimmer 1.5s ease-in-out infinite;
}

.grocery-organise-btn.loading .grocery-toolbar-icon {
    opacity: 0.7;
}

@keyframes groceryOrganiseShimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.grocery-undo-btn.loading {
    opacity: 0.6;
    pointer-events: none;
}

.grocery-optimizing {
    position: relative;
    pointer-events: none;
}

.grocery-optimizing::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,95,109,0.08), rgba(255,195,113,0.08), rgba(157,80,187,0.08), rgba(0,201,255,0.08));
    border-radius: 8px;
    animation: groceryOptimizePulse 1.5s ease-in-out infinite;
    z-index: 1;
}

@keyframes groceryOptimizePulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.grocery-toolbar-icon {
    width: 16px;
    height: 16px;
    display: block;
    flex-shrink: 0;
}

.grocery-add-item-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bs-primary) !important;
    border: 1.5px solid var(--bs-primary);
    color: #fff !important;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 14px;
    transition: background 0.15s, color 0.15s;
}

.grocery-add-item-btn:hover,
.grocery-add-item-btn:focus,
.grocery-add-item-btn:active {
    background: var(--bs-primary) !important;
    color: #fff !important;
}

.grocery-add-item-btn.hidden {
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    height: 0;
    border-width: 0;
    overflow: hidden;
}

.grocery-floating-add-btn {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 12;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    border-radius: 999px;
    background: var(--bs-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    padding: 12px 16px;
    box-shadow: 0 10px 24px rgba(19, 23, 34, 0.22);
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.grocery-floating-add-btn.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.grocery-floating-add-btn:hover,
.grocery-floating-add-btn:focus,
.grocery-floating-add-btn:active {
    background: var(--bs-primary);
    color: #fff;
}

.grocery-items-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-left: 10px;
    padding-bottom: 64px;
}

/* ── Add Item Inline Panel ───────────────────────────────────── */

.grocery-add-item-overlay {
    display: none;
}

.grocery-add-item-overlay.open {
    display: none;
}

.grocery-add-item-modal {
    background: rgba(91, 176, 189, 0.1);
    border-radius: 14px;
    padding: 0 16px;
    width: 100%;
    max-width: none;
    max-height: 0;
    overflow: hidden;
    box-shadow: none;
    border: 1px solid transparent;
    position: relative;
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: max-height 0.24s ease, opacity 0.2s ease, transform 0.24s ease,
        margin-bottom 0.24s ease, padding 0.24s ease, border-color 0.24s ease;
}

.grocery-add-item-modal.open {
    max-height: 720px;
    padding: 14px 16px 16px;
    margin-bottom: 12px;
    border-color: #e5e7eb;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.grocery-add-item-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #131722;
}

.grocery-add-item-modal-close {
    background: none;
    border: none;
    font-size: 22px;
    color: #6b7280;
    cursor: pointer;
    line-height: 1;
    padding: 2px 4px;
    border-radius: 4px;
    transition: background 0.15s;
}

.grocery-add-item-modal-close:hover {
    background: #f3f4f6;
}

.grocery-add-item-modal-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.grocery-add-item-manual {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.grocery-add-item-scan {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.grocery-add-item-modal.scan-mode .grocery-add-item-manual {
    display: none;
}

.grocery-add-item-modal.scan-mode .grocery-add-item-scan {
    display: flex;
}

.grocery-add-item-recipe {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.grocery-add-item-modal.recipe-mode .grocery-add-item-manual {
    display: none;
}

.grocery-add-item-modal.recipe-mode .grocery-add-item-recipe {
    display: flex;
}

.grocery-add-item-duration {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.grocery-add-item-modal.duration-mode .grocery-add-item-manual {
    display: none;
}

.grocery-add-item-modal.duration-mode .grocery-add-item-duration {
    display: flex;
}

.grocery-recipe-info {
    background: #e6f6f7;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
}

.grocery-recipe-info-icon {
    color: #9ca3af;
    font-size: 13px;
    cursor: pointer;
    flex-shrink: 0;
}

.grocery-recipe-source-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.grocery-recipe-source-tab {
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.grocery-recipe-source-tab.active {
    border-color: var(--bs-primary);
    background: var(--bs-primary);
    color: #fff;
}

.grocery-recipe-source-tab-count {
    min-width: 28px;
    padding: 3px 6px;
    border-radius: 999px;
    background: #eef2f7;
    color: #374151;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.grocery-recipe-source-tab.active .grocery-recipe-source-tab-count {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.grocery-recipe-date-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 8px;
}

.grocery-recipe-date-row .grocery-duration-date-field {
    flex: 1;
}

.grocery-recipe-date-row .grocery-recipe-continue-btn {
    flex-shrink: 0;
    height: 40px;
}

.grocery-recipe-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 320px;
    overflow-y: auto;
}

.grocery-recipe-list .grocery-list-empty {
    padding: 12px 0;
}

.grocery-recipe-select-all-row {
    display: flex;
    justify-content: flex-end;
    padding: 0 2px;
}

.grocery-recipe-select-all-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
}

.grocery-recipe-select-all-label input {
    width: 14px;
    height: 14px;
    accent-color: var(--bs-primary);
}

.grocery-recipe-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 0;
    border: none;
    border-radius: 12px;
    background: #F0F5FF;
    box-shadow: none;
    outline: none;
    transition: none;
}

.grocery-recipe-card.selected {
    border: none;
    box-shadow: none;
    outline: none;
}

.grocery-recipe-card-left {
    flex-shrink: 0;
}

.grocery-recipe-card-img-wrap {
    position: relative;
    width: 160px;
    height: 112px;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
}

.grocery-recipe-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grocery-recipe-card-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 28px;
}

.grocery-recipe-card-rating {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #fff;
    color: #131722;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    padding: 5px 9px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.grocery-recipe-card-rating .star.icon {
    color: #fbbf24;
    font-size: 11px;
    margin-right: 0;
}

.grocery-recipe-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.grocery-recipe-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    line-height: 1.25;
}

.grocery-recipe-card-meta {
    font-size: 12px;
    color: #2a2f39;
    line-height: 1.4;
    font-weight: 500;
}

.grocery-recipe-card-planner-date {
    font-size: 11px;
    color: #5bb0bd;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
}

.grocery-recipe-card-planner-date .icon {
    font-size: 11px;
    margin: 0;
}

.grocery-recipe-card-action {
    flex-shrink: 0;
    align-self: center;
    margin-right: 8px;
}

.grocery-recipe-select-btn {
    border: 1.5px solid var(--bs-primary);
    background: #fff;
    color: #111827;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    text-transform: none;
}

.grocery-recipe-card.selected .grocery-recipe-select-btn {
    background: var(--bs-primary);
    color: #fff;
    text-transform: none;
}

.grocery-recipe-portion-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px 0 0;
    box-sizing: border-box;
    margin-top: -2px;
    font-size: 13px;
    color: #111827;
}

.grocery-recipe-portion-controls {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    border: 1.5px solid var(--bs-primary);
    border-radius: 6px;
    overflow: hidden;
}

.grocery-recipe-portion-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: var(--bs-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grocery-recipe-portion-btn:hover {
    opacity: 0.9;
}

.grocery-recipe-portion-value {
    width: 28px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    background: #fff;
}

.grocery-recipe-continue-btn {
    border: none;
    background: var(--bs-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    width: auto;
    align-self: flex-start;
}

.grocery-recipe-continue-btn:hover {
    opacity: 0.9;
}

.grocery-recipe-continue-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.grocery-recipe-success {
    color: #16a34a;
    font-size: 13px;
    font-weight: 500;
}

/* ── Duration Date Range ───────────────────────────────────────────── */

.grocery-duration-date-row {
    display: flex;
    gap: 12px;
}

.grocery-duration-date-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.grocery-duration-date-label {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
}

.grocery-duration-date-input-wrap {
    position: relative;
}

.grocery-duration-date-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    color: #374151;
    appearance: none;
    -webkit-appearance: none;
}

.grocery-duration-date-input:focus {
    outline: none;
    border-color: var(--bs-primary);
}

/* ── Ingredient Review ──────────────────────────────────────────────── */

.grocery-ingredient-review {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.grocery-ingredient-review-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0 8px;
}

.grocery-ingredient-review-title {
    font-size: 14px;
    font-weight: 700;
    flex: 1;
}

.grocery-ingredient-select-all {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    white-space: nowrap;
}

.grocery-ingredient-category {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.grocery-ingredient-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
}

.grocery-ingredient-category-count {
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
}

.grocery-ingredient-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-top: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background 0.15s;
}

.grocery-ingredient-row:hover {
    background: #f9fafb;
}

.grocery-ingredient-cb {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: var(--bs-primary);
    cursor: pointer;
}

.grocery-ingredient-name {
    flex: 1;
    font-size: 14px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.grocery-ingredient-qty {
    flex-shrink: 0;
    font-size: 13px;
    color: #6b7280;
    text-align: right;
}

.grocery-ingredient-edit-btn,
.grocery-ingredient-save-btn,
.grocery-ingredient-cancel-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
    font-size: 13px;
    color: #9ca3af;
    line-height: 1;
}

.grocery-ingredient-edit-btn:hover {
    color: #374151;
}

.grocery-ingredient-save-btn {
    color: #10b981;
}

.grocery-ingredient-save-btn:hover {
    color: #059669;
}

.grocery-ingredient-cancel-btn {
    color: #ef4444;
}

.grocery-ingredient-cancel-btn:hover {
    color: #dc2626;
}

.grocery-ingredient-row.editing {
    background: #f0fdf4;
}

.grocery-ingredient-row.editing .grocery-ingredient-qty {
    display: flex;
    gap: 4px;
}

.grocery-ingredient-edit-input {
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 13px;
    outline: none;
    font-family: inherit;
}

.grocery-ingredient-edit-input:focus {
    border-color: var(--bs-primary);
}

.grocery-ingredient-edit-name {
    width: 100%;
}

.grocery-ingredient-edit-qty {
    width: 50px;
}

.grocery-ingredient-edit-unit {
    width: 50px;
}

.grocery-scan-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 300;
    color: #131722;
}

.grocery-scan-close-btn {
    border: none;
    background: transparent;
    color: #111827;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.grocery-add-item-modal.scan-mode .grocery-add-item-modal-header,
.grocery-add-item-modal.recipe-mode .grocery-add-item-modal-header,
.grocery-add-item-modal.duration-mode .grocery-add-item-modal-header {
    display: none;
}

.grocery-scan-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    border: 1.5px dashed #cbd5e1;
    border-radius: 10px;
    padding: 18px 14px;
    background: #f8fdfe;
    cursor: pointer;
    text-align: center;
}

.grocery-scan-dropzone .icon {
    font-size: 18px;
    color: #111827;
    margin-bottom: 2px;
}

.grocery-scan-dropzone-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.grocery-scan-dropzone-sub {
    font-size: 12px;
    color: #9ca3af;
}

.grocery-scan-dropzone-link {
    margin-top: 2px;
    font-size: 14px;
    font-weight: 600;
    color: var(--bs-primary);
}

.grocery-scan-preview {
    display: none;
    position: relative;
    align-items: flex-start;
    justify-content: center;
    align-self: center;
    width: fit-content;
    max-width: 100%;
    overflow: visible;
    border: none;
    border-radius: 0;
    background: transparent;
}

.grocery-scan-preview-img {
    width: auto;
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

.grocery-scan-preview-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    transform: translate(35%, -35%);
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grocery-scan-preview-remove:hover {
    background: rgba(0, 0, 0, 0.75);
}

.grocery-scan-dropzone.dragover {
    border-color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.05);
}

.grocery-scan-status {
    text-align: center;
    padding: 8px 0;
}

.grocery-scan-status .grocery-list-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.grocery-scan-error {
    color: #dc3545;
    font-size: 13px;
}

.grocery-scan-results {
    overflow-y: auto;
    opacity: 1;
    transform: translateY(0);
    max-height: 320px;
    transition: max-height 0.26s ease, opacity 0.2s ease, transform 0.2s ease;
}

.grocery-scan-results.is-collapsing,
.grocery-scan-results.is-collapsed {
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
}

.grocery-scan-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.grocery-scan-add-all-btn {
    border: none;
    background: var(--bs-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.grocery-scan-add-all-btn:hover {
    opacity: 0.9;
}

.grocery-scan-results-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 240px;
    overflow-y: auto;
}

.grocery-scan-result-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 8px;
    background: #f9fafb;
    transition: opacity 0.2s;
}

.grocery-scan-result-row.added {
    opacity: 0.5;
}

.grocery-scan-result-emoji {
    font-size: 18px;
    flex-shrink: 0;
}

.grocery-scan-result-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.grocery-scan-result-name {
    font-size: 13px;
    font-weight: 500;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.grocery-scan-result-qty {
    font-size: 11px;
    color: #6b7280;
}

.grocery-scan-result-add-btn {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: none;
    background: var(--bs-primary);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.grocery-scan-result-add-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.grocery-scan-result-add-btn:hover:not(:disabled) {
    opacity: 0.9;
}

.grocery-add-item-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.grocery-add-item-inputs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.grocery-add-item-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.grocery-add-item-input {
    flex: 1;
    min-width: 0;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
    background: #fff;
    outline: none;
}

.grocery-add-item-input:focus {
    border-color: #5BB0BD;
}

.grocery-add-item-name-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
}

.grocery-suggestions-list {
    position: fixed;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    max-height: 400px;
    overflow-y: auto;
    z-index: 2000;
}

.grocery-suggestions-list[hidden] {
    display: none;
}

.grocery-suggestion-item {
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #111827;
}

.grocery-suggestion-item:hover,
.grocery-suggestion-item.active {
    background: #f3f4f6;
}

.grocery-suggestion-emoji {
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
}

.grocery-suggestion-name mark {
    background: transparent;
    color: #0d766e;
    font-weight: 600;
    padding: 0;
}

.grocery-suggestion-cat {
    margin-left: auto;
    font-size: 11px;
    color: #6b7280;
}

.grocery-add-item-qty {
    width: 48px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 6px;
    font-size: 13px;
    text-align: center;
    background: #fff;
    outline: none;
}

.grocery-add-item-unit {
    width: 64px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 8px;
    font-size: 13px;
    background: #fff;
    outline: none;
}

.grocery-add-item-submit {
    background: #5BB0BD;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.15s;
}

.grocery-add-item-submit:hover {
    opacity: 0.85;
}

.grocery-add-item-submit.loading {
    opacity: 0.6;
    pointer-events: none;
}

.grocery-add-item-categories {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.grocery-add-item-categories::-webkit-scrollbar {
    display: none;
}

.grocery-add-item-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    border: 1.5px solid #d1d5db;
    background: #fff;
    transition: background-color 0.15s, border-color 0.15s;
    flex-shrink: 0;
}

.grocery-add-item-cat-pill.selected {
    border-color: #5BB0BD;
}

.grocery-add-item-divider {
    text-align: center;
    color: #9ca3af;
    font-size: 12px;
    line-height: 1;
    margin: 0;
}

.grocery-add-item-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.grocery-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    border: 1.5px solid #d1d5db;
    background: #fff;
    color: #131722;
    flex-shrink: 0;
    transition: background-color 0.15s, border-color 0.15s;
}

.grocery-action-btn:hover {
    background: #f3f4f6;
}

.grocery-action-scan {
    border: 1.5px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box,
                linear-gradient(135deg, #FF5F6D60, #FFC37160, #9D50BB60, #00C9FF60) border-box;
}

.grocery-action-scan:hover {
    background: linear-gradient(#f3f4f6, #f3f4f6) padding-box,
                linear-gradient(135deg, #FF5F6D60, #FFC37160, #9D50BB60, #00C9FF60) border-box;
}

.grocery-items-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 0 24px;
    gap: 6px;
}

.grocery-items-empty img {
    width: 80px;
    height: 80px;
    margin-bottom: 12px;
    object-fit: contain;
}

.grocery-items-empty p {
    margin: 0;
    font-size: 13px;
    color: #9ca3af;
    text-align: center;
}

.grocery-items-empty p:first-of-type {
    font-weight: 600;
    color: #6b7280;
    font-size: 14px;
}

.grocery-category-section {
    margin-bottom: 8px;
}

.grocery-category-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.grocery-category-add-btn {
    border: none;
    background: transparent;
    color: #0f766e;
    font-size: 30px;
    line-height: 1;
    padding: 0;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.grocery-category-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 16px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #4b4b3a;
    margin-bottom: 4px;
    margin-top: 8px;
}

.grocery-category-emoji {
    font-size: 15px;
    line-height: 1;
}

.grocery-item-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #eceff3;
    box-sizing: border-box;
    overflow: hidden;
    transition:
        height 500ms cubic-bezier(0.4, 0, 0.2, 1),
        padding-top 500ms cubic-bezier(0.4, 0, 0.2, 1),
        padding-bottom 500ms cubic-bezier(0.4, 0, 0.2, 1),
        border-bottom-width 500ms cubic-bezier(0.4, 0, 0.2, 1),
        opacity 220ms ease-out;
}

.grocery-item-row.collapsing {
    height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-bottom-width: 0 !important;
    opacity: 0;
}

.grocery-item-row.purchased .grocery-item-name {
    text-decoration: line-through;
    text-decoration-color: #dc2626;
    text-decoration-thickness: 3px;
    color: #131722;
}

.grocery-item-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.grocery-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #131722;
    line-height: 1.3;
}

.grocery-item-qty {
    font-size: 14px;
    color: #c4cbd6;
    font-weight: 400;
    line-height: 1.2;
}

.grocery-item-edit-btn {
    border: none;
    background: transparent;
    width: 24px;
    height: 24px;
    padding: 0;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.grocery-item-actions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(2px);
    transition: opacity 0.24s ease-in-out, transform 0.24s ease-in-out, visibility 0s linear 0.24s;
}

.grocery-item-row:hover .grocery-item-actions,
.grocery-item-row:focus-within .grocery-item-actions {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s, 0s, 0s;
}

.grocery-item-ai-icon,
.grocery-item-prof-icon {
    width: 14px;
    height: 14px;
    margin-left: 4px;
    vertical-align: middle;
    position: relative;
    bottom: 1px;
}

.grocery-item-edit-icon {
    width: 16px;
    height: 16px;
    display: block;
    opacity: 0.75;
}

.grocery-item-edit-btn:hover .grocery-item-edit-icon {
    opacity: 1;
}

.grocery-item-delete-btn {
    border: none;
    background: transparent;
    width: 24px;
    height: 24px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.grocery-item-delete-icon {
    width: 16px;
    height: 16px;
    display: block;
    opacity: 0.75;
}

.grocery-item-delete-btn:hover .grocery-item-delete-icon {
    opacity: 1;
}

/* Edit mode */
.grocery-item-row.editing {
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 0;
    background: #f9fafb;
    border-radius: 8px;
    padding: 8px;
}

.grocery-item-edit-form {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.grocery-edit-name {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 13px;
    font-weight: 500;
    color: #111827;
    outline: none;
}

.grocery-edit-name:focus {
    border-color: var(--bs-primary);
}

.grocery-edit-row {
    display: flex;
    gap: 6px;
    align-items: center;
}

.grocery-edit-qty {
    width: 55px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 5px 6px;
    font-size: 12px;
    text-align: center;
    outline: none;
}

.grocery-edit-qty:focus {
    border-color: var(--bs-primary);
}

.grocery-edit-unit {
    width: 55px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 5px 6px;
    font-size: 12px;
    outline: none;
}

.grocery-edit-unit:focus {
    border-color: var(--bs-primary);
}

.grocery-edit-category {
    flex: 1;
    min-width: 0;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 5px 6px;
    font-size: 12px;
    color: #374151;
    background: #fff;
    outline: none;
}

.grocery-edit-category:focus {
    border-color: var(--bs-primary);
}

.grocery-item-edit-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
}

.grocery-edit-save-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: var(--bs-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grocery-edit-save-btn:hover {
    opacity: 0.9;
}

.grocery-edit-save-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.grocery-edit-cancel-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #6b7280;
    font-size: 14px;
    font-weight: 700;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grocery-edit-cancel-btn:hover {
    background: #f3f4f6;
}

.grocery-collab-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 6px;
    border-bottom: 1px solid #f0f0f0;
}

.grocery-collab-row:last-child {
    border-bottom: none;
}

.grocery-collab-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e5f6fa;
    color: #54bad2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.grocery-collab-info {
    flex: 1;
    min-width: 0;
}

.grocery-collab-name {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #131722;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.grocery-collab-you {
    font-size: 16px;
    font-weight: 500;
    color: #54bad2;
}

.grocery-collab-email {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 1px;
}

.grocery-collab-premium-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    background: #FFF9C4;
    color: #000;
    margin-top: 4px;
}

.grocery-collab-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    background: #e5f6fa;
    color: #54bad2;
    flex-shrink: 0;
}

.grocery-collab-badge.owner {
    background: #f0fdf4;
    color: #22c55e;
}

.grocery-collab-badge.professional {
    background: #fdf4ff;
    color: #a855f7;
}

.grocery-collab-badge.pending {
    background: #fff7ed;
    color: #f97316;
}

.grocery-collab-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.grocery-collab-delete {
    background: none;
    border: none;
    cursor: pointer;
    color: #ef4444;
    font-size: 14px;
    padding: 4px 6px;
    border-radius: 4px;
    transition: background 0.15s;
    line-height: 1;
}

.grocery-collab-delete:hover {
    background: #fef2f2;
}

/* ── Grocery list loading ────────────────────────────────────────────────── */

.grocery-list-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
    gap: 8px;
}

.grocery-list-empty {
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
    padding: 40px 0;
    margin: 0;
}

.grocery-list-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 8px 18px;
    border-bottom: 1px solid #d8d8d8;
    cursor: pointer;
}

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

.grocery-list-item:hover .grocery-list-item-name {
    color: #131722;
}

.grocery-list-item-icon img {
    width: 20px;
    height: 24px;
    display: block;
    margin-top: 2px;
}

.grocery-list-item-main {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.grocery-list-item-name {
    font-size: 15px;
    font-weight: 600;
    color: #1f2533;
    line-height: 1.2;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s;
}

.grocery-list-item-count {
    font-size: 12px;
    color: #6c7584;
    font-weight: 500;
    line-height: 1.2;
}

.grocery-list-item-date {
    font-size: 11px;
    color: #a8adb8;
    font-weight: 400;
    line-height: 1.2;
}

@media (max-width: 1200px) {
    .goals-recommendations-split {
        flex-direction: column;
    }

    .goals-recommendations-editor,
    .grocery-list-panel {
        flex: 1 1 auto;
        width: 100%;
    }

    #editablePlanificationObjectifs {
        min-height: 260px;
    }

    .grocery-list-panel {
        min-height: 220px;
        height: 220px;
    }
}

/* .sideBarItem, #support-plus-menu — moved to sidebar2.css */

.imageCircle {
    /* position: absolute; */
    /* display: block; */
    /* vertical-align: middle; */
    /* max-width: 100%; */
    background-color: transparent;
    background-size: cover;
    border-radius: 50% 50% 50% 50%;
    width: var(--sidebar-profile-image-size);
    height: var(--sidebar-profile-image-size);
    /* align-self: flex-end; */
    /* top: 40px; */
    /* left: 50%; */
    /* transform: translateX(-50%); */
    border: 7px solid #2d323e;


    /* from winder */
    /* position: absolute;
    background-color: transparent;
    background-size: cover;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    border: 7px solid #2d323e; */
}

.sideBarItem {
    flex: 1;
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    color: white;
}

.sideBarItem span {
    color: white;
    font-size: 1rem !important;
}

#support-plus-menu {
    flex-wrap: wrap;
}

.upload-banner {
    margin: 0 auto;
    display: block;
}

.edit-profile-pic .imageCircle {
    width: 8.1vw;
    height: 8.1vw;
    border: 3px solid #d4d4d5;
    box-shadow: 0 3px 10px rgb(0 0 0 / 0.2);
    object-fit: cover;
}

.edit-profile-pic {
    position: relative;
    width: fit-content;
    margin: 0;
}

.edit-profile-pic .profile-edit-image {
    display: block;
}

.edit-profile-pic .profile-edit-icon {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 40px;
    height: 40px;
    padding: 10px;
    cursor: pointer;
    background-color: #2d323e;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgb(0 0 0 / 0.2);
}

.profile-edit-label {
    margin-top: 14px;
    text-align: center;
    width: 200px;
}

/* .miniSpan — moved to sidebar2.css */

.keenoaData {
    margin-top: 10px;
    margin-bottom: 20px;
}

.ui.form .inline.fields.keenoaInlineFields {
    flex-wrap: wrap;
    row-gap: 0.5em;
}
.ui.form .inline.fields.keenoaInlineFields > label,
.ui.form .inline.fields.keenoaInlineFields label {
    white-space: nowrap;
}
.ui.form .inline.fields.keenoaInlineFields .field,
.ui.form .inline.fields.keenoaInlineFields .wide.field {
    flex-shrink: 0;
    width: auto;
}

/* .imageCircle.mini — moved to sidebar2.css */

#topMenu {
    background-color: #fafafb;
    height: 50px !important;
    cursor: pointer;
}

#topMenu > .item {
    width: 50px;
    /* align-self: center; */
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0px;
    border-right-color: rgb(0, 0, 0, 0.1);
    border-right-width: 1px;
    border-right-style: solid;
    border-bottom-color: rgb(0, 0, 0, 0.1);
    border-bottom-width: 1px;
    border-bottom-style: solid;
}

#topMenu > .item:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

/* Global Layout 2 shell:
   left sidebar + right pane (top menu, page content, footer). */
body.layout2-app {
    --layout2-sidebar-width: 265px;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden !important;
    display: flex;
    /* grid-template-columns: var(--layout2-sidebar-width) minmax(0, 1fr); */
    /* grid-template-rows: auto minmax(0, 1fr) auto; */
    transition: grid-template-columns 0.28s ease;
}

.sidebar-collapsed {
    --layout2-sidebar-width: 90px;
}

body.layout2-app #topMenu {
    flex-direction: row;
    display: flex;
    position: sticky;
    top: 0;
    z-index: 120;
    background-color: #ffffff;
    /* grid-column: 2; */
    /* grid-row: 1; */
    /* margin-left: 0 !important; */
    /* position: sticky !important; */
    /* top: 0; */
    /* left: auto; */
    /* right: auto; */
    /* width: 100%; */
    /* z-index: 40; */
}

body.layout2-app #topMenu.thinMargin {
    margin-left: 0 !important;
}

body.layout2-app .pusher {
    /* grid-column: 2; */
    /* grid-row: 2; */
    /* min-width: 0; */
    /* min-height: 0; */
    /* overflow: hidden; */
    /* display: flex; */
    /* flex-direction: column; */
    flex-grow: 1;
}

body.layout2-app .pusher > .main-content {
    margin: 0 !important;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: auto;
    float: none;
}

/* Clients list: keep pageTitle fixed and scroll only content area below it. */
#clients {
    min-height: 0;
}

#clients > .main-content {
    min-height: 0;
    overflow: hidden;
}

#clients > .main-content > .d-flex.flex-grow-1.flex-column {
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    background-color: #f0f2f5;
}

#clients .clients-scroll-wrapper {
    flex: 1 1 0;
    height: 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

#clients .client-subscription-column,
#clients .client-subscription-cell {
    width: 150px;
    min-width: 150px;
    text-align: center;
}

#clients .subscription-preview-trigger {
    min-width: 120px;
}

#clients .subscription-preview-trigger:focus-visible {
    outline: 3px solid rgba(49, 178, 191, 0.35);
    outline-offset: 3px;
}

.subscription-preview-details dt,
.subscription-preview-details dd {
    padding-block: 0.5rem;
    overflow-wrap: anywhere;
}

#clients .clients-list-content {
    margin: 20px 36px 0 36px;
    padding: 12px 24px 16px 24px;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

#clients .clients-list-content > .ui.segment {
    border: none;
    box-shadow: none;
    border-radius: 0;
    margin: 0;
    padding: 0;
    position: relative;
}

#clients #client-spinner {
    margin: 16px auto;
}

/* ── Note list – keep title fixed, scroll table region ── */
#noteList {
    min-height: 0;
}

#noteList > .main-content {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    background-color: #f0f2f5;
}

#noteList > .main-content > .d-flex.flex-grow-1.flex-column {
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

#noteList .notes-list-content {
    flex: 1 1 0;
    /* margin: 20px 36px 0 36px; */
    padding: 12px 24px 16px 24px;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

#noteList .notes-column-toggle-label {
    margin-left: 4px;
    margin-bottom: 8px;
    font-weight: 600;
}

#noteList .notes-table-shell {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#noteList .notes-table-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

#noteList #table-equipenutrition-note_wrapper {
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#noteList #table-equipenutrition-note_wrapper .dataTables_filter,
#noteList #table-equipenutrition-note_wrapper .dataTables_length,
#noteList #table-equipenutrition-note_wrapper .dataTables_info,
#noteList #table-equipenutrition-note_wrapper .dataTables_paginate {
    flex: 0 0 auto;
}

#noteList #table-equipenutrition-note_wrapper .dataTables_scroll {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

#noteList #table-equipenutrition-note_wrapper .dataTables_scrollHead {
    flex: 0 0 auto;
}

#noteList #table-equipenutrition-note_wrapper .dataTables_scrollHead thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #f8f9fa;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

#noteList #table-equipenutrition-note_wrapper .dataTables_scrollBody {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto !important;
    overflow-x: auto !important;
}

#noteList #table-equipenutrition-note_wrapper .dataTables_paginate {
    margin-top: 12px;
}

#noteList #table-equipenutrition-note_wrapper .dataTables_info {
    margin-top: 12px;
}

/* ── Doctor list – mirrors client list styles ── */
#doctors > .main-content > .d-flex.flex-grow-1.flex-column {
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    background-color: #f0f2f5;
}

#doctors .doctors-scroll-wrapper {
    flex: 1 1 0;
    height: 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

#doctors .doctors-list-content {
    margin: 20px 36px 0 36px;
    padding: 12px 24px 16px 24px;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

#doctors .doctors-list-content > .ui.segment {
    border: none;
    box-shadow: none;
    border-radius: 0;
    margin: 0;
    padding: 0;
    position: relative;
}

#doctors #doctor-spinner {
    margin: 16px auto;
}

/* ── Archive list – mirrors client/doctor list styles ── */
#archive > .main-content > .d-flex.flex-grow-1.flex-column {
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    background-color: #f0f2f5;
}

#archive .archive-scroll-wrapper {
    flex: 1 1 0;
    height: 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

#archive .archive-list-content {
    margin: 20px 36px 0 36px;
    padding: 12px 24px 16px 24px;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

#archive .archive-list-content > .ui.segment {
    border: none;
    box-shadow: none;
    border-radius: 0;
    margin: 0;
    padding: 0;
    position: relative;
}

#archive .archive-list-content > .ui.message {
    width: auto;
}

/* Success/error message positioning and auto-dismiss */
.ui.success.message,
.ui.negative.message {
    margin-left: 10px;
    max-width: 588px;
    width: auto;
}

#archive #archive-spinner {
    margin: 16px auto;
}

/* ── Insurance list – mirrors client/doctor/archive list styles ── */
#insurances > .main-content > .d-flex.flex-grow-1.flex-column {
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    background-color: #f0f2f5;
}

#insurances .insurances-scroll-wrapper {
    flex: 1 1 0;
    height: 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

#insurances .insurances-list-content {
    margin: 20px 36px 0 36px;
    padding: 12px 24px 16px 24px;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

#insurances .insurances-list-content > .ui.segment {
    border: none;
    box-shadow: none;
    border-radius: 0;
    margin: 0;
    padding: 0;
    position: relative;
}

#insurances #insurance-spinner {
    margin: 16px auto;
}

#insurances .dt-buttons {
    margin-bottom: 12px;
}

/* ── Timesheet list – mirrors client/doctor/archive/insurance list styles ── */
#timesheet > .main-content > .d-flex.flex-grow-1.flex-column {
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    background-color: #f0f2f5;
}

#timesheet .timesheet-scroll-wrapper {
    flex: 1 1 0;
    height: 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

#timesheet .timesheet-list-content {
    margin: 20px 36px 0 36px;
    padding: 12px 24px 16px 24px;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

#timesheet .timesheet-list-content > .ui.segment {
    border: none;
    box-shadow: none;
    border-radius: 0;
    margin: 0;
    padding: 0;
    position: relative;
}

/* ── Users/Professionals list – mirrors client list styles ── */
#users > .main-content > .d-flex.flex-grow-1.flex-column {
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    background-color: #f0f2f5;
}

#users .users-scroll-wrapper {
    flex: 1 1 0;
    height: 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

#users .users-list-content {
    margin: 20px 36px 0 36px;
    padding: 12px 24px 16px 24px;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

#users .users-list-content > .ui.segment {
    border: none;
    box-shadow: none;
    border-radius: 0;
    margin: 0;
    padding: 0;
    position: relative;
}

#users .dt-buttons {
    margin-bottom: 12px;
}

/* ── Email log list – mirrors client/doctor/archive list styles ── */
#emails > .main-content > .d-flex.flex-grow-1.flex-column {
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    background-color: #f0f2f5;
}

#emails .emails-scroll-wrapper {
    flex: 1 1 0;
    height: 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

#emails .emails-list-content {
    margin: 20px 36px 0 36px;
    padding: 12px 24px 16px 24px;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

#emails .emails-list-content > .ui.segment {
    border: none;
    box-shadow: none;
    border-radius: 0;
    margin: 0;
    padding: 0;
    position: relative;
}

#emails #emails-spinner {
    margin: 16px auto;
}

/* ── Doctor edit/add page ── */
#doctor-edit > .main-content > .d-flex.flex-grow-1.flex-column {
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    background-color: #f0f2f5;
}

#doctor-edit .doctor-edit-scroll-wrapper {
    flex: 1 1 0;
    height: 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

#doctor-edit .doctor-edit-content {
    margin: 24px 36px;
    padding: 24px 32px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    max-width: 900px;
}

/* User edit/add page */
body.layout2-app #user-edit-page.pusher {
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#user-edit-page > .main-content {
    margin: 0 !important;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#user-edit-page > .main-content > .d-flex.flex-grow-1.flex-column {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    background-color: #f0f2f5;
}

#user-edit-page .user-edit-scroll-wrapper {
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

#user-edit-page .user-edit-shell {
    height: 100%;
    min-height: 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

#user-edit-page .user-edit-grid {
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

#user-edit-page .user-edit-form {
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

#user-edit-page .user-edit-section {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.75rem;
    -webkit-overflow-scrolling: touch;
}

#user-edit-page .user-password-input-group {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

#user-edit-page .user-password-input-group .input-group-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background-color: #fff;
    border-right: 0;
    color: #31b2bf;
}

#user-edit-page .user-password-input-group .form-control {
    display: block;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
    border-left: 0;
    padding: 0.65rem 0.75rem;
}

#user-edit-page .user-password-input-group .login-password-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: auto;
    margin: 0;
    min-width: 3rem;
    padding: 0 0.75rem;
    background-color: #fff;
    border: 1px solid var(--bs-border-color);
    border-left: 0;
    color: #31b2bf;
}

#user-edit-page .user-password-input-group .login-password-toggle:hover,
#user-edit-page .user-password-input-group .login-password-toggle:focus {
    color: #26a69a;
    background-color: #f4fbfb;
}

#user-edit-page .user-password-input-group .login-password-toggle:focus {
    box-shadow: none;
}

#user-edit-page .user-password-input-group .login-password-toggle .material-icons {
    font-size: 1.25rem;
}

#user-edit-page .user-password-input-group:has(.login-password-toggle) .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

#user-edit-page .user-password-input-group .form-control:focus {
    box-shadow: none;
    border-color: #31b2bf;
}

#user-edit-page .user-password-input-group:focus-within {
    box-shadow: 0 0 0 3px rgba(49, 178, 191, 0.15);
    border-radius: 0.5rem;
}

#user-edit-page .user-password-input-group:focus-within .input-group-text,
#user-edit-page .user-password-input-group:focus-within .login-password-toggle {
    border-color: #31b2bf;
}

#user-edit-page .user-password-match-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.35rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid #dbe6e8;
    border-radius: 0.5rem;
    background: #f8fbfb;
    color: #5f6f73;
    font-size: 0.92rem;
    line-height: 1.35;
}

#user-edit-page .user-password-match-indicator .user-password-match-icon {
    font-size: 1rem;
}

#user-edit-page .user-password-match-indicator.is-match {
    border-color: rgba(25, 135, 84, 0.28);
    background: rgba(25, 135, 84, 0.08);
    color: #146c43;
}

#user-edit-page .user-password-match-indicator.is-mismatch {
    border-color: rgba(220, 53, 69, 0.28);
    background: rgba(220, 53, 69, 0.08);
    color: #b02a37;
}

#user-edit-page .user-edit-page-message {
    width: min(100%, 588px);
    margin: 1rem 1rem 0;
}

#user-edit-page .user-edit-sidebar-column {
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

#user-edit-page .user-edit-content-column {
    min-width: 0;
}

#user-edit-page .edit-profile-pic {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

#user-edit-page .user-edit-photo-actions {
    margin-top: 13px;
    margin-bottom: 50px;
    width: 100%;
}

#user-edit-page .user-edit-photo-button {
    white-space: nowrap;
    width: auto;
    max-width: 100%;
}

#user-edit-page .user-edit-profile-menu {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

#user-edit-page .user-edit-profile-menu .user-edit-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    line-height: 1.2;
    min-height: 38px;
    text-decoration: none;
    width: 100%;
    padding: 0.55rem 0.8rem;
    font-size: 0.95rem;
}

#user-edit-page .user-edit-meta-fields,
#user-edit-page .user-edit-privilege-grid {
    margin-top: 0.75rem;
}

#user-edit-page .user-edit-privilege-column {
    min-width: 0;
}

#user-edit-page .user-edit-toggle-row {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

#user-edit-page .user-edit-submit-button {
    margin: 30px 0 20px;
}

#user-edit-page .user-edit-signature-shell {
    max-width: 720px;
    width: 100%;
}

#user-edit-page .user-edit-signature-preview {
    max-width: 320px;
    max-height: 120px;
    border: 1px solid #ddd;
    background: #fff;
}

#user-edit-page .user-edit-signature-canvas-wrap {
    position: relative;
    width: 100%;
    max-width: 600px;
}

#user-edit-page .user-edit-signature-canvas {
    width: 100%;
    max-width: 600px;
    height: auto;
    aspect-ratio: 3 / 1;
    border: 1px solid #ccc;
    background: #fff;
    touch-action: none;
    display: block;
}

#user-edit-page .user-edit-signature-expand-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 2;
    width: 2.2rem;
    height: 2.2rem;
    padding: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.94);
}

#user-edit-page .user-edit-signature-expand-btn .material-icons {
    font-size: 1.15rem;
    line-height: 1;
}

#user-edit-page .user-edit-signature-clear-expanded-btn {
    display: none;
}

#user-edit-page .user-edit-signature-expanded-actions {
    display: none;
}

#user-edit-page .user-edit-signature-canvas-wrap.is-expanded {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    min-height: 100vh;
    height: 100dvh;
    margin: 0;
    z-index: 1090;
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 0;
    padding-top: max(1rem, env(safe-area-inset-top));
    padding-right: max(1.5rem, env(safe-area-inset-right));
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
    padding-left: max(1rem, env(safe-area-inset-left));
    gap: 0.75rem;
}

#user-edit-page .user-edit-signature-canvas-wrap.is-expanded .user-edit-signature-canvas {
    width: min(1200px, calc(100vw - 4rem));
    max-width: 100%;
    max-height: 80vh;
    border: 1px solid #d7d7d7;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

#user-edit-page .user-edit-signature-canvas-wrap.is-expanded .user-edit-signature-expand-btn {
    top: 1rem;
    right: 1rem;
}

#user-edit-page .user-edit-signature-canvas-wrap.is-expanded .user-edit-signature-expanded-actions {
    display: flex;
    width: min(1200px, calc(100vw - 4rem));
    max-width: 100%;
    justify-content: center;
}

#user-edit-page .user-edit-signature-canvas-wrap.is-expanded .user-edit-signature-clear-expanded-btn {
    display: inline-block;
}

body.signature-canvas-expanded {
    overflow: hidden;
}

body.signature-canvas-expanded::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1089;
}

@media screen and (max-width: 767px) {
    #user-edit-page .user-edit-signature-canvas-wrap.is-expanded {
        padding-top: max(1rem, env(safe-area-inset-top));
        padding-right: max(2rem, env(safe-area-inset-right));
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
        padding-left: max(1rem, env(safe-area-inset-left));
    }

    #user-edit-page .user-edit-signature-canvas-wrap.is-expanded .user-edit-signature-canvas {
        width: min(1200px, calc(100vw - 3.5rem));
    }

    #user-edit-page .user-edit-signature-canvas-wrap.is-expanded .user-edit-signature-expanded-actions {
        width: min(1200px, calc(100vw - 3.5rem));
    }
}

@media screen and (max-width: 1200px) {
    #user-edit-page .user-edit-signature-canvas-wrap,
    #user-edit-page .user-edit-signature-canvas {
        max-width: 600px;
    }
}

#user-edit-page .user-edit-signature-upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

#user-edit-page .user-edit-signature-upload-picker {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    max-width: 560px;
}

#user-edit-page .user-edit-signature-upload-filename {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.3;
    word-break: break-word;
}

#user-edit-page #signature-history .border.rounded {
    overflow: hidden;
}

#user-edit-page #signature-history img {
    max-width: 100%;
    height: auto;
}

#user-edit-page #banners-div .ui.image,
#user-edit-page #banners-div img,
#user-edit-page [id$='files-account-header-'] img,
#user-edit-page [id$='files-account-footer-'] img,
#user-edit-page [id^='custom-files-account-header-'] img,
#user-edit-page [id^='fr-files-account-footer-'] img,
#user-edit-page [id^='en-files-account-header-'] img,
#user-edit-page [id^='en-files-account-footer-'] img {
    max-width: 100%;
    height: auto;
}

#user-edit-page .buttonsExternals {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-end;
}

#user-edit-page .buttonsExternals .button,
#user-edit-page #custom-saveHeader,
#user-edit-page #custom-copyImages {
    max-width: 100%;
}

@media screen and (max-width: 1024px) {
    body.layout2-app {
        display: flex !important;
        height: 100dvh !important;
        min-height: 100dvh !important;
        overflow: hidden !important;
    }

    body.layout2-app #rightContainer {
        display: flex !important;
        flex-direction: column !important;
        min-height: 0 !important;
        height: auto !important;
        max-height: 100dvh !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        flex: 1 1 auto;
    }

    body.layout2-app #topMenu {
        position: sticky !important;
        top: 0 !important;
        z-index: 130 !important;
        background-color: #fff !important;
        flex-shrink: 0;
        min-height: 50px;
    }

    body.layout2-app #user-edit-page.pusher,
    body.layout2-app #user-edit-page.pusher > .main-content,
    #user-edit-page > .main-content,
    #user-edit-page > .main-content > .d-flex.flex-grow-1.flex-column,
    #user-edit-page .user-edit-scroll-wrapper,
    #user-edit-page .user-edit-shell,
    #user-edit-page .user-edit-grid,
    #user-edit-page .user-edit-form,
    #user-edit-page .user-edit-section {
        min-height: auto;
        height: auto !important;
        overflow: visible !important;
    }

    /* Override h-100 on mobile for columns */
    #user-edit-page .user-edit-sidebar-column,
    #user-edit-page .user-edit-content-column {
        height: auto !important;
    }

    #user-edit-page .user-edit-shell {
        margin: 0;
        border-radius: 0;
    }

    #user-edit-page .user-edit-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    #user-edit-page .user-edit-sidebar-column,
    #user-edit-page .user-edit-content-column {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        padding: 1rem !important;
    }

    #user-edit-page .user-edit-content-column {
        padding-top: 0 !important;
    }

    #user-edit-page .edit-profile-pic {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    #user-edit-page .edit-profile-pic .imageCircle {
        width: 120px;
        height: 120px;
    }

    #user-edit-page .user-edit-photo-actions {
        width: 100%;
        margin-bottom: 1rem;
    }

    #user-edit-page .user-edit-photo-action-row {
        width: 100%;
        justify-content: center;
    }

    #user-edit-page .user-edit-photo-button {
        width: auto;
    }

    #user-edit-page .user-edit-profile-menu {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        flex-wrap: wrap;
        overflow: visible;
        padding-bottom: 0.35rem;
        margin-bottom: 0;
        border: none;
        box-shadow: none;
        background: transparent;
        justify-content: flex-start;
    }

    #user-edit-page .user-edit-profile-menu .user-edit-menu-button {
        flex: 0 0 auto;
        width: auto;
        border-radius: 999px !important;
        border: 2px solid rgba(38, 166, 154, 0.2);
        background: #fff;
        min-height: 42px;
        padding: 0.75rem 1rem;
        margin: 0;
        white-space: nowrap;
    }

    #user-edit-page .user-edit-profile-menu .user-edit-menu-button.active {
        background: rgba(38, 166, 154, 0.14) !important;
        border-color: rgba(38, 166, 154, 0.35);
    }

    #user-edit-page .user-edit-section {
        padding-right: 0;
        padding-bottom: 2rem;
    }

    #user-edit-page .user-edit-form {
        padding-bottom: 2rem;
    }

    #user-edit-page .user-edit-form .two.fields,
    #user-edit-page .user-edit-meta-fields {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    #user-edit-page .user-edit-form .two.fields > .field,
    #user-edit-page .user-edit-form .two.fields > .wide.field,
    #user-edit-page .user-edit-form .eleven.wide.field,
    #user-edit-page .user-edit-form .seven.wide.field,
    #user-edit-page .user-edit-form .five.wide.field {
        width: 100% !important;
    }

    #user-edit-page .user-edit-privilege-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1rem 0 0;
    }

    #user-edit-page .user-edit-privilege-grid > .column {
        width: 100% !important;
        padding: 0 !important;
    }

    #user-edit-page .user-edit-toggle-row {
        width: 100%;
        justify-content: space-between;
    }

    #user-edit-page .user-edit-submit-button {
        width: 100%;
        margin: 1.5rem 0 0;
    }

    #user-edit-page .user-password-match-indicator {
        display: flex;
        width: 100%;
    }

    #user-edit-page .user-edit-signature-shell,
    #user-edit-page .user-edit-signature-upload-picker,
    #user-edit-page .user-edit-signature-preview {
        max-width: 100%;
    }

    #user-edit-page .user-edit-signature-canvas-wrap,
    #user-edit-page .user-edit-signature-canvas {
        width: min(100%, 600px);
        max-width: 600px;
    }

    #user-edit-page .user-edit-signature-actions {
        display: flex;
        flex-direction: column;
    }

    #user-edit-page .user-edit-signature-actions .btn,
    #user-edit-page .user-edit-signature-upload .btn {
        width: 100%;
    }

    #user-edit-page #signature-history > [class*='col-'] {
        width: 100%;
    }

    #user-edit-page .buttonsExternals {
        justify-content: stretch;
    }

    #user-edit-page .buttonsExternals .button,
    #user-edit-page #custom-saveHeader,
    #user-edit-page #custom-copyImages,
    #user-edit-page .upload-banner {
        width: 100%;
    }

    #user-edit-page .buttonsExternals .button[style],
    #user-edit-page #fr-preview-pdf-btn,
    #user-edit-page #fr-undo-pdf-btn,
    #user-edit-page #en-preview-pdf-btn,
    #user-edit-page #en-undo-pdf-btn {
        float: none !important;
        margin-bottom: 0 !important;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    body.layout2-app {
        height: 100dvh !important;
        min-height: 100dvh !important;
    }

    body.layout2-app #rightContainer {
        height: auto !important;
        max-height: 100dvh !important;
    }

    body.layout2-app #topMenu {
        position: sticky !important;
        top: 0 !important;
        will-change: transform;
    }
}

@media screen and (max-width: 640px) {
    #user-edit-page .user-edit-page-message {
        margin-left: 0.75rem;
        margin-right: 0.75rem;
    }

    #user-edit-page .user-edit-sidebar-column,
    #user-edit-page .user-edit-content-column {
        padding: 0.75rem !important;
    }

    #user-edit-page .user-edit-profile-menu .user-edit-menu-button {
        min-height: 40px;
        padding: 0.65rem 0.9rem;
        font-size: 0.95rem;
    }

    #user-edit-page .user-edit-toggle-row {
        gap: 0.5rem;
    }

    #user-edit-page .user-edit-toggle-row .spanToLabel {
        font-size: 0.92rem;
    }

    #user-edit-page .user-password-input-group .login-password-toggle {
        min-width: 2.75rem;
        padding: 0 0.65rem;
    }
}

body.layout2-app #footer {
    /* grid-column: 2; */
    /* grid-row: 3; */
    /* width: 100%; */
    padding: 4px 8px;
    justify-content: space-between;
}

body.layout2-app #footer .ui.bottom.fixed.menu.footer {
    position: static !important;
    width: 100%;
    left: auto;
    right: auto;
    bottom: auto;
    margin: 0;
}

#profileNav {
    width: 50px;
    height: 50px;
    justify-content: center;
    align-items: center;
    display: flex;
}

/* Layout 2 only: override Semantic rem-based menu sizing */
#topMenu.ui.menu {
    font-size: 14px !important;
}

.footerMargin {
    padding-left: 0.732vw;
}

.thinMargin {
    margin-left: 90px !important;
}

#langue-menu > li > .dropdown-item {
    color: #26a69a !important;
}

#topMenu .icon-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

#topMenu button.icon-dropdown-toggle {
    padding: 0 !important;
}

#topMenu .icon-dropdown-toggle .material-icons {
    display: block;
    line-height: 1;
}

#topMenu .icon-dropdown-toggle::after {
    margin-left: 0.35rem;
    vertical-align: middle;
}

/* .ui[class*='very thin'].left.sidebar — removed, using sidebar2.css */

.inner {
    display: inline-block;
}

.isDisabled {
    color: #ededed;
    cursor: not-allowed;
    opacity: 0.5;
    text-decoration: none;
    pointer-events: none;
}

.validate-btn-loader {
    margin-left: 30px !important;
    margin-right: 30px !important;
}

#langue-menu .dropdown-item {
    font-weight: bold !important;
}

#settings-menu > li > .dropdown-item {
    color: #26a69a !important;
}

#settings-menu a {
    font-weight: bold !important;
}

.disabled-section {
    opacity: 0.6;
    background-color: #f0f0f0 !important;
    cursor: not-allowed;
}

#pageTitle {
    background-color: var(--bs-primary);
    padding-left: 30px;
    padding-right: 30px;
    padding-top: 20px;
    padding-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.copyBtn {
    margin-bottom: 15px !important;
}

.rewrite-button {
    background-color: #2d323e !important;
    color: white !important;
}

/* Prevent Copy / Smart Rewrite / Add a file from stretching full width inside grid rows */
a[onclick="planificationObjectifsCopyFunction()"],
a[onclick="rewriteObjectives()"],
#btnAddFileToNote,
#btnAddFileToEval {
    display: inline-flex !important;
    width: auto !important;
    align-items: center;
    gap: 6px;
}

#pageTitle > h2 {
    color: white;
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    margin: 0;
}

#pageTitle .icon,
#pageTitle .material-icons,
#pageTitle .material-icons-outlined {
    font-size: 0.85em;
}

/* Search input inside the page title bar */
.page-title-search {
    position: relative;
    flex: 0 1 420px;
    min-width: 200px;
}

.page-title-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 22px;
    pointer-events: none;
}

.page-title-search-field {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 23px;
    padding: 0 20px 0 48px;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    color: #333;
    background: #fff;
    outline: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.page-title-search-field::placeholder {
    color: #aaa;
}

/* Hide the DataTable built-in search on the clients page */
#clients .dataTables_filter {
    display: none !important;
}

/* Add spacing between the "Add" button and the table on clients page */
#clients .dt-buttons {
    margin-bottom: 16px;
}

/* Fix KoalaPro Status cells: don't use display:flex on td, it breaks row alignment */
#table-equipenutrition-client td.koalaStatusList {
    display: table-cell !important;
    text-align: center;
    vertical-align: middle;
}

.banner {
    height: 11vw;
    width: 100%;
    background: var(--bs-primary);
    position: absolute;
    top: 0;
    left: 0;
}

#prefclose {
    cursor: pointer;
}

#prefclose i {
    cursor: pointer;
}

.bannerEval {
    /* height: 16vh; */
    width: 100%;
    position: sticky;
    background: var(--bs-primary);
    z-index: 10;
    align-items: center;
    display: flex;
}

.pageTitleEval {
    /* position: fixed !important; */
    z-index: 2;
    flex: 1;
}

.dropdown-preferences {
    position: fixed;
    right: 10px;
    top: 126px;
    min-width: 500px;
    background-color: white;
    z-index: 1000;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
    padding: 20px;
}
.preferences-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.preferences-head-title {
    font-weight: 600;
    font-size: 20px;
    display: flex;
    align-items: center;
}
.preferences-head i {
    margin-right: 10px;
    cursor: pointer;
}

.preferences-body {
    padding: 20px;
}

.preferences-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.pref-head {
    font-weight: 300;
    font-size: 16px;
    margin-top: 10px;
    font-weight: 700;
}

#prefBody {
    padding: 20px 0px;
}

.pref-item-container {
    display: flex;
    margin-top: 5px;
    border-bottom: #d1d1d1 1px solid;
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.pref-item {
    margin-right: 10px;
    background-color: #31b3bf26;
    color: #31b3bf;
    padding: 5px 10px;
    border-radius: 5px;
    border: #31b3bf 1px solid;
    font-weight: 600;
}
#prefInterest {
    margin-top: 10px;
}
.pageTitleEval h2 {
    font-size: 20px !important;
}

.topSpace {
    margin-top: 5vw !important;
}

.gridwithMargin {
    /* margin-top: 5vh !important; */
    margin-left: 0px !important;
}

.preferencesBtn {
    position: relative;
    right: 0;
    color: white;
    height: 100%;
    display: flex;
    justify-content: flex-end;
}

.preferencesBtn .prefbtn {
    border-left: white 0.1px solid;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 30px;
    padding-left: 20px;
    cursor: pointer;
    font-size: 17px;
    padding-right: 50px;
    /* background-color:; */
}

.prefbtn:hover {
    background-color: #2da7b2;
    transition-duration: 0.5s;
}

.prefbtn {
    gap: 8px;
}

#expandIcon {
    margin-left: 10px;
}

.dropdown-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}
.dropdown-arrow.rotated {
    transform: rotate(180deg);
}

.pref-not-set {
    color: #d1d1d1;
    font-style: italic;
}

.main-content {
    /* margin-left: 265px;
    margin-top: 5.49vw;
    float: left; */
}

.ui.header {
    color: #495057;
}

.imageLogin {
    width: 110px;
}

/* sidebar styles — moved to sidebar2.css */

.card-container {
    margin-left: 50px;
    width: 200px;
}

.left-margin {
    margin-left: 2.4vw;
}

.activeItem {
    background-color: var(--bs-primary) !important;
    max-width: 100% !important;
    margin-right: 10px;
}

#sidebarSections > a {
    --sidebar-pill-radius: 0 100em 100em 0;
    border-radius: var(--sidebar-pill-radius) !important;
    margin-right: 10px;
    text-decoration: none;
}

#sidebarSections > a > .sideBarItem,
#sidebarSections > a > #support-plus-menu > .sideBarItem {
    border-radius: var(--sidebar-pill-radius);
    padding: 10px 0px 10px 44px;
    transition: background-color 0.2s ease;
}

#sidebarSections > a:hover > .sideBarItem:not(#support-plus-menu),
#sidebarSections > a.is-active > .sideBarItem:not(#support-plus-menu) {
    background-color: var(--bs-primary) !important;
}

#sidebarSections > a:hover > #support-plus-menu > .sideBarItem,
#sidebarSections > a.is-active > #support-plus-menu > .sideBarItem {
    background-color: var(--bs-primary) !important;
}

#sideBar .item .material-icons {
    vertical-align: baseline;
    color: white;
}

.side-width {
    width: 265px !important;
}

#sideBarTop {
    align-items: center;
    display: flex;
    flex-direction: column;
}

#sideBar .material-icons {
    font-size: 30px;
}

.dataTables_filter {
    float: right;
    margin-bottom: 20px;
}

.addItemTable {
    background-color: var(--bs-primary) !important;
}

.addKeenoa {
    background-color: #3791d5 !important;
    margin-left: 10px !important;
}

td.details-control {
    position: relative;
}

td.details-control .dot,
.pendingExclamation {
    position: absolute;
    margin-top: -3px;
    margin-left: -13px;
    width: 10px;
    height: 10px;
    background-color: #912d2b;
    color: #912d2b;
    border-radius: 50%;
}

td.details-control .clientUploadPending {
    background-color: #f59e0b;
    color: #f59e0b;
    margin-left: -1px;
    animation: clientUploadPulse 1.5s infinite ease-in-out;
}

.client-upload-file-pending-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 8px 0 2px;
    border-radius: 50%;
    background-color: #f59e0b;
    /* vertical-align: middle; */
    position: absolute;
    top:-5px;
    right: -13.5px;
    animation: clientUploadPulse 1.5s infinite ease-in-out;
}

@keyframes clientUploadPulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.45);
    }
    50% {
        transform: scale(1.28);
        box-shadow: 0 0 0 6px rgba(245, 158, 11, 0);
    }
}

.messageExample {
    margin-top: -14px;
    margin-left: -10px;
    z-index: 1;
    width: 8px;
    height: 8px;
    background-color: #912d2b;
    color: #912d2b;
    border-radius: 50%;
}
.centerMessage {
    display: flex;
    align-items: center;
    justify-content: center;
}

i.pendingExclamation.exclamation.circle.icon {
    margin-left: -5px;
}

.pendingExclamation,
.pendingButton {
    background-color: #fff;
    border: none;
}
/* .alignCenter{
  display: flex;
  align-items: center;
} */

.pendingButton {
    position: absolute;
}

.addRecordAnchor.pendingDraftButtonAnchor {
    position: relative;
    display: inline-block;
}

.pendingDraftBadge {
    position: absolute;
    top: -7px;
    right: -7px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgb(255, 165, 0);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px #fff;
    pointer-events: auto;
    z-index: 2;
    animation: pendingDraftBadgePulse 1s infinite ease-in-out;
}

.pendingDraftBadge i.icon {
    margin: 0;
    font-size: 11px;
    line-height: 1;
    color: #fff;
}

@keyframes pendingDraftBadgePulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 2px #fff, 0 0 0 0 rgba(255, 165, 0, 0.7);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 0 0 2px #fff, 0 0 0 8px rgba(255, 165, 0, 0);
        opacity: 0.85;
    }
}

.dt-button-collection {
    width: max-content !important;
}

.unsaved-drafts-banner {
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.unsaved-drafts-banner:hover,
.unsaved-drafts-banner:focus {
    background-color: rgba(255, 165, 0, 0.18) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
    outline: none;
}
.unsaved-drafts-banner .unsaved-drafts-banner-cta {
    display: inline-flex;
    align-items: center;
    margin-left: 12px;
    font-weight: 600;
    color: #b45309;
    text-decoration: underline;
}
.unsaved-drafts-banner .unsaved-drafts-banner-cta .icon {
    margin-left: 4px;
}

.btn.btn-drafts-reset {
    color: #fd7e14;
    background-color: transparent;
    border: 1px solid #fd7e14;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.btn.btn-drafts-reset i.icon {
    margin-right: 6px;
    opacity: 0.9;
}
.btn.btn-drafts-reset:hover,
.btn.btn-drafts-reset:focus {
    color: #fff;
    background-color: #fd7e14;
    border-color: #fd7e14;
    box-shadow: 0 0 0 0.2rem rgba(253, 126, 20, 0.25);
}

.ui.menu .ui.dropdown .menu > .item {
    display: flex !important;
    align-items: center !important;
    padding: 0 15px !important;
}

.selectClientsActions {
    color: #4a4a4a;
}

th.koalaStatusList > p {
    position: absolute;
    margin-left: -30px;
    font-weight: bold;
}
.confirmBtn {
    color: white !important;
    background-color: #26a69a !important;
}

.infoItem {
    margin-bottom: 8px;
}

#suiviCard .item {
    width: 30%;
    margin-bottom: 10px;
    font-size: 16px;
}

.ribbon.label {
    border-color: var(--bs-primary) !important;
    background-color: var(--bs-primary) !important;
}

.positiveBtn {
    color: white !important;
    background-color: var(--bs-primary) !important;
}

#suiviList .item {
    font-size: 15px;
}
.content.resize {
    padding-bottom: 0.4em !important;
    padding-top: 0 !important;
    border: 0 !important;
}
/* footer */
.ui.bottom.fixed.menu.footer {
    min-height: 1.098vw;
}

/* Layout 2 notes edit/add page shell (pilot before applying to evaluations). */
body.layout2-note-page {
    /* --layout2-sidebar-width: var(--sb2-width, 260px); */
    /* overflow: hidden !important; */
    /* height: 100vh; */
    /* display: grid; */
    /* grid-template-columns: var(--layout2-sidebar-width) minmax(0, 1fr); */
    /* grid-template-rows: auto minmax(0, 1fr) auto; */
    /* transition: grid-template-columns 0.28s ease; */
}

body.layout2-note-page.sidebar-collapsed {
    --layout2-sidebar-width: var(--sb2-collapsed-width, 80px);
}

body.layout2-note-page #footer,
body.layout2-note-page section#footer {
    display: none !important;
}

/* body.layout2-note-page #topMenu {
    grid-column: 2;
    grid-row: 1;
    margin-left: 0 !important;
    position: sticky !important;
    top: 0;
    left: auto;
    right: auto;
    width: 100%;
    z-index: 40;
} */

body.layout2-note-page #rightContainer {
    min-width: 0;
    overflow: hidden;
}

body.layout2-note-page .pusher {
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body.layout2-note-page .main-content.note-page-layout {
    margin: 0 !important;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    float: none;
    padding-top: 0;
}

body.layout2-note-page .main-content.note-page-layout .bannerEval {
    position: sticky;
    top: 0;
    min-height: 48px;
    height: auto;
    z-index: 11;
    background: var(--bs-primary);
    border-bottom: 1px solid #2c9ca8;
}

body.layout2-note-page .main-content.note-page-layout .pageTitleEval#pageTitle {
    position: static !important;
    margin-left: 0;
    padding: 6px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

body.layout2-note-page .main-content.note-page-layout .pageTitleEval h2 {
    margin: 0;
    min-width: 0;
    font-size: 16px !important;
    color: #fff;
}

body.layout2-note-page .main-content.note-page-layout .pageTitleEval h2 .icon,
body.layout2-note-page .main-content.note-page-layout .pageTitleEval h2 .content {
    color: #fff !important;
}

body.layout2-note-page .main-content.note-page-layout .pageTitleEval #preferencesBtn {
    margin: 0 0 0 auto;
    align-self: center;
}

body.layout2-note-page .main-content.note-page-layout .pageTitleEval #preferencesBtn .prefbtn {
    border-left: 0;
    height: auto;
    padding: 5px 10px;
    border-radius: 6px;
    align-items: center;
    font-size: 13px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

body.layout2-note-page .main-content.note-page-layout .pageTitleEval #preferencesBtn .prefbtn:hover {
    background: rgba(255, 255, 255, 0.2);
}

body.layout2-note-page .main-content.note-page-layout .dropdown-preferences {
    top: 98px;
}

body.layout2-note-page .main-content.note-page-layout .gridwithMargin {
    margin-top: 16px !important;
    margin-bottom: 0 !important;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

body.layout2-note-page .main-content.note-page-layout #firstSuiviColumn {
    position: relative;
    height: 100%;
    min-width: 0;
    min-height: 0;
    max-height: 100%;
    padding-bottom: 0 !important;
    overflow-y: auto;
    overflow-x: hidden;
    overflow-wrap: anywhere;
    -webkit-overflow-scrolling: touch;
}

body.layout2-note-page .main-content.note-page-layout #firstSuiviColumn .followupPrimaryActions {
    position: sticky;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

body.layout2-note-page .main-content.note-page-layout #firstSuiviColumn .followupPrimaryActions .suiviSubmitBtn {
    position: static !important;
    right: auto !important;
    bottom: auto !important;
    margin: 0;
    min-width: 1em;
    min-height: 64px;
    font-size: 1.42857143rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 16px 44px !important;
    border-radius: 12px 0 0 0;
    border: none;
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-primary-dark) 100%) !important;
    box-shadow: 0 -2px 12px rgba(var(--bs-primary-rgb), 0.25);
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

body.layout2-note-page .main-content.note-page-layout #firstSuiviColumn .followupPrimaryActions .finishLaterBtn {
    position: static;
    margin: 0;
    min-height: 64px;
    padding: 16px 28px;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    color: var(--bs-primary-dark);
    background: #fff;
    border: 1px solid var(--bs-primary);
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -2px 10px rgba(var(--bs-primary-rgb), 0.15);
}

body.layout2-note-page .main-content.note-page-layout #firstSuiviColumn .followupPrimaryActions .finishLaterBtn i {
    margin-right: 6px;
}

body.layout2-note-page .main-content.note-page-layout #firstSuiviColumn .followupPrimaryActions .suiviSubmitBtn:hover {
    box-shadow: 0 -3px 16px rgba(var(--bs-primary-rgb), 0.4);
    transform: translateY(-1px);
}

body.layout2-note-page .main-content.note-page-layout #secondSuiviColumn {
    position: sticky;
    align-self: flex-start;
    max-height: calc(100vh - 170px);
    overflow: hidden;
}

body.layout2-note-page .main-content.note-page-layout #floatEvalMenu {
    position: sticky !important;
    top: 12px !important;
    margin-top: 0;
}

/* Meta info bar (dates + KoalaPro badge) */
body.layout2-note-page #suiviForm > .ui.large.label {
    background: #f0f2f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    padding: 6px 12px;
}

body.layout2-note-page #koalaStatus {
    margin-bottom: 16px;
}

/* Form section cards */
body.layout2-note-page #suiviForm .ui.raised.segment {
    border-radius: 8px;
    margin: 20px 0;
    padding: 20px 24px;
}

body.layout2-note-page #suiviForm h3.ui.dividing.header {
    padding-bottom: 12px;
    margin-bottom: 16px;
}

#suiviForm .ui.grid .row {
    margin-left: 0;
    margin-right: 0;
}

#suiviForm .ui.grid .column .row {
    display: block;
    margin-top: 0;
}

/* Login page */
#body-login {
    background-color: white;
    overflow: hidden !important;
}
td.details-control {
    cursor: pointer;
    font-size: 1.22em !important;
    color: #6d6060;
}
body {
    background: #f5f7fb;
    overflow-x: hidden !important;
}

/* .body-colapsed, .body-notcolapsed — removed, sidebar2.css handles layout */

.linkFill {
    display: inline-block;
    position: relative;
    z-index: 1;
    padding: 0.8em;
    margin: -0.8em;
}

.infoFileList {
    margin-top: 4px !important;
    margin-left: 10px !important;
    display: inline-grid;
}

#table-equipenutrition-client-archive_filter {
    float: left !important;
    margin-bottom: 20px;
}

#floatEvalMenu {
    width: calc(13.3655em + 1vmin) !important;
    top: calc(3.8em + 1vmin) !important;
    margin-top: 3vw;
    z-index: 0;
}

#floatEvalMenu.ui.sticky.bound {
    position: fixed !important;
}

#firstSuiviColumn {
    padding-right: 1.2vw;
}
#secondSuiviColumn {
    padding-left: 0.5vw;
}
#floatEvalMenu .item {
    font-size: 13px;
    padding: 4px 12px;
    line-height: 1.3;
    transition: background-color 0.15s ease;
}

#floatEvalMenu .item:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.08);
}

#floatEvalMenu .item.active {
    font-weight: 600;
    color: var(--bs-primary);
    background-color: rgba(var(--bs-primary-rgb), 0.06);
}

body.layout2-note-page #floatEvalMenu {
    width: 100% !important;
}

.suiviSubmitBtn {
    position: fixed;
}
.suiviSubmitBtn.finishLater {
    right: 0;
    width: 172px;
    font-size: 1.1em;
}
.ui.teal.button {
    background-color: var(--bs-primary) !important;
}
.btnscontainer {
    position: fixed;
    bottom: 100px;
    right: 0;
}

/* Action buttons toolbar — vertical pill anchored to right edge */
body.layout2-note-page .btnscontainer {
    right: 0;
    bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: #f0f2f5;
    border: 1px solid #e0e0e0;
    border-right: none;
    border-radius: 20px 0 0 20px;
    padding: 6px;
}

body.layout2-note-page .btnscontainer .suivi-email-doctor-btn {
    right: 0;
    display: flex;
    flex-direction: column !important;
    align-items: center;
    gap: 4px;
}

body.layout2-note-page .btnscontainer .suivi-email-doctor-btn > div,
body.layout2-note-page .btnscontainer .suivi-email-doctor-btn > .exportEvalBtn,
body.layout2-note-page .btnscontainer .suivi-email-doctor-btn > .exportNoteBtn {
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
}

body.layout2-note-page .btnscontainer .halfCircular,
body.layout2-note-page .btnscontainer .ui.button.circular {
    width: 48px !important;
    height: 48px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    background-color: #fff;
    box-shadow: none;
    border: 1px solid #e0e0e0;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

body.layout2-note-page .btnscontainer .halfCircular:hover,
body.layout2-note-page .btnscontainer .ui.button.circular:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.1);
    border-color: var(--bs-primary);
}

body.layout2-note-page .btnscontainer .halfCircular i,
body.layout2-note-page .btnscontainer .ui.button.circular i {
    left: 0 !important;
    margin: 0 !important;
    font-size: 20px;
}

body.layout2-note-page .btnscontainer .marginTop10 {
    margin-top: 0 !important;
}

.suivi-email-doctor-btn {
    right: -18px;
}
.halfCircular {
    border-radius: 20px 0px 0px 20px !important;
}
.halfCircular i {
    position: relative !important;
    left: 5px !important;
}
.submitHiddenBtn {
    visibility: hidden;
    position: absolute;
}
.rightBtnMarginExpanded {
    right: 13%;
}
.rightMargin {
    margin-right: 50px !important;
}
.autosaveMsg {
    bottom: calc(2em + 1vmin) !important;
    right: 3em;
    position: fixed;
}
.autosaveMsgSuivi {
    bottom: calc(4.5em + 1vmin) !important;
    right: 0;
    position: fixed;
    width: 12.3%;
    background-color: white;
    z-index: 1;
}
.sendNoteToDoctorBtn {
    bottom: calc(1.5em + 1vmin) !important;
    right: 0;
    position: fixed;
    background-color: white;
    z-index: 1;
}
.suiviFontColor,
#infoIcon .infoIcon {
    background: -webkit-linear-gradient(#2196f3, #87c656);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#infoIcon {
    font-size: 10px;
    margin: -10px 0px 0px 5px;
}

#foodJournal .label {
    font-size: inherit;
    color: black;
    background: transparent;
}

span.section {
    vertical-align: middle;
    margin-left: 6px;
}

input.radio {
    width: 72px !important;
}


.noMargin {
    margin: 0 !important;
}

.ui.dropdown {
    line-height: unset;
}

.row.noPaddingTop {
    padding-top: 0px !important;
}
.row.noPaddingBottom {
    padding-bottom: 0px !important;
}

.row.textarea.noPadding {
    padding: 0 !important;
}

.displayContent {
    display: contents !important;
}

textarea {
    min-height: 15px !important;
}
.unsetLineHeight {
    line-height: unset !important;
}
.marginTop10 {
    margin-top: 10px !important;
}

.marginTop20 {
    margin-top: 20px;
}

.spanToLabel {
    display: block;
    margin: 0 0 0.28571429rem 0;
    color: rgba(0, 0, 0, 0.87);
    font-size: 0.92857143em;
    font-weight: 700;
    text-transform: none;
}

.toggleLabel {
    width: 9.3em !important;
}

#reasonsList {
    margin-top: -1.14285714em;
}

/* .filesBtn {
    background: transparent !important;
} */

.clientFilesSectionsLeft .future-list .filesBtn.btn-outline-secondary:hover,
.clientFilesSectionsLeft .future-list .filesBtn.btn-outline-secondary:focus {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #fff !important;
}

/* .clientFilesSectionsLeft .future-list .filesBtn.btn-outline-secondary.file-delete:hover,
.clientFilesSectionsLeft .future-list .filesBtn.btn-outline-secondary.file-delete:focus {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #fff !important;
} */

.clientFilesSectionsLeft .future-list .filesBtn:hover i.icon,
.clientFilesSectionsLeft .future-list .filesBtn:focus i.icon {
    color: inherit !important;
}

button i.icon {
margin-right: 0 !important;
}

#reasonsList .label {
    background-color: transparent;
    padding-bottom: 0;
    font-size: 0.99714286rem;
}

#reasonNiveau1SelectDiv {
    padding-top: 0;
    padding-bottom: 25px;
    margin-left: 32px;
}

#reasonsListRow .label span {
    color: #4a4a4a;
}

#reasonsListRow {
    padding-bottom: 0.188em;
}

#show-app-data {
    margin-bottom: 15px;
}

#tabacSuppl {
    margin-bottom: 32px;
    display: block !important;
}

#restFrequencyDropdown {
    margin-left: 4px;
    margin-right: 4px;
}

.pesLvl2 {
    margin-left: 3em !important;
    margin-top: 0.2em !important;
}

.checkboxAutre {
    vertical-align: bottom !important;
}

.pesLvl3 {
    margin-left: 6em !important;
    margin-top: 0.2em !important;
}

.pesLvl4 {
    margin-left: 9em !important;
    margin-top: 0.2em !important;
}

.subreason {
    margin-top: 1em !important;
}

.pes-input {
    border-top: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
}

.pes-item {
    background-color: rgba(var(--bs-primary-rgb), 0.1);
    padding: 10px;
    margin: 10px 0px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.generate-diagnostic {
    background-color: #2d323e !important;
    color: white !important;
}

.generate-diagnostic-note {
    background-color: #2d323e !important;
    color: white !important;
}

.pes-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.pes-edit-icon {
    cursor: pointer;
    justify-content: center;
    align-items: center;
}

.pes-delete-icon {
    cursor: pointer;
    justify-content: center;
    align-items: center;
}

.pes-edit-icon:hover {
    transform: scale(1.2);
}

.pes-delete-icon:hover {
    transform: scale(1.2);
}

.pes-container.editing-mode .pes-edit-icon {
    display: none !important;
}

.pes-item:hover .pes-edit-icon {
    display: flex;
}

.pes-item--head {
    font-weight: 600;
}

.pes-item-div {
    margin-bottom: 5px;
    width: 100%;
}

.pes-item-div--confidence {
    position: 'absolute';
    font-size: 14px;
    padding: 10px;
    background-color: rgba(var(--bs-primary-rgb), 0.2);
    /* margin-right:5px; */
    margin-left: 5px;
    border-radius: 5px 0px 0px 5px;
    border-right: #00000015 1px solid;
}

.pes-item-div--ncp_code {
    position: 'absolute';
    font-size: 14px;
    padding: 10px;
    background-color: rgba(var(--bs-primary-rgb), 0.2);
    margin-right: 10px;
    /* margin-left:5px; */
    border-radius: 0px 5px 5px 0px;
    min-width: 100px;
}

.pes-item--main {
    width: 90%;
}

.pes-edit-input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.771) !important;
    border-radius: 5px;
    line-height: 1.5;
    box-sizing: border-box;
    overflow: hidden;
    resize: none;
    outline: none;
    z-index: 100;
    margin-top: 5px !important;
}

.pes-save-btn,
.pes-cancel-btn {
    padding: 8px 15px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 5px 10px 0 0;
}

.pes-save-btn {
    background-color: var(--bs-primary);
    color: #fff;
}

.pes-cancel-btn {
    border-color: #e65100;
    color: #e65100;
    background-color: #fff;
    border-width: 1px;
}

#undoRewrite {
    margin-bottom: 20px;
}

.button-container {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.pes-edit-wrapper {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pes-edit-icon {
    cursor: pointer;
    font-size: 20px;
    transition: color 0.3s ease;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.pes-item {
    animation-fill-mode: both;
}

.pesMarginLeft {
    margin-left: 0.5em;
}

/* Spinner Style */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ccc; /* Light gray */
    border-top: 2px solid #3498db; /* Blue */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px; /* Space between spinner and text */
    vertical-align: middle;
}

/* Keyframe for Spinner Rotation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Dots Animation */
@keyframes blinkDots {
    0% {
        content: '.';
    }
    33% {
        content: '..';
    }
    66% {
        content: '...';
    }
    100% {
        content: '';
    }
}

#processingText .dots::after {
    content: '';
    animation: blinkDots 1.5s steps(3, end) infinite;
}

.pes-analysis-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#analysingTextblock {
    padding: 20px;
    display: flex;
    font-weight: 300;
}

#processingText {
    font-size: 20px;
    text-align: center;
}

.pesListRow textarea {
    height: 4.2em;
}

.peslvl2Row {
    padding-top: 0 !important;
}
.peslvl1Row {
    padding-bottom: 0 !important;
}
.clientFilesIcon {
    float: none;
    margin-top: 2px !important;
    flex: 0 0 auto;
    color: #607d8b;
}

.modal:not(.fade) {
    height: auto;
    top: auto;
    left: auto;
    bottom: auto;
    right: auto;
}
#footerText {
    flex-grow: 1;
    /* width: 100%; */
    margin-bottom: 0 !important;
    /* margin-right: 20px; */
}

.flexDiv {
    display: inline-flex;
}

.centerDiv {
    margin: 0 auto;
    text-align: center;
}

.centerDiv input[type='checkbox'] {
    transform: scale(1.5);
}

.koalaStatusList .selectClientsActions {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 7rem;
    box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.4);
}

.ui.dropdown .menu > .item {
    display: flex !important;
    align-items: center;
    padding: 10px !important;
}

.ui.dropdown .menu {
    margin-top: 5px;
}
/*Koala Status*/
.koalaStatusList {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
/* --- Top meta labels (Bootstrap replacements) --- */
.suivi-meta-labels {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.suivi-meta-actions {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
}

.revision-history-btn {
    min-width: 10.5rem;
    justify-content: space-between;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.suivi-label {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.4;
    border-radius: 6px;
    white-space: nowrap;
    letter-spacing: 0.15px;
}

.suivi-label-neutral {
    color: #4a5568;
    background-color: #edf2f7;
    border: 1px solid #e2e8f0;
}

.suivi-label-revision {
    color: #8b5e00;
    background-color: #fff8e6;
    border: 1px solid #f2d7a6;
    font-weight: 600;
}

.suivi-label-teal {
    color: #fff;
    background-color: var(--bs-primary);
}

.suivi-label-tofinish {
    color: #fff;
    background-color: #e8a838;
    border: none;
    padding: 7px 18px;
    font-size: 0.92rem;
    font-weight: 600;
    margin-left: auto;
}

.koalaStatus {
    white-space: nowrap !important;
}

.koalaStatusBlack {
    color: #79798b !important;
    background-color: transparent !important;
    border: 1px solid #79798b !important;
}

.revision-dropdown-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.15rem 0.25rem;
}

.revision-dropdown-select {
    flex: 1 1 auto;
    text-align: left;
    border: none;
    background: transparent;
    width: 100%;
    border-radius: 0.35rem;
}

.revision-dropdown-row.is-selected .revision-dropdown-select {
    background-color: #eaf4ff;
}

.revision-dropdown-open-link {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    border-radius: 0.4rem;
    font-weight: 500;
    color: #1f2937;
    padding: 0.45rem 0.55rem;
}

.revision-dropdown-open-link:hover,
.revision-dropdown-open-link:focus-visible {
    background-color: #eef6ff;
    color: #111827;
}

.revision-dropdown-open-date {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.revision-dropdown-open-icon {
    color: var(--bs-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.revision-dropdown-open-icon .material-icons {
    font-size: 18px;
    line-height: 1;
}

.revision-dropdown-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    flex: 0 0 auto;
}

.revision-dropdown-icon-btn {
    border: 0;
    background: transparent;
    color: #57606a;
    border-radius: 0.35rem;
    width: 1.9rem;
    height: 1.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.revision-dropdown-icon-btn:hover:not(:disabled),
.revision-dropdown-icon-btn:focus-visible:not(:disabled) {
    background-color: #eef2f6;
    color: #111827;
}

.revision-dropdown-icon-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.revision-dropdown-icon-btn .material-icons {
    font-size: 18px;
    line-height: 1;
}

#revisionCompareModal .revision-compare-table td,
#revisionCompareModal .revision-compare-table th {
    vertical-align: top;
}

#revisionCompareModal .revision-compare-cell {
    white-space: pre-wrap;
    word-break: break-word;
    max-width: 30vw;
}

#revisionCompareModal .revision-compare-selectors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.75rem;
}

#revisionCompareModal .revision-compare-actions {
    display: flex;
    justify-content: flex-end;
}

#revisionCompareModal .revision-compare-table td.text-end {
    white-space: nowrap;
    width: 1%;
}

#revisionCompareModal .revision-compare-empty-state {
    border: 1px solid #d7e3f4;
    background: linear-gradient(180deg, #f8fbff 0%, #f2f7ff 100%);
    border-radius: 0.65rem;
    padding: 1.25rem 1rem;
    text-align: center;
}

#revisionCompareModal .revision-compare-empty-icon {
    font-size: 2rem;
    line-height: 1;
    color: var(--bs-primary);
    margin-bottom: 0.5rem;
}

.koalaStatusRedButton {
    color: #fff !important;
    background-color: #912d2b !important;
}

.koalaStatusOrange {
    color: #fff !important;
    background-color: #f17828 !important;
}

.koalaStatusPurple {
    color: #fff !important;
    background-color: #aa97b8 !important;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
}

.koalaStatusActive {
    color: var(--bs-primary) !important;
    background-color: transparent !important;
    border: 1px solid var(--bs-primary) !important;
}

.inviteButton {
    border: 1px solid #912d2b;
    border-radius: 0.26rem;
    margin-right: 4px;
    padding: 0 10px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.inviteButton:hover {
    cursor: pointer;
}

.nullOkButton {
    display: none;
}

.sendStatus {
    margin-bottom: 15px !important;
}

.sendStatus:hover,
.promptButton:hover {
    cursor: pointer;
}

#promptStatus {
    font-size: 16px;
}

.promptButton {
    margin: 5px -10px 0 0 !important;
}

.headerPrompt {
    display: flex;
    justify-content: space-between;
}
#close-modal-btn:hover,
#ok-modal-btn:hover {
    cursor: pointer;
}
@media screen and (max-width: 1024px) {
    .submitBtn {
        right: 0;
    }
}

#table-equipenutrition-client-archive_filter {
    float: right !important;
    margin-bottom: 20px;
}
/* Slideshow container */
.slideshow-container {
    position: relative;
    margin: auto;
    height: 800px;
    align-content: center;
    text-align: center;
}

/* Hide the images by default */
.slideshow-container .mySlides {
    display: none;
}

/* Hide the images by default */
.slideshow-container .header {
    display: none;
}
/* Hide the images by default */
.slideshow-container .actions {
    display: none;
}

/* Next & previous buttons */
.slideshow-container .slide-prev,
.slide-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 50px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.8);
}

/* Position the "next button" to the right */
.slide-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* Caption text */
.slide-text {
    color: #f2f2f2;
    font-size: 15px;
    padding: 8px 12px;
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
    background-color: #2d323e;
}

/* Number text (1/3 etc) */
.numbertext {
    color: #000000;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
}

#noAccessMessage {
    background-color: #e0e1e2;
    padding: 10px;
    border-radius: 5px;
}

.tw-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px;
    border-radius: 20px;
    position: relative;
    border: none;
    background: #e0e0e0;
    min-width: 88px;
    width: 88px;
    height: 30px;
    box-sizing: border-box;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.tw-toggle label {
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    display: inline-block;
    color: #95a5a6;
    position: relative;
    z-index: 2;
    margin: 0;
    font-size: 14px;
    width: 33%;
    cursor: pointer;
    line-height: 24px;
}

.tw-toggle input {
    position: absolute;
    z-index: 3;
    opacity: 0;
    cursor: pointer;
    display: none;
}

.tw-toggle span {
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: #fff;
    display: block;
    position: absolute;
    top: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.12);
}

/* Default Position (Middle - N.D.) */
.tw-toggle input[value='-1']:checked ~ span {
    background: #ffffff;
    left: 32px;
}

/* Left Position (No) */
.tw-toggle input[value='0']:checked ~ span {
    background: #ffffff;
    left: 3px;
}

.tw-toggle input[value='0']:checked ~ .tw-toggle {
    background: rgba(0, 0, 0, 0.05);
}

/* Right Position (Yes) */
.tw-toggle input[value='1']:checked ~ span {
    background: #ffffff;
    left: 61px;
}

.tw-toggle input[value='0'] + label,
.tw-toggle input[value='1'] + label {
    color: transparent;
}

/* N.D. label styling */
.tw-toggle input[value='-1'] + label {
    color: #fff;
    font-size: 11px;
    font-weight: 500;
}

.fieldLabels {
    align-items: center !important;
    height: 100% !important;
    display: flex !important;
}

#stress-section {
    display: none;
}

#qualiteSommeilDropdown {
    display: none;
    margin-top: 20px;
}

.switch-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.switch-container > span {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Ensure grid columns containing switches don't clip content */
.ui.grid > .column:has(.switch-container),
.ui.grid > .row > .column:has(.switch-container) {
    overflow: visible;
    min-width: 0;
}

/* Responsive adjustments for switches */
@media only screen and (max-width: 991px) {
    .switch-container {
        gap: 5px;
    }
    .switch-container > span {
        font-size: 11px;
    }
}

@media only screen and (max-width: 767px) {
    .switch-container {
        gap: 4px;
    }
    .switch-container > span {
        font-size: 10px;
    }
    .tw-toggle {
        min-width: 76px;
        width: 76px;
        height: 26px;
    }
    .tw-toggle span {
        height: 20px;
        width: 20px;
    }
    .tw-toggle input[value='0']:checked ~ span {
        left: 3px;
    }
    .tw-toggle input[value='-1']:checked ~ span {
        left: 28px;
    }
    .tw-toggle input[value='1']:checked ~ span {
        left: 53px;
    }
}

#pbSantePasseNew {
    display: none;
}

#antecedentsNew {
    display: none;
}

.antecedentsTxt {
    display: block !important;
}

.pbSantePasseTxt {
    display: block !important;
}

#healthIssuedropdown input[type='checkbox'] {
    width: 20px;
}

#familyHistoryDropdownFamily input[type='checkbox'] {
    width: 20px;
}

#healthIssueDropText {
    display: none;
}

#healthIssueDropTextFamily {
    display: none;
}

#currentHealthIssueDropText {
    display: none;
}

#view-vitals-btn {
    background-color: #e8f5e9;
    color: #2e7d32;
    pointer-events: auto !important;
    cursor: pointer !important;
}

.ripple-button {
    position: relative;
    overflow: hidden;
    animation: button-bounce 2s ease-in-out infinite;
}

.ripple-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(76, 175, 80, 0.3);
    transform: translate(-50%, -50%);
    animation: ripple-pulse 2s infinite;
    pointer-events: none;
}

.ripple-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(76, 175, 80, 0.2);
    transform: translate(-50%, -50%);
    animation: ripple-pulse 2s infinite 1s;
    pointer-events: none;
}

@keyframes ripple-pulse {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

@keyframes button-bounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

@keyframes slide-fade {
    from {
        opacity: 0.4;
    }
    to {
        opacity: 1;
    }
}

.selected-tab-dropdown {
    display: flex;
    flex-wrap: wrap;
}

.selected-tab {
    margin: 2px;
    background-color: #31b3bf26;
    color: #31b3bf;
    padding: 5px 10px;
    border-radius: 5px;
    border: #31b3bf 1px solid;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.selected-tab:hover {
    cursor: pointer;
    background-color: #31b3bf42;
}

.close-files-btn {
    float: right;
}

.healthIssuesdropdown {
    min-width: 400px;
}

.currentHealthIssuesdropdown {
    min-width: 400px;
}

/* Ensure dropdown menu items are aligned to the left */
.healthIssuesdropdown .menu {
    text-align: left !important; /* Force left alignment */
    padding: 5px 10px; /* Add some padding */
}

.currentHealthIssuesdropdown .menu {
    text-align: left !important; /* Force left alignment */
    padding: 5px 10px; /* Add some padding */
}

/* Style individual items */
.healthIssuesdropdown .menu .item {
    display: flex; /* Flexbox for proper alignment */
    align-items: center; /* Align checkbox and text */
    gap: 8px; /* Space between checkbox and label */
    padding: 8px 12px; /* Proper padding */
    cursor: pointer; /* Make items clickable */
}

.currentHealthIssuesdropdown .menu .item {
    display: flex; /* Flexbox for proper alignment */
    align-items: center; /* Align checkbox and text */
    gap: 8px; /* Space between checkbox and label */
    padding: 8px 12px; /* Proper padding */
    cursor: pointer; /* Make items clickable */
}

.healthIssuesdropdownFamily .menu .item {
    display: flex; /* Flexbox for proper alignment */
    align-items: center; /* Align checkbox and text */
    gap: 8px; /* Space between checkbox and label */
    padding: 8px 12px; /* Proper padding */
    cursor: pointer; /* Make items clickable */
}

/* Ensure checkboxes don't shift */
.healthIssuesdropdown .menu .item input[type='checkbox'] {
    margin: 0; /* Remove extra margin */
    width: 16px; /* Keep checkbox size consistent */
    height: 16px;
}

.currentHealthIssuesdropdown .menu .item input[type='checkbox'] {
    margin: 0; /* Remove extra margin */
    width: 16px !important; /* Keep checkbox size consistent */
    height: 16px;
}

.healthIssuesdropdownFamily .menu .item input[type='checkbox'] {
    margin: 0; /* Remove extra margin */
    width: 16px; /* Keep checkbox size consistent */
    height: 16px;
}

/* Ensure the text stays aligned properly */
.healthIssuesdropdown .menu .item label {
    flex-grow: 1; /* Allow text to take space */
    white-space: nowrap; /* Prevent wrapping */
    overflow: hidden;
    text-overflow: ellipsis; /* Add '...' for long text */
    cursor: pointer;
}

.healthIssuesdropdownFamily .menu .item label {
    flex-grow: 1; /* Allow text to take space */
    white-space: nowrap; /* Prevent wrapping */
    overflow: hidden;
    text-overflow: ellipsis; /* Add '...' for long text */
    cursor: pointer;
}

.currentHealthIssuesdropdown .menu .item label {
    flex-grow: 1; /* Allow text to take space */
    white-space: nowrap; /* Prevent wrapping */
    overflow: hidden;
    text-overflow: ellipsis; /* Add '...' for long text */
    cursor: pointer;
}
/* Make sure the dropdown itself doesn't expand */
.healthIssuesdropdown {
    width: 100%; /* Set a fixed width */
    max-width: 400px; /* Adjust as needed */
}

.currentHealthIssuesdropdown {
    width: 100%; /* Set a fixed width */
    max-width: 400px; /* Adjust as needed */
}

.healthIssuesdropdownFamily {
    width: 100%; /* Set a fixed width */
    max-width: 400px; /* Adjust as needed */
}

#doctorData {
    background-color: #e8f5e9;
}

@media (max-width: 1200px) {
    .btnscontainer {
        right: 0;
    }

    #sideBar .item span {
        margin-left: 0;
    }
    .finishLater {
        display: none !important;
    }
}

/* Align DataTables buttons and search layout */
#table-equipenutrition-doctor_wrapper .dt-buttons {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Keep "Add" button on the left, push others to the right */
#table-equipenutrition-doctor_wrapper .dt-buttons .addItemTable {
    margin-right: auto;
}

/* CSV dropdown button */
#table-equipenutrition-doctor_wrapper .dt-buttons .csv-actions-dropdown {
    order: 1;
}

/* DataTables collection dropdown styling */
.dt-button-collection {
    min-width: 200px !important;
    background: white !important;
    border: 1px solid rgba(34, 36, 38, 0.15) !important;
    box-shadow:
        0 2px 4px 0 rgba(34, 36, 38, 0.12),
        0 2px 10px 0 rgba(34, 36, 38, 0.15) !important;
    border-radius: 4px !important;
}

.dt-button-collection .dt-button {
    background: transparent !important;
    border: none !important;
    text-align: left !important;
    padding: 10px 15px !important;
    width: 100% !important;
    border-radius: 0 !important;
    font-size: 14px !important;
}

.dt-button-collection .dt-button:hover {
    background: rgba(0, 0, 0, 0.05) !important;
}

.dt-button-collection .dt-button .icon {
    margin-right: 8px;
}

/* Search box on the right, same line */
#table-equipenutrition-doctor_wrapper .dataTables_filter {
    display: inline-block;
    margin-left: 10px;
}

/* Wrapper adjustments to keep everything on one line */
#table-equipenutrition-doctor_wrapper .dt-buttons,
#table-equipenutrition-doctor_wrapper .dataTables_filter {
    vertical-align: middle;
}

/* --- Lifestyle habits subsection dividers --- */
.lifestyle-subsection {
    border-top: 1px solid #e0e0e0;
    padding-top: 14px;
    margin-top: 10px;
}

.lifestyle-subsection--no-border {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

/* 2-column grid for family checkboxes */
.checkbox-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 24px;
}

/* Utility: replace inline flex align-items center */
.flex-align-center {
    display: flex;
    align-items: center;
}

/* Utility: replace inline margin-right:30px */
.mr-30 {
    margin-right: 30px;
}

/* Utility: replace inline margin-top ~13px */
.mt-14 {
    margin-top: 14px;
}

/* ──────────────────────────────────────────────────────────
   Responsive: note/evaluation page — collapse right sidebar
   ────────────────────────────────────────────────────────── */

/* Toggle button for the right-side navigation menu */
.toggle-eval-menu-btn {
    display: none; /* hidden by default on wide screens */
    position: fixed;
    right: 12px;
    top: 50%;
    /* transform: translateY(-50%); */
    z-index: 100;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(var(--bs-primary-rgb), 0.3);
    background: var(--bs-white, #fff);
    color: var(--bs-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    transition: background 0.2s, box-shadow 0.2s;
}
.toggle-eval-menu-btn:hover {
    background: rgba(var(--bs-primary-rgb), 0.08);
    box-shadow: 0 3px 12px rgba(0,0,0,0.18);
}

/* Overlay panel when right menu is toggled open on small screens */
#secondSuiviColumn.panel-open {
    display: flex !important;
    position: fixed !important;
    right: 0;
    top: 0;
    bottom: 0;
    width: 240px !important;
    max-height: 100vh !important;
    overflow-y: auto !important;
    background: var(--bs-white, #fff);
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    z-index: 99;
    padding: 16px 8px !important;
    flex-direction: column;
}

/* Backdrop when right panel is open */
.eval-menu-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 98;
}
.eval-menu-backdrop.active {
    display: block;
}

/* ≤ 1400px: hide right sidebar, full-width content */
@media screen and (max-width: 1400px) {
    body.layout2-note-page .main-content.note-page-layout #secondSuiviColumn {
        display: none;
        top: 50px; /* to make it appaear below the top menu */
    }

    body.layout2-note-page .main-content.note-page-layout #firstSuiviColumn {
        width: 100% !important;
    }

    body.layout2-note-page .main-content.note-page-layout .gridwithMargin {
        display: flex !important;
        flex-direction: column;
    }

    .toggle-eval-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Reduce button padding on smaller screens */
    body.layout2-note-page .main-content.note-page-layout #firstSuiviColumn .followupPrimaryActions .suiviSubmitBtn {
        padding: 12px 24px !important;
        min-height: 52px;
        font-size: 1.2rem;
    }

    .suivi-meta-labels {
        margin-right: 20px;
    }

    
}

/* ≤ 1024px: further compaction */
@media screen and (max-width: 1024px) {
    body.layout2-note-page .main-content.note-page-layout #firstSuiviColumn .followupPrimaryActions .suiviSubmitBtn {
        padding: 10px 16px !important;
        min-height: 44px;
        font-size: 1.1rem;
        border-radius: 8px 0 0 0;
    }

    body.layout2-note-page .main-content.note-page-layout #firstSuiviColumn .followupPrimaryActions {
        gap: 6px;
    }

    body.layout2-note-page .main-content.note-page-layout #firstSuiviColumn .followupPrimaryActions .finishLaterBtn {
        min-height: 44px;
        padding: 10px 14px;
        font-size: 1rem;
    }

    #eatBehavList .item,
    #influency-section .item {
        max-width: 100%;
    }
}
