@import url(https://fonts.googleapis.com/css2?family=Oswald&family=PT+Serif:ital,wght@0,400;0,700;1,400&display=swap);
@import url(https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;1,400;1,700&display=swap);
:root {
	--ck-z-default: 2000;
	--ck-z-panel: calc(var(--ck-z-default) + 999);
}

@media print {
	body {
		margin: 0 !important;
	}
}

.main-container {
	font-family: 'Lato';
	width: -webkit-fit-content;
	width: -moz-fit-content;
	width: fit-content;
	margin-left: auto;
	margin-right: auto;
}

.ck-content {
	font-family: 'Lato';
	line-height: 1.6;
	word-break: break-word;
}

/* 设置段落默认间距，避免恢复到浏览器默认值 */
.ck-content p,
.ck-content h1,
.ck-content h2,
.ck-content h3,
.ck-content h4,
.ck-content h5,
.ck-content h6 {
	margin-top: 1em;
	margin-bottom: 1em;
	-webkit-margin-before: 1em;
	        margin-block-start: 1em;
	-webkit-margin-after: 1em;
	        margin-block-end: 1em;
}

/* 内联样式优先级更高，会覆盖上面的默认值 */

.editor-container_classic-editor .editor-container__editor {
	min-width: 795px;
	max-width: 795px;
}

.editor-container_include-block-toolbar {
	margin-left: 42px;
}

.ck-content h3.category {
	font-family: 'Oswald';
	font-size: 20px;
	font-weight: bold;
	color: #555;
	letter-spacing: 10px;
	margin: 0;
	padding: 0;
}

.ck-content h2.document-title {
	font-family: 'Oswald';
	font-size: 50px;
	font-weight: bold;
	margin: 0;
	padding: 0;
	border: 0;
}

.ck-content h3.document-subtitle {
	font-family: 'Oswald';
	font-size: 20px;
	color: #555;
	margin: 0 0 1em;
	font-weight: bold;
	padding: 0;
}

.ck-content p.info-box {
	--background-size: 30px;
	--background-color: #e91e63;
	padding: 1.2em 2em;
	border: 1px solid var(--background-color);
	background: linear-gradient(
			135deg,
			var(--background-color) 0%,
			var(--background-color) var(--background-size),
			transparent var(--background-size)
		),
		linear-gradient(
			135deg,
			transparent calc(100% - var(--background-size)),
			var(--background-color) calc(100% - var(--background-size)),
			var(--background-color)
		);
	border-radius: 10px;
	margin: 1.5em 2em;
	box-shadow: 5px 5px 0 #ffe6ef;
}

.ck-content blockquote.side-quote {
	font-family: 'Oswald';
	font-style: normal;
	float: right;
	width: 35%;
	position: relative;
	border: 0;
	overflow: visible;
	z-index: 1;
	margin-left: 1em;
}

.ck-content blockquote.side-quote::before {
	content: '“';
	position: absolute;
	top: -37px;
	left: -10px;
	display: block;
	font-size: 200px;
	color: #e7e7e7;
	z-index: -1;
	line-height: 1;
}

.ck-content blockquote.side-quote p {
	font-size: 2em;
	line-height: 1;
}

.ck-content blockquote.side-quote p:last-child:not(:first-child) {
	font-size: 1.3em;
	text-align: right;
	color: #555;
}

.ck-content span.marker {
	background: yellow;
}

.ck-content span.spoiler {
	background: #000;
	color: #000;
}

.ck-content span.spoiler:hover {
	background: #000;
	color: #fff;
}

.ck-content pre.fancy-code {
	border: 0;
	margin-left: 2em;
	margin-right: 2em;
	border-radius: 10px;
}

.ck-content pre.fancy-code::before {
	content: '';
	display: block;
	height: 13px;
	background: url(data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1NCAxMyI+CiAgPGNpcmNsZSBjeD0iNi41IiBjeT0iNi41IiByPSI2LjUiIGZpbGw9IiNGMzZCNUMiLz4KICA8Y2lyY2xlIGN4PSIyNi41IiBjeT0iNi41IiByPSI2LjUiIGZpbGw9IiNGOUJFNEQiLz4KICA8Y2lyY2xlIGN4PSI0Ny41IiBjeT0iNi41IiByPSI2LjUiIGZpbGw9IiM1NkM0NTMiLz4KPC9zdmc+Cg==);
	margin-bottom: 8px;
	background-repeat: no-repeat;
}

.ck-content pre.fancy-code-dark {
	background: #272822;
	color: #fff;
	box-shadow: 5px 5px 0 #0000001f;
}

.ck-content pre.fancy-code-bright {
	background: #dddfe0;
	color: #000;
	box-shadow: 5px 5px 0 #b3b3b3;
}

.ag-cell {
	text-align: center;
}

.ag-header-cell-label .ag-header-cell-text {
	text-align: center;
	width: 100%;
}

.ag-root-wrapper {
	/* border-radius: 10px; */
}

.ag-pivot-mode-panel {
	display: none;
}

.ag-watermark {
	display: none;
}

.ag-details-row {
	padding: 5px;
}

.ag-details-grid {
	min-height: 100px;
}

.sick-days-warning {
	color: red;
}

.sick-days-breach {
	color: red;
}

/* 修复 AG Grid 侧边栏被遮挡的问题 */
.ag-root-wrapper {
	overflow: visible !important;
}

.ag-root-wrapper-body {
	overflow: visible !important;
}

/* 修复列菜单浮窗被遮挡 - 只提升 z-index，不改变定位方式 */
.ag-column-menu,
.ag-popup,
.ag-context-menu,
.ag-menu {
	z-index: 1000 !important;
}

/* 调整 AG Grid tooltip 位置，避免遮挡双击操作 */
.ag-tooltip {
	-webkit-transform: translateY(15px) !important;
	        transform: translateY(15px) !important;
}


/* 容器：包裹label和textarea，提供定位上下文 */
.general_textarea_textareaContainer__SpvN8 {
	position: relative;
	width: '100%'; /* 自定义宽度 */
}

/* Textarea样式重置与基础样式 */
.general_textarea_textareaContainer__SpvN8 textarea {
	padding: 16px 12px 8px; /* 顶部留空间给浮动后的label */
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 16px;
	box-sizing: border-box;
	outline: none;
	background: #fff; /* 确保label浮动时背景覆盖边框 */
}

/* 焦点状态：边框高亮 */
.general_textarea_textareaContainer__SpvN8 textarea:focus {
	border-color: #595959; /* MUI主色调 */
	box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.2); /* 焦点光晕 */
}

