@use 'variables';

.duration {
	height: 50px;
	margin: 10px 20px;
	background: white;
	border: 1px solid variables.$border;
	border-radius: 2px;

	&__date-picker {
		padding: 13px 4px;
	}

	.ant-time-picker {
		width: 85px;

		&-input {
			background: transparent;
			border: none;
			text-align: center;
			width: 100%;
		}

		&-icon {
			display: none;
		}

		&-clear {
			display: none;
		}

		.ant-time-picker-input::placeholder {
			font-size: 11px;
		}
	}

	&.copy-as-entry {
		background: none;
		border: none;
		display: flex;
		justify-content: space-between;
		align-items: center;
		height: fit-content;
		margin: 0 0 10px 0;

		& input:focus {
			border: 1px solid darkgrey !important;
			outline: none;
		}

		& #durationTimePicker {
			font-weight: 500;
		}

		& #durationTimePicker,
		& #startTimePicker,
		& #endTimePicker {
			width: 70px;
			height: 40px;
			border: 1px solid variables.$border;
			margin: 0;
		}

		& .react-datepicker__input-container {
			cursor: pointer;
		}

		.react-datepicker__day--disabled {
			color: #ccc;
			text-decoration: line-through !important;
			cursor: not-allowed !important;
		}
	}
}

.duration-time {
	display: flex;
	margin-left: 5px;
	justify-content: center;
	align-items: center;
	font-size: 14px;
	color: variables.$lighter_text;
}

.duration-start {
	padding-top: 13px;
	padding-bottom: 13px;
	position: relative;
	top: 0px;
	width: 65px;
	outline: none;
	border: none;
	color: variables.$middle_light_text;
	font-size: 14px;
	margin-left: 5px;
	text-align: center;
}

.duration-end {
	display: block;
}

.duration-duration {
	position: relative;
	padding: 6px 2px;
	border: none;
	width: 85px;
	font-size: 18px;
	color: variables.$dark_text;
	outline: none;
}

.duration-dash {
	position: relative;
	top: 2px;
}

.duration-label {
	margin-left: 7px;
	word-break: keep-all;
	position: relative;
	top: 1px;
}

.duration-divider {
	position: relative;
	height: 50px;
	border-left: 1px dotted #cacaca;
	background-color: transparent;
	width: 3px;
}
