/* =====================================
   === CONTEXT MENU ===
   ===================================== */
.context-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    width: 150px;
}

.context-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.context-menu li {
    padding: 8px 12px;
    cursor: pointer;
}

.context-menu li:hover {
    background-color: #f0f0f0;
}

/* =====================================
   === BATTERY / PROGRESS CIRCLE ===
   ===================================== */
.battery {
    width: 50px;
    height: 20px;
    border-radius: 4px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 2px;
    background: #f1f1f1;
}

.level {
    height: 100%;
    border-radius: 2px;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0%;
}

/* .status-entered {
    border: 2px solid #f5dd7d;
}

.status-entered .level {
    width: 20%;
    background: #f5dd7d;
}

.status-inprogress {
    border: 2px solid #fdbc59;
}

.status-inprogress .level {
    width: 50%;
    background: #fdbc59;
}

.status-vt {
    border: 2px solid #cc99ff;
}

.status-vt .level {
    width: 70%;
    background: #cc99ff;
}

.status-vb {
    border: 2px solid #80e27e;
}

.status-vb .level {
    width: 100%;
    background: #80e27e;
}

.status-archived {
    border: 2px solid #4CAF50;
}

.status-archived .level {
    width: 0%;
    background: #4CAF50;
}

.battery .checkmark {
    font-size: 12px;
    color: #4CAF50;
    text-align: center;
} */

/* =====================================
   === COLLAPSIBLE CONTAINERS ===
   ===================================== */
.collapse-container {
    height: 0;
    opacity: 0;
    visibility: hidden;
    transition: height 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
}

.collapse-container.show {
    height: auto;
    opacity: 1;
    visibility: visible;
}

.info-section strong {
    display: block;
    margin-bottom: 5px;
    font-size: 0.8rem;
}

.info-section span {
    color: #9fa1a3;
    font-size: 0.7rem;
}

.fs-custom {
    font-size: 0.8rem;
}

/* =====================================
   === card-completed ===
   ===================================== */

