@font-face {
	font-family: 'Pretendard';
	src: url('/fonts/Pretendard.woff') format('woff');
	font-display: swap;
}

:root {
	--color-primary: #4A90E2;
	--color-primary-hover: #357ABD;
	--color-primary-light: #eef5ff;
	--color-success: #2ecc71;
	--color-danger: #e74c3c;
	--color-danger-dark: #c62828;
	--color-warning: #f39c12;
	--text-main: #333333;
	--text-dark: #1e293b;
	--text-muted: #64748b;
	--text-light: #94a3b8;
	--bg-main: #ffffff;
	--bg-sub: #f4f6fa;
	--bg-card: #f8fafc;
	--border-light: #e2e8f0;
	--border-main: #cbd5e1;
	--font-family-main: 'Pretendard', -apple-system, BlinkMacSystemFont,
		system-ui, Roboto, sans-serif;
	--font-size-base: 14px;
	--font-size-sm: 13px;
	--font-size-xs: 12px;
	--font-size-lg: 16px;
	--font-size-xl: 18px;
	--font-size-title: 24px;
	--radius-sm: 4px;
	--radius-md: 8px;
	--radius-lg: 12px;
	--radius-xl: 16px;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	font-family: var(--font-family-main);
	letter-spacing: -0.02em;
}

li {
	list-style-type: none;
}

a {
	color: #000;
	text-decoration: none;
}

input::-webkit-outer-spin-button, input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

body {
	line-height: 1.2;
	font-size: var(--font-size-base);
	background-color: var(--bg-main);
}

.ref-mark {
	font-size: 1.1rem;
	color: var(--text-main);
	font-weight: 400;
}

.rank-summary-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr); /* 6칸으로 나누기 */
	background-color: var(--bg-main);
	margin-bottom: 20px;
	border-top: 1px solid #dee2e6;
	border-left: 1px solid #dee2e6;
}

.rank-summary-grid .rank-item {
	display: flex;
	flex-direction: column;
}

.rank-summary-grid .symbol-cell {
	border-right: 1px solid #dee2e6;
	border-bottom: 1px solid #dee2e6;
	text-align: center;
	font-size: 20px;
	font-variant-emoji: text;
}

.rank-summary-grid .horse-name-cell {
	border-right: 1px solid #dee2e6;
	padding: 8px 5px 0 5px;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	color: #495057;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rank-summary-grid .gate-cell {
	border-right: 1px solid #dee2e6;
	border-bottom: 1px solid #dee2e6;
	padding: 10px 5px;
	text-align: center;
	font-size: var(--font-size-xl);
	font-weight: 800;
	display: flex;
	justify-content: center;
	align-items: center;
}

.rank-summary-grid .symbol-row td:nth-child(1) .ref-mark,
	.rank-summary-grid .symbol-row td:nth-child(2) .ref-mark {
	font-size: 0.8rem;
}

.rank-summary-grid .symbol-row td:nth-child(3) .ref-mark {
	font-size: 0.8rem;
}

.rank-summary-grid .symbol-row td:nth-child(4) .ref-mark {
	font-size: 0.85rem;
}

.rank-summary-grid .symbol-row td:nth-child(5) .ref-mark {
	font-size: 1.15rem;
}

.rank-summary-grid .symbol-row td:nth-child(6) .ref-mark {
	font-size: 0.75rem;
	font-weight: 600;
}

.global-admin-bar {
	background-color: #2c3e50;
	color: var(--bg-main);
	z-index: 2000;
	padding: 10px 3%;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: var(--font-size-xs);
	gap: 8px;
}

.global-admin-bar span i {
	margin-right: 5px;
}

.switch-link {
	color: #ff9f43;
	font-weight: 700;
	text-decoration: underline;
}

.switch-link i {
	margin-left: 5px;
}

/* login */
.login-background {
	width: 100%;
	min-height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
	background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.login-box-container {
	width: 100%;
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 40px 20px;
}

.login-box {
	width: 100%;
	max-width: 400px;
	padding: 40px;
	background-color: var(--bg-main);
	border-radius: var(--radius-xl);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
	text-align: center;
}

.login-box h3 {
	font-size: var(--font-size-title);
	font-weight: 700;
	color: var(--text-main);
	margin-bottom: 25px;
	text-align: left;
}

.login-form {
	margin-bottom: 20px;
	text-align: left;
}

.login-form>span {
	display: block;
	font-size: var(--font-size-base);
	font-weight: 600;
	color: #666;
	margin-bottom: 8px;
}

.login-form>span>span {
	display: inline-block;
	font-size: var(--font-size-xs);
	font-weight: 500;
	margin-left: 10px;
}

.login-form input {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid #ddd;
	border-radius: var(--radius-md);
	outline: none;
	font-size: var(--font-size-base);
	transition: border-color 0.3s;
}

.login-form input:focus {
	border-color: var(--color-primary);
}

.checkbox {
	display: flex;
	align-items: center;
	margin-bottom: 25px;
	cursor: pointer;
}

.checkbox input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin-right: 8px;
	cursor: pointer;
}

.checkbox label {
	font-size: var(--font-size-base);
	color: #555;
	cursor: pointer;
}

input[type="button"] {
	width: 100%;
	padding: 15px;
	background-color: var(--color-primary);
	color: white;
	border: none;
	border-radius: var(--radius-md);
	font-size: var(--font-size-lg);
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.3s, transform 0.1s;
}

input[type="button"]:hover {
	background-color: var(--color-primary-hover);
}

input[type="button"]:active {
	transform: scale(0.98);
}

.login-links {
	margin-top: 25px;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 15px;
}

.login-links a {
	font-size: var(--font-size-sm);
	color: #888;
	transition: color 0.2s;
	text-decoration: none;
}

.login-links a:hover {
	color: var(--color-primary);
	text-decoration: underline;
}

.login-links .divider {
	width: 1px;
	height: 12px;
	background-color: #ddd;
}

.close-btn {
	position: absolute;
	top: 15px;
	right: 20px;
	font-size: 28px;
	font-weight: bold;
	color: #aaa;
	cursor: pointer;
}

.inner-btn {
	width: 80px;
	background-color: #2c3e50;
	color: white;
	border: none;
	border-radius: var(--radius-md);
	cursor: pointer;
	font-size: var(--font-size-sm);
	font-weight: 600;
	display: inline-block;
	align-items: center;
	justify-content: center;
	margin: 0 auto;
}

.inner-btn:hover {
	background-color: var(--color-primary);
}

.logout {
	cursor: pointer;
}

/* join */
.join-box {
	max-width: 650px !important;
	text-align: left;
}

.join-box h3 {
	border-bottom: 2px solid var(--border-light);
	padding-bottom: 15px;
	margin-bottom: 25px;
}

.terms-group {
	margin-bottom: 25px;
}

.terms-group h4 {
	font-size: var(--font-size-base);
	color: var(--text-main);
	margin-bottom: 10px;
	font-weight: 700;
}

.terms-box {
	width: 100%;
	height: 120px;
	overflow-y: auto;
	border: 1px solid var(--border-main);
	padding: 15px;
	background: var(--bg-card);
	font-size: var(--font-size-sm);
	color: var(--text-muted);
	margin-bottom: 10px;
	border-radius: var(--radius-sm);
	line-height: 1.5;
}

.terms-check {
	display: flex;
	align-items: center;
	cursor: pointer;
	font-size: var(--font-size-base);
	color: var(--color-danger);
	font-weight: 700;
}

.terms-check input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin-right: 8px;
	cursor: pointer;
	accent-color: var(--color-primary);
}

.notice-text {
	font-size: var(--font-size-sm);
	color: var(--text-light);
	margin-bottom: 25px;
}

.btn-area {
	display: flex;
	gap: 10px;
}

.btn-area input[type="button"] {
	flex: 1;
	margin-top: 0;
}

.btn-cancel {
	background-color: var(--border-main) !important;
	color: var(--text-main) !important;
}

.btn-cancel:hover {
	background-color: #94a3b8 !important;
	color: white !important;
}

.input-group {
	display: flex;
	gap: 10px;
}

.input-group input {
	flex: 1;
}

.input-group .inner-btn {
	margin: 0;
	width: 100px;
}

.readonly-input {
	background-color: #f1f3f5 !important;
	color: #666 !important;
	cursor: not-allowed;
	font-weight: 700;
}

.notice-text {
	font-size: var(--font-size-sm);
	color: var(--text-light);
	margin-bottom: 25px;
}

.btn-area {
	display: flex;
	gap: 10px;
	margin-top: 30px;
}

.btn-area input[type="button"] {
	flex: 1;
	margin-top: 0;
}

.btn-cancel {
	background-color: var(--border-main) !important;
	color: var(--text-main) !important;
}

.btn-cancel:hover {
	background-color: #94a3b8 !important;
	color: white !important;
}

/* mypage */
.premium-profile-wrap {
	background: #ffffff;
	border: 1px solid var(--border-light);
	border-radius: var(--radius-lg);
	padding: 0 30px;
}

.premium-profile-row {
	display: flex;
	align-items: center;
	padding: 15px 0;
	border-bottom: 1px solid #f1f5f9;
}

.premium-profile-row:last-child {
	border-bottom: none;
}

.premium-label {
	width: 150px;
	font-size: 15px;
	font-weight: 700;
	color: #475569;
	flex-shrink: 0;
}

.premium-input {
	flex: 1;
	max-width: 400px;
}

.premium-input input {
	width: 100%;
	background-color: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 14px 16px;
	color: #1e293b;
	font-size: 15px;
	transition: border-color 0.2s;
}

.premium-input input:focus {
	border-color: var(--color-primary);
	outline: none;
	box-shadow: 0 0 0 3px var(--color-primary-light);
}

.premium-input input.readonly-input {
	background-color: #f8fafc !important;
	color: #94a3b8 !important;
	border-color: #e2e8f0;
	cursor: not-allowed;
}

.btn-primary-large {
	width: 100%;
	max-width: 320px;
	display: block;
	margin: 0 auto;
	padding: 20px;
	background-color: #2c3e50;
	color: white;
	border: none;
	border-radius: var(--radius-md);
	font-size: 18px;
	font-weight: bold;
	cursor: pointer;
	transition: background-color 0.3s;
}

.btn-primary-large:hover {
	background-color: #1e293b;
}

.premium-profile-wrap {
	background-color: #fdfafb;
	border-color: #fce8e8;
}

.premium-profile-wrap .premium-pw {
	color: #d32f2f;
}

.premium-profile-wrap .premium-label span {
	font-size: 12px;
	font-weight: normal;
	color: #888;
}

.premium-profile-wrap .premium-input {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* menu */
.sidebar-nav {
	list-style: none;
	padding: 20px 0;
	max-width: 1300px;
	width: 95%;
	margin: 0 auto;
}

.sidebar-nav ul {
	display: flex;
}

.menu-item {
	display: block;
	padding: 12px 25px;
	color: #bdc3c7;
	text-decoration: none;
	font-size: 15px;
	transition: all 0.3s;
	text-align: center;
}

.menu-item:hover {
	color: #34495e;
}

.menu-item.active {
	color: var(--color-primary);
	font-weight: 900;
	font-size: var(--font-size-xl);
}

/* header start */
.header-white {
	background: var(--bg-main);
	z-index: 1000;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	border-top: 5px solid #ffd700;
}

.header-white>div {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 0 auto;
}

.header-white .logo img {
	height: 50px;
}

.admin-menu {
	display: flex;
	align-items: center;
}

.admin-menu .menu-bar {
	margin-right: 30px;
}

.pc-nav {
	display: flex;
	gap: 35px;
	font-weight: 700;
	height: 100%;
	align-items: center;
	font-size: 17px;
}

.pc-nav span {
	cursor: pointer;
	color: var(--text-light);
	height: 100%;
	display: flex;
	align-items: center;
	position: relative;
	transition: color 0.2s;
}

.pc-nav span:hover {
	color: var(--text-dark);
}

.pc-nav span.active {
	color: #2c5178;
}

.pc-nav span.active::after {
	content: '';
	position: absolute;
	bottom: -10px;
	left: 0;
	width: 100%;
	height: 3px;
	background: #2c5178;
}

.user-area {
	background: #f1f5f9;
	padding: 6px 16px;
	border-radius: 20px;
	font-size: var(--font-size-base);
	border: 1px solid var(--border-light);
	color: #475569;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s;
}

.user-area:hover {
	background: var(--border-light);
}

.dropdown-container {
	position: relative;
}

.dropdown-trigger {
	display: flex;
	align-items: center;
	gap: 10px;
}

.dropdown-menu {
	display: none;
	position: absolute;
	top: 120%;
	right: 0;
	background-color: var(--bg-main);
	min-width: 160px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	border-radius: var(--radius-md);
	border: 1px solid var(--border-light);
	overflow: hidden;
	z-index: 2000;
}

.dropdown-container.open .dropdown-menu {
	display: block;
}

.dropdown-item {
	padding: 12px 16px;
	cursor: pointer;
	color: #475569;
	font-size: var(--font-size-sm);
	display: flex;
	align-items: center;
	gap: 10px;
	transition: background-color 0.2s;
}

.dropdown-item:hover {
	background-color: #f1f5f9;
	color: #2563eb;
}

.mobile-bottom-nav {
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 65px;
	background: var(--bg-main);
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
	z-index: 999;
	border-top: 1px solid #f1f5f9;
}

.m-nav-item {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: var(--text-light);
	font-size: 11px;
	font-weight: bold;
	cursor: pointer;
	transition: color 0.2s;
}

.m-nav-item i {
	font-size: 20px;
	margin-bottom: 4px;
}

.m-nav-item.active {
	color: #2563eb;
}

.drawer-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 2000;
}

