.app-main {
	color: #181c32;
	-webkit-font-smoothing: auto;
}

.app-main .btn:not(.btn-sm):not(.btn-icon):not(.w-100) {
	min-width: 4.75rem;
}

.app-main .text-gray-500,
.app-main .text-gray-600,
.app-main .text-gray-700,
.app-main .text-gray-800 {
	color: #252f4a !important;
}

.app-header {
	background-color: #ffffff;
	border-bottom: 1px solid #eff2f5;
}

.oms-banner {
	flex-shrink: 0;
}

.oms-banner img {
	height: 44px;
	width: auto;
	object-fit: contain;
}

/* 로고 이미지·이름만 칸 안에서 자른다. 로고 칸 전체를 자르면 경계에 걸친 사이드바 접기 버튼의 절반이 잘려 눌리지 않는다. */
.app-sidebar-logo > a {
	overflow: hidden;
}

/* 최근 수집 로그·알림 상자: 띄어쓰기 없는 긴 주소(쿠팡 오류 등)가 화면을 가로로 늘리지 않게 줄을 바꾼다. */
.oms-log-body {
	min-width: 0;
}
.oms-log-msg,
.alert {
	overflow-wrap: anywhere;
}

/* 휴대폰·태블릿에서 표가 화면보다 넓으면, 표가 든 카드 안에서만 가로로 스크롤한다(페이지 전체가 넓어져 잘리거나 축소되지 않게). */
@media (max-width: 991.98px) {
	.card-body:has(table) {
		overflow-x: auto;
	}
	/* 카드 머리줄의 검색 줄(마켓·검색 칸·버튼)도 한 줄로 고정하지 않고 넘치면 다음 줄로 내린다. */
	.card-header > .card-title.d-flex {
		flex-wrap: wrap;
	}
}

/* 휴대폰: 목록의 긴 주문번호는 8자리씩 한 줄로(oms_order_no_html). 그보다 넓은 화면에서는 붙어서 한 줄이다. */
@media (max-width: 767.98px) {
	.oms-no {
		display: block;
	}
}

.app-sidebar-logo img {
	object-fit: cover;
}

.oms-stat-metrics {
	display: flex;
	justify-content: space-evenly;
	align-items: flex-start;
	text-align: center;
	gap: 0.75rem;
}

.oms-stat-metrics a {
	flex: 1 1 0;
	min-width: 0;
	color: inherit;
	text-decoration: none;
}

.oms-stat-value {
	font-size: 2.5rem;
	font-weight: 700;
	line-height: 1.15;
	color: #111111;
	-webkit-font-smoothing: auto;
}

.oms-stat-value.oms-stat-money {
	font-size: 1.6rem;
	white-space: nowrap;
}

.oms-stat-label {
	margin-top: 0.35rem;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
	color: #252f4a;
	-webkit-font-smoothing: auto;
}

.oms-stat-foot {
	padding-top: 0;
	border: 0;
	text-align: center;
	font-size: 0.95rem;
	font-weight: 600;
	color: #252f4a;
	-webkit-font-smoothing: auto;
}

.oms-stat-foot.oms-stat-alert,
.oms-stat-foot.oms-stat-alert a {
	color: #f1416c;
	font-size: 1.25rem;
	font-weight: 700;
}
.oms-stat-foot a {
	color: #252f4a;
	font-weight: 600;
	text-decoration: none;
}

.oms-sync-times {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: baseline;
	column-gap: 1rem;
}

.oms-sync-naver {
	text-align: left;
}

.oms-sync-cafe24 {
	text-align: center;
}

.oms-sync-coupang {
	text-align: right;
}

/* 접었다 펴는 카드 머리(재고 화면 자동 차감·자동 반영) */
.oms-acc-head {
	cursor: pointer;
}

.oms-acc-head .oms-acc-arrow::before {
	content: '▲';
	font-size: 0.75rem;
}

.oms-acc-head.collapsed .oms-acc-arrow::before {
	content: '▼';
}

@media (max-width: 767.98px) {
	.oms-sync-times {
		flex-direction: column;
		row-gap: 0.25rem;
	}

	.oms-sync-coupang, .oms-sync-cafe24 {
		text-align: left;
	}
}

.oms-order-line {
	display: grid;
	grid-template-columns: 8.25rem minmax(0, 1fr);
	column-gap: 1rem;
	align-items: start;
	padding: 0.7rem 0;
	border-bottom: 1px solid #d8dde6;
}

.oms-order-line:first-child {
	padding-top: 0;
}

.oms-order-line dt {
	margin: 0;
	font-weight: 700;
}

.oms-order-line dd {
	margin: 0;
}

.oms-qty-many {
	display: inline-block;
	font-size: 2em;
	font-weight: 800;
	line-height: 1.1;
	color: #d92121;
}

