.formulario-fotografia-flex {
    display: flex;
}

.fotografia-flex-1 {
    flex: 1;
}

.datos-fotografia {
    flex: 3;
}

.campo-100 {
    width: 100%;
}

.datos-fotografia-flex {
    display: flex;
    justify-content: space-between;
}

.formulario-fotografia-flex {
    display: flex;
}

.datos-fotografia {
    flex: 3;
}

.campo-100 {
    width: 100%;
}

.datos-fotografia-flex {
    display: flex;
    justify-content: space-between;
}

.expediente-form {
    margin-bottom: 2rem;
}

.expediente-card {
    padding: 15px;
    padding-bottom: 0;
}

.expediente-card legend {
    color: #1A2C5B;
    font-size: 20px;
    font-weight: 700;
}

.expediente-card fieldset {
    width: 100%;
    border: 1px solid #1A2C5B;
    box-shadow: 0 0 16px -2px var(--shadow-color);
    ;
}

.card-formulario-expediente {
    border: 1px solid #1A2C5B;
    box-shadow: 0 0 16px -2px var(--shadow-color);
}

.card-formulario-expediente input,
select {
    border: 1px solid #1A2C5B;
}

.select2-container .select2-selection--single {
    height: 46px !important;
}

.select2-container--default .select2-selection--single {
    border: 1px solid #1A2C5B !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 44px !important;
    font-size: 20px;
    font-weight: 500;
    color: #1A2C5B !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #1A2C5B transparent transparent transparent !important;
}

.select2-dropdown {
    border: 1px solid #1A2C5B !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #1A2C5B !important;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #1A2C5B !important;
    font-weight: 500;
}

.select2-container--default .select2-results__option--selected {
    background-color: transparent !important;
}

.select2-results__option--selectable {
    color: #1A2C5B;
}

/* El bloque de la foto */
.form-g.fotografia-flex-1:has(#photo) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Ocultar el input file nativo */
input[type="file"]#photo {
    display: none;
}

/* El label que actúa como botón de subida */
label[for="photo"] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(26, 44, 91, 0.06);
    border: 2px dashed rgba(26, 44, 91, 0.3);
    cursor: pointer;
    color: rgba(26, 44, 91, 0.5);
    font-size: 11px;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
}

label[for="photo"]:hover {
    border-color: #1A2C5B;
    background: rgba(26, 44, 91, 0.1);
}

label[for="photo"] i.fa-upload {
    font-size: 22px;
    margin-bottom: 6px;
    color: #1A2C5B;
}

/* Preview de la foto cuando ya existe */
.photo_preview img,
.photo_preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    overflow: hidden;
}

/* Ocultar el input nativo */
input#photo {
    display: none;
}

/* El círculo */
label#photo-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(26, 44, 91, 0.06);
    border: 2px dashed rgba(26, 44, 91, 0.35);
    cursor: pointer;
    color: rgba(26, 44, 91, 0.5);
    font-size: 11px;
    text-align: center;
    gap: 6px;
    overflow: hidden;
    /* para que la foto no se salga del círculo */
    transition: border-color 0.2s, background 0.2s;
}

label#photo-label:hover {
    border-color: #1A2C5B;
    background: rgba(26, 44, 91, 0.12);
}

label#photo-label i {
    font-size: 26px;
    color: #1A2C5B;
}

/* Foto ya guardada dentro del círculo */
label#photo-label img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 50%;
}


/* ── PERFIL HERO ── */
.profile-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 36px 24px 28px;
    margin-bottom: 12px;
    background: #1A2C5B;
    border-radius: 22px;
    position: relative;
    overflow: visible;
    box-shadow: 0 0 16px -2px #000;
}

.profile-hero::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.profile-hero::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

/* ── AVATAR ── */
.avatar-wrap {
    position: relative;
    margin-bottom: 14px;
    z-index: 10;
}

.avatar-circle {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    border: 2.5px solid rgba(255, 255, 255, 0.25);
    transition: background 0.2s;
    user-select: none;
}

.avatar-circle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.avatar-circle svg {
    width: 28px;
    height: 28px;
    fill: rgba(255, 255, 255, 0.5);
}

.avatar-circle img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 50%;
}

/* ── POPOVER ── */
.popover {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22), 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 210px;
    z-index: 100;
}

.popover.open {
    display: block;
}

