/**
 * @license Copyright 2022 Lahuen Health SPA. All Rights Reserved.
 */
.m-triage .c-table-formatted-content--er-service-triage .c-formatted-date,
.m-reception .c-table-formatted-content--er-service-reception .c-formatted-date {
	text-align: center;
}

/* Ancho de columnas */
.c-table-header__cell.c-table-header__cell--document {
	width: 9rem;
}

:is(.m-waiting-room, .m-patients, .m-triage, .m-reception) .c-table-header__cell.c-table-header__cell--document,
:is(.m-waiting-room, .m-triage, .m-reception) .c-table-header__cell.c-table-header__cell--age {
	width: 12rem;
}

:is(.m-triage, .m-reception) .c-table-header__cell.c-table-header__cell--service-number,
:is(.m-triage, .m-reception) .c-table-header__cell.c-table-header__cell--checking,
.m-patients .c-table-header__cell.c-table-header__cell--age,
.m-patients .c-table-header__cell.c-table-header__cell--location {
	width: 10rem;
}

:is(.m-triage, .m-reception, .m-waiting-room, .m-patients) .c-table-header__cell.c-table-header__cell--actions {
	width: 13rem;
}

:is(.m-triage, .m-waiting-room) .c-table-header__cell.c-table-header__cell--waiting-time,
.m-reception .c-table-header__cell--health-benefit,
.m-triage .c-table-header__cell.c-table-header__cell--healthbenefit,
.m-patients .c-table-header__cell.c-table-header__cell--service-time,
.m-patients .c-table-header__cell.c-table-header__cell--specialty {
	width: 12rem;
}

.m-triage .c-table-header__cell.c-table-header__cell--state,
.m-past-patients .c-table-header__cell.c-table-header__cell--date,
.m-past-patients .c-table-header__cell.c-table-header__cell--document,
.m-past-patients .c-table-header__cell.c-table-header__cell--actions,
.m-past-patients .c-table-header__cell.c-table-header__cell--state,
.m-patients .c-table-header__cell.c-table-header__cell--alerts,
.m-reception .c-table-header__cell.c-table-header__cell--waiting-time {
	width: 13rem;
}

.m-patients .c-table-header__cell.c-table-header__cell--evaluator {
	width: 14rem;
}

:is(.m-waiting-room, .m-patients) .c-table-header__cell.c-table-header__cell--category {
	width: 8rem;
}

.m-waiting-room .c-table-header__cell.c-table-header__cell--specialty,
.m-reception .c-table-header__cell.c-table-header__cell--state,
.m-triage .c-table-header__cell.c-table-header__cell--health-benefit {
	width: 16rem;
}

.m-waiting-room .c-table-header__cell.c-table-header__cell--alerts {
	width: 24rem;
}

/* N° de atención */
:is(.m-reception, .m-triage, .m-waiting-room, .m-patients, .m-past-patients)
	.c-table-body__cell--preferent
	.c-formatted-default__label {
	color: red;
}

:is(.m-reception, .m-triage, .m-waiting-room, .m-patients, .m-past-patients)
	.c-table-body__cell--preferent
	.c-formatted-default__label::after {
	content: ' (Preferente)';
}

/* Categorías */
.c-table-body__cell--category .c-formatted-dot__icon.c-formatted-dot__icon--1 {
	background-color: var(--system-error-normal);
}

.c-table-body__cell--category .c-formatted-dot__icon.c-formatted-dot__icon--2 {
	background-color: var(--system-warning-normal);
}

.c-table-body__cell--category .c-formatted-dot__icon.c-formatted-dot__icon--3,
.c-table-body__cell--category .c-formatted-dot__icon.c-formatted-dot__icon--4,
.c-table-body__cell--category .c-formatted-dot__icon.c-formatted-dot__icon--5 {
	display: none;
}

/* Especialidades */
.c-table-body__cell--specialty
	:is(.c-table-formatted-content--er-service-waitingroom, .c-table-formatted-content--er-service)
	.c-formatted-state__pill.c-formatted-state__pill--1 {
	background-color: var(--secondary-d-bright);
}