.oms-thumb {
	display: inline-block;
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 6px;
	background: #eef0f4;
	vertical-align: middle;
}

.badge-light-purchase {
	color: #8a6417;
	background-color: #f6edd8;
}

.form-control.form-control-solid,
.form-select.form-select-solid {
	background-color: #ffffff;
	border-color: #c4cada;
	color: #252f4a;
}

.oms-wait {
	position: fixed;
	inset: 0;
	z-index: 2000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.oms-wait[hidden] {
	display: none !important;
}

.oms-wait-box {
	width: 72px;
	height: 72px;
	border-radius: 12px;
	background: #ffffff;
	box-shadow: 0 8px 24px rgba(24, 28, 50, 0.18);
	display: flex;
	align-items: center;
	justify-content: center;
}

.oms-wait-spin {
	width: 28px;
	height: 28px;
	border: 3px solid #e1e3ea;
	border-top-color: var(--bs-primary);
	border-radius: 50%;
	animation: oms-wait-spin 0.7s linear infinite;
}

@keyframes oms-wait-spin {
	to {
		transform: rotate(360deg);
	}
}

.dropdown.show > .form-control.form-control-solid,
.form-control.form-control-solid:active,
.form-control.form-control-solid.active,
.form-control.form-control-solid:focus,
.form-control.form-control-solid.focus,
.dropdown.show > .form-select.form-select-solid,
.form-select.form-select-solid:active,
.form-select.form-select-solid.active,
.form-select.form-select-solid:focus,
.form-select.form-select-solid.focus {
	background-color: #ffffff;
	border-color: var(--bs-primary);
	color: #252f4a;
}

/* 상단 흐르는 글 */
#kt_app_header_container > div.flex-grow-1 {
	min-width: 0;
}
.oms-ticker {
	flex: 1 1 0%;
	min-width: 0;
	overflow: hidden;
	margin: 0 1.5rem;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
	mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}
.oms-ticker[hidden] {
	display: none !important;
}
.oms-ticker-track {
	display: inline-block;
	white-space: nowrap;
	animation: oms-marquee var(--oms-ticker-dur, 60s) linear infinite;
}
.oms-ticker:hover .oms-ticker-track {
	animation-play-state: paused;
}
.oms-ticker-item {
	display: inline-block;
	margin-right: 2.5rem;
	font-size: 0.95rem;
	color: #252f4a;
	text-decoration: none;
}
.oms-ticker-item b {
	color: var(--bs-primary);
}
.oms-ticker-item.is-alert b {
	color: #f1416c;
}
a.oms-ticker-item:hover {
	text-decoration: underline;
}
@keyframes oms-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}
.oms-sound-wrap {
	position: relative;
	flex-shrink: 0;
	margin-right: 1rem;
}
.oms-sound-toggle {
	flex-shrink: 0;
	white-space: nowrap;
}
.oms-sound-panel {
	position: absolute;
	top: calc(100% + 0.5rem);
	right: 0;
	z-index: 1500;
	width: 340px;
	max-width: 90vw;
	padding: 1.1rem 1.25rem;
	background: #ffffff;
	border: 1px solid #dbdfe9;
	border-radius: 0.75rem;
	box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.18);
	text-align: left;
}
.oms-sound-panel[hidden] {
	display: none !important;
}
.oms-sound-title {
	font-size: 1.1rem;
	font-weight: 700;
	color: #111111;
	margin-bottom: 0.75rem;
}
.oms-sound-row {
	margin-bottom: 0.85rem;
}
.oms-sound-label {
	font-size: 0.85rem;
	font-weight: 600;
	color: #78829d;
	margin-bottom: 0.3rem;
}
.oms-sound-file {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
}
.oms-sound-filename {
	flex: 1 1 100%;
	font-size: 0.85rem;
	color: #252f4a;
	word-break: break-all;
}
.oms-sound-vol {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}
.oms-sound-volnum {
	min-width: 3.2rem;
	text-align: right;
	font-weight: 700;
	color: #252f4a;
}
.oms-sound-btns {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
}
.oms-sound-msg {
	min-height: 1.2rem;
	font-size: 0.85rem;
	color: var(--bs-success);
}
.oms-sound-msg.is-error {
	color: #f1416c;
}
.oms-sound-hint {
	margin-top: 0.4rem;
	font-size: 0.78rem;
	color: #99a1b7;
	line-height: 1.4;
}
.oms-sound-toggle.is-on {
	background-color: var(--bs-success-light);
	color: var(--bs-success);
}