.right-side-drawer {
	position: fixed;
	top: 0;
	right: -100%;
	width: 350px;
	height: 100%;
	background: var(--bg-main);
	z-index: 2000;
	transition: right 0.3s ease;
	box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.right-side-drawer.open {
	right: 0;
}

.drawer-header .close-btn {
	border: none;
	background: none;
	cursor: pointer;
	font-size: var(--font-size-xl);
	color: var(--text-main);
	position: static;
}

.drawer-header {
	display: flex;
	justify-content: space-between;
	padding: 20px;
	border-bottom: 1px solid #eee;
}

.drawer-header .drawer-logo {
	display: flex;
	gap: 5px;
	align-items: center;
}

.drawer-header .drawer-logo .greeting {
	font-size: var(--font-size-xl);
}

.drawer-content {
	height: calc(100vh - 150px);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 20px;
	font-size: 15px;
}

.drawer-content::-webkit-scrollbar {
	display: none;
}

.drawer-point-box {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: var(--bg-card);
	padding: 15px;
	border: 1px solid var(--border-light);
	border-radius: var(--radius-md);
	margin-bottom: 20px;
}

.drawer-point-box .point-label {
	font-size: var(--font-size-lg);
	color: var(--text-muted);
}

.drawer-point-box .point-value {
	font-size: 22px;
	font-weight: bold;
	color: #e11d48;
	margin-top: 4px;
}

.drawer-point-box .point-right {
	display: flex;
	gap: 6px;
}

.drawer-point-box .point-right button {
	padding: 6px 10px;
	border-radius: var(--radius-sm);
	cursor: pointer;
	font-size: 17px;
}

.drawer-list {
	list-style: none;
}

.drawer-list li {
	padding: 15px 0;
	cursor: pointer;
	font-weight: 600;
	font-size: var(--font-size-lg);
}

.drawer-value {
	font-size: var(--font-size-title);
}

.drawer-footer {
	position: absolute;
	bottom: 0;
	width: 100%;
	display: flex;
}

.drawer-footer button {
	flex: 1;
	padding: 15px;
	background: #2c3e50;
	color: var(--bg-main);
	border: none;
	cursor: pointer;
}

.drawer-section {
	margin-top: 20px;
	border: none;
	background: transparent;
}

.drawer-section .section-title {
	padding: 10px;
	color: var(--text-muted);
	font-weight: 700;
}

.drawer-section .service-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin-top: 10px;
}

.drawer-section .grid-item {
	background: var(--bg-main);
	padding: 12px;
	border-radius: var(--radius-md);
	text-align: center;
	cursor: pointer;
	border: 1px solid var(--border-light);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	height: 80px;
}

.drawer-section .grid-item i {
	color: var(--text-muted);
	margin-bottom: 6px;
}

.drawer-section .grid-item div {
	font-weight: 600;
	line-height: 1.2;
	word-break: keep-all;
}

.drawer-menu {
	margin-bottom: 20px;
}

.drawer-menu .section-title {
	padding: 10px;
	color: var(--text-muted);
	font-weight: 700;
}

.drawer-menu .list {
	background: var(--bg-main);
	border: 1px solid var(--border-light);
	border-radius: var(--radius-md);
	overflow: hidden;
}

.drawer-menu .list>div {
	padding: 15px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.drawer-menu .list>div span {
	font-weight: 600;
}

.drawer-menu .list>div i {
	color: var(--border-main);
}
/* header end */

/* footer start */
.footer {
	text-align: center;
	font-size: 12px;
	color: #666;
	padding: 20px;
	width: 100%;
	margin-top: 50px;
	border-top: 1px solid #eee;
	background-color: #f9f9f9;
	line-height: 1.5;
}
/* footer end */
header {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	border-bottom: 2px solid #2c3e50;
	margin-bottom: 25px;
	padding-bottom: 15px;
}

header h1 {
	font-size: var(--font-size-title);
	color: #2c3e50;
	font-weight: 800;
	letter-spacing: -0.5px;
}

.race-list-container {
	max-width: 1300px;
	width: 95%;
	margin: 20px auto 40px;
	background: var(--bg-main);
	padding: 30px;
	border-radius: var(--radius-lg);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08)
}

.race-list-container>div:has(.top-select) {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 20px;
}

.top-select {
	padding: 10px 30px 10px 15px;
	font-size: var(--font-size-base);
	border: 1px solid #ddd;
	border-radius: var(--radius-md);
	background-color: #f9f9f9;
	appearance: none;
	background-image: url('/images/arrow_down.svg');
	background-repeat: no-repeat;
	background-position: right 12px center;
	cursor: pointer;
	transition: all 0.2s;
}

.top-select:focus {
	border-color: var(--color-primary);
	background-color: var(--bg-main);
	outline: none;
}

.mobile-date-tabs {
	display: none;
}

.header-info-box {
	border-bottom: 1px solid #ddd;
	margin-bottom: 10px;
}

.info-table {
	width: 100%;
	border-collapse: collapse;
}

.info-table td {
	padding: 10px;
	border: 1px solid #eee;
	font-size: var(--font-size-base);
}

.info-title {
	text-align: center;
	font-weight: bold;
}

.info-text {
	text-align: center;
	font-weight: bold;
	color: var(--text-main);
}

.info-class {
	font-weight: bold;
	color: var(--text-main);
	text-align: center;
}

.prize-wrapper {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	border: 1px solid #eee;
	background: #ffffff;
	margin-bottom: 20px;
	border-radius: 4px;
	overflow: hidden;
}

.prize-label {
	background-color: #f0f7fd;
	color: #495057;
	font-weight: 600;
	padding: 2px 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-right: 1px solid #d1d9e6;
	min-width: 70px;
	font-size: var(--font-size-xs);
}

.prize-val {
	padding: 8px 4px;
	text-align: center;
	border-right: 1px solid #eee;
	display: flex;
	justify-content: center;
	font-size: var(--font-size-xs);
}

.rank-label {
	display: inline-flex;
	width: 13px;
	height: 13px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: 1px solid #888;
	text-align: center;
	color: #888;
	margin-right: 5px;
}

.prize-amount {
	color: #334155;
	font-weight: 700;
	font-size: var(--font-size-xs);
}

.loc-seoul-text {
	color: #3765b3 !important;
}

.loc-seoul-bg {
	background-color: #ecf5f9 !important;
}

.loc-seoul-border {
	border-top: 2px solid #3765b3 !important;
}

.loc-busan-text {
	color: #2faa1d !important;
}

.loc-busan-bg {
	background-color: #e9f3d9 !important;
}

.loc-busan-border {
	border-top: 2px solid #2faa1d !important;
}

.loc-jeju-text {
	color: #dc1920 !important;
}

.loc-jeju-bg {
	background-color: #fbeae6 !important;
}

.loc-jeju-border {
	border-top: 2px solid #dc1920 !important;
}

/* ==================================
   AI 분석 리포트 전용 스타일
================================== */
.ai-analysis-report {
	display: none;
	margin-bottom: 20px;
	border: 2px solid var(--color-primary);
	box-shadow: 0 3px 12px rgba(74, 144, 226, 0.12);
}

.ai-model-scores-card {
	display: none;
}

.ai-analysis-report .summary-header {
	background-color: var(--color-primary-light);
	color: #0d47a1;
	border-bottom: 1px solid #c3dafe;
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: var(--font-size-lg);
	padding: 12px 18px;
	font-weight: 600;
}

.ai-analysis-report .summary-body {
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.analysis-section h3 {
	font-size: 15px;
	font-weight: 700;
	margin-bottom: 10px;
	color: var(--text-main);
}

.analysis-section h3 i {
	margin-right: 5px;
}

.icon-orange {
	color: var(--color-warning);
}

.icon-gold {
	color: #f1c40f;
}

.pace-flow {
	display: flex;
	align-items: center;
	gap: 30px;
}

.pace-flow h3 {
	margin-bottom: 0;
}

.ai-total-review-text {
	font-size: var(--font-size-base);
	line-height: 1.6;
	color: var(--text-main);
	font-weight: 500;
	word-break: keep-all;
}

.ai-divider {
	height: 1px;
	background: #eee;
	width: 100%;
}

.ai-rank-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 15px;
}

.rank-summary-grid {
	width: 100%;
	border-collapse: collapse;
	text-align: center;
	background-color: var(--bg-main);
	margin-bottom: 20px;
	table-layout: fixed;
}

.rank-summary-grid td {
	border: 1px solid #dee2e6;
	padding: 12px 5px;
	vertical-align: middle;
}

.rank-summary-grid .symbol-row td {
	font-size: 20px;
	font-variant-emoji: text;
}

.rank-summary-grid .gate-row td {
	font-size: var(--font-size-xl);
	font-weight: 800;
}

.gate-text-1 {
	color: #000000;
}

.gate-text-2 {
	color: #FBC02D;
}

.gate-text-3 {
	color: #E53935;
}

.gate-text-4 {
	color: #212121;
}

.gate-text-5 {
	color: #1E88E5;
}

.gate-text-6 {
	color: #43A047;
}

.gate-text-7 {
	color: #795548;
}

.gate-text-8 {
	color: #D81B60;
}

.gate-text-9 {
	color: #8E24AA;
}

.gate-text-10 {
	color: #03A9F4;
}

.gate-text-11 {
	color: #000000;
}

.gate-text-12 {
	color: #000000;
}

.gate-text-13 {
	color: #E53935;
}

.gate-text-14 {
	color: #212121;
}

.gate-text-15 {
	color: #1E88E5;
}

.gate-text-16 {
	color: #43A047;
}

.rank-summary-grid td.bg-yellow {
	background-color: #fffdf5;
}

.rank-summary-grid td.bg-orange {
	background-color: #fff8f3;
}

.rank-summary-grid td.bg-green {
	background-color: #f1f8e9;
}

.rank-summary-grid td.bg-blue {
	background-color: #e3f2fd;
}

.rank-summary-grid td.bg-purple {
	background-color: #f3e5f5;
}

.rank-card {
	padding: 12px;
	border-radius: var(--radius-md);
}

.rank-card.rank-1 {
	background: #fffdf5;
	border: 1px solid #fbe6a2;
}

.rank-card.rank-2 {
	background: #f8f9fa;
	border: 1px solid #dee2e6;
}

.rank-card.rank-3 {
	background: #fff8f3;
	border: 1px solid #fbdcbe;
}

.rank-4 {
	background-color: #f1f8e9;
}

.rank-5 {
	background-color: #e3f2fd;
}

.rank-6 {
	background-color: #f3e5f5;
}

.rank-title {
	font-weight: 800;
	margin-bottom: 6px;
	font-size: var(--font-size-base);
}

.rank-1 .rank-title {
	color: #d4af37;
}

.rank-2 .rank-title {
	color: #9e9e9e;
}

.rank-3 .rank-title {
	color: #cd7f32;
}

.rank-4 .rank-title {
	color: #388E3C;
}

.rank-5 .rank-title {
	color: #1976D2;
}

.rank-6 .rank-title {
	color: #7B1FA2;
}

.rank-horse-name {
	color: var(--text-main);
	margin-left: 4px;
}

.rank-desc {
	font-size: var(--font-size-sm);
	color: #666;
	margin: 0;
	line-height: 1.4;
}

.table-wrapper {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border-radius: var(--radius-md);
	border: 1px solid #eee;
	margin: 20px 0;
}

.main-data-table {
	width: 100%;
	border-collapse: collapse;
}

.main-data-table th {
	background-color: #f8f9fa;
	color: #555;
	font-weight: 600;
	padding: 15px 7px;
	border-bottom: 2px solid #edf2f7;
}

.main-data-table td {
	padding: 14px 10px;
	border-bottom: 1px solid #f1f1f1;
	text-align: center;
}

.blue-text {
	color: var(--color-primary);
	font-weight: 700;
	text-decoration: none;
	padding: 4px 12px;
	border-radius: var(--radius-sm);
}

.blue-text.hover:hover {
	background: var(--color-primary);
	color: var(--bg-main);
}

.main-data-table td.ai-column {
	background-color: #e3f2fd !important;
	font-weight: bold;
}

.race-status-badge {
	display: none;
}

.mobile-only-top-card {
	display: none;
}

.current-race-highlight {
	background-color: #fff9db !important;
	border: 2px solid #fab005 !important;
	transition: all 0.3s ease;
}

.current-race-highlight td {
	font-weight: bold;
	color: #e67e22 !important;
}

.search-filter-bar {
	display: flex;
	gap: 10px;
	align-items: center;
}

.search-btn {
	padding: 10px 20px;
	background-color: #2c3e50;
	color: white;
	border: 1px solid transparent;
	border-radius: var(--radius-md);
	font-weight: 600;
	cursor: pointer;
	transition: 0.3s;
}

.search-btn:hover {
	background-color: var(--color-primary);
}

.round-link-cell {
	text-align: left !important;
	padding-left: 20px !important;
}

.round-btn {
	display: inline-block;
	width: 32px;
	height: 32px;
	line-height: 32px;
	text-align: center;
	background-color: #f1f3f5;
	color: #495057;
	text-decoration: none;
	border-radius: 6px;
	margin: 4px;
	font-weight: 600;
	transition: all 0.2s;
}

.round-btn:hover {
	background-color: var(--color-primary);
	color: white;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(74, 144, 226, 0.3);
}

.summary-card {
	background: var(--bg-main);
	border: 1px solid #e0e0e0;
	border-radius: var(--radius-md);
	overflow: hidden;
}

.summary-header {
	background-color: #f8f9fa;
	padding: 12px 16px;
	font-weight: 700;
	font-size: 15px;
	color: var(--text-main);
	border-bottom: 1px solid #eee;
}

.betting-container {
	display: flex;
	gap: 12px;
}