.popover::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid rgba(255, 255, 255, 0.97);
}

.pop-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    cursor: pointer;
    transition: background 0.12s;
}

.pop-item:not(:last-child) {
    border-bottom: 0.5px solid rgba(26, 44, 91, 0.07);
}

.pop-item:hover {
    background: rgba(26, 44, 91, 0.05);
}

.pop-item svg {
    width: 17px;
    height: 17px;
    fill: #1A2C5B;
    flex-shrink: 0;
}

.pop-item span {
    font-size: 14px;
    font-weight: 500;
    color: #1A2C5B;
}

/* Inputs ocultos */
#photo-file,
#photo-camera {
    display: none;
}

/* ── NOMBRE Y SUB ── */
.profile-name {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.3px;
    margin-bottom: 4px;
    text-align: center;
    z-index: 1;
}

.profile-sub {
    font-size: 14px;
    color: #FFF;
    font-weight: 400;
    text-align: center;
    z-index: 1;
}

.button-cancelar {
    background-color: #8c0000;
    border: none;
}

/* Vista de expediente */
.exp-detail-card {
    border: 1px solid #1A2C5B;
    box-shadow: 0 0 16px -2px var(--shadow-color);
    border-radius: 12px;
    overflow: hidden;
    padding: 0;
}

.exp-card-top {
    display: flex;
}