.card.card-completed-patient {
    border-radius: 12px;
    border: 1px solid var(--color-blue-100, #DBEAFE);
}

.card.card-completed-patient .card-header {
    background: var(--color-blue-50, #EFF6FF);
    border-bottom: 1px solid var(--color-blue-100, #DBEAFE);
}

.card.card-completed-patient .hr {
    border: 1px solid var(--color-blue-100, #DBEAFE);
}

/* prescriber  */
.card.card-completed-prescriber {
    border-radius: 12px;
    border: 1px solid #F5F3FF;
}

.card.card-completed-prescriber .card-header {
    background: #F5F3FF;
    border-bottom: 1px solid #F5F3FF;
}

/* mutual  */
.card.card-completed-mutual {
    border-radius: 12px;
    border: 1px solid var(--color-orange-100, #FFEDD5);
}

.card.card-completed-mutual .card-header {
    background: var(--color-orange-50, #FFF7ED);
    border-bottom: 1px solid var(--color-orange-100, #FFEDD5);
}

/* caisse  */
.card.card-completed-caisse {
    border-radius: 12px;
    border: 1px solid #CCFBF1;
}

.card.card-completed-caisse .card-header {
    background: #F0FDFA;
    border-bottom: 1px solid #CCFBF1;
}

/* correspondent  */
.card.card-completed-correspondent {
    border-radius: 12px;
    border: 1px solid #FCE7F3;
}

.card.card-completed-correspondent .card-header {
    background: #FDF2F8;
    border-bottom: 1px solid #FCE7F3;
}

/* analysis */
.card-completed-analysis {
    border-radius: 12px;
    border: 1px solid #FEF9C3;
}

.card-completed-analysis .card-header {
    background: #FEFCE8;
    border-bottom: 1px solid #FEF9C3;
}

/* billing code */
.card.card-completed-billing {
    border-radius: 12px;
    border: 1px solid #FEE2E2;
}

.card.card-completed-billing .card-header {
    background: #FEF2F2;
    border-bottom: 1px solid #FEE2E2;
}

/* simple */
.card-completed-sampler {
    border-radius: 12px;
    border: 1px solid #DCFCE7;
}

.card.card-completed-sampler .card-header {
    background: #F0FDF4;
    border-bottom: 1px solid #DCFCE7;
}

/* insured */
.card-completed-insured {
    border-radius: 12px;
    border: 1px solid #D1FAE5;
}

.card.card-completed-insured .card-header {
    background: #ECFDF5;
    border-bottom: 1px solid #D1FAE5;
}

/* Hidden card bodies */
#patient_correspondent_container .card-body,
#insurance_caisse_container .card-body,
#insurance_mutual_container .card-body,
#prescriber_container .card-body,
#analyzes_container .card-body {
        display: none;
}


/* =====================================
   === COMMUNICATION PREFERENCES ===
   ===================================== */
.checkbox-list {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    align-self: stretch;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
}


/* checkboxborn */
.checkbox-item-born{
    align-items: center;
}

.checkbox-text {
    color: var(--Text-Body, #080715);
    font-family: var(--Typeface-Family-Text, Inter);
    font-size: var(--Typeface-Size-sm, 12px);
    font-style: normal;
    font-weight: 300;
    line-height: 100%;
}


.checkbox-item-born input[type="checkbox"],
.checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border-radius: 4px;
    border: 1px solid #00275C;
    appearance: none;
    cursor: pointer;
    position: relative;
}

.checkbox-item-born input[type="checkbox"]:checked,
.checkbox-item input[type="checkbox"]:checked {
    background-color: #00275C;
    border: 1px solid #00275C;
}

.checkbox-item-born input[type="checkbox"]:checked::after,
.checkbox-item input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    transform: translate(-50%, -50%);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 18 18" fill="none"><path d="M6.91665 13.1668C6.91595 13.1668 6.91526 13.1668 6.91387 13.1668C6.72846 13.1661 6.55206 13.0918 6.4222 12.9599L3.64443 10.139C3.37498 9.86541 3.37846 9.42583 3.65207 9.15708C3.92568 8.88833 4.36456 8.8911 4.63401 9.16471L6.92081 11.4869L13.3708 5.03763C13.6423 4.7661 14.0812 4.7661 14.3528 5.03763C14.6243 5.30846 14.6243 5.74874 14.3528 6.01958L7.40831 12.964C7.27775 13.0939 7.10068 13.1668 6.91665 13.1668Z" fill="white"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
}




.hr {
    border: 0;
    border-top: 1px solid #ccc;
    margin: 0;
    width: 100% !important;
    /* force full width */
    display: block;
}


.communication-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    align-self: stretch;
}

.label-communication {
    color: var(--Text-Body, #030712);

    /* Text md/Regular */
    font-family: var(--Typeface-Family-Text, Inter);
    font-size: var(--Typeface-Size-md, 12px);
    font-style: normal;
    font-weight: 300;
    line-height: 100%;
    /* 24px */
    padding: 6px 10px;
}

.form-check.form-check-inline {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin-right: 10px;
    width: 30px;
    height: 30px;
    background: #F2F5F8;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.form-check.form-check-inline:hover {
    background: #e0e5eb;
}

.form-check.form-check-inline button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    background: transparent;
    cursor: inherit;
}

.form-check.form-check-inline .icon {
    width: 15px;
    height: 15px;
    object-fit: contain;
    opacity: 0.8;
}

.form-check.form-check-inline .communication-button {
    display: flex;
    width: 36px;
    height: 36px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    aspect-ratio: 1/1;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    background: #F3F4F6;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

/* Active state - correct selector */
.form-check.form-check-inline .communication-button.active {
    display: flex;
    width: 36px;
    height: 36px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    aspect-ratio: 1/1;
    border-radius: 8px;
    border: 1px solid var(--color-primary-950);
    background: var(--color-primary-50);
}

.form-check.form-check-inline .communication-button.active::after {
    content: '';
    width: 20px;
    height: 20px;
    aspect-ratio: 1/1;
    position: absolute;
    right: 0;
    top: -10px;
    background-image: url('../img/check-circle.svg');
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
}

.form-check.form-check-inline .communication-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


.hidden-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.from-check-input:checked {
    border: #00275C;
    background-color: #00275C;
}