.c-table-body__cell--specialty
	:is(.c-table-formatted-content--er-service-waitingroom, .c-table-formatted-content--er-service)
	.c-formatted-state__pill.c-formatted-state__pill--2,
.c-table-body__cell--specialty
	:is(.c-table-formatted-content--er-service-waitingroom, .c-table-formatted-content--er-service)
	.c-formatted-state__pill.c-formatted-state__pill--5 {
	background-color: var(--system-ok-bright);
}

.c-table-body__cell--specialty
	:is(.c-table-formatted-content--er-service-waitingroom, .c-table-formatted-content--er-service)
	.c-formatted-state__pill.c-formatted-state__pill--3 {
	background-color: var(--secondary-c-bright);
}

.c-table-body__cell--specialty
	:is(.c-table-formatted-content--er-service-waitingroom, .c-table-formatted-content--er-service)
	.c-formatted-state__pill.c-formatted-state__pill--4 {
	background-color: var(--primary-b-bright);
}

.c-table-formatted-content--er-service .c-formatted-state {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

/* Acciones  */
.l-root__grid .c-table-actionbar__exposed .c-table-actionbar__action.c-table-actionbar__action-patient-call {
	background-image: url('/assets/skins/lahuen/worklist_er_service/images/icon_megaphone.svg');
}

.l-root__grid .c-table-actionbar__exposed .c-table-actionbar__action.c-table-actionbar__action-patient-reception {
	background-image: url('/assets/skins/lahuen/worklist_er_service/images/icon_document_evaluate.svg');
}

.l-root__grid .c-table-actionbar__exposed .c-table-actionbar__action.c-table-actionbar__action-reception-cancel {
	background-image: url('/assets/skins/lahuen/worklist_er_service/images/icon_document_cancel.svg');
}

.l-root__grid .c-table-actionbar__exposed .c-table-actionbar__action.c-table-actionbar__action-patient-triage {
	background-image: url('/assets/skins/lahuen/worklist_er_service/images/icon_document_evaluate.svg');
}

/* Acciones pacientes en espera */
.m-waiting-room
	.l-root__grid
	.c-table-actionbar__exposed
	.c-table-actionbar__action.c-table-actionbar__action-call-patient {
	background-image: url('/assets/skins/lahuen/worklist_er_service/images/icon_megaphone.svg');
}

.m-waiting-room
	.l-root__grid
	.c-table-actionbar__exposed
	.c-table-actionbar__action.c-table-actionbar__action-care-patient {
	background-image: url('/assets/skins/lahuen/worklist_er_service/images/icon_user.svg');
}

.m-waiting-room
	.l-root__grid
	.c-table-actionbar__exposed
	.c-table-actionbar__action.c-table-actionbar__action-atention-cancel {
	background-image: url('/assets/skins/lahuen/worklist_er_service/images/icon_document_cancel.svg');
}

/* Acciones pacientes en atención*/
.m-patients
	.l-root__grid
	.c-table-actionbar__exposed
	.c-table-actionbar__action.c-table-actionbar__action-open-atention {
	background-image: url('/assets/skins/lahuen/worklist_er_service/images/icon_user.svg');
}

.m-patients
	.l-root__grid
	.c-table-actionbar__exposed
	.c-table-actionbar__action.c-table-actionbar__action-patient-recall {
	background-image: url('/assets/skins/lahuen/worklist_er_service/images/icon_megaphone.svg');
}

/* Acciones atenciones anteriores */
.m-past-patients
	.l-root__grid
	.c-table-actionbar__exposed
	.c-table-actionbar__action.c-table-actionbar__action-readmit-patient {
	background-image: url('/assets/skins/lahuen/worklist_er_service/images/icon_go_back.svg');
}

.m-past-patients
	.l-root__grid
	.c-table-actionbar__exposed
	.c-table-actionbar__action.c-table-actionbar__action-reopen-atention {
	background-image: url('/assets/skins/lahuen/worklist_er_service/images/icon_again_user.svg');
}

.m-past-patients
	.l-root__grid
	.c-table-actionbar__exposed
	.c-table-actionbar__action.c-table-actionbar__action-open-atention {
	background-image: url('/assets/skins/lahuen/base/images/icon_user.svg');
}

/* Acciones Egresar pacientes */

.m-discharge-patients
	.l-root__grid
	.c-table-actionbar__exposed
	.c-table-actionbar__action.c-table-actionbar__action-asignar-tarea {
	background-image: url('/assets/skins/lahuen/base/images/icon_play.svg');
}

.m-discharge-patients
	.l-root__grid
	.c-table-actionbar__exposed
	.c-table-actionbar__action.c-table-actionbar__action-indicar-requerimientos {
	background-image: url('/assets/skins/lahuen/worklist/images/icon_document_evaluate.svg');
	width: 2.2rem;
}

.m-discharge-patients
	.l-root__grid
	.c-table-actionbar__exposed
	.c-table-actionbar__action.c-table-actionbar__action-editar-requerimientos {
	background-image: url('/assets/skins/lahuen/base/images/icon_edit.svg');
	height: 2.3rem;
}

.m-discharge-patients
	.l-root__grid
	.c-table-actionbar__exposed
	.c-table-actionbar__action.c-table-actionbar__action-iniciar-preparacion {
	background-image: url('/assets/skins/lahuen/base/images/icon_accept_patient.svg');
}

.m-discharge-patients
	.l-root__grid
	.c-table-actionbar__exposed
	.c-table-actionbar__action.c-table-actionbar__action-reasignar-tarea {
	background-image: url('/assets/skins/lahuen/worklist_inpatient/images/icon_re_add_personal.svg');
	height: 2.6rem;
}

.m-discharge-patients
	.l-root__grid
	.c-table-actionbar__exposed
	.c-table-actionbar__action.c-table-actionbar__action-reversar-traslado {
	background-image: url('/assets/skins/lahuen/ehr/images/icon_back.svg');
	width: 2.2rem;
}

.m-discharge-patients
	.l-root__grid
	.c-table-actionbar__exposed
	.c-table-actionbar__action.c-table-actionbar__action-deshacer-inicio-preparacion {
	background-image: url('/assets/skins/lahuen/ehr/images/icon_back.svg');
	width: 2.2rem;
}

.m-discharge-patients
	.l-root__grid
	.c-table-actionbar__exposed
	.c-table-actionbar__action.c-table-actionbar__action-finalizar-traslado {
	background-image: url('/assets/skins/lahuen/ehr/images/icon_check.svg');
	width: 2.2rem;
}


/* Estados Admisión */
.c-table-formatted-content--er-service-reception .c-formatted-state__pill.c-formatted-state__pill--1,
.c-table-formatted-content--er-service-reception .c-formatted-state__pill.c-formatted-state__pill--3,
.c-table-formatted-content--er-service-reception .c-formatted-state__pill.c-formatted-state__pill--4 {
	background-color: var(--state-start);
}

.c-table-formatted-content--er-service-reception .c-formatted-state__pill.c-formatted-state__pill--5 {
	background-color: var(--state-initiating);
}

.c-table-formatted-content--er-service-reception .c-formatted-state__pill.c-formatted-state__pill--2,
.c-table-formatted-content--er-service-reception .c-formatted-state__pill.c-formatted-state__pill--6 {
	background-color: var(--state-executing);
}

.c-table-formatted-content--er-service-reception .c-formatted-state__pill.c-formatted-state__pill--7 {
	background-color: var(--state-finished-successfully);
}

.c-table-formatted-content--er-service-reception .c-formatted-state__pill.c-formatted-state__pill--8 {
	background-color: var(--state-finished-with-error);
}

/* Estados atenciones anteriores */
.c-table-formatted-content--er-service-pastpatients .c-formatted-state__pill.c-formatted-state__pill--3 {
	background-color: var(--state-finished-successfully);
}

.c-table-formatted-content--er-service-pastpatients .c-formatted-state__pill.c-formatted-state__pill--4 {
	background-color: var(--state-finished-with-error);
}

/* Estado triage */
.c-table-formatted-content--er-service-triage .c-formatted-state__pill.c-formatted-state__pill--4 {
	background-color: var(--state-start);
}

.c-table-formatted-content--er-service-triage .c-formatted-state__pill.c-formatted-state__pill--9 {
	background-color: var(--state-executing);
}
