:root {
	--primary: #3b82f6;
	--primary-dark: #2563eb;
	--success: #10b981;
	--warning: #f59e0b;
	--danger: #ef4444;
	--info: #06b6d4;
	--dark: #0f172a;
	--dark-light: #1e293b;
	--dark-lighter: #334155;
	--light: #f8fafc;
	--gray: #64748b;
	--border: #334155;
	--text: #e2e8f0;
	--text-muted: #94a3b8;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family:
		"Inter",
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		Roboto,
		sans-serif;
	color: var(--text);
	background: #0f172a;
	min-height: 100vh;
	line-height: 1.6;
	overflow-x: hidden;
}

.app-container {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.main-content {
	flex: 1;
	margin-left: 260px;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	background: linear-gradient(135deg, #0a0e1a 0%, #0f172a 50%, #0a0e1a 100%);
	transition: margin-left 0.3s ease;
}

.page-content {
	flex: 1;
	padding: 24px 32px;
}

h1 {
	font-size: 32px;
	font-weight: 700;
	color: #fff;
	letter-spacing: -1px;
}

.content-footer {
	padding: 20px 32px;
	text-align: center;
	color: var(--text-muted);
	font-size: 13px;
	border-top: 1px solid rgba(255, 255, 255, 0.05);
	margin-top: auto;
}

h2 {
	color: #fff;
	margin: 0;
	font-size: 22px;
	font-weight: 600;
	letter-spacing: -0.5px;
}

h3 {
	color: var(--text);
	font-size: 18px;
	font-weight: 600;
}

button,
.btn-primary,
.btn-secondary {
	padding: 10px 20px;
	border: none;
	border-radius: 10px;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

button:active {
	transform: scale(0.96);
}

.btn-primary {
	background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
	color: #fff;
	box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
	box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
	transform: translateY(-2px);
}

.btn-secondary {
	background: rgba(71, 85, 105, 0.5);
	color: var(--text);
	border: 1px solid var(--border);
}

.btn-secondary:hover {
	background: rgba(71, 85, 105, 0.7);
}

form {
	display: grid;
	gap: 16px;
}

label {
	font-size: 13px;
	font-weight: 600;
	color: var(--text);
	display: flex;
	flex-direction: column;
	gap: 6px;
}

input,
select,
textarea {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	font-size: 14px;
	background: rgba(15, 23, 42, 0.5);
	color: var(--text);
	transition: all 0.2s ease;
	overflow: overlay;
}

input:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
	background: rgba(15, 23, 42, 0.7);
}

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

table th,
table td {
	padding: 14px 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	text-align: left;
	font-size: 14px;
}

table th {
	background: rgba(15, 23, 42, 0.5);
	color: var(--text-muted);
	font-weight: 600;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

th.xls-row-numeric {
	text-align: right !important;
	color: #64748b !important;
	font-size: 10px !important;
	font-family: "Consolas", monospace;
	border-right: 2px solid #334155 !important;
	width: 180px;
}

table tr:hover {
	background: rgba(59, 130, 246, 0.05);
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}
@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.modal-content {
	background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
	backdrop-filter: blur(20px);
	border-radius: 20px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	width: 90%;
	max-width: 650px;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
	animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	z-index: 1000000;
	margin: auto;
}

@keyframes slideUp {
	from {
		transform: translateY(30px);
		opacity: 0;
	}

	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	padding: 4px 15px;
}

.modal-header h2 {
	margin: 0;
	color: #38bdf8;
	font-size: 24px;
}

.modal-close {
	background: none;
	border: none;
	color: var(--text-muted);
	font-size: 32px;
	cursor: pointer;
	padding: 0;
	width: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	transition: all 0.2s ease;
}

.modal-close:hover {
	background: rgba(255, 255, 255, 0.05);
	color: #fff;
}

.modal-body {
	padding: 8px;
}

.modal-footer {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	border-top: 1px solid rgba(255, 255, 255, 0.05);
	padding: 10px 15px;
}

.modal-footer button {
	min-width: 110px;
	justify-content: center;
}

@media (max-width: 768px) {
	.main-content {
		margin-left: 0;
	}

	.page-content,
	.content-footer {
		padding-left: 16px;
		padding-right: 16px;
	}
}

.toast-container {
	position: fixed;
	top: 80px;
	right: 20px;
	z-index: 999999;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.toast {
	background: linear-gradient(135deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
	backdrop-filter: blur(20px);
	padding: 16px 24px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 300px;
	animation: slideInRight 0.3s ease;
	position: relative;
}

@keyframes slideInRight {
	from {
		transform: translateX(400px);
		opacity: 0;
	}

	to {
		transform: translateX(0);
		opacity: 1;
	}
}

.toast-icon {
	font-size: 24px;
}

.toast-content {
	flex: 1;
	color: var(--text);
	font-size: 14px;
}

.toast-close {
	background: none;
	border: none;
	color: var(--text-muted);
	font-size: 20px;
	cursor: pointer;
	padding: 0;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	transition: all 0.2s ease;
}

.toast-close:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

table tbody tr {
	transition: all 0.2s ease;
}

table tbody tr:hover {
	background: rgba(59, 130, 246, 0.1);
}

@media (max-width: 768px) {
	.toast-container {
		left: 20px;
		right: 20px;
	}

	.toast {
		min-width: auto;
	}
}

@media print {
	.xls-cell-edit {
		width: 100px;
		padding: 0;
		background: transparent;
		border: 0;
		border-color: transparent !important;
		text-align: left;
		outline: none;
	}
	.xls-toolbar,
	.xls-search-bar,
	.xls-sheet-tabs,
	.xls-statusbar,
	.xls-actions,
	.xls-action-btn,
	.xls-tb-btn,
	.xls-dashboard {
		border: none;
		box-shadow: none;
	}

	.xls-table tbody td,
	.xls-table thead th {
		border-color: #ccc !important;
		color: #000 !important;
	}

	.xls-data-row,
	.xls-data-row:nth-child(even) {
		background: #fff !important;
	}

	.xls-stat-cell {
		background: #f5f5f5 !important;
	}

	.xls-stat-value,
	.xls-bold {
		color: #000 !important;
	}
	.main-content {
		margin-left: 0 !important;
	}
	.xls-topnav,
	.xls-toolbar,
	.xls-statusbar,
	.toast-container,
	.xls-actions,
	.modal-overlay {
		display: none !important;
	}

	body,
	body.light-theme {
		background: #fff !important;
		color: #000 !important;
	}

	.xls-data-table thead th {
		background: #e2e8f0 !important;
		color: #000 !important;
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}

	.xls-data-table tbody td {
		color: #000 !important;
		border-color: #ccc !important;
	}

	.xls-stat-cell {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}

	.xls-formula-bar {
		background: #f0f0f0 !important;
		color: #000 !important;
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}
}
.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2000;
	visibility: hidden;
	transition:
		opacity 0.2s,
		visibility 0.2s;
}

.modal-overlay.active {
	display: flex;
	opacity: 1;
	visibility: visible;
}

.modal-header h3 {
	color: var(--text);
	font-size: 16px;
	font-weight: 600;
	margin: 0;
}

.modal-body {
	/* margin-bottom: 20px; */
	color: var(--text-muted);
	font-size: 14px;
	line-height: 1.6;
}

.xls-dashboard {
	background: #0f172a;
	border: 1px solid #1e293b;
	border-radius: 8px;
	/* overflow: hidden; */
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
	padding: 0 7px;
}

.xls-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
	padding: 8px 12px;
	background: linear-gradient(180deg, #1e293b 0%, #172033 100%);
	border-bottom: 2px solid #334155;
	align-items: flex-start;
	margin: 0 -7px 8px -7px;
}

.xls-toolbar-group {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 4px 16px 6px 0;
	border-right: 1px solid #334155;
}

.xls-toolbar-group:last-child {
	border-right: none;
}

.xls-toolbar-label {
	font-size: 10px;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-weight: 700;
}

.xls-toolbar-buttons {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
}

.xls-tb-btn {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 6px 10px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid transparent;
	border-radius: 4px;
	color: #cbd5e1;
	text-decoration: none;
	font-size: 11px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.15s ease;
	min-width: 56px;
}

.xls-tb-btn:hover {
	background: rgba(59, 130, 246, 0.15);
	border-color: rgba(59, 130, 246, 0.3);
	color: #fff;
	transform: translateY(-1px);
}

.xls-tb-btn:active {
	transform: scale(0.97);
}

.xls-tb-icon {
	font-size: 18px;
	line-height: 1;
}

.xls-tb-text {
	font-size: 10px;
	white-space: nowrap;
}

.xls-tb-btn-sm {
	flex-direction: row;
	gap: 6px;
	padding: 6px 14px;
	font-size: 12px;
	min-width: unset;
}

.xls-tb-btn-sm .xls-tb-icon {
	font-size: 14px;
}

.xls-formula-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 4px 12px;
	background: #1a2332;
	border-bottom: 1px solid #334155;
	font-size: 12px;
	border-radius: 6px 6px 0 0;
}

.xls-cell-ref {
	background: #0f172a;
	border: 1px solid #334155;
	padding: 3px 10px;
	border-radius: 3px;
	color: #3b82f6;
	font-weight: 700;
	font-size: 11px;
	min-width: 70px;
	text-align: center;
}

.xls-formula-content {
	flex: 1;
	color: #94a3b8;
	font-family: "Consolas", "Monaco", monospace;
	font-size: 11px;
	letter-spacing: 0.2px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.xls-stats-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	background: #334155;
	border-bottom: 2px solid #334155;
	/* margin-top: 8px; */
}

.xls-stat-cell {
	background: #1e293b;
	padding: 12px 14px;
	position: relative;
	transition: all 0.15s ease;
	display: flex;
	column-gap: 5px;
	align-items: start;
	border-right: 1px solid #334155;
	flex-direction: column;
}

.xls-stat-cell:hover {
	background: #253449;
	z-index: 1;
}

.xls-stat-header {
	position: absolute;
	top: 3px;
	right: 6px;
	font-size: 9px;
	color: #475569;
	font-family: "Consolas", monospace;
	font-weight: 600;
}

.xls-stat-label {
	font-size: 10px;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-weight: 600;
	/* margin-bottom: 4px; */
}

.xls-stat-value {
	font-size: 16px;
	font-weight: 800;
	color: #fff;
	letter-spacing: -0.5px;
	line-height: 1.2;
}

.xls-stat-money {
	font-size: 15px;
	font-family: "Consolas", monospace;
}

.xls-stat-blue {
	border-top: 3px solid #3b82f6;
}

.xls-stat-cyan {
	border-top: 3px solid #06b6d4;
}

.xls-stat-green {
	border-top: 3px solid #10b981;
}

.xls-stat-orange {
	border-top: 3px solid #f59e0b;
}

.xls-stat-purple {
	border-top: 3px solid #8b5cf6;
}

.xls-stat-emerald {
	border-top: 3px solid #34d399;
}

.xls-stat-red {
	border-top: 3px solid #ef4444;
}

.xls-stat-teal {
	border-top: 3px solid #14b8a6;
}

.xls-progress-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 16px;
	padding: 12px 16px;
	background: #172033;
	border-bottom: 1px solid #334155;
}

.xls-progress-item {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.xls-progress-info {
	display: flex;
	justify-content: space-between;
	font-size: 11px;
	color: #94a3b8;
	font-weight: 500;
}

.xls-progress-pct {
	color: #fff;
	font-weight: 700;
	font-family: "Consolas", monospace;
}

.xls-progress-track {
	height: 6px;
	background: #0f172a;
	border-radius: 3px;
	overflow: hidden;
}

.xls-progress-fill {
	height: 100%;
	border-radius: 3px;
	transition: width 0.6s ease;
	min-width: 2px;
}

.xls-fill-blue {
	background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.xls-fill-green {
	background: linear-gradient(90deg, #10b981, #34d399);
}

.xls-fill-purple {
	background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}

.xls-sheet-tabs {
	display: flex;
	gap: 0;
	padding: 2px 9px;
	background: #0f172a;
	border-bottom: 2px solid #334155;
	overflow-x: auto;
}

.xls-tab {
	padding: 8px 18px;
	background: transparent;
	border: 1px solid transparent;
	border-bottom: none;
	border-radius: 6px 6px 0 0;
	color: #64748b;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s ease;
	white-space: nowrap;
	position: relative;
	margin-bottom: -2px;
}

.xls-tab:hover {
	background: #1e293b;
	color: #cbd5e1;
}

.xls-tab.active {
	background: #1e293b;
	color: #fff;
	border-color: #334155;
	border-bottom-color: #1e293b;
	margin-bottom: -2px;
	padding-bottom: 10px;
}

.xls-tab-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	background: #ef4444;
	color: #fff;
	border-radius: 9px;
	font-size: 10px;
	font-weight: 700;
	margin-left: 6px;
	animation: xls-pulse 2s infinite;
}

@keyframes xls-pulse {
	0%,
	100% {
		opacity: 1;
	}

	50% {
		opacity: 0.6;
	}
}

.xls-search-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	background: #1a2332;
	border-bottom: 1px solid #334155;
}

.xls-search-icon {
	font-size: 14px;
	color: #64748b;
}

.xls-search-input {
	flex: 1;
	padding: 6px 10px;
	background: #0f172a;
	border: 1px solid #334155;
	border-radius: 4px;
	color: #e2e8f0;
	font-size: 12px;
	outline: none;
	transition: border-color 0.15s ease;
}

.xls-search-input:focus {
	border-color: #3b82f6;
	box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.xls-result-count {
	font-size: 11px;
	color: #64748b;
	font-family: "Consolas", monospace;
	min-width: 80px;
	text-align: right;
}

.xls-sheet {
	min-height: 200px;
}

.xls-sheet-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 16px;
	background: #172033;
	border-bottom: 1px solid #334155;
}

.xls-sheet-header h3 {
	font-size: 14px;
	font-weight: 700;
	color: #e2e8f0;
	margin: 0;
}

.xls-sheet-actions {
	display: flex;
	gap: 8px;
	align-items: center;
}

.xls-mini-select {
	padding: 4px 8px;
	background: #0f172a;
	border: 1px solid #334155;
	border-radius: 4px;
	color: #cbd5e1;
	font-size: 11px;
	cursor: pointer;
	outline: none;
}

.xls-mini-select:focus {
	border-color: #3b82f6;
}

.xls-table-wrap {
	overflow-x: auto;
}

.xls-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 12px;
}
.table_action {
	text-align: center;
}
.xls-table thead th {
	padding: 8px 12px;
	background: #1e293b;
	color: #94a3b8;
	font-weight: 700;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border: 1px solid #334155;
	text-align: left;
	position: sticky;
	top: 0;
	z-index: 2;
	white-space: nowrap;
	user-select: none;
}

.sortable-col::after {
	content: " ↕";
	font-size: 9px;
	opacity: 0.4;
}

.sortable-col.sort-asc::after {
	content: " ↑";
	opacity: 1;
	color: #3b82f6;
}

.sortable-col.sort-desc::after {
	content: " ↓";
	opacity: 1;
	color: #3b82f6;
}

.xls-row-num {
	width: 36px;
	min-width: 36px;
	text-align: center !important;
	color: #64748b !important;
	font-size: 10px !important;
	font-family: "Consolas", monospace;
	background: #172033 !important;
	border-right: 2px solid #334155 !important;
}

.xls-table tbody td {
	padding: 7px 12px;
	border: 1px solid rgba(51, 65, 85, 0.5);
	color: #cbd5e1;
	vertical-align: middle;
	transition: background 0.1s ease;
}

.xls-data-row {
	background: #0f172a;
	transition: background 0.1s ease;
}

.xls-data-row:nth-child(even) {
	background: #131d2e;
}

.xls-data-row:hover {
	background: rgba(59, 130, 246, 0.08);
}

.xls-data-row:hover td {
	border-color: rgba(59, 130, 246, 0.2);
}

.xls-row-warning:hover {
	background: rgba(239, 68, 68, 0.1) !important;
}

.xls-bold {
	font-weight: 600;
	color: #e2e8f0;
}

.xls-number {
	font-family: "Consolas", "Monaco", monospace;
	text-align: right;
	font-weight: 600;
	white-space: nowrap;
}

.xls-link {
	color: #3b82f6;
	text-decoration: none;
	font-weight: 500;
}

.xls-link:hover {
	color: #60a5fa;
	text-decoration: underline;
}

.xls-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 3px;
	font-size: 10px;
	font-weight: 600;
}

.xls-badge-blue {
	background: rgba(59, 130, 246, 0.15);
	color: #60a5fa;
}

.xls-badge-green {
	background: rgba(16, 185, 129, 0.15);
	color: #34d399;
}

.xls-badge-purple {
	background: rgba(139, 92, 246, 0.15);
	color: #a78bfa;
}

.xls-badge-red {
	background: rgba(239, 68, 68, 0.15);
	color: #f87171;
}

.xls-empty {
	text-align: center;
	padding: 40px 20px !important;
	color: #64748b;
	font-size: 13px;
}

.xls-empty a {
	color: #3b82f6;
	text-decoration: none;
	font-weight: 600;
}

.xls-empty a:hover {
	text-decoration: underline;
}

.xls-table-footer {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	padding: 8px 16px;
	background: #172033;
	border-top: 2px solid #334155;
	font-size: 11px;
	color: #94a3b8;
	font-weight: 600;
	font-family: "Consolas", monospace;
}

.xls-statusbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 4px 12px;
	background: #1e3a5f;
	border-top: 1px solid #2563eb;
	font-size: 11px;
	color: #94a3b8;
	margin-bottom: 8px;
}

