/* ============================================
   Modal Compromisso Legacy Clone (timeline-appointment-legacy-clone)
   Escopo isolado — não afeta o modal original
   ============================================ */

.timeline-appointment-legacy-clone.modal {
	display: flex !important;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
}

.timeline-appointment-legacy-clone .modal-dialog {
	width: min(500px, calc(100vw - 32px));
	max-width: 100%;
	margin: 0;
	box-sizing: border-box;
}

.timeline-appointment-legacy-clone .modal-content {
	width: 100%;
	background: transparent;
	border: 0 !important;
	box-shadow: none !important;
	outline: none;
	border-radius: 0;
}

.timeline-appointment-legacy-clone header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px;
	background: #ffffff;
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
	box-sizing: border-box;
	border-bottom: none;
}

.timeline-appointment-legacy-clone .modal-body {
	width: min(500px, calc(100vw - 32px));
	max-width: 100%;
	max-height: 75vh;
	overflow-y: auto;
	background: #ffffff;
	box-sizing: border-box;
	padding: 0px;
	margin-top: -1px;
	border-bottom-left-radius: 8px;
	border-bottom-right-radius: 8px;
	border: 0 !important;
	box-shadow: none !important;
	outline: none;
}

/*TRABALHANDO AQUI*/


/* ============================================
   Modal Comentario Timeline
   ============================================ */

.body-modal-comment-timeline {
	width: min(500px, calc(100vw - 32px));
	max-width: 100%;
	background: #ffffff;
	box-sizing: border-box;
	padding: 4px 24px 10px;
	margin-top: -1px;
}

.body-modal-comment-timeline .body-modal-activity-timeline {
	padding-left: 0;
	padding-right: 0;
}

.body-modal-comment-timeline label {
    display: block;
    margin-left: 0;
    margin-top: -10px;
    margin-bottom: 20px;
    padding-left: 0;
    font-size: 14px;
    font-weight: 600;
    color: #222222;
}

.body-modal-comment-timeline label::after {
	content: " *";
	color: #E5484D;
}

.timeline-comment-date-field {
	position: relative;
	width: 100%;
	margin-bottom: 20px;
}

.timeline-comment-date-input {
	width: 100%;
	height: 44px;
	border: 1px solid #455558;
	border-radius: 4px;
	background: #ffffff;
	color: #7C9599;
	font-size: 14px;
	padding: 10px 44px 10px 12px;
	box-sizing: border-box;
	cursor: pointer;
}

.timeline-comment-date-input:focus {
	outline: none;
	border-color: #6D32FF;
	box-shadow: none;
}

.timeline-comment-date-picker {
	position: absolute;
	opacity: 0;
	pointer-events: none;
	width: 0;
	height: 0;
}

.timeline-comment-date-icon {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	border: none;
	background: transparent;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.timeline-comment-time-field {
	position: relative;
	width: 100%;
	margin-bottom: 20px;
}

.timeline-comment-time-input {
	width: 100%;
	height: 44px;
	border: 1px solid #455558;
	border-radius: 4px;
	background: #ffffff;
	color: #7C9599;
	font-size: 14px;
	padding: 10px 12px;
	box-sizing: border-box;
	cursor: pointer;
}

.timeline-comment-time-input:focus {
	outline: none;
	border-color: #6D32FF;
	box-shadow: none;
}

.timeline-comment-time-picker {
	position: absolute;
	opacity: 0;
	pointer-events: none;
	width: 0;
	height: 0;
}

.timeline-comment-subject-input {
	width: 100%;
	height: 44px;
	border: 1px solid #455558;
	border-radius: 4px;
	background: #ffffff;
	color: #7C9599;
	font-size: 14px;
	padding: 10px 12px;
	box-sizing: border-box;
	margin-bottom: 20px;
}

.timeline-comment-subject-input:focus {
	outline: none;
	border-color: #6D32FF;
	box-shadow: none;
}

#components-activity-guide-select {
	border: 1px solid #455558;
	border-radius: 4px;
	box-sizing: border-box;
}

#components-activity-guide-select:focus {
	outline: none;
	border-color: #6D32FF;
	box-shadow: none;
}

.timeline-comment-textarea {
	width: 100%;
	min-height: 132px;
	resize: vertical;
	border: 1px solid #455558;
	border-radius: 4px;
	padding: 10px 12px;
	font-size: 14px;
	line-height: 20px;
	color: #222222;
	box-sizing: border-box;
}

.timeline-comment-textarea:focus {
	outline: none;
	border-color: #6D32FF;
	box-shadow: none;
}

.timeline-comment-attachment-picker {
	width: 100%;
    padding-top: 5px;
	max-width: 100%;
	overflow: hidden;
	border-radius: 4px;
	margin-top: 4px;
	cursor: pointer;
}

.timeline-comment-attachment-picker svg {
	display: block;
	width: 100%;
	height: auto;
}

.timeline-comment-attachment-list {
	margin-top: 8px;
	margin-bottom: 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.timeline-comment-attachment-item {
	min-height: 40px;
	border: 1px solid #D7DFE0;
	border-radius: 4px;
	background: #FFFFFF;
	padding: 7px 12px 7px 8px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.timeline-comment-attachment-info {
	display: flex;
	align-items: center;
	min-width: 0;
	gap: 8px;
}

.timeline-comment-attachment-icon {
	width: 24px;
	height: 24px;
	flex: 0 0 auto;
}

.timeline-comment-attachment-name {
	font-size: 14px;
	line-height: 20px;
	color: #222222;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.timeline-comment-attachment-remove {
	width: 24px;
	height: 24px;
	border: 0;
	background: transparent;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex: 0 0 auto;
}

.timeline-comment-attachment-remove:focus {
	outline: none;
}

.wrapper-modal-comment-timeline--success header,
.wrapper-modal-comment-timeline--success .body-modal-comment-timeline,
.wrapper-modal-comment-timeline--success .footer-modal-activity-timeline {
	width: min(402px, calc(100vw - 32px));
	max-width: 100%;
}

.body-modal-comment-timeline--success {
	padding: 12px 16px 0;
	min-height: 57px;
}

.timeline-comment-success {
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	width: 100%;
	padding: 0;
	text-align: left;
}

.timeline-comment-success-message {
	width: 100%;
	font-size: 16px;
	line-height: 24px;
	font-weight: 400;
	color: #455558;
	margin: 0;
}

.wrapper-modal-comment-timeline--success .footer-modal-activity-timeline {
	padding: 0px 16px 16px;
	gap: 0;
}

.btn-timeline-concluir {
	width: 100%;
	height: 44px;
	background: #6D32FF;
	color: #FFFFFF;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	line-height: 1;
	font-weight: 500;
	cursor: pointer;
	font-family: inherit;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
}

.btn-timeline-concluir:hover {
	background: #6D32FF;
}

.btn-timeline-concluir:active {
	background: #6D32FF;
}