.wlc-widget {
	direction: rtl;
	text-align: right;
	font-family: inherit;
	max-width: 900px;
	margin: 0 auto;
}

.wlc-form {
	background: #fafafa;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	padding: 20px;
}

.wlc-form-title {
	margin: 0 0 16px;
	font-size: 1.25em;
}

.wlc-field-row {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 14px;
}

.wlc-field {
	flex: 1 1 220px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.wlc-field label {
	font-size: 0.9em;
	color: #444;
}

.wlc-input {
	padding: 9px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 1em;
	background: #fff;
	width: 100%;
	box-sizing: border-box;
}

.wlc-date-input-wrap {
	position: relative;
}

.wlc-date-input-wrap .wlc-input {
	cursor: pointer;
	background: #fff;
	padding-left: 36px;
}

.wlc-date-icon {
	position: absolute;
	left: 10px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1em;
	pointer-events: none;
	opacity: 0.7;
}

.wlc-datepicker-popup {
	position: absolute;
	z-index: 60;
	top: calc(100% + 6px);
	right: 0;
	width: 280px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	padding: 12px;
}

.wlc-dp-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

.wlc-dp-title {
	font-weight: 600;
	font-size: 0.95em;
}

.wlc-dp-nav {
	cursor: pointer;
	border: none;
	background: #f1f3f5;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	font-size: 1.1em;
	line-height: 1;
	color: #333;
}

.wlc-dp-nav:hover {
	background: #e3e7eb;
}

.wlc-dp-weekdays,
.wlc-dp-days {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
	text-align: center;
}

.wlc-dp-weekdays span {
	font-size: 0.8em;
	color: #888;
	padding: 4px 0;
}

.wlc-dp-day {
	padding: 7px 0;
	border-radius: 6px;
	cursor: pointer;
	font-size: 0.88em;
}

.wlc-dp-day:not(.wlc-dp-empty):hover {
	background: #e8f0fe;
}

.wlc-dp-empty {
	cursor: default;
}

.wlc-dp-today-cell {
	border: 1px solid #1565c0;
}

.wlc-dp-selected {
	background: #1565c0;
	color: #fff;
}

.wlc-dp-footer {
	margin-top: 8px;
	text-align: center;
	border-top: 1px dashed #eee;
	padding-top: 8px;
}

.wlc-dp-today {
	cursor: pointer;
	border: none;
	background: transparent;
	color: #1565c0;
	font-size: 0.85em;
}

.wlc-monthly-section {
	margin: 18px 0;
	border-top: 1px dashed #ddd;
	padding-top: 14px;
}

.wlc-monthly-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
	flex-wrap: wrap;
	gap: 8px;
}

.wlc-monthly-rows {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.wlc-monthly-row {
	display: flex;
	gap: 8px;
	align-items: center;
}

.wlc-monthly-row .wlc-month-select {
	flex: 0 0 120px;
}

.wlc-monthly-row .wlc-weight-input {
	flex: 1 1 auto;
}

.wlc-btn {
	cursor: pointer;
	border: none;
	border-radius: 6px;
	padding: 9px 16px;
	font-size: 0.95em;
}

.wlc-btn-primary {
	background: #1565c0;
	color: #fff;
}

.wlc-btn-primary:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.wlc-btn-secondary {
	background: #eceff1;
	color: #333;
}

.wlc-btn-remove {
	background: #ffebee;
	color: #c62828;
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	line-height: 1;
	border-radius: 50%;
	font-size: 1.1em;
}

.wlc-form-error {
	display: none;
	color: #c62828;
	background: #ffebee;
	border: 1px solid #ffcdd2;
	border-radius: 6px;
	padding: 8px 12px;
	margin: 12px 0;
}

.wlc-results {
	margin-top: 24px;
}

.wlc-summary {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 20px;
}

.wlc-summary span {
	flex: 1 1 180px;
	background: linear-gradient(135deg, #f1f8e9, #e8f5e9);
	border: 1px solid #dcedc8;
	border-radius: 10px;
	padding: 10px 14px;
	font-size: 0.9em;
	color: #33691e;
}

.wlc-summary span strong {
	font-size: 1.15em;
	color: #1b5e20;
}

.wlc-chart-wrap {
	position: relative;
	height: 380px;
	margin-bottom: 28px;
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 12px;
	padding: 18px 14px 10px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

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

.wlc-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.92em;
}

.wlc-table th,
.wlc-table td {
	border: 1px solid #e0e0e0;
	padding: 8px 10px;
	text-align: center;
	white-space: nowrap;
}

.wlc-table thead th {
	background: #f5f5f5;
	font-weight: 600;
}

.wlc-table tbody tr:nth-child(even) {
	background: #fafafa;
}

@media (max-width: 600px) {
	.wlc-chart-wrap {
		height: 280px;
	}
}