.xls-statusbar-left,
.xls-statusbar-right {
	display: flex;
	align-items: center;
	gap: 8px;
}

.xls-statusbar-sep {
	color: #334155;
	font-size: 10px;
}

@media (max-width: 768px) {
	.xls-toolbar {
		flex-direction: column;
		gap: 8px;
	}

	.xls-toolbar-group {
		border-right: none;
		border-bottom: 1px solid #334155;
		padding-bottom: 8px;
	}

	.xls-toolbar-group:last-child {
		border-bottom: none;
	}

	.xls-stats-row {
		grid-template-columns: repeat(2, 1fr);
	}

	.xls-stat-value {
		font-size: 18px;
	}

	.xls-stat-money {
		font-size: 13px;
	}

	.xls-formula-bar {
		display: none;
	}

	.xls-sheet-tabs {
		padding: 0 4px;
	}

	.xls-tab {
		padding: 6px 10px;
		font-size: 11px;
	}

	.xls-progress-row {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.xls-statusbar {
		flex-direction: column;
		gap: 4px;
		padding: 6px 12px;
	}

	.xls-sheet-header {
		flex-direction: column;
		gap: 8px;
		align-items: flex-start;
	}
}

.xls-filters-panel {
	display: flex;
	gap: 8px;
	padding: 10px 12px;
	background: #0c1425;
	border: 1px solid #1e3a5f;
	border-top: none;
	align-items: center;
	flex-wrap: wrap;
}

.xls-filter-input {
	padding: 6px 10px;
	background: #0f172a;
	border: 1px solid #1e3a5f;
	color: #e2e8f0;
	border-radius: 3px;
	font-size: 12px;
	min-width: 100px;
}

.xls-filter-input:focus {
	border-color: #3b82f6;
	outline: none;
}

.xls-filter-sm {
	width: 80px;
	min-width: 60px;
}

.xls-filter-clear {
	padding: 6px 12px;
	background: #ef4444;
	color: white;
	border: none;
	border-radius: 3px;
	cursor: pointer;
	font-size: 12px;
	font-weight: 600;
}

.xls-filter-clear:hover {
	background: #dc2626;
}

.xls-table-footer {
	display: flex;
	gap: 16px;
	padding: 8px 12px;
	background: #0c1425;
	border: 1px solid #1e3a5f;
	border-top: none;
	font-size: 11px;
	color: #94a3b8;
}

.xls-table-footer span {
	white-space: nowrap;
}

.xls-actions {
	text-align: center;
	white-space: nowrap;
}

.xls-action-btn {
	font-size: 14px;
	cursor: pointer;
	padding: 2px 6px;
	line-height: 1;
	color: #94a3b8;
	text-decoration: none;
	border: none;
	background: none;
	outline: none;
}

.xls-action-btn:hover {
	opacity: 0.8;
	color: #e2e8f0;
}

body.light-theme .xls-action-btn {
	color: #64748b;
}

body.light-theme .xls-action-btn:hover {
	color: #1e293b;
}

.xls-empty {
	text-align: center;
	color: #64748b;
	padding: 40px 20px !important;
	font-size: 13px;
}

.xls-cell-edit {
	width: 100%;
	padding: 5px 8px;
	background: #0f172a;
	border: 1px solid #1e3a5f;
	color: #e2e8f0;
	border-radius: 3px;
	font-size: 12px;
	box-sizing: border-box;
}

.xls-cell-edit:focus {
	border-color: #3b82f6;
	outline: none;
	background: #0a0f1e;
}

.xls-plan-inline {
	padding: 3px 6px;
	font-size: 11px;
	min-width: 80px;
	height: 28px;
}

.xls-plan-inline-money {
	text-align: right;
	font-weight: 600;
	min-width: 90px;
}

select.xls-plan-inline {
	min-width: 75px;
	cursor: pointer;
}

input[type="date"].xls-plan-inline {
	min-width: 120px;
}

.xls-cell-right {
	text-align: right;
}

.xls-hakedis-done:hover {
	filter: brightness(1.15);
	transform: translateY(-1px);
	box-shadow: 0 3px 8px rgba(16, 185, 129, 0.25) !important;
}

.xls-detail-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 3px;
	border: 1px solid #1e3a5f;
	margin-bottom: 8px;
}