.betting-card {
	flex: 1;
	padding: 12px 15px;
	border-radius: 10px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.betting-card.stable {
	background-color: var(--bg-card);
	border: 1px solid #d0e3ff;
}

.betting-card.stable .bet-label {
	color: #0d47a1;
	font-weight: 800;
	font-size: 15px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.pass-badge-inline {
	background-color: #fff1f0;
	color: #cf1322;
	border: 1px solid #ffa39e;
	padding: 2px 6px;
	border-radius: var(--radius-sm);
	font-size: var(--font-size-xs);
	font-weight: bold;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	box-shadow: 0 1px 2px rgba(207, 19, 34, 0.05);
	margin-left: 10px;
}

.betting-card.high-return {
	background-color: var(--bg-card);
	border: 1px solid #ffe3e3;
}

.betting-card.high-return .bet-label {
	color: var(--color-danger-dark);
	font-weight: 800;
	font-size: 15px;
}

.bet-desc p {
	margin: 4px 0;
	font-size: var(--font-size-sm);
	line-height: 1.5;
}

.bet-record-row {
	display: flex;
	align-items: center;
	margin-left: 10px;
	font-size: var(--font-size-base);
	color: #444;
	margin-bottom: 8px;
	flex-wrap: wrap;
	gap: 5px;
}

.bet-record-row .bet-type {
	width: 75px;
	font-weight: 600;
	color: #555;
}

.bet-record-row .bet-combo {
	width: 90px;
}

.bet-record-row .bet-combo b {
	color: #222;
}

.bet-record-row .bet-div {
	color: #ddd;
	margin: 0 5px;
}

.bet-record-row .bet-odds {
	width: 130px;
}

.bet-record-row .bet-arrow {
	color: #bbb;
	font-size: var(--font-size-xs);
	margin: 0 5px;
}

.bet-record-row .bet-mark {
	font-weight: bold;
	width: 80px;
	text-align: right;
}

.bet-group-box {
	margin-bottom: 12px;
	border-radius: 6px;
	overflow: hidden;
}

.bet-group-box .bet-record-row {
	background: transparent !important;
	margin: 0 !important;
	border-radius: 0 !important;
	padding: 8px 12px;
}

.bet-group-box .bet-record-row.has-bottom-border {
	border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.bet-group-box.type-qun {
	background-color: #e3f2fd;
}

.bet-group-box.type-qun .bet-type {
	color: #1565c0;
}

.bet-group-box.type-qpl {
	background-color: #e8f5e9;
}

.bet-group-box.type-qpl .bet-type {
	color: #2e7d32;
}

.bet-group-box.type-exc {
	background-color: #fff3e0;
}

.bet-group-box.type-exc .bet-type {
	color: #ef6c00;
}

.bet-group-box.type-tri {
	background-color: #f3e5f5;
}

.bet-group-box.type-tri .bet-type {
	color: #6a1b9a;
}

.bet-group-box.type-trf {
	background-color: #ffebee;
}

.bet-group-box.type-trf .bet-type {
	color: var(--color-danger-dark);
}

.bet-record-row.hit-row .hit-combo, .bet-record-row.hit-row .bet-type,
	.bet-record-row.hit-row .bet-combo b, .bet-record-row.hit-row .bet-odds,
	.bet-record-row.hit-row .bet-mark {
	color: #1d4ed8 !important;
	font-weight: bold;
}

.bet-record-row.hit-row .bet-arrow i {
	color: #2563eb;
}

.ai-log-title {
	font-weight: 800;
	color: var(--text-dark);
	margin-right: 4px;
}

.bet-content {
	font-size: 15px;
	font-weight: 700;
	color: var(--text-main);
	letter-spacing: 0.5px;
}

.summary-body {
	padding: 16px;
}

.betting-layout-wrapper {
	display: flex;
	gap: 20px;
	align-items: flex-start;
}

.betting-left-panel {
	flex: 1;
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.betting-right-panel {
	flex: 1;
	width: 100%;
	height: auto;
	display: none;
	margin-top: 0 !important;
}

.horse-circle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	width: 20px;
	height: 20px;
	margin: 0 1.5px;
	background-color: var(--bg-main);
	color: var(--text-main);
	border: 1px solid #999;
	font-size: var(--font-size-xs);
	font-weight: 700;
}

.odds-item-group {
	display: inline-flex;
	align-items: center;
	margin-top: 3px;
	margin-bottom: 3px;
}

.compact-odds-container {
	background: var(--bg-main);
	border: 1px solid var(--border-main);
	border-radius: var(--radius-md);
	overflow: hidden;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
	font-family: 'Malgun Gothic', sans-serif;
}

.compact-table {
	width: 100%;
	border-collapse: collapse;
	text-align: center;
	font-size: 15px;
}

.compact-table th {
	background: var(--bg-card);
	padding: 12px 8px;
	color: var(--text-dark);
	font-weight: 800;
	border-bottom: 1px solid var(--border-main);
	border-right: 1px solid var(--border-main);
}

.compact-table th:last-child {
	border-right: 0;
}

.compact-table td {
	padding: 5px 8px;
	border-bottom: 1px solid var(--border-light);
	vertical-align: middle;
}

.compact-table tr:last-child td {
	border-bottom: none;
}

.compact-table td:first-child {
	font-weight: bold;
	color: #334155;
	width: 25%;
	border-right: 1px solid var(--border-light);
	background: #fdfdfd;
}

.compact-table .finish-btn {
	width: 30px;
	height: 30px;
	margin-left: 8px;
	vertical-align: middle;
	cursor: pointer;
}

.odds-cell-wrap {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 5px;
}

.odds-item {
	display: flex;
	align-items: center;
	gap: 4px;
}

.c-badge-group {
	display: flex;
	gap: 1px;
}

.c-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 1px solid var(--text-muted);
	font-size: 11px;
	font-weight: 900;
	color: var(--text-dark);
	background: var(--bg-main);
	line-height: 1;
}

.odds-val {
	font-size: 15px;
	font-weight: 700;
	color: var(--text-dark);
}

/* paging */
.pagination-container {
	display: flex;
	justify-content: center;
	margin-top: 30px;
}

.pagination {
	display: flex;
	list-style: none;
	gap: 5px;
}

.page-item {
	display: flex;
}

.page-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	text-decoration: none;
	color: #7f8c8d;
	background-color: var(--bg-main);
	border: 1px solid #dee2e6;
	border-radius: var(--radius-md);
	font-size: var(--font-size-base);
	font-weight: 500;
	transition: all 0.2s;
}

.page-link:hover {
	background-color: #f8f9fa;
	color: var(--color-primary);
	border-color: var(--color-primary);
}

.page-item.active .page-link {
	background-color: var(--color-primary);
	color: white;
	border-color: var(--color-primary);
	font-weight: 700;
	box-shadow: 0 4px 10px rgba(74, 144, 226, 0.3);
}

.page-link i {
	font-size: var(--font-size-xs);
}

@keyframes blink {
	0% { opacity: 1; }
	50% { opacity: 0.5; }
	100% { opacity: 1; }
}
.current-race-highlight .start-time-cell {
	animation: blink 1s linear infinite;
}

.current-race-highlight .start-time-cell::after {
	content: " • 진행 ";
	color: #d32f2f;
	animation: blink 1s linear infinite;
}

.ai-premium-loader {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	backdrop-filter: blur(10px);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	overflow: hidden;
}

.loader-container {
	width: 100%;
	max-width: 600px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.horse-sprint-core {
	position: relative;
	width: 250px;
	height: 250px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.flipped-horse {
	display: block;
	width: 100%;
	margin: 0 auto;
	transform: scaleX(-1);
}

.speed-spark {
	position: absolute;
	z-index: -1;
	height: 3px;
	background: linear-gradient(90deg, var(--color-primary), transparent);
	opacity: 0.8;
	border-radius: 2px;
}

.sp-1 {
	width: 140px;
	top: 40%;
	right: -50px;
	animation: spark-flow 0.3s linear infinite;
}

.sp-2 {
	width: 180px;
	top: 60%;
	right: -70px;
	animation: spark-flow 0.3s linear infinite 0.1s;
}

.sp-3 {
	width: 120px;
	top: 80%;
	right: -40px;
	animation: spark-flow 0.3s linear infinite 0.2s;
}

@keyframes spark-flow { 
	0% { transform: translateX(50px); opacity: 0; }
	50% { opacity: 1; }
	100% { transform: translateX(-250px); opacity: 0;}
}

.ai-title {
	font-size: 1.2rem;
	font-weight: 800;
	color: var(--bg-main);
	letter-spacing: 6px;
	margin-bottom: 25px;
	text-transform: uppercase;
	word-break: keep-all;
	display: flex;
	align-items: end;
	justify-content: center;
}

.ai-title span {
	color: var(--color-primary);
	margin-right: 8px;
	text-shadow: 1px 1px 2px rgba(74, 144, 226, 0.2);
	display: flex;
	align-items: end;
}

.loading-fill {
	width: 100%;
	height: 100%;
	background: var(--color-primary);
	box-shadow: 0 0 10px var(--color-primary);
	animation: bar-move 1.5s infinite cubic-bezier(0.65, 0, 0.35, 1);
}

@keyframes bar-move { 
	0% { transform: translateX(-100%); }
	100% { transform: translateX(100%); }
}

.ai-msg {
	font-size: 15px;
	color: rgba(255, 255, 255, 0.4);
	letter-spacing: 1px;
	font-weight: 300;
	padding: 0 10px;
}

.popup-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	z-index: 9999;
	justify-content: center;
	align-items: center;
	backdrop-filter: blur(2px);
}

.popup-container {
	display: flex;
	flex-direction: column;
	background: var(--bg-main);
	padding: 0;
	border-radius: var(--radius-lg);
	max-width: 95%;
	max-height: 90vh;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
	overflow: hidden;
}

.popup-container.horse-type {
	width: 800px;
}

.popup-container.jockey-type {
	width: 800px;
}

.popup-header {
	display: flex;
	justify-content: space-between;
	padding: 20px 25px 15px;
	border-bottom: 2px solid #f0f0f0;
	margin-bottom: 0;
	flex-shrink: 0;
}

#horsePopupContent, #jockeyPopupContent {
	padding: 15px 25px 25px;
	overflow-y: auto;
	flex: 1;
}

.popup-header h3 {
	margin: 0;
	font-size: var(--font-size-xl);
	color: var(--text-main);
}

.popup-header h3 span {
	color: #2563eb;
	font-weight: bold;
}

.popup-header .fa-xmark {
	cursor: pointer;
	font-size: 20px;
	color: #999;
}

.horse-info-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	font-size: var(--font-size-base);
	margin-bottom: 15px;
}

.info-badge {
	background: var(--bg-card);
	padding: 10px;
	border-radius: var(--radius-md);
}

.stat-section {
	border-top: 1px dashed #ccc;
	padding-top: 15px;
}

.stat-section h4 {
	margin: 0 0 10px 0;
	font-size: 15px;
	color: #475569;
}

.stat-flex-box {
	display: flex;
	justify-content: space-around;
	text-align: center;
	background: #eff6ff;
	padding: 15px;
	border-radius: var(--radius-md);
}

.stat-flex-box div span {
	font-size: var(--font-size-xs);
	color: var(--text-muted);
}

.stat-flex-box div b {
	font-size: 15px;
}

.highlight-red {
	color: #d32f2f;
	font-weight: bold;
}

.jockey-profile-area {
	display: flex;
	gap: 15px;
	align-items: center;
	margin-bottom: 15px;
}

.jockey-img-wrapper {
	width: 80px;
	height: 80px;
	background: var(--border-light);
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
	border: 2px solid var(--border-main);
}

.jockey-img-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: none;
}

.jockey-img-wrapper i {
	font-size: 35px;
	color: var(--text-light);
}

.jockey-basic-info {
	font-size: var(--font-size-base);
	flex: 1;
	background: var(--bg-card);
	padding: 12px;
	border-radius: var(--radius-md);
}

.jockey-basic-info div {
	margin-bottom: 6px;
}

.jockey-basic-info div:last-child {
	margin-bottom: 0;
}

.popup-table {
	width: 100%;
	text-align: center;
	font-size: var(--font-size-sm);
	border-collapse: collapse;
	border-radius: var(--radius-md);
	overflow: hidden;
	border-style: hidden;
	box-shadow: 0 0 0 1px var(--border-light);
}

.popup-table th {
	padding: 10px;
	border: 1px solid var(--border-light);
	background: #f1f5f9;
}

.popup-table td {
	padding: 10px;
	border: 1px solid var(--border-light);
}

.popup-table td.row-title {
	font-weight: bold;
	background: #fafafa;
}

.history-box {
	margin-top: 12px;
	font-size: var(--font-size-sm);
	color: #444;
	background: #fdfae7;
	padding: 12px;
	border-radius: var(--radius-md);
	border: 1px solid #fef08a;
}

.history-box .highlight-gold {
	color: #ca8a04;
	font-weight: bold;
}

.history-box .divider {
	color: var(--border-main);
	margin: 0 5px;
}

.ai-log-category {
	background-color: #475569;
	color: var(--bg-main);
	padding: 2px 7px;
	border-radius: var(--radius-sm);
	font-size: 0.85em;
	font-weight: bold;
	margin-right: 4px;
}

.ai-log-arrow {
	color: var(--text-light);
	margin: 0 4px;
	font-size: 0.9em;
}

.ai-log-pipe {
	color: var(--border-main);
	margin: 0 8px;
}

.recent-cell-main {
	line-height: 1.4;
	font-size: var(--font-size-sm);
}

.recent-record {
	font-size: var(--font-size-base);
	font-weight: bold;
	line-height: 1.4;
}

.recent-corners {
	color: #475569;
	letter-spacing: -0.5px;
	vertical-align: middle;
	font-size: var(--font-size-sm);
}

.recent-rank {
	font-size: var(--font-size-lg);
	line-height: 1.4;
}

.recent-odds {
	font-size: var(--font-size-xs);
	color: var(--text-muted);
}

.gate-badge-mini {
	width: 18px;
	height: 18px;
	line-height: 16px;
	font-size: 11px;
	margin: 0 3px;
	vertical-align: middle;
}

.dot {
	font-size: 0.4em;
	margin-right: 3px;
}

.remain-time-text, .refresh {
	display: none;
}

.dist-overview-table {
	table-layout: fixed !important;
	width: 100%;
	border-collapse: separate !important;
	border-spacing: 0;
	border-top: 2px solid #adb5bd;
	border-bottom: 2px solid #adb5bd;
	border-bottom-left-radius: var(--radius-md);
	border-bottom-right-radius: var(--radius-md);
	color: #2c3e50;
}

.dist-overview-table th, .dist-overview-table td {
	white-space: nowrap !important;
	word-break: keep-all !important;
	padding: 7px;
	border-right: 1px solid #ccc;
	border-bottom: 1px solid #ccc;
	border-top: none !important;
	border-left: none;
	background-color: var(--bg-main);
}

.dist-overview-table tbody td:first-child, .dist-overview-table thead tr:first-child th:first-child
	{
	border-left: none;
	border-right: 2px solid #adb5bd !important;
}

.dist-overview-table thead th {
	background-color: #f8f9fa;
}

.dist-overview-table td:last-child {
	border-right: 2px solid #adb5bd;
}

.dist-overview-table tbody tr:last-child td {
	border-bottom: none;
}

.dist-overview-table tbody td:nth-child(1) {
	width: 40px !important;
	text-align: center;
}

.dist-overview-table thead tr:first-child th:first-child {
	border-top-left-radius: 6px;
}

.dist-overview-table thead tr:first-child th:last-child {
	border-top-right-radius: 6px;
	border-right: 2px solid #adb5bd;
}

.dist-overview-table tbody tr:last-child td:first-child {
	border-bottom-left-radius: 6px;
}

.dist-overview-table tbody tr:last-child td:last-child {
	border-bottom-right-radius: 6px;
}

@media ( min-width : 769px) {
	.dist-overview-table {
		border-left: 2px solid #adb5bd;
	}
}

#prevDistTh, #currDistTh, #nextDistTh {
	width: 10%;
	min-width: 80px;
}