/* 标签基础样式：绝对定位覆盖在textarea上方 */
.general_textarea_textareaContainer__SpvN8 label {
	position: absolute;
	left: 12px;
	top: 16px; /* 与textarea的padding-top对齐 */
	font-size: 14px;
	color: #666;
	pointer-events: none; /* 避免点击label干扰textarea焦点 */
	transition: all 0.2s ease; /* 过渡动画 */
	background: #fff; /* 覆盖textarea的边框 */
	padding: 0 4px; /* 避免文字与边框重叠 */
}

/* 触发浮动：1.有焦点 2.有内容（placeholder隐藏） */
.general_textarea_textareaContainer__SpvN8 textarea:focus + label,
.general_textarea_textareaContainer__SpvN8 textarea:not(:placeholder-shown) + label {
	top: -8px; /* 向上浮动 */
	left: 8px; /* 左移微调 */
	font-size: 12px; /* 字体缩小 */
	color: #595959; /* 高亮颜色 */
}

/* 占位符样式（可选） */
.general_textarea_textareaContainer__SpvN8 textarea::-webkit-input-placeholder {
	color: transparent; /* 隐藏占位符（因为label替代了提示） */
}
.general_textarea_textareaContainer__SpvN8 textarea::placeholder {
	color: transparent; /* 隐藏占位符（因为label替代了提示） */
}

html,
body,
#root {
	width: 100%;
	height: 100%;
}

.MuiTabs-scrollButtons.Mui-disabled {
	opacity: 0.3;
}

.MuiAutocomplete-popupIndicator {
	width: 30px;
	height: 30px;
}

.MuiAutocomplete-clearIndicator {
	width: 30px;
	height: 30px;
}

.MuiFormLabel-root {
	line-height: 0.85rem;
}

.ant-upload,
.ant-upload-select {
	width: 100%;
}
.css-c2guzk-MuiAutocomplete-root .MuiOutlinedInput-root.MuiInputBase-sizeSmall .MuiAutocomplete-input {
	padding: 4.5px 4px 4.5px 8px;
}
.react-datepicker {
	font-size: 13px;
	width: 100%;
}

.react-datepicker__month-container {
	float: none;
	width: 100%;
}

.react-datepicker__header {
	padding: 8px 0;
	text-align: center;
	width: 100%;
}

.react-datepicker__current-month {
	font-size: 14px;
	padding: 5px;
}

.react-datepicker__day-names {
	display: flex;
	justify-content: space-around;
	margin-bottom: 5px;
	width: 100%;
}

.react-datepicker__day-name {
	padding: 6px 0;
	font-size: 13px;
	text-align: center;
	flex: 1 1;
}

.react-datepicker__week {
	display: flex;
	justify-content: space-around;
	align-items: center;
	margin: 0;
	padding: 0;
	width: 100%;
}

.react-datepicker__month {
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	width: 100%;
}

.react-datepicker__day {
	height: 45px;
	padding: 0;
	margin: 1px 2px;
	line-height: 1;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	flex: 1 1;
}

/* 选中状态样式 */
.react-datepicker__day--selected {
	background-color: #2278fc;
	color: #fff;
}

.react-datepicker__day--selected:hover {
	background-color: #043fad;
}

.react-datepicker__day--selected span {
	color: #fff !important;
}

.react-datepicker__day--today {
	border: 1px solid #d3d3d3;
	border-radius: 0.3rem;
}

.react-datepicker__day--today.react-datepicker__day--selected {
	border: none;
}

/* inline 模式下的特殊处理 */
.react-datepicker--inline {
	width: 100%;
}

.react-datepicker__container {
	width: 100%;
}

.ant-tabs-nav-operations {
	display: none !important;
}

.tab-layout .ant-tabs-nav {
	margin-bottom: 0;
}