.xls-detail-grid:has(.xls-section-block) {
	border: 0;
}

.xls-detail-item {
	background: #0f172a;
	padding: 10px 12px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.xls-detail-label {
	color: #64748b;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-weight: 600;
}

.xls-detail-value {
	color: #e2e8f0;
	font-size: 13px;
	font-weight: 600;
}

.xls-edit-form-wrap {
	background: #0c1425;
	border: 1px solid #1e3a5f;
	margin-bottom: 2px;
	padding: 0;
}

.xls-edit-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 12px;
	padding: 16px;
}

.xls-edit-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.xls-edit-field label {
	color: #64748b;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	font-weight: 600;
}

.xls-edit-actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	padding: 12px 16px;
	border-top: 1px solid #1e3a5f;
}

.xls-edit-save {
	padding: 6px 16px;
	background: #10b981;
	color: white;
	border: none;
	border-radius: 3px;
	cursor: pointer;
	font-weight: 600;
	font-size: 12px;
}

.xls-edit-save:hover {
	background: #059669;
}

.xls-edit-cancel {
	padding: 6px 16px;
	background: #ef4444;
	color: white;
	border: none;
	border-radius: 3px;
	cursor: pointer;
	font-weight: 600;
	font-size: 12px;
}

.xls-edit-cancel:hover {
	background: #dc2626;
}