.table-section-title {
	display: flex;
	align-items: center;
	padding: 12px 15px;
	margin-top: 20px;
	background-color: #2c3e50;
	color: #ffffff;
	font-size: 18px;
	font-weight: 800;
	letter-spacing: -0.5px;
	border-radius: 8px 8px 0 0;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.table-scroll-wrapper {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.fw-bold {
	font-weight: bold !important;
}

.fw-normal {
	font-weight: normal !important;
}

.text-center {
	text-align: center;
}

.my-10 {
	margin: 10px 0 !important;
}

.horse-detail-table.new-layout {
	width: 100%;
	border-collapse: collapse;
	color: #000;
	line-height: 1.4;
	min-width: max-content;
	border: 2px solid #000;
	display: flex;
	flex-direction: column;
	-webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.horse-detail-table.new-layout td {
	padding: 12px;
	vertical-align: top;
	border-bottom: 1px solid #000;
}

.horse-detail-table.new-layout .horse-row {
	display: flex;
	border-bottom: 2px solid #000;
	min-width: max-content;
	margin-left: -30px;
}

.horse-detail-table.new-layout .horse-gate-no {
	position: sticky;
	top: 0;
	left: 0;
	bottom: 0;
	width: 30px;
	min-width: 30px;
	padding: 12px 0 0 7px;
}

.horse-detail-table.new-layout .horse-row:last-child {
	border-bottom: none;
}

.horse-row.cancelled {
	position: relative;
}

.horse-row.cancelled .col-horse, .horse-row.cancelled .col-jockey {
	opacity: 0.5;
}

.horse-row.cancelled::after {
	content: "출전 취소";
	position: absolute;
	top: 50%;
	left: 9%;
	transform: translate(-50%, -50%) rotate(-15deg);
	color: #ef4444;
	font-size: 1.8rem;
	font-weight: 900;
	letter-spacing: 5px;
	border: 6px solid #ef4444;
	padding: 10px 30px;
	border-radius: 10px;
	pointer-events: none;
	z-index: 10;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.horse-detail-table.new-layout .col-horse {
	width: 250px;
	padding: 5px;
	box-sizing: border-box;
}

.horse-detail-table.new-layout .col-jockey {
	width: 125px;
	padding: 5px;
	border-left: 1px solid #ccc;
	box-sizing: border-box;
	background-color: #eef2f5;
}

.horse-detail-table.new-layout .races-container {
	display: flex;
}

.horse-detail-table.new-layout .race-group {
	display: flex;
	flex-direction: column;
	border-left: 2px solid #000;
	width: 340px;
}

.horse-detail-table.new-layout .col-race-header {
	font-weight: bold;
	padding: 5px;
	border-bottom: 1px solid #ccc;
	font-size: var(--font-size-base);
	text-align: center;
}

.horse-detail-table.new-layout .race-content {
	display: flex;
	flex: 1;
}

.horse-detail-table.new-layout .col-race-list {
	width: 250px;
	padding: 5px;
	box-sizing: border-box;
	background-color: var(--bg-main);
}

.horse-detail-table.new-layout .col-race-result {
	width: 80px;
	padding: 5px;
	border-left: 1px solid #ccc;
	box-sizing: border-box;
	background-color: var(--bg-main);
	text-align: left;
}

.horse-detail-table.new-layout .horse-title {
	width: 100%;
	text-align: justify;
	text-align-last: justify;
	color: #507bc6;
	font-size: var(--font-size-title);
	font-weight: 900;
	margin-bottom: 10px;
}

.horse-detail-table.new-layout .h-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	font-weight: 900;
	vertical-align: middle;
	box-sizing: border-box;
	margin: 0;
}

.horse-detail-table.new-layout .h-name {
	display: inline-block;
	width: 70%;
	text-align-last: justify;
	vertical-align: middle;
	text-justify: inter-character;
	word-break: break-all;
}

.horse-detail-table.new-layout .chk-box-wrap {
	text-align: center;
	display: inline-block;
}

.horse-detail-table.new-layout .horse-chk {
	width: 18px;
	height: 18px;
	cursor: pointer;
	accent-color: #507bc6;
	margin: 0;
	vertical-align: middle;
}

.horse-detail-table.new-layout .info-block {
	line-height: 1.6;
}

.horse-detail-table.new-layout .owner-info {
	margin: 10px 0;
}

.horse-detail-table.new-layout .jockey-horse-stat {
	margin: 10px 0;
}

.horse-detail-table.new-layout .flex-between {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.horse-detail-table.new-layout .divider {
	margin: 8px 0;
}

.horse-detail-table.new-layout .font-bold {
	font-weight: bold;
}

.horse-detail-table.new-layout .desc-text {
	letter-spacing: -0.5px;
	line-height: 1.4;
	word-break: keep-all;
	border-top: 1px solid #000;
}

.horse-detail-table.new-layout .issue-text {
	margin-top: 15px;
}

.horse-detail-table.new-layout .jockey-name {
	color: #507bc6;
	font-size: var(--font-size-xl);
	font-weight: bold;
	margin-bottom: 3px;
}

.horse-detail-table.new-layout .jockey-weight {
	font-size: var(--font-size-lg);
	font-weight: bold;
	margin-bottom: 8px;
}

.horse-detail-table.new-layout .trainer-name {
	font-size: var(--font-size-base);
	font-weight: bold;
	margin-bottom: 5px;
}

.horse-detail-table.new-layout .round-box {
	display: inline-block;
	border: 1px solid #ccc;
	padding: 1px 4px;
	border-radius: var(--radius-sm);
	font-size: var(--font-size-sm);
	background-color: #f9f9f9;
}

.horse-detail-table.new-layout .race-list-new {
	padding: 0;
	margin: 0 0 10px 0;
	list-style: none;
	line-height: 1.5;
}

.horse-detail-table.new-layout .race-list-new li {
	display: flex;
	justify-content: space-between;
}

.horse-detail-table.new-layout .race-list-new li.border-b {
	border-bottom: 1px solid #000;
}

.horse-detail-table.new-layout .pace-text {
	letter-spacing: -0.5px;
	line-height: 1.4;
	margin-bottom: 10px;
}

.horse-detail-table.new-layout .pace-text .jockey-sm {
	font-size: var(--font-size-xs);
}

.horse-detail-table.new-layout .border-top {
	border-top: 1px solid #ccc;
	padding-top: 10px;
}

.horse-detail-table.new-layout .result-rank {
	font-size: var(--font-size-lg);
	font-weight: bold;
	margin-bottom: 5px;
}

.horse-detail-table.new-layout .red-circle {
	color: #cc0000;
	font-weight: 900;
	margin-right: 3px;
}

.horse-detail-table.new-layout .result-sm {
	margin-bottom: 2px;
}

.horse-detail-table.new-layout .dashed-under {
	display: inline-block;
	padding-bottom: 2px;
	margin: 15px 0;
	font-weight: bold;
}

.horse-detail-table.new-layout .odds-text {
	line-height: 1.3;
	margin-bottom: 15px;
}

.horse-detail-table.new-layout .result-time {
	font-weight: bold;
	font-size: var(--font-size-lg);
}

.horse-detail-table.new-layout .youtube-btn .yt-src {
	font-size: 10px;
	color: var(--text-main);
	display: inline-block;
}

.empty-logo-wrapper {
	width: 340px;
	display: flex;
	justify-content: center;
	align-items: center;
	background: #fff;
}

.empty-logo-wrapper .center-logo {
	width: 120px;
	opacity: 0.3;
}

.horse-detail-table.new-layout, .horse-detail-table.new-layout td,
	.horse-detail-table.new-layout .horse-row, .horse-detail-table.new-layout .col-jockey,
	.horse-detail-table.new-layout .race-group, .horse-detail-table.new-layout .col-race-header,
	.horse-detail-table.new-layout .col-race-result, .horse-detail-table.new-layout .border-top
	{
	border-color: #adb5bd !important;
}

.horse-detail-table.new-layout .desc-text {
	border-top: 1px dashed #adb5bd;
	padding-top: 10px;
}

.horse-detail-table.new-layout .race-list-new li.border-b {
	border-bottom: 1px dashed #adb5bd;
}

.horse-detail-table.new-layout .col-horse, .horse-detail-table.new-layout .col-jockey
	{
	background-color: #f1f5f9;
}

.horse-detail-table.new-layout .col-race-header {
	background-color: var(--border-light);
	color: #2c3e50;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	height: 30px;
}

.horse-detail-table.new-layout .horse-title {
	color: #2c3e50;
}

.horse-detail-table.new-layout .jockey-name {
	color: var(--color-primary);
}

.horse-detail-table.new-layout .horse-chk {
	accent-color: var(--color-primary);
}

.rank-result-wrap {
	display: flex;
	gap: 4px;
	justify-content: center;
}

.rank-circle {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: 1px solid #555;
	background-color: var(--bg-main);
	color: var(--text-main);
	font-size: var(--font-size-sm);
	font-weight: 700;
	line-height: 1;
}

.span-sb {
	display: inline-block;
	text-align-last: justify;
	vertical-align: middle;
	text-justify: inter-character;
	word-break: break-all;
}

.news-text {
	font-weight: bold;
	color: #ef4444;
}

.header-left-group {
	display: flex;
	align-items: center;
	gap: 20px;
}

.breaking-news-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	margin-top: 5px;
}

.breaking-news-bar .news-count {
	color: var(--text-main);
	font-weight: bold;
}

.breaking-news-bar .divider {
	color: #ccc;
	font-size: var(--font-size-sm);
	margin: 0 2px;
}

.breaking-news-bar .view-all {
	color: #666;
	font-size: var(--font-size-base);
	font-weight: 600;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color 0.2s;
}

.breaking-news-bar .view-all:hover {
	color: #e11d48;
}

.breaking-page-container {
	max-width: 1300px;
	width: 95%;
	margin: 40px auto;
	background: var(--bg-main);
	padding: 30px;
	border-radius: var(--radius-lg);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.breaking-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 2px solid #2c3e50;
	margin-bottom: 25px;
	padding-bottom: 15px;
}

.breaking-header h2 {
	font-size: var(--font-size-title);
	color: #2c3e50;
	font-weight: 800;
	letter-spacing: -0.5px;
}

.news-tabs {
	display: flex;
	gap: 10px;
	margin-bottom: 25px;
	padding: 0;
	list-style: none;
}

.news-tabs li {
	padding: 10px 24px;
	background: #f8f9fa;
	border: 1px solid #e9ecef;
	border-radius: var(--radius-md);
	font-weight: 700;
	color: #495057;
	cursor: pointer;
	font-size: var(--font-size-base);
	transition: all 0.2s;
	text-align: center;
}

.news-tabs li.active {
	background: var(--color-primary);
	color: var(--bg-main);
	border-color: var(--color-primary);
	box-shadow: 0 4px 10px rgba(74, 144, 226, 0.2);
}

.news-card-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

.news-card {
	background: var(--bg-main);
	border: 1px solid var(--border-light);
	border-radius: var(--radius-lg);
	padding: 20px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
	transition: transform 0.2s, box-shadow 0.2s;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.news-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.card-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}

.race-badge {
	padding: 5px 14px;
	border-radius: 20px;
	font-weight: 800;
	font-size: var(--font-size-sm);
	color: var(--bg-main);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.time-stamp {
	font-size: var(--font-size-sm);
	color: var(--text-light);
	font-weight: 500;
}

.news-main-title {
	font-size: 17px;
	font-weight: 800;
	margin-bottom: 8px;
	color: var(--text-dark);
}

.news-body-desc {
	font-size: 15px;
	color: #475569;
	line-height: 1.6;
	word-break: keep-all;
}

.change-arrow {
	color: var(--text-light);
	margin: 0 8px;
	font-size: var(--font-size-sm);
}

.reason-txt {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px dashed var(--border-light);
	font-size: var(--font-size-base);
	font-weight: 600;
	color: #ef4444;
	background: #fdf2f2;
	padding: 8px 12px;
	border-radius: 6px;
}

.date-tabs {
	display: flex;
	gap: 10px;
	margin-bottom: 15px;
	padding: 0;
	list-style: none;
}

.date-tabs li {
	flex: 1;
	padding: 12px 0;
	background: #f8f9fa;
	border: 1px solid #e9ecef;
	border-radius: var(--radius-md);
	font-weight: 700;
	color: #495057;
	cursor: pointer;
	font-size: 15px;
	transition: all 0.2s;
	text-align: center;
}

.date-tabs li.active {
	background: #2c3e50;
	color: var(--bg-main);
	border-color: #2c3e50;
	box-shadow: 0 4px 10px rgba(44, 62, 80, 0.2);
}

body.ticker-active {
	padding-top: 36px;
}

.win-ticker-bar {
	width: 100%;
	background: #2c3e50;
	color: #ffd700;
	font-size: var(--font-size-base);
	font-weight: bold;
	overflow: hidden;
	white-space: nowrap;
	border-bottom: 2px solid #ffd700;
	min-height: 36px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s ease-in-out, visibility 0.4s;
}

.win-ticker-bar.fixed {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1001;
	border-bottom: 2px solid #ffd700;
}

.win-ticker-bar.show {
	opacity: 1;
	visibility: visible;
}

.ticker-inner {
	max-width: 1300px;
	width: 95%;
	margin: 0 auto;
	overflow: hidden;
	padding: 8px 0;
}

#tickerContent {
	display: inline-block;
	padding-left: 100%;
	animation: ticker-move 20s linear infinite;
}

@keyframes ticker-move { 
	0% {transform: translate(0, 0);}
	100% { transform: translate( -100%, 0 );}
}

.status-upcoming {
	background: #f0fdf4;
	color: #4caf50;
}

.status-ongoing {
	background: #fffbeb;
	color: #d97706;
}

.status-finished {
	background: var(--bg-card);
	color: var(--text-light);
}

.status-closing {
	background: #f0f7ff;
	color: var(--color-primary);
}

.floating-btn-wrap {
	position: fixed;
	right: 20px;
	bottom: 70px;
	z-index: 1999;
	cursor: ew-resize;
	touch-action: none;
	display: none;
	width: 40px;
	height: 40px;
}

.floating-btn-wrap:active {
	cursor: ew-resize;
}

.floating-btn-wrap img {
	width: 100%; border-radius : 50%;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
	border-radius: 50%;
}

.hit-result-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin-bottom: 20px;
}

.hit-search {
	justify-content: flex-start;
	margin-bottom: 25px;
}

.hit-cards {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 15px;
	margin-bottom: 20px;
}

.hit-result-grid .summary-header {
	font-weight: 800;
	font-size: 15px;
	padding: 16px 20px;
	border-bottom: 1px solid #cbd5e1;
	color: #1e293b;
}

.hit-result-grid .no-data {
	text-align: center;
	padding: 50px;
	color: #999;
}

.hit-result-grid .juro {
	display: inline-block;
	border: 1px solid #ccc;
	padding: 1px 4px;
	border-radius: var(--radius-sm);
	font-size: var(--font-size-sm);
	background-color: #f9f9f9;
}

.hit-result-grid .summary-card {
	margin-bottom: 24px;
	background: #fff;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.hit-result-grid .summary-body {
	padding: 0;
}

.hit-result-grid .summary-body table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
}

.hit-result-grid .summary-body table thead {
	background-color: #f8fafc;
}

.hit-result-grid .summary-body table .betting-type {
	width: 120px;
	padding: 12px 15px;
	border-bottom: 1px solid #e2e8f0;
	border-right: 1px solid #e2e8f0;
	text-align: center;
	color: #334155;
	font-weight: 500;
	font-size: 14px;
}

.hit-result-grid .summary-body table .betting-type-nm {
	padding: 10px;
	border-bottom: 1px solid #e2e8f0;
	border-right: 1px solid #e2e8f0;
	text-align: center;
	font-weight: 400;
	color: #475569;
	font-size: 14px;
}

.hit-result-grid .summary-body table .odds {
	padding: 12px 20px;
	border-bottom: 1px solid #e2e8f0;
	text-align: center;
	color: #334155;
	font-weight: 500;
	font-size: 14px;
}

.hit-result-grid .summary-body table .odds-nm {
	padding: 10px;
	border-bottom: 1px solid #e2e8f0;
}

.hit-result-grid .summary-body table .odds-nm>div {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	align-items: center;
}

.hit-result-grid .summary-body table .odds-nm>div .circle {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	font-size: 13px;
	background-color: #fff;
	margin-right: 1px;
}

.hit-result-grid .summary-body thead th {
	padding: 10px;
}

.hit-result-grid .summary-body thead th:nth-child(1) {
	border-right: 1px solid #e2e8f0;
	text-align: center;
}

.hit-result-grid .summary-body thead th:nth-child(2) {
	text-align: left;
	vertical-align: middle;
}

.hit-result-grid .summary-body thead th:nth-child(2)>span {
	display: inline-flex;
	align-items: center;
}

.hit-result-grid .summary-body thead th:nth-child(2) .circle {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	font-size: 13px;
	background-color: #fff;
	margin-right: 1px;
	border: 1px solid #cbd5e1;
}

.pt-charge-wrap {
	max-width: 900px;
	margin: 40px auto;
	padding: 40px 50px;
	background: #fff;
	border-radius: 24px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.pt-header-card {
	display: flex;
	align-items: center;
	background: var(--bg-sub);
	padding: 25px 30px;
	border-radius: 16px;
	margin-bottom: 40px;
}

.pt-header-icon {
	width: 60px;
	height: 60px;
	background: var(--color-primary);
	color: #fff;
	border-radius: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	font-weight: 900;
	margin-right: 20px;
	box-shadow: 0 6px 15px rgba(74, 144, 226, 0.25);
}

.pt-header-info .title {
	font-size: 20px;
	font-weight: 800;
	color: var(--text-dark);
	margin-bottom: 6px;
}

.pt-header-info .title span {
	color: var(--color-primary);
}

.pt-header-info .desc {
	font-size: 14px;
	color: var(--text-muted);
	font-weight: 500;
}

.pt-form-row {
	display: flex;
	align-items: flex-start;
	margin-bottom: 35px;
	border-bottom: 1px solid #f8f9fa;
	padding-bottom: 30px;
}

.pt-form-row:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.pt-form-label {
	width: 180px;
	flex-shrink: 0;
	font-size: 15px;
	font-weight: 800;
	color: var(--text-dark);
	padding-top: 15px;
}

.pt-form-label .req {
	color: var(--color-danger);
	margin-right: 4px;
}

.pt-form-content {
	flex: 1;
}

.pt-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 12px;
}

.pt-radio-card {
	display: block;
	position: relative;
	cursor: pointer;
}

.pt-radio-card input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.pt-card-content-box {
	border: 2px solid var(--border-light);
	border-radius: 14px;
	padding: 16px 10px;
	text-align: center;
	color: var(--text-muted);
	font-weight: 700;
	font-size: 15px;
	transition: all 0.2s ease;
	background: #fff;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pt-radio-card:hover .pt-card-content-box {
	border-color: var(--border-main);
	background: var(--bg-card);
	transform: translateY(-2px);
}

.pt-radio-card input[type="radio"]:checked+.pt-card-content-box {
	border-color: var(--color-primary);
	background: var(--color-primary-light);
	color: var(--color-primary);
	box-shadow: 0 4px 15px rgba(74, 144, 226, 0.15);
	transform: translateY(-2px);
}

.pt-card-content-box .amt {
	font-size: 18px;
	font-weight: 900;
	margin-right: 2px;
}

.pt-radio-card input[type="radio"]:checked+.pt-card-content-box .amt {
	color: var(--color-primary);
}

.pt-input-card {
	border: 2px solid var(--border-light);
	border-radius: 14px;
	padding: 10px 15px;
	display: flex;
	align-items: center;
	transition: all 0.2s ease;
	background: #fff;
}

.pt-input-card:focus-within {
	border-color: var(--color-primary);
	box-shadow: 0 4px 15px rgba(74, 144, 226, 0.15);
}

.pt-input-card input {
	border: none;
	outline: none;
	width: 100%;
	font-size: 18px;
	font-weight: 800;
	color: var(--text-dark);
	text-align: right;
	background: transparent;
}

.pt-input-card span {
	margin-left: 5px;
	color: var(--text-muted);
	font-weight: 700;
	font-size: 15px;
}

.pt-input-group {
	display: flex;
	align-items: center;
	gap: 10px;
}

.pt-input {
	width: 100%;
	max-width: 250px;
	padding: 14px 18px;
	border: 1px solid var(--border-main);
	border-radius: 10px;
	font-size: 15px;
	font-weight: 600;
	outline: none;
	transition: all 0.2s;
	color: var(--text-dark);
}

.pt-input:focus {
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px var(--color-primary-light);
}

.pt-input.readonly {
	background: var(--bg-card);
	color: var(--text-muted);
	border-color: var(--border-light);
	max-width: 100%;
}

.pt-select {
	padding: 14px 18px;
	border: 1px solid var(--border-main);
	border-radius: 10px;
	font-size: 15px;
	font-weight: 600;
	outline: none;
	color: var(--text-dark);
	background: #fff;
	cursor: pointer;
}

.pt-btn-line {
	padding: 14px 20px;
	border: 2px solid var(--color-primary);
	color: var(--color-primary);
	background: #fff;
	border-radius: 10px;
	font-weight: 800;
	cursor: pointer;
	transition: all 0.2s;
	white-space: nowrap;
}

.pt-btn-line:hover {
	background: var(--color-primary-light);
}

.pt-sub-text {
	font-size: 13px;
	color: var(--text-light);
	margin-top: 12px;
	font-weight: 600;
}

.pt-notice-box {
	background: #f8fafc;
	border-radius: 12px;
	padding: 16px 20px;
	color: var(--text-muted);
	font-size: 13px;
	font-weight: 600;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 30px;
	line-height: 1.5;
	border: 1px solid #e2e8f0;
}

.pt-notice-box i {
	color: var(--color-primary);
	margin-top: 2px;
	font-size: 16px;
}

.pt-submit-group {
	display: flex;
	gap: 15px;
	margin-top: 40px;
	justify-content: center;
}

.pt-btn-lg {
	width: 220px;
	padding: 18px;
	border: none;
	border-radius: 12px;
	font-size: 17px;
	font-weight: 800;
	cursor: pointer;
	transition: all 0.2s;
}

.pt-btn-primary {
	background: #2c3e50;
	color: #fff;
}

.pt-btn-primary:hover {
	background: #1a252f;
	transform: translateY(-3px);
	box-shadow: 0 10px 25px rgba(44, 62, 80, 0.2);
}

.pt-btn-secondary {
	background: #f1f5f9;
	color: #475569;
}

.pt-btn-secondary:hover {
	background: #e2e8f0;
}

.pt-policy-box {
	background-color: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 24px 30px;
	margin-top: 40px;
	color: #475569;
	font-size: 14px;
	line-height: 1.8;
	font-weight: 600;
}

.pt-policy-box p {
	margin: 0;
	padding-left: 16px;
	text-indent: -16px;
	word-break: keep-all;
}

.pt-policy-box .highlight {
	color: #e11d48;
	font-weight: 800;
}

.page-container {
	padding: 20px;
}

.page-container .page-title {
	color: #334155;
	font-size: 24px;
	margin-bottom: 20px;
	padding: 20px 0;
}

.notice-list-box {
	border-top: 2px solid #334155;
}

.notice-item {
	padding: 15px 10px;
	border-bottom: 1px solid #cbd5e1;
	display: flex;
	justify-content: space-between;
	cursor: pointer;
}

.notice-item span:first-child {
	color: #1e293b;
}

.notice-item span:last-child {
	font-size: 14px;
	color: #94a3b8;
}

.detail-header {
	border-bottom: 1px solid #cbd5e1;
	padding-bottom: 20px;
	margin-bottom: 20px;
}

.detail-date {
	color: #64748b;
	font-size: 14px;
}

.detail-content {
	padding: 20px 0;
	min-height: 300px;
	line-height: 1.6;
	color: #334155;
	font-size: 16px;
}

.detail-footer {
	margin-top: 30px;
	border-top: 1px solid #cbd5e1;
	padding-top: 20px;
}

.btn-secondary {
	display: block;
	width: 160px;
	margin: 0 auto;
	padding: 12px;
	background-color: #334155;
	color: #ffffff;
	border: none;
	border-radius: var(--radius-md);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	text-align: center;
	transition: background-color 0.2s;
}

.faq-item {
	border-bottom: 1px solid var(--border-light);
}

.faq-question {
	padding: 20px;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: 700;
	color: var(--text-dark);
}

.faq-answer {
	padding: 0 20px;
	max-height: 0;
	overflow: hidden;
	transition: all 0.3s ease;
	background: #f8fafc;
	color: var(--text-muted);
}

.faq-item.active .faq-answer {
	padding: 20px;
	max-height: 200px;
}

.inquiry-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	margin-bottom: 20px;
}