/* 새 주문·요청 팝업 */
.oms-live-overlay {
	position: fixed;
	inset: 0;
	z-index: 2000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.72);
	padding: 1rem;
}
.oms-live-panel {
	width: 560px;
	max-width: 100%;
	max-height: 90vh;
	overflow: auto;
	background: #ffffff;
	border-radius: 0.75rem;
	padding: 1.75rem 2rem;
	box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.35);
}
.oms-live-title {
	font-size: 1.6rem;
	font-weight: 700;
	color: #111111;
	margin-bottom: 0.25rem;
}
.oms-live-group {
	margin-top: 1.25rem;
}
.oms-live-group-title {
	font-weight: 700;
	font-size: 1.1rem;
	color: var(--bs-primary);
	margin-bottom: 0.5rem;
}
.oms-live-group.is-alert .oms-live-group-title {
	color: #f1416c;
}
.oms-live-row {
	display: block;
	padding: 0.5rem 0;
	border-bottom: 1px dashed #dbdfe9;
	color: #252f4a;
	text-decoration: none;
	font-size: 0.95rem;
}
.oms-live-row:hover {
	background: #f9f9f9;
}
.oms-live-row small {
	display: block;
	color: #78829d;
}
.oms-live-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1.5rem;
	color: #78829d;
	font-size: 0.9rem;
}

/* ---- 로고 톤(숲 초록·오커·크림). 테마 변수를 덮어써 버튼·탭·배지·링크 색을 한 번에 맞춘다. ---- */
:root,
[data-bs-theme=light] {
	--bs-primary: #2f5d3a;
	--bs-primary-active: #254a2e;
	--bs-primary-light: #e8efe5;
	--bs-primary-clarity: rgba(47, 93, 58, 0.2);
	--bs-primary-inverse: #ffffff;
	--bs-primary-rgb: 47, 93, 58;
	--bs-text-primary: #2f5d3a;
	--bs-link-color: #2f5d3a;
	--bs-link-color-rgb: 47, 93, 58;
	--bs-link-hover-color: #254a2e;
	--bs-link-hover-color-rgb: 37, 74, 46;
	--bs-info: #b8862b;
	--bs-info-active: #9c7022;
	--bs-info-light: #f7efdc;
	--bs-info-clarity: rgba(184, 134, 43, 0.2);
	--bs-info-inverse: #ffffff;
	--bs-info-rgb: 184, 134, 43;
	--bs-text-info: #9c7022;
	--bs-success: #4f8a3a;
	--bs-success-active: #3f722e;
	--bs-success-light: #edf4e7;
	--bs-success-clarity: rgba(79, 138, 58, 0.2);
	--bs-success-inverse: #ffffff;
	--bs-success-rgb: 79, 138, 58;
	--bs-text-success: #3f722e;
	--bs-warning: #c9962e;
	--bs-warning-active: #b0821f;
	--bs-warning-light: #f8eed6;
	--bs-warning-clarity: rgba(201, 150, 46, 0.2);
	--bs-warning-inverse: #ffffff;
	--bs-warning-rgb: 201, 150, 46;
	--bs-text-warning: #9c7022;
	--bs-app-bg-color: #faf6ef;
}