.xls-tab-actions {
	display: inline-flex;
	gap: 4px;
	margin-left: 6px;
	opacity: 0;
	transition: opacity 0.15s;
	font-size: 11px;
}

.xls-tab:hover .xls-tab-actions {
	opacity: 1;
}

.xls-tab-add {
	font-size: 16px !important;
	font-weight: 700 !important;
	padding: 6px 14px !important;
	color: #10b981 !important;
	background: transparent !important;
	border: 1px dashed #1e3a5f !important;
}

.xls-tab-add:hover {
	background: rgba(16, 185, 129, 0.1) !important;
	border-color: #10b981 !important;
}

.xls-block-panel {
	border: 1px solid #1e3a5f;
	border-top: none;
}

.xls-block-panel .xls-table-wrap {
	border: none;
}

.xls-block-panel .xls-table {
	border: none;
}

.xls-block-edit {
	background: #0c1425;
	border-bottom: 1px solid #1e3a5f;
}

.xls-floor-header {
	background: #162032 !important;
}

.xls-floor-header td {
	padding: 8px 12px !important;
	font-weight: 700 !important;
	color: #94a3b8 !important;
	font-size: 12px !important;
	border-bottom: 1px solid #1e3a5f !important;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.xls-row-sold {
	background: rgba(245, 158, 11, 0.1) !important;
}