.inquiry-header .page-title {
	display: block;
	padding: 0;
	height: auto;
	margin-bottom: 0;
}

.inquiry-list .notice-item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 15px 10px;
}

.inquiry-list .notice-item span:first-child {
	width: 80px;
}

.inquiry-list .notice-main {
	display: flex;
	align-items: center;
	margin-bottom: 8px;
	width: 100%;
}

.inquiry-list .notice-title {
	font-size: 16px;
	font-weight: 600;
	color: var(--text-dark);
}

.inquiry-list .notice-date {
	width: 100%;
	text-align: right;
	font-size: 13px;
	color: var(--text-light);
}

.btn-secondary-small {
	width: auto;
	padding: 10px 20px;
	margin: 0;
}

.notice-item.empty {
	justify-content: center;
	color: var(--text-light);
}

.status-badge {
	font-size: 12px;
	padding: 2px 8px;
	border-radius: 4px;
	margin-right: 8px;
	font-weight: 600;
	text-align: center;
}

.status-pending {
	background-color: #f1f5f9;
	color: #64748b;
	border: 1px solid #cbd5e1;
}

.status-done {
	background-color: #e0f2fe;
	color: #0369a1;
	border: 1px solid #bae6fd;
}

.admin-nav-buttons {
	max-width: 1300px;
	width: 95%;
	margin: 0 auto 15px;
	display: flex;
	justify-content: space-between;
}

.admin-nav-btn {
	display: none;
	cursor: pointer;
	padding: 8px 16px;
	border-radius: 6px;
	font-weight: 600;
	font-size: 14px;
	transition: all 0.2s ease-in-out;
}

.admin-nav-btn i {
	font-size: 12px;
}

.btn-prev-race {
	background-color: #ffffff;
	color: #475569;
	border: 1px solid #cbd5e1;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-prev-race:hover {
	background-color: #f8fafc;
	border-color: #94a3b8;
	color: #0f172a;
}

.btn-next-race {
	background-color: #1e293b;
	color: #ffffff;
	border: 1px solid #1e293b;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
	margin-left: auto;
}

.btn-next-race:hover {
	background-color: #334155;
}