/* 사이드바: 크림 바탕(로고 바탕색 계열), 초록은 선택·아이콘 포인트로만. 아래쪽에 초록·황금 잎 두 장을 연하게 깐다. */
[data-kt-app-layout=dark-sidebar] .app-sidebar {
	background-color: #fbf7f0;
	border-right: 1px solid #ebe1cf;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M18 128 C18 74 62 40 128 44 C122 110 84 148 18 128 Z' fill='%234f8a3a' fill-opacity='0.10'/%3E%3Cpath d='M22 124 C58 104 92 80 124 48' stroke='%234f8a3a' stroke-opacity='0.16' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3Cpath d='M96 162 C86 104 122 62 186 56 C190 120 154 162 96 162 Z' fill='%23c9962e' fill-opacity='0.14'/%3E%3Cpath d='M100 158 C122 128 150 96 182 62' stroke='%23c9962e' stroke-opacity='0.20' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right -30px bottom 90px;
	background-size: 250px 250px;
}
[data-kt-app-layout=dark-sidebar] .app-sidebar .app-sidebar-logo { border-bottom: 1px solid #ebe1cf; }
[data-kt-app-layout=dark-sidebar] .app-sidebar .app-sidebar-logo .text-white { color: #2f5d3a !important; }
[data-kt-app-layout=dark-sidebar] .app-sidebar .menu .menu-item .menu-link,
[data-kt-app-layout=dark-sidebar] .app-sidebar .menu .menu-item .menu-link .menu-title { color: #2b3a2e; }
[data-kt-app-layout=dark-sidebar] .app-sidebar .menu .menu-item .menu-link .menu-icon i { color: #5f855a; }
[data-kt-app-layout=dark-sidebar] .app-sidebar .menu .menu-item .menu-link .menu-arrow:after,
[data-kt-app-layout=dark-sidebar] .app-sidebar .menu .menu-item.here > .menu-link .menu-arrow:after,
[data-kt-app-layout=dark-sidebar] .app-sidebar .menu .menu-item.show > .menu-link .menu-arrow:after { background-color: #5f855a; }
[data-kt-app-layout=dark-sidebar] .app-sidebar .menu .menu-item .menu-link:hover:not(.disabled):not(.active),
[data-kt-app-layout=dark-sidebar] .app-sidebar .menu .menu-item.here > .menu-link { background-color: #f1eadc; }
[data-kt-app-layout=dark-sidebar] .app-sidebar .menu .menu-item .menu-link.active { background-color: #e3ecdf; }
[data-kt-app-layout=dark-sidebar] .app-sidebar .menu .menu-item .menu-link.active .menu-title,
[data-kt-app-layout=dark-sidebar] .app-sidebar .menu .menu-item.here > .menu-link .menu-title { color: #2f5d3a; }
[data-kt-app-layout=dark-sidebar] .app-sidebar .menu .menu-item .menu-link.active .menu-icon i,
[data-kt-app-layout=dark-sidebar] .app-sidebar .menu .menu-item.here > .menu-link .menu-icon i { color: #b8862b; }
/* 크림 바탕: 테마가 펼침·마우스 올림 상태에 쓰는 흰 글자·아이콘·화살표를 초록으로 바꾼다(안 그러면 안 보인다). */
[data-kt-app-layout=dark-sidebar] .app-sidebar .menu .menu-item.show > .menu-link .menu-title,
[data-kt-app-layout=dark-sidebar] .app-sidebar .menu .menu-item.hover:not(.here) > .menu-link:not(.disabled):not(.active):not(.here) .menu-title,
[data-kt-app-layout=dark-sidebar] .app-sidebar .menu .menu-item:not(.here) .menu-link:hover:not(.disabled):not(.active):not(.here) .menu-title { color: #2f5d3a; }
[data-kt-app-layout=dark-sidebar] .app-sidebar .menu .menu-item.show > .menu-link .menu-icon i,
[data-kt-app-layout=dark-sidebar] .app-sidebar .menu .menu-item.hover:not(.here) > .menu-link:not(.disabled):not(.active):not(.here) .menu-icon i,
[data-kt-app-layout=dark-sidebar] .app-sidebar .menu .menu-item:not(.here) .menu-link:hover:not(.disabled):not(.active):not(.here) .menu-icon i { color: #2f5d3a; }
[data-kt-app-layout=dark-sidebar] .app-sidebar .menu .menu-item.here > .menu-link .menu-arrow:after,
[data-kt-app-layout=dark-sidebar] .app-sidebar .menu .menu-item.show > .menu-link .menu-arrow:after,
[data-kt-app-layout=dark-sidebar] .app-sidebar .menu .menu-item.hover:not(.here) > .menu-link:not(.disabled):not(.active):not(.here) .menu-arrow:after,
[data-kt-app-layout=dark-sidebar] .app-sidebar .menu .menu-item:not(.here) .menu-link:hover:not(.disabled):not(.active):not(.here) .menu-arrow:after { background-color: #5f855a; }
[data-kt-app-layout=dark-sidebar] .app-sidebar .menu .menu-item.hover:not(.here) > .menu-link:not(.disabled):not(.active):not(.here),
[data-kt-app-layout=dark-sidebar] .app-sidebar .menu .menu-item:not(.here) .menu-link:hover:not(.disabled):not(.active):not(.here) { background-color: #f1eadc; }
/* 크림 바탕에서도 로그아웃 버튼과 아래 글자가 보이게 */
[data-kt-app-layout=dark-sidebar] .app-sidebar .app-sidebar-footer .btn-light { background-color: #ffffff; border: 1px solid #ddd0b8; color: #2b3a2e; }
[data-kt-app-layout=dark-sidebar] .app-sidebar .app-sidebar-footer .text-gray-600 { color: #6b7a6c !important; }

/* 수집 로그 페이지 번호도 로고 톤(배포 119) */
.pagination .page-item.active .page-link { background-color: var(--bs-primary); border-color: var(--bs-primary); color: #fff; }
.pagination .page-item:not(.active):not(.disabled) .page-link:hover { color: var(--bs-primary); }

/* 대시보드 나란한 카드 높이 맞춤(카드 아래 여백 mb-5 = 1.25rem 만큼 뺀다, 배포 120) */
@media (min-width: 1200px) {
	.oms-row-eq > [class*="col-"] > .card { height: calc(100% - 1.25rem); }
}

/* 상단 푸시·알림음 버튼이 둘이 되어 휴대폰에서는 버튼을 작게 하고 화면 제목(본문에도 있다)은 숨긴다(배포 142) */
@media (max-width: 575.98px) {
	#oms-push-toggle, #oms-sound-toggle { padding: 0.3rem 0.5rem; font-size: 0.8rem; white-space: nowrap; }
	.oms-page-title { display: none; }
}