.xls-row-sold:hover {
	background: rgba(245, 158, 11, 0.12) !important;
}

.xls-badge {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 3px;
	font-size: 11px;
	font-weight: 600;
	white-space: nowrap;
}

.xls-badge-gray {
	background: rgba(100, 116, 139, 0.15);
	color: #94a3b8;
}

.xls-consultant-warning {
	background: linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0%, rgba(239, 68, 68, 0.12) 100%);
	border: 2px solid rgba(245, 158, 11, 0.5);
	border-radius: 8px;
	padding: 14px 20px;
	margin: 10px 0;
	display: flex;
	align-items: center;
	gap: 14px;
	animation: warningPulse 2s ease-in-out infinite;
	transition: all 0.2s ease;
	cursor: pointer;
}

.xls-consultant-warning:hover {
	background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(239, 68, 68, 0.18) 100%);
	border-color: rgba(245, 158, 11, 0.7);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.xls-consultant-warning-icon {
	font-size: 28px;
	flex-shrink: 0;
	animation: warningShake 3s ease-in-out infinite;
}

.xls-consultant-warning-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.xls-consultant-warning-text strong {
	color: #fbbf24;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.3px;
}

.xls-consultant-warning-text span {
	color: #f59e0b;
	font-size: 12px;
	opacity: 0.85;
}

@keyframes warningPulse {
	0%,
	100% {
		border-color: rgba(245, 158, 11, 0.5);
	}

	50% {
		border-color: rgba(245, 158, 11, 0.8);
	}
}

@keyframes warningShake {
	0%,
	100% {
		transform: rotate(0deg);
	}

	5% {
		transform: rotate(-8deg);
	}

	10% {
		transform: rotate(8deg);
	}

	15% {
		transform: rotate(-5deg);
	}

	20% {
		transform: rotate(5deg);
	}

	25% {
		transform: rotate(0deg);
	}
}

.xls-inline-form {
	background: #0c1425;
	margin: 8px;
	box-shadow: 0px 0px 9px 5px #58667a;
	border-radius: 6px;
}

.xls-inline-form-body {
	margin: 0;
}

.xls-progress-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 6px 12px;
	background: #0c1425;
	border: 1px solid #1e3a5f;
	border-top: none;
	margin-bottom: 8px;
}

.xls-progress-label {
	color: #64748b;
	font-size: 11px;
	font-weight: 600;
	white-space: nowrap;
	min-width: 100px;
}

.xls-progress-bar-bg {
	flex: 1;
	height: 12px;
	background: #1e293b;
	border-radius: 6px;
	overflow: hidden;
}

.xls-progress-bar-fill {
	height: 100%;
	background: linear-gradient(90deg, #10b981, #3b82f6);
	border-radius: 6px;
	transition: width 0.5s ease;
	min-width: 2px;
}

.xls-progress-pct {
	color: #10b981;
	font-size: 12px;
	font-weight: 700;
	min-width: 40px;
	text-align: right;
}

.xls-stat-orange .xls-stat-header {
	color: #fbbf24;
}

.xls-stat-orange .xls-stat-value {
	color: #fbbf24;
}

@media (max-width: 768px) {
	.xls-detail-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.xls-edit-grid {
		grid-template-columns: 1fr;
	}

	.xls-filters-panel {
		flex-direction: column;
	}

	.xls-filter-input {
		width: 100%;
	}

	.xls-progress-row {
		flex-direction: column;
		gap: 4px;
		align-items: stretch;
	}

	.xls-progress-pct {
		text-align: center;
	}
}

.xls-section-block {
	border: 1px solid #2d3748;
	border-radius: 4px;
	overflow: hidden;
	/* margin-bottom: 8px; */
	background: #1e293b;
}

.xls-section-header {
	background: #2d3748;
	color: #e2e8f0;
	padding: 8px 12px;
	font-size: 12px;
	font-weight: 600;
	border-bottom: 1px solid #3a4a5c;
	letter-spacing: 0.3px;
	display: flex;
}

.xls-section-body {
	padding: 12px;
	background: #1e293b;
}

.xls-section-body .xls-table {
	margin: 0;
}

.xls-btn-danger {
	color: #fca5a5 !important;
}

.xls-btn-danger:hover {
	background: #7f1d1d !important;
	color: #fecaca !important;
}

.xls-number[data-color="green"] {
	color: #10b981;
	font-weight: 600;
}

.xls-number[data-color="blue"] {
	color: #3b82f6;
	font-weight: 600;
}

.xls-number[data-color="red"] {
	color: #ef4444;
	font-weight: 600;
}

@media (max-width: 768px) {
	.xls-detail-grid[style*="1fr 1fr"] {
		grid-template-columns: 1fr !important;
	}

	.xls-payment-form .xls-edit-grid {
		grid-template-columns: 1fr !important;
	}
}

.xls-topnav {
	display: flex;
	align-items: stretch;
	background: linear-gradient(180deg, #1e293b 0%, #162032 100%);
	border-bottom: 2px solid #334155;
	min-height: 56px;
	position: sticky;
	top: 0;
	z-index: 999;
}

.xls-topnav-brand {
	display: flex;
	align-items: center;
	padding: 0 18px;
	font-size: 14px;
	font-weight: 700;
	color: #93c5fd;
	letter-spacing: -0.3px;
	border-right: 1px solid #334155;
	white-space: nowrap;
	background: rgba(0, 0, 0, 0.15);
}

.xls-topnav-logo {
	height: 36px;
	width: auto;
	display: block;
}

.xls-topnav-menu {
	display: flex;
	align-items: stretch;
	gap: 0;
	flex: 1;
	overflow-x: auto;
}

.xls-topnav-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	padding: 6px 16px;
	min-width: 72px;
	color: #94a3b8;
	text-decoration: none;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.3px;
	border-right: 1px solid rgba(51, 65, 85, 0.5);
	transition: all 0.15s ease;
	cursor: pointer;
	position: relative;
	text-transform: uppercase;
}

.xls-topnav-item:hover {
	background: rgba(59, 130, 246, 0.1);
	color: #e2e8f0;
}

.xls-topnav-item-active {
	background: rgba(59, 130, 246, 0.15);
	color: #fff;
}

.xls-topnav-item-active::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: #3b82f6;
}