.info-card-list {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.profile-img-box {
	width: 100%;
	height: 160px;
	background-color: #f1f5f9;
	border-radius: var(--radius-md);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 50px;
	color: #cbd5e1;
	margin-bottom: 15px;
}
.profile-img-box.jockey { color: #94a3b8; }
.profile-img-box.trainer { color: #64748b; }

.info-card-list {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.info-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 800;
	color: #fff;
	margin-bottom: 15px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.info-badge.seoul { background-color: #3765b3; }
.info-badge.busan { background-color: #2faa1d; }
.info-badge.jeju  { background-color: #dc1920; }

.info-name {
	font-size: 19px;
	font-weight: 900;
	color: var(--text-dark);
	margin-bottom: 12px;
}
.info-desc {
	font-size: 14px;
	color: #475569;
	line-height: 1.7;
}
.info-desc span.label {
	display: inline-block;
	width: 65px;
	color: #94a3b8;
	font-weight: 600;
}
.info-footer {
	margin-top: 15px;
	padding-top: 15px;
	border-top: 1px dashed var(--border-light);
	font-size: 14px;
	color: var(--color-primary);
	font-weight: 800;
}

@media (max-width: 1024px) {
	.info-card-list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
	.info-card-list { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.info-name { font-size: 17px; }
}
@media (max-width: 480px) {
	.info-card-list { grid-template-columns: 1fr; }
}

.horse-filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    flex-wrap: wrap;
    gap: 10px;
}

.horse-search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 5px 15px;
    width: 300px;
    max-width: 100%;
}
.horse-search-box input {
    border: none;
    outline: none;
    padding: 8px 0;
    flex: 1;
    font-size: 14px;
}
.horse-search-box button {
    background: none;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    font-size: 16px;
}

.horse-sort-box select {
    padding: 10px 30px 10px 15px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 14px;
    outline: none;
    color: var(--text-dark);
    cursor: pointer;
    background-color: #fff;
}

.hd-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hd-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.hd-card-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #2c3e50;
    padding-bottom: 10px;
}

.hd-sub-title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2c3e50;
}

.hd-text-navy { color: #2c3e50; }
.hd-text-orange { color: #e67e22; }
.hd-bg-navy { background-color: #2c3e50 !important; color: white !important; }

.hd-profile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.hd-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
}
.hd-tags {
    display: flex;
    gap: 10px;
}
.hd-tag {
    background-color: #e2e8f0;
    color: #4a5568;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
}
.hd-rating-box {
    text-align: right;
}
.hd-rating-box .hd-label {
    display: block;
    font-size: 0.9rem;
    color: #7f8c8d;
}
.hd-rating-box .hd-value {
    font-size: 2rem;
    font-weight: bold;
}
.jd-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
	width: 100%;
}

.jd-weight-box {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.jd-weight-label {
    font-size: 13px;
    color: #64748b;
}

.jd-weight-val {
    font-size: 22px;
    font-weight: 800;
}

.jd-mt-15 {
    margin-top: 15px;
}
.hd-summary {
    display: flex;
    justify-content: space-around;
    background-color: #fdfdfd;
}
.hd-summary-item {
    text-align: center;
}
.hd-summary-item i {
    font-size: 1.5rem;
    margin-bottom: 8px;
}
.hd-summary-item .hd-s-label {
    display: block;
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 5px;
}
.hd-summary-item .hd-s-value {
    font-size: 1.2rem;
    font-weight: bold;
}

.hd-info-table, .hd-list-table {
    width: 100%;
    border-collapse: collapse;
}
.hd-info-table th, .hd-info-table td,
.hd-list-table th, .hd-list-table td {
    padding: 12px;
    border: 1px solid #e2e8f0;
    text-align: left;
}
.hd-info-table th, .hd-list-table th {
    background-color: #f8fafc;
    color: #4a5568;
    font-weight: bold;
}
.hd-info-table th { width: 18%; }
.hd-list-table th:first-child { width: 20%; }
.hd-info-table td, .hd-list-table td {
    color: #2d3748;
}

.hd-chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.hd-chart-box {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 15px;
}

.hd-chart-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #4a5568;
}

.jd-rate-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.jd-rate-box {
    display: flex;
    flex-direction: column;
}

.jd-rate-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-weight: bold;
}

.jd-rate-label {
    color: #666;
}

.jd-progress-track {
    width: 100%;
    height: 10px;
    background-color: #eee;
    border-radius: 5px;
    overflow: hidden;
}

.jd-progress-bar {
    height: 100%;
    border-radius: 5px;
}

.jd-win-bar,
.jd-quinella-bar {
    background-color: #00b488;
}

.jd-table-top-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.jd-m-0 {
    margin-bottom: 0 !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.jd-select-box {
    width: 120px;
    height: 36px;
}

.jd-text-center {
    text-align: center;
}

.jd-total-tr {
    background-color: #fdfdfd;
    font-weight: bold;
}

.jd-btn-wrap {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 20px;
}

.jd-full-btn {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    text-align: center;
}

.jd-table-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 5px;
}

.jd-stats-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    white-space: nowrap;
}

.jd-stats-table th, 
.jd-stats-table td {
    padding: 10px 8px;
    border: 1px solid #e2e8f0;
    font-size: 13px;
}

.jd-stats-table th {
    background-color: #f8fafc;
    color: #4a5568;
    font-weight: bold;
}

.jd-stats-table td {
    background-color: #ffffff;
    color: #2d3748;
}

/* ==================================
반응형 모바일 (768px 이하)
================================== */
@media ( max-width : 768px) {
	/* header start */
	.header-white {
		padding: 0 16px;
		height: 60px;
	}
	.header-white .logo {
		font-size: var(--font-size-xl);
	}
	.pc-nav {
		display: none !important;
	}
	.user-area {
		padding: 8px 13px;
	}
	.mobile-bottom-nav {
		display: flex !important;
	}
	/* header end */
	body {
		padding-bottom: 75px;
	}
	.sidebar-nav ul {
		justify-content: space-around;
	}
	.login-box {
		max-height: 80%;
		overflow: auto;
	}
	header {
		flex-direction: column;
		align-items: flex-start;
	}
	header h1 {
		font-size: 20px;
		width: 100%;
	}
	header h1.thisWeek {
		display: flex !important;
		justify-content: space-between;
		align-items: center;
	}
	header h1.thisWeek .refresh {
		display: flex;
		align-items: center;
		font-size: var(--font-size-sm);
	}
	header h1.thisWeek .refresh-icon {
		display: inline-block;
		font-size: 22px;
		margin-left: 0;
		color: var(--text-muted);
		margin-left: 8px;
	}
	.global-admin-bar {
		flex-direction: column;
	}
	.global-admin-bar span {
		font-size: var(--font-size-sm);
	}
	.global-admin-bar .switch-link {
		font-size: var(--font-size-sm);
		margin-top: 5px;
	}
	.top-select.date-select {
		display: none;
	}
	.mobile-date-tabs {
		display: flex;
		width: 100%;
		padding: 0;
		margin: 15px 0;
		list-style: none;
		overflow-x: hidden;
		gap: 7px;
		flex-wrap: wrap;
	}
	.mobile-date-tabs li.tab-item {
		flex: 1;
		text-align: center;
		padding: 10px 2px;
		background: #f1f3f5;
		font-size: var(--font-size-sm);
		font-weight: 600;
		color: #555;
		cursor: pointer;
		border: 1px solid #edf2f7;
		transition: all 0.2s;
		white-space: nowrap;
		border-radius: var(--radius-md);
	}
	.mobile-date-tabs li.tab-item.active {
		background: var(--color-primary);
		color: var(--bg-main);
	}
	.search-filter-bar {
		width: 100%;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}
	.search-btn {
		grid-column: span 2;
		width: 100%;
	}
	.top-select {
		width: 100%;
	}
	.m-table {
		min-width: 1200px;
	}
	.m-table .m-td {
		text-align: left;
	}
	.race-list-container {
		padding: 20px;
	}
	.main-page .table-wrapper {
		border: none;
		background: transparent;
	}
	.main-page .main-data-table {
		min-width: 100% !important;
		border: none;
	}
	.main-page .main-data-table thead {
		display: none;
	}
	.main-page .main-data-table tbody {
		display: flex;
		flex-direction: column;
		gap: 12px;
	}
	.main-page .main-data-table tr {
		display: flex;
		flex-wrap: wrap;
		align-items: flex-start;
		background: var(--bg-main);
		border: 1px solid var(--border-light);
		border-radius: 10px;
		padding: 16px;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
		transition: transform 0.2s;
	}
	.main-page .main-data-table tr:active {
		transform: scale(0.98);
	}
	.main-page .main-data-table td {
		display: inline-block;
		border: none !important;
		padding: 0 !important;
		text-align: left;
		background: transparent !important;
	}
	.main-page .main-data-table td::before {
		display: none !important;
	}
	.main-page .main-data-table td:nth-child(1) {
		flex: 0 0 50%;
		font-size: 17px;
		color: var(--text-muted);
		font-weight: 600;
		margin-bottom: 12px;
	}
	.main-page .main-data-table td:nth-child(2) {
		flex: 0 0 50%;
		text-align: right;
		font-size: 17px;
		color: #334155;
		font-weight: 800;
		margin-bottom: 12px;
		display: flex !important;
		flex-wrap: wrap;
	}
	.main-page .main-data-table td:nth-child(3) {
		font-size: 17px;
		font-weight: 800;
		margin-right: 6px;
	}
	.main-page .main-data-table td:nth-child(4) {
		font-size: 19px;
		font-weight: 800;
		margin-right: auto;
	}
	.main-page .main-data-table td:nth-child(4)::after {
		content: "경주";
	}
	.main-page .main-data-table td:nth-child(5), .main-page .main-data-table td:nth-child(6),
		.main-page .main-data-table td:nth-child(7) {
		font-size: var(--font-size-lg);
		color: #475569;
		font-weight: 600;
		margin-left: 8px;
		align-self: center;
	}
	.header-info-box {
		border-width: 2px !important;
		padding: 10px;
	}
	.summary-card {
		margin-bottom: 10px;
	}
	.info-table, .info-table tbody, .info-table tr {
		display: block;
		width: 100%;
	}
	.info-table td {
		display: inline-block;
		width: 50%;
		padding: 8px 4px;
		box-sizing: border-box;
		border: none !important;
		text-align: left;
	}
	.info-table, .info-table tbody, .info-table tr {
		display: flex;
		flex-direction: column;
		width: 100% !important;
	}
	.info-table tr {
		flex-direction: row;
		flex-wrap: wrap;
		border-bottom: 1px solid #f0f0f0;
		padding: 5px 0;
	}
	.info-table tr:last-child {
		border-bottom: none;
	}
	.info-table td {
		display: block;
		width: 50% !important;
		box-sizing: border-box;
		padding: 8px 5px;
		border: none !important;
	}
	.info-table td#live_moisture {
		width: 30% !important;
	}
	.info-table td#start_time_td {
		width: 70% !important;
		font-size: 16px;
	}
	.info-table td.info-title {
		width: 100% !important;
		font-size: var(--font-size-lg);
		border-bottom: 2px solid #eee !important;
		margin-bottom: 5px;
	}
	.horse-sprint-core {
		width: 250px;
		height: 250px;
	}
	.ai-title {
		font-size: 20px;
		letter-spacing: 6px;
		flex-direction: column;
        align-items: center;
	}
	.ai-title > span {
		display: block;
		margin-bottom: 10px;
	}
	.ai-title .ai-title-m {
		display: flex;
		align-items: end;
	} 
	.ai-title .ai-title-m span {
		margin: 0;
	}
	.loading-bar {
		width: 280px;
	}
	
	@keyframes spark-flow { 
		0% { transform: translateX(100px); opacity: 0; }
		50% { opacity: 1; }
		100% { transform: translateX(-400px); opacity: 0; }
	}
	.betting-container {
		flex-direction: column;
	}
	
	.ai-rank-grid {
		grid-template-columns: 1fr;
	}
	
	.bet-record-row {
		margin-left: 0;
		justify-content: space-between;
		background: #f8f9fa;
		padding: 8px 10px;
		border-radius: 6px;
	}
	
	.bet-record-row .bet-type {
		width: auto;
		font-size: var(--font-size-sm);
	}
	
	.bet-record-row .bet-combo {
		width: auto;
		font-size: var(--font-size-sm);
	}
	
	.bet-record-row .bet-div, .bet-record-row .bet-arrow {
		display: none;
	}
	
	.bet-record-row .bet-odds {
		width: auto;
		font-size: var(--font-size-sm);
		color: #666;
	}
	
	.bet-record-row .bet-mark {
		width: 100%;
		text-align: right;
		margin-top: 6px;
		padding-top: 6px;
		border-top: 1px dashed #e0e0e0;
		font-size: 15px;
	}
	
	.ai-log-title {
		display: block;
		margin-bottom: 4px;
		padding-bottom: 4px;
		border-bottom: 1px dashed var(--border-main);
		color: #0d47a1;
	}
	
	.popup-container.horse-type, .popup-container.jockey-type {
		width: 95% !important;
	}
	
	#chaos_only_log {
		margin-bottom: 4px;
		padding-bottom: 4px;
		border-bottom: 1px dashed var(--border-main);
	}
	
	#chaos_only_log .ai-log-title {
		margin-bottom: 0;
		padding-bottom: 0;
		border-bottom: 0;
		display: inline-block;
	}
	
	#horsePopupContent, #jockeyPopupContent {
		padding: 15px !important;
	}
	
	.pace-flow {
		flex-direction: column;
		align-items: flex-start;
		gap: 15px !important;
	}
	
	.betting-container {
		flex-direction: column !important;
	}
	
	.bet-record-row {
		margin-left: 0 !important;
		padding: 10px;
		background: #f8f9fa;
		border-radius: 6px;
		display: block !important;
		line-height: 1.6;
	}
	
	.bet-record-row .bet-type, .bet-record-row .bet-combo, .bet-record-row .bet-odds
		{
		display: inline-block;
		width: auto !important;
		margin-right: 8px;
		font-size: var(--font-size-sm);
	}
	
	.bet-record-row .bet-mark {
		display: block;
		width: 100% !important;
		text-align: right;
		margin-top: 5px;
		border-top: 1px dashed #ddd;
		padding-top: 5px;
	}
	
	.ai-rank-grid {
		grid-template-columns: 1fr !important;
		gap: 10px !important;
	}
	
	.stat-section {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	
	.popup-table {
		min-width: 650px;
		font-size: 11px !important;
	}
	
	.current-race-highlight {
		background-color: var(--bg-main) !important;
		border: 1px solid var(--border-light) !important;
	}
	
	.current-race-highlight td {
		font-weight: normal !important;
		color: inherit !important;
	}
	
	.current-race-highlight .start-time-cell {
		animation: none !important;
	}
	
	.current-race-highlight .start-time-cell::after {
		content: none !important;
	}
	
	.main-page .main-data-table td:nth-child(2) {
		display: flex !important;
		align-items: center;
		justify-content: flex-end;
	}
	
	.race-status-badge {
		display: inline-block;
		margin-left: 12px;
		padding: 3px 8px;
		border-radius: 6px;
		font-size: var(--font-size-sm);
		font-weight: 800;
		letter-spacing: -0.5px;
	}
	
	.mobile-only-top-card {
		display: block;
		background: linear-gradient(135deg, #f4f8ff 0%, #e6f0fa 100%);
		border: 2px solid var(--color-primary);
		border-radius: var(--radius-lg);
		padding: 16px;
		margin-bottom: 24px;
		box-shadow: 0 4px 15px rgba(74, 144, 226, 0.2);
	}
	
	.mobile-only-top-card .top-card-title {
		font-size: var(--font-size-lg);
		font-weight: 800;
		color: var(--color-primary);
		margin-bottom: 12px;
		display: flex;
		align-items: center;
		gap: 6px;
		border-bottom: 1px dashed #c3dafe;
		padding-bottom: 10px;
	}
	
	.mobile-only-top-card .main-data-table {
		min-width: auto !important;
		margin: 0 !important;
	}
	
	.mobile-only-top-card .main-data-table tr {
		margin-bottom: 0 !important;
		border: none !important;
		box-shadow: none !important;
		padding: 0 !important;
		background: transparent !important;
	}
	
	.remain-time-text {
		display: block !important;
		width: 100%;
		text-align: right;
		font-size: 17px;
		color: #2c3e50;
		font-weight: 800;
		letter-spacing: -0.5px;
		margin-top: 6px;
		margin-left: 0;
	}
	
	.remain-time-text .time-num {
		color: #ef4444;
	}
	
	#chaos_only_log {
		margin-top: 10px !important;
	}
	
	#running_style_log>div {
		padding: 5px 0;
	}
	
	.main-data-table tbody tr td[data-label="결과"] {
		display: flex !important;
		justify-content: flex-end !important;
		width: 100% !important;
		padding-top: 5px !important;
	}
	
	.rank-result-wrap {
		display: flex !important;
		justify-content: flex-end !important;
		margin-left: auto !important;
	}
	
	.main-data-table tbody tr td[data-label="결과"] {
		width: auto !important;
		justify-content: flex-start !important;
		padding-top: 0 !important;
	}
	
	#getRaceList tr td[data-label="속보"], #getRaceList tr td[data-label="결과"]
		{
		float: none !important;
	}
	
	.main-page .main-data-table td:nth-child(1) {
		order: 1;
	}
	
	.main-page .main-data-table td:nth-child(2) {
		order: 2;
	}
	
	.main-page .main-data-table td:nth-child(3) {
		order: 3;
	}
	
	.main-page .main-data-table td:nth-child(4) {
		order: 4;
	}
	
	.main-page .main-data-table td:nth-child(5) {
		order: 5;
	}
	
	.main-page .main-data-table td:nth-child(6) {
		order: 6;
	}
	
	.main-page .main-data-table td:nth-child(7) {
		order: 7;
	}
	
	.main-page .main-data-table tr::after {
		content: "";
		display: block;
		width: 100%;
		order: 8;
	}
	
	.main-page .main-data-table td:nth-child(8) {
		order: 9;
		display: flex !important;
		align-items: center;
		align-self: center;
		font-size: 15px;
		color: #475569;
		font-weight: 600;
	}
	
	.main-page .main-data-table td .news-text {
		font-size: 15px;
	}
	
	.main-page .main-data-table td:nth-child(9) {
		order: 10;
		margin-left: auto !important;
		display: flex !important;
		align-items: center;
	}
	
	.header-left-group {
		flex-direction: column;
		align-items: flex-start;
		width: 100%;
		gap: 15px;
	}
	
	.breaking-news-bar {
		width: 100%;
		justify-content: flex-start;
		margin-top: 0;
	}
	
	.breaking-page-container {
		width: 100%;
		padding: 16px;
		margin-bottom: 0;
		box-shadow: none;
		border-radius: 0;
	}
	
	.breaking-header {
		margin-bottom: 15px;
		padding-bottom: 10px;
	}
	
	.breaking-header h2 {
		font-size: var(--font-size-xl);
	}
	
	.news-tabs {
		gap: 6px;
		margin-bottom: 15px;
	}
	
	.news-tabs li {
		font-size: var(--font-size-sm);
		border-radius: var(--radius-md);
	}
	
	.news-card-list {
		grid-template-columns: 1fr;
		gap: 12px;
	}
	
	.news-card {
		padding: 16px;
		border-radius: 10px;
	}
	
	.news-main-title {
		font-size: 15px;
	}
	
	.news-body-desc {
		font-size: var(--font-size-base);
	}
	
	.reason-txt {
		font-size: var(--font-size-sm);
		padding: 6px 10px;
	}
	
	.date-tabs {
		gap: 6px;
	}
	
	.dist-overview-table {
		width: max-content;
	}
	
	.betting-left-panel {
		flex-direction: column !important;
	}
	
	.floating-btn-wrap {
		display: block;
	}
	
	.hit-result-grid {
		grid-template-columns: 1fr;
		gap: 15px;
	}
	
	.hit-cards {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}
	
	.search-option.hit-search {
		flex-direction: column;
		align-items: stretch !important;
		gap: 12px;
	}
	
	.hit-search .filter-group {
		margin-left: 0 !important;
		justify-content: space-between;
		width: 100%;
	}
	
	.hit-search input[type="date"], .hit-search select {
		flex: 1;
	}
	
	.mobile-hide-text {
		display: none;
	}
	
	.premium-profile-wrap {
		padding: 10px 20px;
	}
	
	.premium-profile-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
		padding: 20px 0;
	}
	
	.premium-label {
		width: 100%;
		font-size: 14px;
	}
	
	.premium-input {
		max-width: 100%;
		width: 100%;
	}
	
	.btn-primary-large {
		max-width: 100%;
	}
	
	.right-side-drawer {
		width: 100%;
	}
	
	.prize-wrapper {
		grid-template-columns: repeat(3, 1fr);
	}
	
	.prize-val {
		flex: 1 1 33.33%;
		padding: 2px 4px;
	}
	
	.dist-overview-table {
		width: max-content !important;
	}
	
	.dist-overview-table tbody td:first-child, .dist-overview-table thead tr:first-child th:first-child
		{
		position: sticky !important;
		left: 0 !important;
		z-index: 10;
		border-right: 2px solid #adb5bd !important;
		border-left: 2px solid #adb5bd;
	}
	
	.dist-overview-table thead tr:first-child th:first-child {
		z-index: 11;
	}
	
	.pt-charge-wrap {
		padding: 25px 20px;
		margin: 20px auto;
		border-radius: 20px;
	}
	
	.pt-header-card {
		flex-direction: column;
		text-align: center;
		padding: 20px;
	}
	
	.pt-header-icon {
		margin-right: 0;
		margin-bottom: 15px;
	}
	
	.pt-form-row {
		flex-direction: column;
		padding-bottom: 25px;
		margin-bottom: 25px;
		border-bottom: 1px dashed var(--border-light);
	}
	
	.pt-form-label {
		width: 100%;
		padding-top: 0;
		margin-bottom: 12px;
		font-size: 14px;
	}
	
	.pt-form-content {
		width: 100%;
	}
	
	.pt-card-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.pt-input {
		max-width: 100%;
	}
	
	.pt-input-group {
		flex-direction: column;
		align-items: stretch;
	}
	
	.pt-btn-line {
		width: 100%;
		text-align: center;
	}
	
	.pt-submit-group {
		flex-direction: column;
	}
	
	.pt-btn-lg {
		width: 100%;
	}
	
	.pt-policy-box {
		padding: 20px;
		font-size: 13px;
	}
	
	.betting-layout-wrapper {
		flex-direction: column;
	}
	
	.hit-search .search-box {
		width: 100%;
	}
	
	.page-container {
		max-width: 1300px;
		width: 100%;
	}
	
	.btn-secondary {
		width: 100%;
	}
	
	.inquiry-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 15px;
	}
	
	.btn-secondary-small {
		width: 100%;
		padding: 12px;
	}
	
	.rank-summary-grid {
		grid-template-columns: repeat(3, 1fr);
	}
	
	.prize-val:nth-child(2), .prize-val:nth-child(3) {
		border-bottom: 1px solid #eee;
	}
	
	.prize-val:nth-child(3), .prize-val:nth-child(6) {
		border-right: 0;
	}
	
	.hd-info-table tr {
        display: flex;
        flex-wrap: wrap;
    }
	
	.hd-info-table th, 
    .hd-info-table td {
        box-sizing: border-box; 
    }

    .hd-info-table th {
        width: 35%;
    }
    .hd-info-table td {
        width: 65%;
    }
	
	.hd-summary {
		flex-direction: column;
		gap: 15px;
	}
	
	.jd-table-top-flex {
		flex-direction: column;
		align-items: flex-start;
	}
	
	.jd-table-top-flex h3 {
		margin-bottom: 8px !important;
	}
}
/* media end */