.exp-sidebar {
    background: #1A2C5B;
    width: 200px;
    flex-shrink: 0;
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.exp-sidebar .avatar-circle {
    background: rgba(255, 255, 255, .12);
    border: 2.5px solid rgba(255, 255, 255, .25);
    transition: background .2s;
}

.exp-sidebar .avatar-circle:hover {
    background: rgba(255, 255, 255, .2);
}

.exp-sidebar .avatar-circle svg {
    fill: rgba(255, 255, 255, .5);
}

.exp-folio-wrap {
    text-align: center;
}

.exp-folio-lbl {
    display: block;
    font-size: 10px;
    color: rgba(255, 255, 255, .4);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.exp-folio-num {
    display: block;
    font-size: 17px;
    font-weight: 500;
    color: #fff;
}

.exp-divider {
    width: 100%;
    height: 0.5px;
    background: rgba(255, 255, 255, .12);
}

.exp-sidebar-data {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.exp-srow {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.exp-sk {
    font-size: 10px;
    color: rgba(255, 255, 255, .4);
    text-transform: uppercase;
    letter-spacing: .4px;
}

.exp-sv {
    font-size: 12px;
    color: #fff;
    font-weight: 500;
}

.exp-summary {
    flex: 1;
    padding: 22px 24px;
    background: #fff;
}

.exp-patient-name {
    font-size: 20px;
    font-weight: 500;
    color: #1A2C5B;
    line-height: 1.2;
}

.exp-patient-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 6px;
    margin-bottom: 14px;
}

.exp-meta-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.exp-meta-label {
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .5px;
    min-width: 90px;
}

.exp-meta-val {
    font-size: 13px;
    color: #111;
    font-weight: 500;
}

.exp-quick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px 16px;
}

.exp-qi {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.exp-ql {
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.exp-qv {
    font-size: 13px;
    color: #111;
    font-weight: 500;
}

.exp-cols-body {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    border-top: 1px solid rgba(26, 44, 91, .15);
    background: #fff;
}

.exp-col {
    padding: 18px 20px;
}

.exp-col:not(:last-child) {
    border-right: 0.5px solid rgba(26, 44, 91, .12);
}

.exp-col-title {
    font-size: 10px;
    font-weight: 500;
    color: #1A2C5B;
    text-transform: uppercase;
    letter-spacing: .7px;
    padding-bottom: 8px;
    margin-bottom: 12px;
    border-bottom: 2px solid #1A2C5B;
}

.exp-col-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.exp-fi {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.exp-fl {
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.exp-fv {
    font-size: 13px;
    color: #111;
    font-weight: 500;
    line-height: 1.3;
}

.exp-inline {
    cursor: text;
    border-radius: 4px;
    transition: background .15s;
    padding: 1px 3px;
    margin: -1px -3px;
    display: inline-block;
    min-width: 20px;
}

/* .exp-inline:hover {
    background: rgba(26,44,91,.07);
    outline: 1px dashed rgba(26,44,91,.25);
} */
/* .exp-sidebar .exp-inline:hover {
    background: rgba(255,255,255,.12);
    outline: 1px dashed rgba(255,255,255,.4);
} */
.exp-inline--editing {
    background: transparent !important;
    outline: none !important;
    padding: 0;
    margin: 0;
    display: block;
}

.exp-inline--saving .exp-inline-input {
    opacity: .6;
}

.exp-inline-input {
    width: 100%;
    font-size: inherit;
    font-family: inherit;
    font-weight: inherit;
    color: #1A2C5B;
    background: #fff;
    border: 1.5px solid #1A2C5B;
    border-radius: 5px;
    padding: 3px 7px;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 44, 91, .1);
}

.exp-inline-input:focus {
    box-shadow: 0 0 0 3px rgba(26, 44, 91, .18);
}

select.exp-inline-input {
    appearance: auto;
    cursor: pointer;
}

.inline-toast {
    position: fixed;
    top: 70px;
    right: 28px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .2s, transform .2s;
    pointer-events: none;
    z-index: 9999;
}

.inline-toast--visible {
    opacity: 1;
    transform: translateY(0);
}

.inline-toast--success {
    background: #1A2C5B;
}

.inline-toast--error {
    background: #a32d2d;
}

/* Tab de expedientes */
.expedientes-tabs {
    list-style: none;
    padding: 4px 6px;
    border-radius: 20px;
    display: inline-flex;
    /* justify-content: space-between; */
    font-size: 0.9rem;
    font-weight: 300;
    gap: 1.5rem;
    background-color: rgba(26, 44, 91, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 12px rgba(26, 44, 91, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
    margin: 0;
    flex: 1;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-wrap: nowrap;
}

/* .expedientes-tabs li {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.06);
    transition: all 0.2s ease;
} */

.expedientes-tabs li a {
    display: block;
    padding: 6px 14px;
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
}

.expedientes-tabs li a:hover {
    color: white !important;
    transform: scale(1.1);
}
.expedientes-tabs li.active-tab a {
    color: white !important;
    transform: scale(1.1);
}
.expedientes-tabs li:hover:not(.active) {
    /* background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.15); */
    border: none;
    border-radius: 99em;
    background-color: color(srgb 0.733333 0.733333 0.737255 / 0.05);
    backdrop-filter: blur(8px) saturate(1.5);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #99deff 10%, transparent), inset 1.8px 3px 0px -2px color-mix(in srgb, #99deff 90%, transparent), inset -2px -2px 0px -2px color-mix(in srgb, #99deff 80%, transparent), inset -3px -8px 1px -6px color-mix(in srgb, #99deff 60%, transparent), inset -0.3px -1px 4px 0px color-mix(in srgb, #000 24%, transparent), inset -1.5px 2.5px 0px -2px color-mix(in srgb, #000 40%, transparent), inset 0px 3px 4px -2px color-mix(in srgb, #000 40%, transparent), inset 2px -6.5px 1px -4px color-mix(in srgb, #000 20%, transparent), 0px 1px 5px 0px color-mix(in srgb, #000 20%, transparent), 0px 6px 16px 0px color-mix(in srgb, #000 16%, transparent);
}
.expedientes-tabs li.active-tab {
    /* background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.15); */
    border: none;
    border-radius: 99em;
    background-color: color(srgb 0.733333 0.733333 0.737255 / 0.05);
    backdrop-filter: blur(8px) saturate(1.5);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #99deff 10%, transparent), inset 1.8px 3px 0px -2px color-mix(in srgb, #99deff 90%, transparent), inset -2px -2px 0px -2px color-mix(in srgb, #99deff 80%, transparent), inset -3px -8px 1px -6px color-mix(in srgb, #99deff 60%, transparent), inset -0.3px -1px 4px 0px color-mix(in srgb, #000 24%, transparent), inset -1.5px 2.5px 0px -2px color-mix(in srgb, #000 40%, transparent), inset 0px 3px 4px -2px color-mix(in srgb, #000 40%, transparent), inset 2px -6.5px 1px -4px color-mix(in srgb, #000 20%, transparent), 0px 1px 5px 0px color-mix(in srgb, #000 20%, transparent), 0px 6px 16px 0px color-mix(in srgb, #000 16%, transparent);
    transform: scale(1.1);
}

.expedientes-tabs li:hover:not(.active) a {
    color: rgba(255, 255, 255, 0.9);
}

.expedientes-tabs li.active {
    background: #1A2C5B;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 1px 6px rgba(0, 0, 0, 0.25);
}

.expedientes-tabs li.active a {
    color: #FFF;
    font-weight: 400;
}

/* Formulario Karina */
.legend-p {
    background-color: #F0F1F5;
    padding: 8px;
    padding-left: 15px;
    margin: 10px;
    border-radius: 14px;
    color: #1B1B1B;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
}

.legend-p button {
    background-color: #EF9F27;
    padding: 5px 10px;
    font-size: 9px;
}

.card-karina {
    border: none !important;
}

.expediente-card-karina {
    width: 100% !important;
    border: 1px solid #D3D3D4 !important;
    box-shadow: none !important;
    margin-bottom: 1.5rem;
}

.expediente-input-karina {
    border: 1px solid #B9B9B9 !important;
    border-radius: 14px;
}

.select2-container--default .select2-selection--single {
    border: 1px solid #B9B9B9 !important;
    border-radius: 14px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #B9B9B9 !important;
}

.boton-cancelar-karina {
    border-radius: 24px;
    background-color: #FFF !important;
    color: #1A2C5B !important;
    border: 1px solid #1A2C5B;
    padding: 10px 20px !important;
}

.boton-guardar-karina {
    padding: 10px 25px;
    border-radius: 25px;
}

.boton-cancelar-karina:hover {
    filter: none !important;
}

.boton-guardar-karina:hover {
    filter: none !important;
}


/* Expediente EMI */
.toggle-group-seleccionar {
    display: flex;
    border-radius: 10px;
    padding: 3px;
    gap: 8px;
    flex: 1;
}

/* .toggle-group-seleccionar input[type="radio"] {
    display: none;
} */

.input-radio-none {
    display: none !important;
}

.toggle-group-seleccionar-label {
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 5px 25px !important;
    border-radius: 8px !important;
    color: #000;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    letter-spacing: 0.03em;
    user-select: none;
    text-align: center;
    background: rgba(188, 227, 245, 0.22);

}

.toggle-group-seleccionar input:checked+label {
    background: #1a2c5b;
    color: #FFFFFF;
}

.toggle-group-seleccionar input.si:checked+label {
    background: #1D9E75;
    color: #FFFFFF;
}

.card-opciones {
    display: flex;
    margin-bottom: 15px;
}

.card-opciones label {
    flex: 1;
}

.observations {
    flex: 1.5;
    margin-left: 10px;
}

.observations input {
    opacity: 0;
    pointer-events: none;
}

.observations.active input {
    opacity: 1;
    pointer-events: auto;
}

.observations-block {
    display: none;
}

.observations-block.active {
    display: block;
    margin-bottom: 15px;
}

.card-opciones-antecedentes {
    margin-bottom: 10px;
    margin-top: 10px;
}

.card-opciones-antecedentes-label {
    flex: 0.7;
}

.card-types {
    display: flex;
    margin-top: 10px;
    gap: 10px;
}

.card-types label {
    opacity: 0.4;
    pointer-events: none;
}

.card-types input:checked+label {
    background: #1a2c5b;
    color: #FFFFFF;
}

.card-types.active label {
    opacity: 1;
    pointer-events: auto;
}

.card-type-observations {
    display: none;
    margin-top: 10px;
    margin-bottom: 10px;
}

.card-type-observations.active {
    display: block;
}

.gineco-line {
    display: flex;
    /* justify-content: space-between; */
    margin-bottom: 20px;
}

.gineco-line-b {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    margin-top: 20px;
}

.margin-right-25 {
    margin-right: 25%;
}

.gineco-block {
    display: flex;
    gap: 10px;
    position: relative;
    flex: 1;
}

.gineco-block-2 {
    display: flex;
    gap: 10px;
    position: relative;
    flex: 0.5;
}

.gineco-label {
    position: absolute;
    top: -18px;
    left: 8px;
    background-color: #FFF;
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: #000 !important;
}

.visual-flex {
    display: flex;
    margin-bottom: 30px;
}

.visual-box {
    display: flex;
    margin-top: 20px;
}

.visual-flex-1 {
    flex: 1;
}

.visual-flex-2 {
    flex: 2.1;
}

.visual-pupilas {
    align-content: end;
    flex: 1;
    padding-bottom: 0;
}

.ishihara-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.ishihara-label {
    padding-bottom: 17px !important;
}

.visual-label {
    font-weight: 900;
    color: #1A2C5B;
}

.visual-gap {
    gap: 1rem;
}

.exporacion-margin {
    margin-bottom: 0.9rem;
}

.result-marginr {
    margin-right: 18px;
}

.diagnostic-tags-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    min-height: 36px;
    padding: 8px;
    background: #f5f5f5;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.tag-diagnostico {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e3f0fb;
    color: #1565c0;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid #90caf9;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tag-x {
    cursor: pointer;
    font-size: 14px;
    opacity: 0.6;
}

.tag-x:hover {
    opacity: 1;
}

.tag-empty {
    font-size: 13px;
    color: #aaa;
    font-style: italic;
}

.puestos-resultado-label {
    font-size: 12px;
    font-weight: 500;
    color: #185FA5;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.puestos-result-wrap {
    display: flex;
    flex-direction: column;
}

.puesto-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 4px;
    border-bottom: 1px solid #eaeaea;
    gap: 12px;
    background: transparent;
}

.puesto-row:last-child {
    border-bottom: none;
}

.puesto-name {
    font-size: 14px;
    color: #333;
    flex: 1;
    font-weight: 600;
}

.puesto-pills {
    display: flex;
    gap: 6px;
}

.puesto-pill {
    padding: 5px 16px !important;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600 !important;
    border: none;
    background: rgba(188, 227, 245, 0.22);
    color: #1A2C5B !important;
    cursor: pointer;
    transition: all 0.12s;
    user-select: none;
    line-height: 1.4;
}

.puesto-pill:hover {
    border-color: #bbb;
    color: #777;
}

input[type="radio"]:checked+.puesto-pill-apto {
    background: #1D9E75;
    border-color: #1D9E75;
    color: #FFF !important;
    font-weight: 600;
}

input[type="radio"]:checked+.puesto-pill-cond {
    background: #EF9F27;
    border-color: #EF9F27;
    color: #FFF !important;
    font-weight: 600;
}

input[type="radio"]:checked+.puesto-pill-adv {
    background: #E8722A;
    border-color: #E8722A;
    color: #FFF !important;
    font-weight: 600;
}

input[type="radio"]:checked+.puesto-pill-no {
    background: #E24B4A;
    border-color: #E24B4A;
    color: #FFF !important;
    font-weight: 600;
}

.surgery-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.surgery-item input {
    flex: 1;
}

.btn-remove-surgery {
    background: #E24B4A;
    border-color: #E24B4A;
    color: #FFF !important;
    font-weight: 600;
    padding: 5px 10px;
    font-size: 12px;
}

.expedientes-tabs li.completado {
    background: #1D9E75;
    border: none;
    border-radius: 99em;
    backdrop-filter: blur(8px) saturate(1.5);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #99deff 10%, transparent), inset 1.8px 3px 0px -2px color-mix(in srgb, #99deff 90%, transparent), inset -2px -2px 0px -2px color-mix(in srgb, #99deff 80%, transparent), inset -3px -8px 1px -6px color-mix(in srgb, #99deff 60%, transparent), inset -0.3px -1px 4px 0px color-mix(in srgb, #000 24%, transparent), inset -1.5px 2.5px 0px -2px color-mix(in srgb, #000 40%, transparent), inset 0px 3px 4px -2px color-mix(in srgb, #000 40%, transparent), inset 2px -6.5px 1px -4px color-mix(in srgb, #000 20%, transparent), 0px 1px 5px 0px color-mix(in srgb, #000 20%, transparent), 0px 6px 16px 0px color-mix(in srgb, #000 16%, transparent);
}

.expedientes-tabs li.completado a {
    color: #fff !important;
    display: flex;
    align-items: center;
    gap: 5px;
}

.expedientes-tabs li.incompleto {
    background: #EF9F27;
    border-radius: 99em;
    backdrop-filter: blur(8px) saturate(1.5);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #99deff 10%, transparent), inset 1.8px 3px 0px -2px color-mix(in srgb, #99deff 90%, transparent), inset -2px -2px 0px -2px color-mix(in srgb, #99deff 80%, transparent), inset -3px -8px 1px -6px color-mix(in srgb, #99deff 60%, transparent), inset -0.3px -1px 4px 0px color-mix(in srgb, #000 24%, transparent), inset -1.5px 2.5px 0px -2px color-mix(in srgb, #000 40%, transparent), inset 0px 3px 4px -2px color-mix(in srgb, #000 40%, transparent), inset 2px -6.5px 1px -4px color-mix(in srgb, #000 20%, transparent), 0px 1px 5px 0px color-mix(in srgb, #000 20%, transparent), 0px 6px 16px 0px color-mix(in srgb, #000 16%, transparent);
}

.expedientes-tabs li.incompleto a {
    color: #fff !important;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tab-check {
    font-size: 16px;
    line-height: 1;
    color: #FFFFFF;
}

.tab-draft {
    font-size: 16px;
    line-height: 1;
    color: #FFFFFF;
}

/* ATS */
.seccion-condicional {
    display: none !important;
}

.seccion-condicional.visible {
    display: flex !important;
}

.tab-btn-unstyled {
    background: none;
    border: none;
    padding: 6px 14px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    display: block;
    width: 100%;
}

.expedientes-tabs li:hover .tab-btn-unstyled {
    color: rgba(255, 255, 255, 0.9);
}

.btn-remove-examen {
    background: #E24B4A;
    border-color: #E24B4A;
    color: #FFF !important;
    font-weight: 600;
    padding: 5px 10px;
    font-size: 12px;
    display: none;
    margin-left: auto;
    margin-top: 10px;
}

.btn-remove-examen.visible {
    display: block;
}

.test-mental-label {
    top: -13px !important;
}

.test-mental-total {
    display: block !important;
    margin-left: auto;
    width: 33%;
}

.test-mental-total input {
    text-align: center;
    font-weight: 700;
}

/* cuestionario kuorinka */
.kuorinka-contenedor {
    display: flex;
}

.kuorinka-hidden {
    display: none;
}

.kuorinka-contenedor-img {
    width: 80%;
}

.kuorinka-textarea {
    margin: 20px 0;
}

.kuorinka-cuestionario-label {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1A2C5B !important;
}

.kuorinka-subpregunta {
    margin: 7px 0;
}

.kuorinka-preguntas-title {
    font-size: 18px !important;
}

.kuorinka-preguntas-label {
    font-weight: 700 !important;
    font-size: 18px !important;
}

.kuorinka-preguntas-hidden {
    color: #000 !important;
    font-weight: 500 !important;
}

.kuorinka-flex {
    flex: 1;
    display: flex;
    gap: 10px;
}

.kuorinka-subpregunta-flex {
    flex: 0.32;
    display: flex;
    gap: 10px;
}

.puntaje-flex {
    flex: 0.4;
}

.subpregunta-puntaje-flex {
    flex: 0.26;
}

.card-puntajes {
    display: flex;
    margin: 20px 0;
}

.tabs-scroll-wrap {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0;
    margin: 30px 0 15px;
}

.expedientes-tabs::-webkit-scrollbar {
    display: none;
}

.tabs-arrow {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(26, 44, 91, 0.9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.18s, opacity 0.18s;
    z-index: 2;
    padding: 0;
}

.tabs-arrow:hover {
    background: #1A2C5B;
}

.tabs-arrow-left {
    margin-right: 6px;
}

.tabs-arrow-right {
    margin-left: 6px;
}

.tabs-scroll-wrap::before,
.tabs-scroll-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.2s;
}

.tabs-scroll-wrap::before {
    left: 38px;
    background: linear-gradient(to right, rgba(26, 44, 91, 0.25), transparent);
    opacity: 0;
}

.tabs-scroll-wrap::after {
    right: 38px;
    background: linear-gradient(to left, rgba(26, 44, 91, 0.25), transparent);
    opacity: 0;
}

/* .tabs-scroll-wrap.has-overflow-left::before {
    opacity: 1;
}

.tabs-scroll-wrap.has-overflow-right::after {
    opacity: 1;
} */

.expedientes-tabs li a,
.tab-btn-unstyled {
    white-space: nowrap;
}

.expedientes-tabs li a span:not(.material-icons-outlined),
.tab-btn-unstyled span {
    white-space: nowrap;
}

#toma_medicamento_cuales {
    margin-bottom: 10px;
}