/* InoLeap daterangepicker enhancement styles - shared by ino-drp.js */

.daterangepicker {
	z-index: 9999 !important;
}

/* Popup card polish */
.bw-cal {
	border: 1px solid #e9ecef;
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

/* Hide native month/year selects - custom .bw-sel UI replaces them.
   Elements stay in DOM: daterangepicker reads/writes them on change. */
.bw-cal select.monthselect,
.bw-cal select.yearselect { display: none; }

.bw-sel { position: relative; display: inline-block; margin: 0 2px; }
.bw-sel-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	font-size: 0.9rem;
	font-weight: 600;
	border: 1px solid #e9ecef;
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	line-height: 1.4;
	transition: border-color 0.15s ease;
}
.bw-sel-btn::after {
	content: '';
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid #555;
	transition: transform 0.15s ease;
}
.bw-sel-btn.open::after { transform: rotate(180deg); }
.bw-sel-btn:hover, .bw-sel-btn:focus-visible { border-color: #222; }
.bw-sel-list {
	position: absolute;
	top: calc(100% + 4px);
	left: 50%;
	transform: translateX(-50%);
	min-width: 126px;
	max-height: 232px;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: #fff;
	border: 1px solid #e3e5e8;
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
	padding: 4px;
	z-index: 10001;
	display: none;
	scrollbar-width: thin;
	scrollbar-color: rgba(0, 0, 0, 0.22) transparent;
}
.bw-sel--year .bw-sel-list { min-width: 104px; max-height: 296px; }
.bw-sel-list::-webkit-scrollbar { width: 6px; }
.bw-sel-list::-webkit-scrollbar-track { background: transparent; }
.bw-sel-list::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.18); border-radius: 3px; }
.bw-sel-list.open { display: block; animation: bwSelIn 0.14s ease; }
@media (prefers-reduced-motion: reduce) { .bw-sel-list.open { animation: none; } }
@keyframes bwSelIn {
	from { opacity: 0; transform: translateX(-50%) translateY(-4px); }
	to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.bw-sel-item {
	display: block;
	width: 100%;
	padding: 6px 14px;
	border: 0;
	border-radius: 6px;
	background: none;
	cursor: pointer;
	white-space: nowrap;
	text-align: center;
	font-size: 0.875rem;
	font-weight: 500;
}
.bw-sel-item:hover { background: #f0f0f5; }
.bw-sel-item:focus-visible { outline: 2px solid #222; outline-offset: -2px; }
.bw-sel-item.cur { background: rgba(40, 167, 69, 0.12); color: #155724; font-weight: 700; }
.bw-sel-item.dis, .bw-sel-item.dis:hover { color: #ced4da; background: none; cursor: not-allowed; }
.bw-sel-list::before, .bw-sel-list::after {
	content: '';
	display: none;
	position: sticky;
	left: 0;
	height: 16px;
	pointer-events: none;
	z-index: 1;
}
.bw-sel-list::before { top: 0; margin-bottom: -16px; background: linear-gradient(#fff, rgba(255, 255, 255, 0)); }
.bw-sel-list::after { bottom: 0; margin-top: -16px; background: linear-gradient(rgba(255, 255, 255, 0), #fff); }
.bw-sel-list.can-up::before { display: block; }
.bw-sel-list.can-down::after { display: block; }

/* Day cells are keyboard-focusable (roving tabindex) - visible ring */
.bw-cal td:focus-visible {
	outline: 2px solid #222;
	outline-offset: -2px;
	border-radius: 6px;
}