/* 관리자 css */
.header .menu-bar {
	display: flex;
	margin-right: 50px;
}

.menu {
	display: inline-block;
	cursor: pointer;
}

.menu .bar1, .menu .bar2, .menu .bar3 {
	width: 20px;
	height: 3px;
	background: var(--text-main);
	margin: 3px 0;
	transition: 0.4s;
}

.change .bar1 {
	transform: translate(0, 5px) rotate(-45deg)
}

.change .bar2 {
	opacity: 0;
}

.change .bar3 {
	transform: translate(0, -7px) rotate(45deg)
}

.menu-box {
	position: fixed;
	top: 88px;
	left: -100%;
	max-width: 750px;
	height: 100%;
	background: var(--bg-main);
	transition: 0.4s;
	z-index: 1001;
}

.menu-box.open {
	left: 0;
}

.menu-box>ul {
	display: flex;
	flex-flow: wrap;
	flex-direction: column;
	height: calc(100% - 60px);
}

.menu-box>ul>li {
	border-bottom: 1px solid #eeeef0;
	border-right: 1px solid #eeeef0;
	padding: 20px;
	width: 250px;
	box-sizing: border-box;
}

.menu-box>ul>li strong {
	font-weight: 900;
}

.menu-box>ul>li>ul {
	padding-left: 30px;
	line-height: 1.8;
	margin-top: 10px;
	font-size: var(--font-size-sm);
}

.menu-box>ul a:hover {
	color: var(--color-primary);
}

.menu-layer {
	position: fixed;
	top: 88px;
	left: 0;
	width: 100%;
	height: 100%;
	transition-duration: .2s;
	visibility: hidden;
	z-index: 100;
}

.menu-layer.open {
	background: rgba(0, 0, 0, 0.4);
	visibility: visible;
}

.header .title {
	width: 100%;
	display: flex;
	justify-content: space-between;
}

.user {
	display: flex;
	gap: 15px;
	align-items: center;
}

/* dashboard 시작 */
.dash-main-height {
	height: calc(100vh - 210px);
	display: flex;
	flex-direction: column;
}

.db-top-row {
	display: grid;
	grid-template-columns: 1fr 1.5fr;
	gap: 20px;
	margin-bottom: 20px;
}