.xls-topnav-icon {
	font-size: 20px !important;
	line-height: 1;
}

.xls-topnav-text {
	font-size: 10px;
	line-height: 1;
}

@media (max-width: 768px) {
	.xls-topnav-brand {
		padding: 0 10px;
		font-size: 12px;
	}

	.xls-topnav-item {
		min-width: 52px;
		padding: 6px 8px;
	}

	.xls-topnav-text {
		font-size: 9px;
	}
}

.xls-column-menu-item:hover {
	background: #334155;
}

.xls-column-menu-item input[type="checkbox"] {
	accent-color: #3b82f6;
	width: 14px;
	height: 14px;
}

body.light-theme {
	background: #f1f5f9;
	color: #1e293b;
}

body.light-theme .app-container {
	background: #f1f5f9;
}

body.light-theme .xls-topnav {
	background: linear-gradient(135deg, #2563eb, #1d4ed8);
	border-bottom: 2px solid #1e40af;
}

body.light-theme .xls-topnav-item {
	color: #dbeafe;
}

body.light-theme .xls-topnav-item:hover {
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
}

body.light-theme .xls-topnav-item-active {
	background: rgba(255, 255, 255, 0.2) !important;
	color: #fff !important;
	border-color: rgba(255, 255, 255, 0.4);
}

body.light-theme .main-content {
	background: #f1f5f9;
}

body.light-theme .page-content {
	background: #f1f5f9;
}

body.light-theme .xls-toolbar {
	background: #e2e8f0;
	border-color: #cbd5e1;
}

body.light-theme .xls-toolbar-label {
	color: #64748b;
}

body.light-theme .xls-tb-btn {
	background: #f8fafc;
	color: #334155;
	border-color: #cbd5e1;
}

body.light-theme .xls-tb-btn:hover {
	background: #e0e7ff;
	color: #1e40af;
	border-color: #93c5fd;
}

body.light-theme .xls-tb-text {
	color: #475569;
}

body.light-theme .xls-tb-btn:hover .xls-tb-text {
	color: #1e40af;
}

body.light-theme .xls-formula-bar {
	background: #fff;
	border-color: #cbd5e1;
	color: #334155;
}

body.light-theme .xls-cell-ref {
	background: #f1f5f9;
	color: #1e293b;
	border-color: #cbd5e1;
}

body.light-theme .xls-formula-content {
	color: #475569;
}

body.light-theme .xls-stats-row {
	background: transparent;
	border-color: #1e50da;
}

body.light-theme .xls-stat-cell {
	border-color: #cbd5e1;
	background: #e2e8f0;
}

body.light-theme .xls-stat-header {
	color: #94a3b8;
}

body.light-theme .xls-stat-label {
	color: #64748b;
}

body.light-theme .xls-data-table tbody td {
	border-color: #e2e8f0;
	color: #334155;
}

body.light-theme .xls-data-table tbody tr:hover td {
	background: #dbeafe !important;
}

body.light-theme .xls-data-table tbody tr:nth-child(even) td {
	background: #f8fafc;
}

body.light-theme .xls-data-table tbody tr:nth-child(odd) td {
	background: #fff;
}

body.light-theme .xls-statusbar {
	background: #e2e8f0;
	border-color: #cbd5e1;
	color: #475569;
}

body.light-theme .xls-section-block {
	background: #fff;
	border-color: #cbd5e1;
}

body.light-theme .xls-section-header {
	background: #f1f5f9;
	color: #1e293b;
	border-color: #cbd5e1;
}

body.light-theme .xls-section-body {
	background: #fff;
	color: #334155;
}

body.light-theme .modal-overlay {
	background: rgba(0, 0, 0, 0.3);
}

body.light-theme .modal-content {
	background: #fff;
	color: #1e293b;
	border-color: #cbd5e1;
}

body.light-theme .modal-header {
	border-color: #e2e8f0;
}

body.light-theme .xls-column-menu-item:hover {
	background: #f1f5f9;
}

body.light-theme .toast {
	background: #fff;
	color: #1e293b;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.light-theme input,
body.light-theme select,
body.light-theme textarea {
	background: #fff;
	color: #1e293b;
	border-color: #cbd5e1;
}

body.light-theme input:focus,
body.light-theme select:focus,
body.light-theme textarea:focus {
	border-color: #3b82f6;
	box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

body.light-theme a {
	color: #2563eb;
}

body.light-theme .xls-data-table a {
	color: #2563eb;
}

body.light-theme .xls-table {
	border-color: #cbd5e1;
}

body.light-theme .xls-table thead th {
	background: #e2e8f0;
	color: #1e293b;
	border-color: #cbd5e1;
}

body.light-theme .xls-table tbody td {
	color: #334155;
	border-color: #e2e8f0;
}

body.light-theme .xls-table-wrap {
	border-color: #cbd5e1;
}

body.light-theme .xls-data-row {
	background: #fff;
}

body.light-theme .xls-data-row:nth-child(even) {
	background: #f8fafc;
}

body.light-theme .xls-data-row:hover {
	background: #dbeafe !important;
}

body.light-theme .xls-data-row:hover td {
	border-color: rgba(59, 130, 246, 0.2);
}

body.light-theme .xls-row-num {
	background: #f1f5f9 !important;
	color: #94a3b8 !important;
	border-color: #cbd5e1 !important;
}

body.light-theme .xls-row-warning:hover {
	background: rgba(239, 68, 68, 0.14) !important;
}

body.light-theme .xls-bold {
	color: #1e293b;
}

body.light-theme .xls-number {
	color: #334155;
}

body.light-theme .xls-link {
	color: #2563eb;
}

body.light-theme .xls-link:hover {
	color: #1d4ed8;
}

body.light-theme .xls-stat-value {
	color: #1e293b;
}

body.light-theme .xls-stat-money {
	color: #1e293b;
}

body.light-theme .xls-badge-green {
	background: rgba(16, 185, 129, 0.12);
	color: #059669;
}

body.light-theme .xls-badge-red {
	background: rgba(239, 68, 68, 0.12);
	color: #dc2626;
}

body.light-theme .xls-badge-blue {
	background: rgba(59, 130, 246, 0.12);
	color: #2563eb;
}

body.light-theme .xls-badge-gray {
	background: rgba(100, 116, 139, 0.12);
	color: #64748b;
}

body.light-theme .xls-consultant-warning {
	background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(239, 68, 68, 0.08) 100%);
	border-color: rgba(245, 158, 11, 0.5);
}

body.light-theme .xls-consultant-warning:hover {
	background: linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0%, rgba(239, 68, 68, 0.12) 100%);
	box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

body.light-theme .xls-consultant-warning-text strong {
	color: #d97706;
}

body.light-theme .xls-consultant-warning-text span {
	color: #b45309;
}

.xls-sale-note-item:last-child {
	border-bottom: none !important;
}

body.light-theme .xls-sale-note-item {
	border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .xls-sale-note-item > div > div:first-child {
	color: #1e293b;
}

body.light-theme .xls-badge-purple {
	background: rgba(139, 92, 246, 0.12);
	color: #7c3aed;
}

body.light-theme .xls-sheet-tabs {
	background: #e2e8f0;
	border-color: #cbd5e1;
}

body.light-theme .xls-tab {
	color: #64748b;
}

body.light-theme .xls-tab:hover {
	background: #f1f5f9;
	color: #334155;
}

body.light-theme .xls-tab.active {
	background: #fff;
	color: #1e293b;
	border-color: #cbd5e1;
	border-bottom-color: #fff;
}

body.light-theme .xls-tab-add {
	color: #059669 !important;
	border-color: #cbd5e1 !important;
}

body.light-theme .xls-tab-add:hover {
	background: rgba(16, 185, 129, 0.08) !important;
	border-color: #059669 !important;
}

body.light-theme .xls-search-bar {
	background: #f1f5f9;
	border-color: #cbd5e1;
}

body.light-theme .xls-search-input {
	background: #fff;
	color: #1e293b;
	border-color: #cbd5e1;
}

body.light-theme .xls-mini-select {
	background: #fff;
	color: #334155;
	border-color: #cbd5e1;
}

body.light-theme .xls-sheet-header {
	background: #f1f5f9;
	border-color: #cbd5e1;
}

body.light-theme .xls-sheet-header h3 {
	color: #1e293b;
}

body.light-theme .xls-detail-grid {
	background: #cbd5e1;
	border-color: #cbd5e1;
}

body.light-theme .xls-detail-item {
	background: #fff;
}

body.light-theme .xls-detail-label {
	color: #64748b;
}

body.light-theme .xls-detail-value {
	color: #1e293b;
}

body.light-theme .xls-edit-form-wrap {
	background: #f8fafc;
	border-color: #cbd5e1;
}

body.light-theme .xls-edit-grid {
	background: #f8fafc;
}

body.light-theme .xls-edit-field label {
	color: #475569;
}

body.light-theme .xls-edit-actions {
	border-color: #cbd5e1;
}

body.light-theme .xls-cell-edit {
	background: #fff;
	color: #1e293b;
	border-color: #cbd5e1;
}

body.light-theme .xls-cell-edit:focus {
	background: #fff;
	border-color: #3b82f6;
}

body.light-theme .xls-block-panel {
	border-color: #cbd5e1;
}

body.light-theme .xls-block-edit {
	background: #f8fafc;
	border-color: #cbd5e1;
}

body.light-theme .xls-floor-header {
	background: #e2e8f0 !important;
}

body.light-theme .xls-floor-header td {
	color: #475569 !important;
	border-color: #cbd5e1 !important;
}

body.light-theme .xls-inline-form {
	background: #f8fafc;
	border-color: #cbd5e1;
}

body.light-theme .xls-progress-row {
	background: #f1f5f9;
	border-color: #cbd5e1;
}

body.light-theme .xls-progress-info {
	color: #475569;
}

body.light-theme .xls-progress-pct {
	color: #1e293b;
}

body.light-theme .xls-progress-track {
	background: #e2e8f0;
}

body.light-theme .xls-progress-bar-bg {
	background: #e2e8f0;
}

body.light-theme .xls-filters-panel {
	background: #f1f5f9;
	border-color: #cbd5e1;
}

body.light-theme .xls-filter-input {
	background: #fff;
	color: #1e293b;
	border-color: #cbd5e1;
}

body.light-theme .xls-table-footer {
	background: #f1f5f9;
	border-color: #cbd5e1;
	color: #475569;
}

body.light-theme .modal-btn-cancel:hover {
	background: #cbd5e1;
}

body.light-theme .modal-btn-confirm:hover {
	background: #1d4ed8;
}

body.light-theme .xls-btn-danger {
	color: #dc2626 !important;
}

body.light-theme .xls-btn-danger:hover {
	background: #fef2f2 !important;
	color: #b91c1c !important;
}

body.light-theme .xls-empty {
	color: #94a3b8;
}

body.light-theme .xls-dashboard {
	background: #f1f5f9;
	border-color: #1e51db;
}

body.light-theme .xls-toolbar-group {
	border-color: #cbd5e1;
}

body.light-theme .xls-toolbar-buttons {
	border-color: #cbd5e1;
}

.xls-add-row {
	background: #0c1425 !important;
}

.xls-total-row {
	background: #1a2332 !important;
	font-weight: 600;
}

.xls-muted-text {
	color: #64748b;
	font-size: 12px;
}

body.light-theme .xls-add-row {
	background: #f0f4ff !important;
}

body.light-theme .xls-total-row {
	background: #e8f0fe !important;
}

body.light-theme .xls-muted-text {
	color: #94a3b8;
}

.xls-row-paid td {
	background: rgb(12 147 102 / 30%) !important;
}

.xls-row-paid:hover td {
	background: rgba(16, 185, 129, 0.12) !important;
}

body.light-theme .xls-row-paid td {
	background: rgba(16, 185, 129, 0.06) !important;
}

.xls-row-sold input {
	border: 0 !important;
	pointer-events: none;
	background: transparent;
}

.xls-row-sold .xls-apt-action-save {
	visibility: hidden;
}

.flash {
	-webkit-animation: flash 0.3s linear infinite alternate both;
	animation: flash 0.3s linear infinite alternate both;
}

@-webkit-keyframes flash {
	0% {
		background: #891a1a;
	}

	100% {
		background: #705a01;
	}
}

@keyframes flash {
	0% {
		background: #891a1a;
	}

	100% {
		background: #705a01;
	}
}

.selected {
	background: #236871 !important;
}

.xls-disabled {
	pointer-events: none;
	background: #1e1c1c !important;
}

.xls-disabled input,
.xls-disabled button,
.xls-disabled select {
	background: black !important;
	opacity: 0.3;
}

.xls-section-header button {
	font-size: 10px !important;
	padding: 0 !important;
	height: 17px !important;
	width: 17px !important;
	margin-left: auto !important;
}

.earn_consultant {
	font-size: 11px;
	padding: 4px 12px;
	background: linear-gradient(135deg, #059669, #10b981);
	color: #fff;
	border-radius: 6px;
	border: 1px solid #34d39944;
	cursor: pointer;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
	transition: all 0.2s;
}
.earn_conf {
	font-size: 11px;
	padding: 4px 12px;
	background: linear-gradient(135deg, #2563eb, #3b82f6);
	color: #fff;
	border-radius: 6px;
	border: 1px solid #60a5fa44;
	cursor: pointer;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	box-shadow: 0 2px 6px rgba(59, 130, 246, 0.25);
	transition: all 0.2s;
}
.earn_consultant span,
.earn_conf span {
	font-size: 13px;
}

.xls-sale-note-item {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 8px;
	padding: 8px 10px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	font-size: 12px;
}
.progress_modal {
	position: fixed;
	inset: 0px;
	background: rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
}
.progress_modal div {
	background: #0f172a;
	border: 1px solid #1e3a5f;
	border-radius: 8px;
	padding: 20px;
}

.xls-modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
}

.xls-modal > div {
	background: #0f172a;
	border: 1px solid #1e3a5f;
	border-radius: 8px;
	padding: 20px;
	min-width: 340px;
	max-width: 420px;
}
.xls-modal .xls-modal-footer {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 14px;
}

td.title {
	padding: 4px 0;
	color: #94a3b8;
	font-size: 12px;
	width: 100px;
}

td.content {
	padding: 4px 0;
}

.xls-row-unpaid {
	background: #d59a2738 !important;
}

form#note-add-form {
	display: flex;
	gap: 8px;
	align-items: flex-end;
}

form#note-add-form textarea {
	min-height: 60px;
	resize: vertical;
	flex: 1;
}

form#note-add-form button {
	background: #10b981;
	color: white;
}

.focus {
	-webkit-animation: flash 0.4s linear infinite alternate both;
	animation: flash 0.4s linear infinite alternate both;
}

@-webkit-keyframes flash {
	0% {
		box-shadow: 0px 0px 1px 1px #ffffff;
	}

	100% {
		box-shadow: 0 0 0 0 #ffffff;
	}
}

@keyframes flash {
	0% {
		box-shadow: 0px 0px 1px 1px #ffffff;
	}

	100% {
		box-shadow: 0 0 0 0 #ffffff;
	}
}

.spacer.left {
	margin-left: 7px;
}

::-webkit-scrollbar {
	width: 5px;
	height: 8px;
	background-color: #0f172a;
}

::-webkit-scrollbar-thumb {
	background: #2d3748;
}

option:checked {
	background: selecteditem;
	color: selecteditemtext;
}
.flex {
	display: flex;
}

.note-tr :where(.save, .cancel, textarea) {
	display: none;
}

.editing :where(.save, .cancel, textarea) {
	display: initial;
}

.editing :where(.edit, .delete, span) {
	display: none;
}

.mt-5 {
	margin-top: 5px;
}

.mt-10 {
	margin-top: 10px;
}
.mt-8 {
	margin-top: 8px;
}
.mb-5 {
	margin-bottom: 5px;
}
.mb-10 {
	margin-bottom: 10px;
}
.mb-8 {
	margin-bottom: 8px;
}

[data-field="tc"]::-webkit-inner-spin-button {
	display: none;
}

.spacer.horizontal {
	margin-left: auto;
	margin-right: auto;
}

.logout {
	background: #813131;
	border-radius: 100%;
	width: 24px !important;
	height: 24px !important;
	flex-wrap: nowrap;
	min-width: 0;
	align-self: center;
	margin-right: 10px;
	font-size: 0;
	padding: 0 !important;
	justify-content: center;
}

.logout span {
	font-size: 15px !important;
	color: #fff;
}

.logout:hover span {
	color: #813131;
}

.logout:hover {
	background: #fff;
}

.modal-body table {
	margin: 2px;
	width: -webkit-fill-available;
}

.modal-body table td {
	padding: 8px !important;
}