.db-bottom-row {
	width: 100%;
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

.db-card {
	background: var(--bg-main);
	border: 1px solid #f0f0f0;
	border-radius: var(--radius-md);
	padding: 20px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.db-bottom-row .db-card {
	height: 100%;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.bg-blue {
	background: var(--color-primary-light) !important;
	border-bottom: 3px solid var(--color-primary);
}

.bg-green {
	background: #f0f9f4 !important;
	border-bottom: 3px solid var(--color-success);
}

.bg-purple {
	background: #f5f3ff !important;
	border-bottom: 3px solid #a855f7;
}

.fill-vhigh {
	background: linear-gradient(90deg, #10b981, #059669) !important;
	box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.fill-high {
	background: linear-gradient(90deg, #3b82f6, #1d4ed8) !important;
	box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

.fill-mid {
	background: linear-gradient(90deg, #8b5cf6, #6366f1) !important;
	box-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
}

.fill-low {
	background: linear-gradient(90deg, #f59e0b, #d97706) !important;
	box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.fill-danger {
	background: linear-gradient(90deg, #ef4444, #b91c1c) !important;
	box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

.db-card-head {
	font-size: var(--font-size-lg);
	font-weight: bold;
	color: #2c3e50;
	padding-bottom: 15px;
	border-bottom: 1px solid #f0f0f0;
	margin-bottom: 20px;
}

.db-card-sb {
	display: flex;
	justify-content: space-between;
}

.db-status-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 15px;
}

.db-status-item {
	background: #f8fbff;
	padding: 15px;
	border-radius: 6px;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 5px;
	border: none;
	transition: transform 0.2s;
}

.db-status-item:hover {
	transform: translateY(-3px);
}

.db-lbl {
	color: #666;
	font-size: var(--font-size-sm);
	font-weight: 600;
}

.db-val {
	color: var(--color-primary);
	font-size: 22px;
	font-weight: bold;
}

.db-prob-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px 35px;
}

.db-prob-unit {
	display: flex;
	flex-direction: column;
}

.db-prob-flex {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-bottom: 4px;
}

.db-prob-flex span {
	font-size: var(--font-size-base);
	color: var(--text-main);
}

.db-prob-flex strong {
	font-size: var(--font-size-lg);
	color: var(--color-primary);
}

.db-progress-bg {
	width: 100%;
	height: 10px;
	background-color: #eeeeee;
	border-radius: var(--radius-sm);
	overflow: hidden;
	margin-top: 6px;
}

.db-progress-fill {
	height: 100%;
	transition: width 0.4s ease-in-out;
}

.db-agent-flex {
	flex: 1;
	overflow-y: auto;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 15px;
	align-content: start;
	padding-right: 5px;
}

.db-agent-node {
	flex: 1;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 18px 20px;
	background: #fcfcfd;
	border: 1px solid #eee;
	border-radius: 6px;
}

.db-agent-info strong {
	display: block;
	font-size: 15px;
	color: var(--text-main);
	margin-bottom: 2px;
}

.db-agent-info span {
	font-size: var(--font-size-xs);
	color: #999;
}

.db-agent-stat {
	display: flex;
	align-items: center;
	gap: 8px;
}

.db-blue-txt {
	color: var(--color-primary);
	font-weight: bold;
}

.db-wait-txt {
	color: #BF9000;
	font-weight: bold;
}

.db-error-txt {
	color: var(--color-danger);
	font-weight: bold;
}

.db-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	display: inline-block;
}

.db-normal {
	background-color: var(--color-success);
	box-shadow: 0 0 5px rgba(46, 204, 113, 0.4);
}

.db-wait {
	background-color: #f1c40f;
	box-shadow: 0 0 5px rgba(241, 196, 15, 0.4);
}

.db-error {
	background-color: var(--color-danger);
	box-shadow: 0 0 5px rgba(231, 76, 60, 0.4);
}
/* dashboard 끝 */
.dash {
	display: flex;
	flex-direction: column;
}

.dash .dash-bottom .dash-item {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	width: 100%;
	gap: 20px 20px;
	box-sizing: border-box;
	font: -webkit-control
}

.page-title {
	display: flex;
	padding: 15px 3%;
	font-weight: 700;
	height: 47px;
}

.page-title>li:first-child {
	color: gray;
}

.page-title>li:first-child::after {
	content: '>';
	margin: 0 10px;
}

.page-title>li:last-child {
	color: #2c5178;
}

.page-title li.dash {
	color: #2c5178;
}

.page-title li.dash::after {
	content: '';
	margin: 0;
}

.wrap {
	width: 100%;
	height: calc(100vh - 152px);
	background: var(--bg-sub);
	position: relative;
	overflow: auto;
}

.sub-wrap {
	width: 98%;
	height: 97%;
	background: var(--bg-main);
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	padding: 20px;
	box-sizing: border-box;
	border-radius: 5px;
}

.tab-container {
	margin-right: auto;
	display: flex;
	gap: 15px;
}

.tab-container .tab-btn {
	padding: 5px 10px;
	font-size: var(--font-size-lg);
	font-weight: bold;
	border: none;
	background: none;
	cursor: pointer;
	color: #666;
}

.tab-container .tab-btn.active {
	color: var(--color-primary);
}

.search-option {
	display: flex;
	justify-content: end;
	align-items: center;
	margin-bottom: 20px;
	padding-bottom: 15px;
	gap: 15px;
	border-bottom: 1px solid #eee;
}

.search-option span {
	color: #555;
	font-weight: bold;
}

.search-option input[type="date"] {
	height: 36px;
	border: 1px solid #ddd;
	border-radius: var(--radius-sm);
	padding: 0 10px;
}

.search-option .top-select {
	min-width: 100px;
	padding: 5px 25px 5px 10px;
	height: 36px;
	margin: 0;
}

.search-option input[type="text"], .search-option input[type="number"] {
	width: 180px;
	height: 36px;
	border: 1px solid #ddd;
	border-radius: var(--radius-sm);
	padding: 0 10px;
	margin-bottom: 0;
}

.search-option input[type="number"] {
	width: 80px;
}

.search-box {
	width: 36px;
	height: 36px;
	background-color: #2c3e50;
	color: var(--bg-main);
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: background 0.2s;
}

.search-box:hover {
	background-color: var(--color-primary);
}

.list-info-bar {
	margin-bottom: 10px;
	font-size: var(--font-size-base);
	font-weight: 600;
	color: #555;
}

.list-info-bar span.count {
	color: var(--color-primary);
	font-size: var(--font-size-lg);
}

.list-hit {
	display: flex;
	justify-content: end;
	align-items: center;
}

.list-hit {
	font-size: var(--font-size-xs);
	color: #888;
	font-weight: normal;
}

.content-box {
	width: 100%;
	overflow: auto;
	border: 1px solid #eeeef0;
	border-radius: var(--radius-sm);
}

.content-box table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
}

.content-box table th {
	position: sticky;
	top: 0;
	z-index: 10;
	background-color: #f8f9fa;
	color: var(--text-main);
	font-weight: 700;
	font-size: var(--font-size-sm);
	padding: 12px 8px;
	border-bottom: 2px solid var(--color-primary);
	border-right: 1px solid #eee;
	white-space: nowrap;
}

.content-box table td {
	font-size: var(--font-size-sm);
	color: #555;
	border-bottom: 1px solid #eeeef0;
	border-right: 1px solid #f9f9f9;
	text-align: center;
	white-space: nowrap;
	height: 50px;
	box-sizing: border-box;
	padding: 0 10px;
}

.content-box table tr:hover td {
	background-color: #f1f7ff;
	color: var(--color-primary);
	height: 50px;
	box-sizing: border-box;
}

.content-box table td:first-child {
	font-weight: 700;
	color: #2c3e50;
}

.content-box table td select {
	padding: 5px 25px 5px 10px;
	min-width: 80px;
	box-sizing: border-box;
}

.content-box table td .inner-btn {
	padding: 6px 12px;
	width: auto;
	box-sizing: border-box;
	height: 32px;
}

.content-box table td.ai-rank {
	color: var(--color-primary);
	font-weight: bold;
}

.content-box table td.live-rank {
	color: var(--color-danger);
	font-weight: bold;
}

.col-date {
	width: 90px;
}

.col-loc {
	width: 50px;
}

.col-round {
	width: 45px;
}

.col-save {
	width: 90px;
}

.col-gate {
	width: calc(( 100% - 255px)/14);
}

.grid-odds-input {
	width: 100%;
	border: none;
	text-align: center;
	font-size: 15px;
	font-weight: 700;
	color: var(--color-primary);
	background: transparent;
	display: block;
}

.grid-odds-input:disabled {
	background-color: #f1f3f5;
	color: #ccc;
	cursor: not-allowed;
}

.grid-odds-input:focus {
	outline: 2px solid var(--color-primary);
	background-color: #fff9db;
	z-index: 10;
}

.win-row {
	background-color: #f8fbff;
}

.place-row {
	background-color: #f9fffb;
}

.grid-odds-input.win:focus {
	outline: 2px solid var(--color-primary);
}

.grid-odds-input.place:focus {
	outline: 2px solid var(--color-success);
}

.odds-label {
	font-size: 11px;
	font-weight: bold;
	display: block;
	color: #999;
	margin-bottom: 2px;
}

.btn-row-save {
	width: 55px;
	height: 30px;
	background-color: var(--color-primary);
	color: white;
	border: none;
	border-radius: var(--radius-sm);
	font-size: var(--font-size-xs);
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
}

.btn-row-save:hover {
	background-color: var(--color-primary-hover);
}

.stat-wrap {
	display: flex;
	flex-direction: column;
}

.stat-wrap .summary-cards {
	display: flex;
	gap: 15px;
	margin-bottom: 20px;
}

.summary-amt-compact {
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px dashed #ddd;
	font-size: var(--font-size-xs);
}

.stat-chart-box {
	position: relative;
	height: 450px;
	padding: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--bg-main);
	border: 1px solid #eef2f5;
	border-radius: var(--radius-md);
}

.stat-chart-box>div {
	text-align: center;
	color: #888;
}

.stat-chart-box i {
	font-size: 40px;
	color: var(--color-primary);
	margin-bottom: 12px;
}

.stat-chart-box .place-title {
	font-size: var(--font-size-lg);
	font-weight: 600;
	margin: 0;
}

.stat-chart-box .place-text {
	font-size: var(--font-size-sm);
	color: #aaa;
	margin-top: 5px;
}

.stat-chart-box #chartScrollWrapper {
	position: relative;
	width: 100%;
	height: 100%;
}

.stat-chart-box #chartScrollWrapper canvas {
	display: none;
}

.total .summary-title {
	color: #2c3e50;
	font-weight: bold;
}

.total-summary-compact {
	margin-top: 15px;
}

.total-summary-compact div {
	display: flex;
	justify-content: space-between;
	margin-bottom: 8px;
}

.total-summary-compact div:last-child {
	margin-bottom: 0;
}

.total-summary-compact div span {
	color: #7f8c8d;
}

.total-summary-compact div strong#card_total_hit {
	color: var(--color-danger);
}

.summary-amt-compact div {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 3px;
}

.summary-amt-compact span {
	color: #777;
	font-weight: 600;
}

.summary-amt-compact strong {
	color: #2c3e50;
}

.stat-wrap .summary-card {
	flex: 1;
	padding: 20px;
	border: 1px solid #eeeef0;
	border-radius: var(--radius-sm);
	background: var(--bg-main);
	text-align: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.stat-wrap .summary-card.total {
	flex: 1.2;
	border-top: 3px solid #2c3e50;
}

.stat-wrap .summary-title {
	color: #555;
	font-size: var(--font-size-sm);
	font-weight: bold;
	margin-bottom: 10px;
}

.stat-wrap .summary-value {
	font-size: 20px;
	font-weight: bold;
}

.stat-wrap .summary-value.large {
	font-size: var(--font-size-title);
}

.summary-value, .summary-amt-compact strong {
	font-variant-numeric: tabular-nums;
}

.stat-grid-box {
	flex: 1;
}

.scrollable-table-wrap {
	height: 650px;
}

.scrollable-table-wrap thead th {
	position: sticky;
	top: 0;
	z-index: 10;
	background-color: #f8f9fa;
	box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.1);
}

.stat-grid-box table td:last-child {
	text-align: center;
	vertical-align: middle;
}

.text-red {
	color: var(--color-danger) !important;
}

.text-blue {
	color: var(--color-primary) !important;
}

.text-gray {
	color: #95a5a6 !important;
}

.text-yellow {
	color: #f1c40f !important;
}

.text-dark {
	color: #2c3e50 !important;
}

.font-bold {
	font-weight: bold !important;
}

.font-heavy {
	font-weight: 700 !important;
}

.modal-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 9999;
	align-items: center;
	justify-content: center;
}

.modal-content {
	background-color: var(--bg-main);
	width: 900px;
	max-height: 90vh;
	border-radius: var(--radius-md);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.modal-header {
	padding: 15px 20px;
	background-color: #2c3e50;
	color: var(--bg-main);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.modal-header h3 {
	margin: 0;
	font-size: var(--font-size-lg);
	font-weight: 500;
}

.close-pop {
	color: var(--bg-main);
	font-size: 20px;
	cursor: pointer;
	background: none;
	border: none;
}

.modal-body {
	padding: 20px;
	overflow-y: auto;
	background-color: var(--bg-sub);
}

.modal-body .content-box table th {
	top: -1px;
}

.badge-hit {
	background-color: var(--color-danger);
	color: white;
	padding: 3px 8px;
	border-radius: var(--radius-sm);
	font-size: var(--font-size-xs);
	font-weight: bold;
}

.badge-miss {
	background-color: #95a5a6;
	color: white;
	padding: 3px 8px;
	border-radius: var(--radius-sm);
	font-size: var(--font-size-xs);
	font-weight: bold;
}

#horseTable tbody tr:hover {
	background-color: #f0f8ff !important;
	transition: background-color 0.2s ease-in-out;
}

.btn-detail {
	padding: 4px 10px;
	background-color: #6c757d;
	color: white;
	border: none;
	border-radius: 3px;
	cursor: pointer;
	font-size: var(--font-size-xs);
}

.btn-detail:hover {
	background-color: #5a6268;
}

.btn-delete {
	background-color: var(--color-danger);
	color: white;
	border: none;
	padding: 4px 10px;
	border-radius: var(--radius-sm);
	cursor: pointer;
	font-size: var(--font-size-xs);
}

.btn-delete:hover {
	background-color: #c0392b;
}

.detail-tabs {
	display: flex;
	list-style: none;
	padding: 0;
	margin: 0 0 15px 0;
	border-bottom: 2px solid #dee2e6;
}

.detail-tabs li {
	padding: 10px 20px;
	cursor: pointer;
	color: #495057;
	font-weight: 500;
}

.detail-tabs li.active {
	color: #0056b3;
	border-bottom: 2px solid #0056b3;
	font-weight: bold;
	margin-bottom: -2px;
}

.tab-pane {
	display: none;
	background: var(--bg-main);
	padding: 10px 0;
}

.tab-pane.active {
	display: block;
}

.detail-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 15px;
	font-size: var(--font-size-base);
	text-align: center;
}

.detail-table th {
	background-color: #f8f9fa;
	color: var(--text-main);
	font-weight: 600;
	padding: 12px 8px;
	border-top: 1px solid #dee2e6;
	border-bottom: 2px solid #dee2e6;
}

.detail-table td {
	padding: 12px 8px;
	border-bottom: 1px solid #eee;
	color: #495057;
	vertical-align: middle;
}

.detail-table tbody tr:hover {
	background-color: #fdfdfd;
}

.tab-pane h4 {
	font-size: var(--font-size-lg);
	color: var(--text-main);
	margin: 10px 0 5px 0;
	font-weight: bold;
}

.new-btn {
	width: 100px;
	height: 36px;
	margin: 0;
}

.modal-top {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
	margin-bottom: 15px;
}

.modal-top .top-select {
	width: 100%;
	height: 40px;
}

.modal-top input[type="date"] {
	width: 100%;
	height: 40px;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 0 10px;
}

.modal-top input[type="text"] {
	width: 100%;
	height: 40px;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 0 10px;
}

.policy-content {
	width: 100%;
	height: 300px;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 10px;
	resize: vertical;
}

.code-content {
	width: 400px;
	padding: 0;
}

.code-content .modal-body {
	padding: 20px;
}

.code-content .top-select {
	width: 100%;
	height: 40px;
	padding: 0 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.code-container {
	display: flex;
	gap: 20px;
	align-items: flex-start;
}

.code-box {
	flex: 1;
	background: #fff;
	padding: 20px;
	border-radius: 8px;
	border: 1px solid #ddd;
}

.code-box h3 {
	margin-top: 0;
	margin-bottom: 15px;
	font-size: 16px;
	color: #333;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.tr-active {
	background-color: #eef2f5;
	font-weight: bold;
}

.cursor-pointer {
	cursor: pointer;
}

#policy_group, #req_select, #use_yn {
	background-color: #ffffff !important;
}

.note-editor.note-frame {
	background-color: #ffffff !important;
}

.note-editor.note-frame .note-editing-area .note-editable {
	background-color: #ffffff !important;
}

.policy-header {
	border-bottom: 1px solid #eee;
	padding: 0;
	width: 100%;
}

.policy-header>div {
	max-width: 1300px;
	height: 60px;
	margin: 0 auto;
}

.policy-header>div img {
	height: 100%;
}

.policy-container {
	max-width: 1300px;
	margin: 20px auto;
	padding: 20px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
}

.policy-container .title {
	font-size: 24px;
	font-weight: bold;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid #222;
}

.policy-container .content {
	line-height: 1.6;
	color: #444;
	height: auto;
}

/* color */
.gate-badge {
	display: inline-block;
	width: 22px;
	height: 22px;
	line-height: 20px;
	text-align: center;
	border-radius: 50%;
	font-weight: 900;
	font-size: var(--font-size-sm);
	vertical-align: text-bottom;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.gate-color-1 {
	background-color: #fff;
	color: #000000;
	border: 1px solid #CCCCCC;
}

.gate-color-2 {
	background-color: #FFEB3B;
	color: #000000;
	border: 1px solid #FBC02D;
}

.gate-color-3 {
	background-color: #E53935;
	color: #fff;
	border: 1px solid #c62828;
}

.gate-color-4 {
	background-color: #212121;
	color: #fff;
	border: 1px solid #000000;
}

.gate-color-5 {
	background-color: #1E88E5;
	color: #fff;
	border: 1px solid #1565C0;
}

.gate-color-6 {
	background-color: #43A047;
	color: #fff;
	border: 1px solid #2E7D32;
}

.gate-color-7 {
	background-color: #795548;
	color: #fff;
	border: 1px solid #4E342E;
}

.gate-color-8 {
	background-color: #F06292;
	color: #fff;
	border: 1px solid #D81B60;
}

.gate-color-9 {
	background-color: #8E24AA;
	color: #fff;
	border: 1px solid #6A1B9A;
}

.gate-color-10 {
	background-color: #03A9F4;
	color: #fff;
	border: 1px solid #0288D1;
}

.gate-color-11 {
	background: repeating-linear-gradient(90deg, #fff, #fff 6px, #03A9F4 6px, #03A9F4
		12px);
	color: #000000;
	border: 1px solid #0288D1;
	text-shadow: 1px 1px 1px #fff;
}

.gate-color-12 {
	background: repeating-linear-gradient(90deg, #FFEB3B, #FFEB3B 6px, #03A9F4 6px,
		#03A9F4 12px);
	color: #000000;
	border: 1px solid #0288D1;
	text-shadow: 1px 1px 1px #FFEB3B;
}

.gate-color-13 {
	background: repeating-linear-gradient(90deg, #E53935, #E53935 6px, #03A9F4 6px,
		#03A9F4 12px);
	color: #fff;
	border: 1px solid #0288D1;
	text-shadow: 1px 1px 2px #000000;
}

.gate-color-14 {
	background: repeating-linear-gradient(90deg, #212121, #212121 6px, #03A9F4 6px,
		#03A9F4 12px);
	color: #fff;
	border: 1px solid #0288D1;
	text-shadow: 1px 1px 2px #000000;
}

.gate-color-15 {
	background: repeating-linear-gradient(90deg, #fff, #fff 6px, #1E88E5 6px, #1E88E5
		12px);
	color: #000000;
	border: 1px solid #1565C0;
	text-shadow: 1px 1px 1px #fff;
}

.gate-color-16 {
	background: repeating-linear-gradient(90deg, #fff, #fff 6px, #43A047 6px, #43A047
		12px);
	color: #000000;
	border: 1px solid #2E7D32;
	text-shadow: 1px 1px 1px #fff;
}