/* ==========================================================
   Bus Rental Calculator — Frontend User Panel
   ========================================================== */

.brc-up-wrap {
	max-width: 920px;
	margin: 0 auto;
	padding: 32px 16px 48px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	font-size: 15px;
	color: #1d2327;
	line-height: 1.5;
	box-sizing: border-box;
}

/* ── Login card ────────────────────────────────────────────────────────────── */

.brc-up-login-card {
	max-width: 440px;
	margin: 40px auto 0;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 22px;
	padding: 44px 44px 38px;
	box-shadow:
		0 8px 40px rgba(0, 0, 0, 0.09),
		0 2px 10px rgba(0, 0, 0, 0.05);
}

.brc-up-logo-wrap {
	text-align: center;
	margin-bottom: 28px;
}

.brc-up-logo-img {
	height: 54px;
	width: auto;
	display: block;
}

.brc-up-logo-wrap .brc-up-logo-img {
	margin: 0 auto;
}

.brc-up-login-title {
	text-align: center;
	font-size: 1.2rem;
	font-weight: 700;
	color: #1e40af;
	margin: 0 0 26px;
}

/* ── Notices ───────────────────────────────────────────────────────────────── */

.brc-up-notice {
	padding: 11px 15px;
	border-radius: 9px;
	font-size: 0.875rem;
	font-weight: 500;
	margin-bottom: 18px;
	line-height: 1.45;
}

.brc-up-notice-ok {
	background: #dcfce7;
	color: #15803d;
	border: 1px solid #86efac;
}

.brc-up-notice-error {
	background: #fee2e2;
	color: #b91c1c;
	border: 1px solid #fca5a5;
}

/* ── Form base ─────────────────────────────────────────────────────────────── */

.brc-up-form .brc-up-field {
	margin-bottom: 18px;
}

.brc-up-form label {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	color: #374151;
	margin-bottom: 5px;
}

.brc-up-form input[type="text"],
.brc-up-form input[type="email"],
.brc-up-form input[type="password"],
.brc-up-form input[type="tel"] {
	width: 100%;
	padding: 10px 13px;
	border: 1.5px solid #d1d5db;
	border-radius: 9px;
	font-size: 0.95rem;
	font-family: inherit;
	background: #fff;
	color: #111827;
	transition: border-color 0.15s, box-shadow 0.15s;
	box-sizing: border-box;
}

.brc-up-form input:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.brc-up-form input[readonly] {
	background: #f9fafb;
	color: #6b7280;
	cursor: default;
}

.brc-up-form small {
	display: block;
	font-size: 0.78rem;
	color: #9ca3af;
	margin-top: 4px;
}

.brc-up-pass-wrap {
	position: relative;
	display: flex;
	align-items: stretch;
}

.brc-up-pass-wrap input {
	flex: 1;
	padding-right: 44px;
}

.brc-up-show-pass {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	font-size: 1rem;
	padding: 4px;
	color: #9ca3af;
	line-height: 1;
	transition: color 0.12s;
}

.brc-up-show-pass:hover {
	color: #374151;
}

.brc-up-btn-primary {
	display: block;
	width: 100%;
	padding: 12px 22px;
	background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
	color: #ffffff;
	border: none;
	border-radius: 10px;
	font-size: 1rem;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: opacity 0.15s, transform 0.12s;
	margin-top: 4px;
}

.brc-up-btn-primary:hover:not(:disabled) {
	opacity: 0.9;
	transform: translateY(-1px);
}

.brc-up-btn-primary:disabled {
	opacity: 0.55;
	cursor: default;
	transform: none;
}

.brc-up-btn-inline {
	width: auto;
	display: inline-block;
	padding: 10px 30px;
}

/* ── Panel (logged-in) ─────────────────────────────────────────────────────── */

.brc-up-panel {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 18px;
	overflow: hidden;
	box-shadow:
		0 4px 24px rgba(0, 0, 0, 0.07),
		0 1px 4px rgba(0, 0, 0, 0.04);
}

/* Header */
.brc-up-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 28px;
	background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
	flex-wrap: wrap;
	gap: 12px;
}

.brc-up-header-logo {
	display: flex;
	align-items: center;
	text-decoration: none;
}

.brc-up-header .brc-up-logo-img {
	height: 40px;
	filter: brightness(0) invert(1);
	opacity: 0.9;
}

.brc-up-header-user {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
}

.brc-up-greeting {
	color: #bfdbfe;
	font-size: 0.9rem;
}

.brc-up-greeting strong {
	color: #ffffff;
	font-weight: 700;
}

.brc-up-logout-link {
	display: inline-block;
	color: #bfdbfe;
	font-size: 0.82rem;
	font-weight: 500;
	text-decoration: none;
	border: 1px solid rgba(255, 255, 255, 0.28);
	padding: 5px 14px;
	border-radius: 20px;
	transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.brc-up-logout-link:hover {
	color: #ffffff;
	border-color: rgba(255, 255, 255, 0.55);
	background: rgba(255, 255, 255, 0.1);
}

/* Tabs */
.brc-up-tabs {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	padding: 0 20px;
	border-bottom: 1px solid #e5e7eb;
	background: #f8fafc;
	gap: 0;
}
.brc-up-tabs::-webkit-scrollbar { height: 6px; }
.brc-up-tabs::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

.brc-up-tab {
	display: inline-flex;
	flex: 0 0 auto;
	white-space: nowrap;
	align-items: center;
	gap: 7px;
	padding: 14px 20px;
	background: none;
	border: none;
	border-bottom: 3px solid transparent;
	font-size: 0.9rem;
	font-weight: 600;
	font-family: inherit;
	color: #6b7280;
	cursor: pointer;
	margin-bottom: -1px;
	transition: color 0.15s, border-color 0.15s;
	line-height: 1;
}

.brc-up-tab:hover {
	color: #2563eb;
}

.brc-up-tab-active {
	color: #2563eb;
	border-bottom-color: #2563eb;
}

.brc-up-tab-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	background: #2563eb;
	color: #ffffff;
	border-radius: 10px;
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 1;
}

/* Tab panes */
.brc-up-tab-pane {
	display: none;
	padding: 28px 32px 36px;
}

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

.brc-up-tab-desc {
	color: #6b7280;
	font-size: 0.875rem;
	margin: 0 0 22px;
	padding-bottom: 18px;
	border-bottom: 1px solid #f0f0f1;
}

/* Profile grid */
.brc-up-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px 24px;
}

.brc-up-readonly-tag {
	display: inline-block;
	font-size: 0.68rem;
	font-weight: 500;
	color: #9ca3af;
	background: #f3f4f6;
	padding: 1px 6px;
	border-radius: 4px;
	vertical-align: middle;
	margin-left: 6px;
}

.brc-up-form-actions {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid #f0f0f1;
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

/* Inquiries table */
.brc-up-inq-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.brc-up-inq-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.875rem;
	min-width: 640px;
}

.brc-up-inq-table th {
	text-align: left;
	padding: 9px 13px;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #6b7280;
	background: #f8fafc;
	border-bottom: 2px solid #e5e7eb;
	white-space: nowrap;
}

.brc-up-inq-table td {
	padding: 11px 13px;
	border-bottom: 1px solid #f3f4f6;
	vertical-align: middle;
}

.brc-up-inq-table tr:last-child td {
	border-bottom: none;
}

.brc-up-inq-table tr:hover td {
	background: #f8fafc;
}

.brc-up-route-cell {
	max-width: 280px;
}

.brc-up-arrow {
	color: #d1d5db;
	padding: 0 4px;
}

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

.brc-up-right {
	text-align: right;
}

.brc-up-muted {
	color: #9ca3af;
	font-size: 0.8rem;
}

.brc-up-status-badge {
	display: inline-block;
	padding: 3px 11px;
	border-radius: 20px;
	font-size: 0.72rem;
	font-weight: 700;
	white-space: nowrap;
	letter-spacing: 0.01em;
}

/* Empty state */
.brc-up-empty {
	text-align: center;
	padding: 52px 24px;
}

.brc-up-empty-icon {
	display: block;
	font-size: 3.2rem;
	margin-bottom: 14px;
	line-height: 1;
}

.brc-up-empty p {
	color: #6b7280;
	font-size: 1rem;
	margin: 0 0 8px;
}

.brc-up-empty-hint {
	font-size: 0.875rem !important;
	color: #9ca3af !important;
}

.brc-up-empty-hint a {
	color: #2563eb;
	text-decoration: underline;
}

/* ── Inquiries filter bar ────────────────────────────────────────────────────── */

.brc-up-inq-filter-bar {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
	flex-wrap: wrap;
}

.brc-up-inq-filter-label {
	font-size: 0.875rem;
	font-weight: 600;
	color: #374151;
	white-space: nowrap;
}

.brc-up-inq-filter-btns {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.brc-up-filter-btn {
	padding: 6px 16px;
	background: #f3f4f6;
	border: 1.5px solid #e5e7eb;
	border-radius: 20px;
	font-size: 0.82rem;
	font-weight: 600;
	font-family: inherit;
	color: #6b7280;
	cursor: pointer;
	transition: background 0.14s, border-color 0.14s, color 0.14s;
	line-height: 1.3;
}

.brc-up-filter-btn:hover {
	background: #eff6ff;
	border-color: #93c5fd;
	color: #1d4ed8;
}

.brc-up-filter-btn.brc-up-filter-active {
	background: #2563eb;
	border-color: #2563eb;
	color: #ffffff;
}

.brc-up-inq-count-badge {
	font-size: 0.82rem;
	color: #9ca3af;
	margin-left: auto;
}

/* Distance badges */
.brc-up-dist-badge {
	display: inline-block;
	padding: 2px 9px;
	border-radius: 10px;
	font-size: 0.75rem;
	font-weight: 700;
	white-space: nowrap;
	letter-spacing: 0.01em;
}

.brc-up-dist-near {
	background: #dcfce7;
	color: #15803d;
}

.brc-up-dist-mid {
	background: #fef9c3;
	color: #713f12;
}

.brc-up-dist-100 {
	background: #fed7aa;
	color: #9a3412;
}

.brc-up-dist-far {
	background: #fee2e2;
	color: #b91c1c;
}

/* ── Read-only fleet base block ──────────────────────────────────────────────── */

.brc-up-lock-badge {
	font-size: 0.8em;
	vertical-align: middle;
	margin-left: 4px;
}

.brc-up-base-readonly-block {
	background: #f0f9ff;
	border: 1px solid #bae6fd;
	border-radius: 9px;
	padding: 12px 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.brc-up-base-ro-address {
	font-weight: 600;
	color: #0369a1;
	font-size: 0.9rem;
}

.brc-up-base-ro-coords {
	font-size: 0.8rem;
}

/* ── Second filter bar ───────────────────────────────────────────────────────── */

.brc-up-inq-filter-bar2 {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 18px;
	flex-wrap: wrap;
	padding: 10px 14px;
	background: #f8fafc;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
}

.brc-up-filter-group2 {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.brc-up-filter-input {
	padding: 5px 10px;
	border: 1.5px solid #d1d5db;
	border-radius: 8px;
	font-size: 0.82rem;
	font-family: inherit;
	color: #374151;
	background: #fff;
	transition: border-color 0.14s;
}

.brc-up-filter-input:focus {
	outline: none;
	border-color: #2563eb;
}

.brc-up-filter-input-sm {
	width: 120px;
}

.brc-up-f-type-label {
	display: inline-flex !important;
	align-items: center;
	gap: 5px;
	font-size: 0.82rem;
	font-weight: 500;
	color: #374151;
	cursor: pointer;
	margin-bottom: 0;
}

.brc-up-f-type-label input[type="checkbox"] {
	width: 15px;
	height: 15px;
	accent-color: #2563eb;
	flex-shrink: 0;
	margin: 0;
	cursor: pointer;
}

/* ── Details modal ───────────────────────────────────────────────────────────── */

body.brc-up-modal-open {
	overflow: hidden;
}

#brc-up-details-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.48);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.brc-up-details-modal {
	background: #fff;
	border-radius: 16px;
	width: 100%;
	max-width: 560px;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	display: flex;
	flex-direction: column;
}

.brc-up-details-modal-hdr {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 22px 14px;
	border-bottom: 1px solid #e5e7eb;
	flex-shrink: 0;
}

.brc-up-details-title {
	font-size: 1rem;
	font-weight: 700;
	color: #1e40af;
	margin: 0;
}

.brc-up-details-close-btn {
	background: none;
	border: none;
	font-size: 1.5rem;
	line-height: 1;
	color: #9ca3af;
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 6px;
	transition: color 0.12s, background 0.12s;
	font-family: inherit;
}

.brc-up-details-close-btn:hover {
	color: #374151;
	background: #f3f4f6;
}

.brc-up-details-body {
	padding: 18px 22px 22px;
	flex: 1;
}

.brc-up-details-loading {
	color: #9ca3af;
	text-align: center;
	padding: 24px 0;
	font-size: 0.9rem;
}

.brc-up-details-hd {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
}

.brc-up-details-type {
	font-weight: 600;
	font-size: 0.95rem;
	color: #374151;
}

/* ── Centrum powiadomień (D3, od v1.63.0) ──────────────────────────────── */
.brc-up-notif-bell {
	position: relative;
	background: transparent;
	border: none;
	font-size: 1.3rem;
	line-height: 1;
	cursor: pointer;
	padding: 4px 6px;
	margin-right: 4px;
}
.brc-up-notif-badge {
	position: absolute;
	top: -2px;
	right: -2px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 8px;
	background: #dc2626;
	color: #fff;
	font-size: 0.65rem;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
	box-sizing: border-box;
}
.brc-up-notif-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.48);
	z-index: 100001;
}
.brc-up-notif-modal {
	background: #fff;
	width: 92%;
	max-width: 440px;
	margin: 8vh auto 0;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
	max-height: 76vh;
	display: flex;
	flex-direction: column;
}
.brc-up-notif-hd {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 18px;
	background: #f5f3ff;
	border-bottom: 1px solid #e5e7eb;
	font-weight: 600;
	color: #374151;
}
.brc-up-notif-close {
	background: transparent;
	border: none;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	color: #6b7280;
}
.brc-up-notif-list {
	padding: 6px 0;
	overflow-y: auto;
}
.brc-up-notif-item {
	padding: 11px 18px;
	border-bottom: 1px solid #f3f4f6;
}
.brc-up-notif-item.brc-up-notif-unread {
	background: #eff6ff;
}
.brc-up-notif-item-title {
	font-weight: 600;
	color: #1f2937;
	font-size: 0.95rem;
}
.brc-up-notif-item-body {
	color: #4b5563;
	font-size: 0.85rem;
	margin-top: 2px;
}
.brc-up-notif-item-time {
	color: #9ca3af;
	font-size: 0.75rem;
	margin-top: 4px;
}
.brc-up-notif-empty {
	padding: 24px 18px;
	text-align: center;
	color: #9ca3af;
}

.brc-up-map-section {
	margin: 4px 0 18px;
}

.brc-up-map-title {
	margin: 0 0 8px;
	font-size: 0.95rem;
	font-weight: 600;
	color: #374151;
}

.brc-up-minimap {
	height: 280px;
	width: 100%;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	overflow: hidden;
	z-index: 1;
}

.brc-up-details-tbl {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.875rem;
	margin-bottom: 18px;
}

.brc-up-details-tbl td {
	padding: 7px 10px;
	border-bottom: 1px solid #f3f4f6;
	vertical-align: top;
}

.brc-up-details-tbl td:first-child {
	color: #6b7280;
	width: 38%;
	white-space: nowrap;
}

.brc-up-details-tbl tr:last-child td {
	border-bottom: none;
}

.brc-up-details-pricing {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 10px;
	padding: 14px 16px 10px;
}

.brc-up-details-pricing-title {
	font-size: 0.875rem;
	font-weight: 700;
	color: #15803d;
	margin: 0 0 10px;
}

.brc-up-details-total td {
	font-weight: 700;
	color: #15803d;
	border-top: 2px solid #86efac !important;
	border-bottom: none !important;
}

.brc-up-details-note {
	font-size: 0.72rem;
	color: #9ca3af;
	font-style: italic;
	margin: 8px 0 0;
}

/* ── Number inputs (shared with fleet & settings forms) ─────────────────────── */

.brc-up-form input[type="number"] {
	width: 100%;
	padding: 10px 13px;
	border: 1.5px solid #d1d5db;
	border-radius: 9px;
	font-size: 0.95rem;
	font-family: inherit;
	background: #fff;
	color: #111827;
	transition: border-color 0.15s, box-shadow 0.15s;
	box-sizing: border-box;
}

.brc-up-form input[type="number"]:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* ── Fleet tab ───────────────────────────────────────────────────────────────── */

.brc-up-tab-toolbar {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 18px;
	flex-wrap: wrap;
}

.brc-up-bus-form-card {
	background: #f8fafc;
	border: 1.5px solid #dbeafe;
	border-radius: 14px;
	padding: 22px 24px 18px;
	margin-bottom: 22px;
}

.brc-up-card-title {
	font-size: 1rem;
	font-weight: 700;
	color: #1e40af;
	margin: 0 0 18px;
	padding-bottom: 12px;
	border-bottom: 1px solid #e5e7eb;
}

.brc-up-form-grid-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px 20px;
}

.brc-up-field-span2 {
	grid-column: span 2;
}

.brc-up-req {
	color: #dc2626;
	font-size: 0.9em;
}

.brc-up-checkbox-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 18px;
}

.brc-up-checkbox-label {
	display: flex !important;
	align-items: center;
	gap: 9px;
	cursor: pointer;
	font-size: 0.9rem;
	font-weight: 500;
	color: #374151;
	margin-bottom: 0;
}

.brc-up-checkbox-label input[type="checkbox"] {
	width: 17px;
	height: 17px;
	flex-shrink: 0;
	accent-color: #2563eb;
	cursor: pointer;
	margin: 0;
}

.brc-up-btn-secondary {
	display: inline-block;
	padding: 10px 22px;
	background: #f3f4f6;
	color: #374151;
	border: 1.5px solid #d1d5db;
	border-radius: 10px;
	font-size: 0.95rem;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.14s, border-color 0.14s;
	line-height: 1.4;
}

.brc-up-btn-secondary:hover:not(:disabled) {
	background: #e5e7eb;
	border-color: #9ca3af;
}

.brc-up-btn-secondary:disabled {
	opacity: 0.55;
	cursor: default;
}

.brc-up-btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: none;
	border: 1px solid transparent;
	border-radius: 7px;
	font-size: 1rem;
	cursor: pointer;
	padding: 0;
	line-height: 1;
	transition: background 0.12s, border-color 0.12s;
}

.brc-up-btn-icon:hover {
	background: #f3f4f6;
	border-color: #d1d5db;
}

.brc-up-btn-icon:disabled {
	opacity: 0.4;
	cursor: default;
}

.brc-up-fleet-actions {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 4px;
	white-space: nowrap;
}

/* ── Settings tab ────────────────────────────────────────────────────────────── */

.brc-up-settings-section {
	background: #f8fafc;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 20px 22px 16px;
	margin-bottom: 16px;
}

.brc-up-settings-title {
	font-size: 0.95rem;
	font-weight: 700;
	color: #1e40af;
	margin: 0 0 8px;
}

.brc-up-settings-desc {
	color: #6b7280;
	font-size: 0.82rem;
	margin: 0 0 14px;
	line-height: 1.5;
}

.brc-up-input-row {
	display: flex;
	gap: 10px;
	align-items: stretch;
}

.brc-up-input-row input {
	flex: 1;
	min-width: 0;
}

.brc-up-input-row .brc-up-btn-secondary {
	flex-shrink: 0;
	padding: 10px 16px;
	white-space: nowrap;
	align-self: stretch;
}

.brc-up-radio-group {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.brc-up-radio-label {
	display: flex !important;
	align-items: flex-start;
	gap: 12px;
	padding: 13px 16px;
	border: 1.5px solid #e5e7eb;
	border-radius: 10px;
	cursor: pointer;
	background: #fff;
	transition: border-color 0.14s, background 0.14s;
	margin-bottom: 0;
}

.brc-up-radio-label:hover {
	border-color: #93c5fd;
	background: #eff6ff;
}

.brc-up-radio-label:has(input:checked) {
	border-color: #2563eb;
	background: #eff6ff;
}

.brc-up-radio-label input[type="radio"] {
	width: 17px;
	height: 17px;
	flex-shrink: 0;
	margin: 2px 0 0;
	accent-color: #2563eb;
	cursor: pointer;
}

.brc-up-radio-content {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.brc-up-radio-content strong {
	font-size: 0.9rem;
	font-weight: 600;
	color: #1d2327;
}

.brc-up-radio-content small {
	font-size: 0.78rem;
	color: #6b7280;
	display: block;
	margin: 0;
}

/* ── Zdjęcia autobusów — sekcja w formularzu ─────────────────────────────────── */

.brc-up-bus-photos-section {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #e5e7eb;
}

.brc-up-bus-photos-title {
	font-size: 0.9rem;
	font-weight: 600;
	color: #374151;
	margin: 0 0 10px;
}

.brc-up-bus-photos-title small {
	font-weight: 400;
	color: #6b7280;
	margin-left: 4px;
}

/* Istniejące zdjęcia */
.brc-up-bus-photos-existing {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 10px;
}

.brc-up-bus-existing-photo-item {
	position: relative;
	display: inline-block;
}

.brc-up-bus-existing-photo-item img {
	width: 72px;
	height: 56px;
	object-fit: cover;
	border-radius: 6px;
	border: 1px solid #e5e7eb;
	display: block;
}

.brc-up-bus-photo-delete {
	position: absolute;
	top: -6px;
	right: -6px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #ef4444;
	color: #fff;
	border: none;
	font-size: 13px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

.brc-up-bus-photo-delete:hover {
	background: #dc2626;
}

/* Nowe zdjęcia — przycisk dodawania */
.brc-up-bus-photo-slots {
	margin-bottom: 8px;
}

.brc-up-bus-photo-add-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	background: #f0f9ff;
	border: 1px dashed #60a5fa;
	border-radius: 8px;
	color: #2563eb;
	font-size: 0.85rem;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.15s;
}

.brc-up-bus-photo-add-btn:hover {
	background: #dbeafe;
}

/* Podgląd wybranych nowych zdjęć */
.brc-up-bus-photo-previews {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.brc-up-bus-photo-preview-item img {
	width: 72px;
	height: 56px;
	object-fit: cover;
	border-radius: 6px;
	border: 1px solid #93c5fd;
	display: block;
}

/* Miniaturki w tabeli floty */
.brc-up-bus-thumbs {
	display: flex;
	align-items: center;
	gap: 3px;
	justify-content: center;
}

.brc-up-bus-thumb {
	width: 36px;
	height: 28px;
	object-fit: cover;
	border-radius: 4px;
	border: 1px solid #e5e7eb;
	display: block;
}

.brc-up-thumb-more {
	font-size: 0.75rem;
	font-weight: 600;
	color: #6b7280;
	background: #f3f4f6;
	border-radius: 4px;
	padding: 1px 5px;
	white-space: nowrap;
}

/* ── Kierowcy ────────────────────────────────────────────────────────────────── */

.brc-up-drv-photo-thumb {
	width: 44px;
	height: 44px;
	object-fit: cover;
	border-radius: 50%;
	border: 2px solid #e5e7eb;
	display: block;
	margin: 0 auto;
}

.brc-up-drv-photo-placeholder {
	color: #64748b;
	line-height: 1;
	display: block;
	text-align: center;
}

/* Domyślna ikona kierowcy (SVG) — od v1.26.2 */
.brc-up-driver-ico {
	display: inline-block;
	vertical-align: middle;
}
.brc-up-tab .brc-up-driver-ico {
	width: 1.05em;
	height: 1.05em;
	vertical-align: -0.15em;
	margin-right: 4px;
}
.brc-up-drv-photo-placeholder .brc-up-driver-ico {
	display: block;
	margin: 0 auto;
	width: 28px;
	height: 28px;
}
#brc-up-drv-photo-placeholder .brc-up-driver-ico {
	width: 44px;
	height: 44px;
}
.brc-up-empty-icon .brc-up-driver-ico {
	display: block;
	margin: 0 auto;
	width: 3.2rem;
	height: 3.2rem;
	color: #64748b;
}

/* ── Powiadomienia (od v1.29.0) ───────────────────────────────────────────── */
.brc-up-notify-log { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.brc-up-notify-block {
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
}
.brc-up-notify-block-hdr {
	background: #f8fafc;
	padding: 10px 14px;
	font-size: 0.9rem;
	border-bottom: 1px solid #eef2f7;
}
.brc-up-notify-items { width: 100%; border-collapse: collapse; }
.brc-up-notify-items td {
	padding: 8px 14px;
	border-bottom: 1px solid #f1f5f9;
	font-size: 0.85rem;
	vertical-align: top;
}
.brc-up-notify-items tr:last-child td { border-bottom: none; }

/* Auto-oferta: lista priorytetu pojazdów (od v1.30.0) */
.brc-up-priority-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-width: 520px; }
.brc-up-priority-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; font-size: .88rem; }
.brc-up-priority-handle { color: #cbd5e1; font-size: 16px; line-height: 1; }
.brc-up-priority-name { flex: 1 1 auto; }
.brc-up-priority-btns { flex: 0 0 auto; display: flex; gap: 4px; }
.brc-up-priority-btns button { width: 28px; height: 28px; border: 1px solid #d1d5db; background: #f8fafc; border-radius: 6px; cursor: pointer; font-size: 14px; line-height: 1; color: #334155; }
.brc-up-priority-btns button:hover { background: #eef2f7; }

/* Auto-oferta: badge „automatycznie wygenerowana" w widoku ofert Autora (od v1.31.0) */
.brc-up-auto-badge { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 999px; background: #eef2ff; color: #4338ca; border: 1px solid #c7d2fe; font-size: .72rem; font-weight: 600; white-space: nowrap; }
.brc-up-auto-calib { display: inline-block; margin-top: 3px; font-size: .72rem; color: #64748b; font-style: italic; line-height: 1.35; }

/* Auto-oferta: wybór trybu wyceny (od v1.34.0) */
.brc-up-radio-line { display: block; margin: 4px 0; font-size: .9rem; cursor: pointer; }
.brc-up-radio-line input { margin-right: 6px; }

.brc-up-drv-photo-wrap {
	display: flex;
	align-items: center;
	gap: 16px;
}

.brc-up-drv-photo-preview-wrap {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	border: 2px solid #e5e7eb;
	background: #f9fafb;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	flex-shrink: 0;
}

.brc-up-drv-photo-preview-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

.brc-up-drv-photo-preview-wrap .brc-up-drv-photo-placeholder {
	font-size: 2rem;
}

.brc-up-drv-rate-badge {
	display: inline-block;
	background: #f0fdf4;
	color: #15803d;
	border: 1px solid #bbf7d0;
	border-radius: 20px;
	padding: 2px 10px;
	font-size: 0.82rem;
	font-weight: 600;
	white-space: nowrap;
}

/* ── Baza floty — licznik zmian ──────────────────────────────────────────────── */

.brc-up-base-changes-info {
	display: inline-block;
	margin-left: 6px;
	font-size: 0.82rem;
	color: #6b7280;
	background: #f3f4f6;
	border-radius: 20px;
	padding: 1px 10px;
	vertical-align: middle;
}

/* ── Sekcja admina (zarządzanie bazami użytkowników) ─────────────────────────── */

.brc-up-admin-section {
	border: 1.5px dashed #f59e0b;
	background: #fffbeb;
	border-radius: 12px;
}

.brc-up-admin-badge {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 700;
	background: #f59e0b;
	color: #fff;
	border-radius: 20px;
	padding: 2px 9px;
	vertical-align: middle;
	margin-left: 6px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.brc-up-admin-user-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	box-shadow: 0 6px 24px rgba(0,0,0,.10);
	z-index: 200;
	max-height: 220px;
	overflow-y: auto;
	margin-top: 2px;
}

.brc-up-admin-user-item {
	padding: 9px 14px;
	font-size: 0.85rem;
	cursor: pointer;
	border-bottom: 1px solid #f3f4f6;
	transition: background 0.1s;
}

.brc-up-admin-user-item:last-child {
	border-bottom: none;
}

.brc-up-admin-user-item:hover {
	background: #fef9c3;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
	.brc-up-login-card {
		padding: 30px 22px 26px;
	}

	.brc-up-header {
		padding: 14px 18px;
	}

	.brc-up-tab-pane {
		padding: 20px 18px 28px;
	}

	.brc-up-form-grid {
		grid-template-columns: 1fr;
	}

	.brc-up-form-grid-3 {
		grid-template-columns: 1fr;
	}

	.brc-up-field-span2 {
		grid-column: span 1;
	}

	.brc-up-tabs {
		padding: 0 8px;
	}

	.brc-up-tab {
		padding: 12px 12px;
		font-size: 0.82rem;
		gap: 5px;
	}

	.brc-up-input-row {
		flex-direction: column;
	}

	.brc-up-inq-filter-bar {
		gap: 8px;
	}

	.brc-up-inq-count-badge {
		margin-left: 0;
	}

	.brc-up-inq-filter-bar2 {
		flex-direction: column;
		align-items: flex-start;
	}

	.brc-up-filter-input-sm {
		width: 90px;
	}

	.brc-up-details-modal {
		max-height: 95vh;
	}

	.brc-up-details-modal-hdr {
		padding: 14px 16px 12px;
	}

	.brc-up-details-body {
		padding: 14px 16px 18px;
	}

	.brc-up-tab-toolbar {
		flex-direction: column;
		align-items: stretch;
	}

	.brc-up-bus-form-card {
		padding: 16px 16px 14px;
	}
}

/* ── Edycja zapytania ────────────────────────────────────────────────────── */

.brc-up-field-full {
	grid-column: 1 / -1;
}

.brc-up-inq-actions {
	white-space: nowrap;
}

#brc-up-edit-inq-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.55);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ── Oceny / reputacja (od v1.18.0) ──────────────────────────────────────── */
.brc-up-stars { white-space: nowrap; }
.brc-up-star { font-size: 1.05em; line-height: 1; }
.brc-up-star-full  { color: #f59e0b; }
.brc-up-star-empty { color: #d1d5db; }
.brc-up-star-half {
	background: linear-gradient(90deg, #f59e0b 50%, #d1d5db 50%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.brc-up-stars-num { font-weight: 600; color: #374151; font-size: .9em; }

/* Średnie w tabeli ofert */
.brc-up-rating-cell { font-size: .82em; }
.brc-up-rating-line { white-space: nowrap; margin: 1px 0; }
.brc-up-rating-cat  { display: inline-block; min-width: 104px; color: #6b7280; }

/* Interaktywny wybór gwiazdek */
.brc-up-star-input {
	display: inline-flex;
	cursor: pointer;
	font-size: 1.7rem;
	line-height: 1;
	-webkit-user-select: none;
	user-select: none;
}
.brc-up-si-star { padding: 0 1px; }

/* Sekcja zaległych ocen Autora */
.brc-up-pending-ratings {
	border: 2px solid #f59e0b;
	background: #fffbeb;
	border-radius: 12px;
	padding: 18px 20px;
	margin: 0 0 22px;
}
.brc-up-rate-form {
	background: #fff;
	border: 1px solid #fde68a;
	border-radius: 10px;
	padding: 14px 16px;
	margin: 12px 0;
}
.brc-up-rate-job { margin-bottom: 10px; font-size: 15px; }
.brc-up-rate-cat { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0; }
.brc-up-rate-label { min-width: 170px; font-weight: 600; color: #374151; }
.brc-up-rate-comment {
	width: 100%;
	margin: 10px 0;
	padding: 8px 10px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-family: inherit;
	font-size: 14px;
	box-sizing: border-box;
}

/* Karta reputacji Subskrybenta */
.brc-up-rep-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: center;
	padding: 5px 0;
	border-bottom: 1px dashed #e5e7eb;
}
.brc-up-rep-reviews { margin-top: 6px; }
.brc-up-rep-review { padding: 8px 0; border-bottom: 1px solid #f1f5f9; font-size: 14px; }
.brc-up-rep-comment { color: #475569; font-style: italic; margin-top: 2px; }

/* ==========================================================
   Tryb pełnoekranowy panelu — 95% okna przeglądarki (v1.23.0)
   Aktywowany przez user-panel.js: klasa .is-fullscreen na #brc-up-root
   (przeniesionym do <body>). Dotyczy wyłącznie zalogowanego panelu.
   Bez JS panel pozostaje zwykłą kartą (bezpieczna degradacja).
   ========================================================== */

/* Przyciemnione tło za oknem */
.brc-up-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.5);
	z-index: 99990;
}

/* Blokada przewijania strony pod oknem */
html.brc-up-locked,
body.brc-up-locked {
	overflow: hidden;
}

/* Okno panelu: 95vw × 95vh, wyśrodkowane */
#brc-up-root.is-fullscreen {
	position: fixed;
	top: 2.5vh;
	right: 2.5vw;
	bottom: 2.5vh;
	left: 2.5vw;
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
	z-index: 99991;
	box-sizing: border-box;
}

/* Powiadomienia po akcjach — naturalna wysokość */
#brc-up-root.is-fullscreen > .brc-up-notice {
	flex: 0 0 auto;
}

/* Karta panelu wypełnia okno (bez podwójnej ramki/cienia) */
#brc-up-root.is-fullscreen .brc-up-panel {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
	border: none;
	border-radius: 0;
	box-shadow: none;
	overflow: hidden;
}

/* Nagłówek + zakładki przypięte; przewija się TYLKO aktywna zakładka */
#brc-up-root.is-fullscreen .brc-up-panel > .brc-up-header,
#brc-up-root.is-fullscreen .brc-up-panel > .brc-up-tabs {
	flex: 0 0 auto;
}

#brc-up-root.is-fullscreen .brc-up-panel > .brc-up-tab-pane-active {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
}

/* Pasek admina WP — okno poniżej paska (32 px desktop) */
body.admin-bar #brc-up-root.is-fullscreen {
	top: calc(2.5vh + 32px);
}

@media screen and (max-width: 782px) {
	body.admin-bar #brc-up-root.is-fullscreen {
		top: calc(2.5vh + 46px);
	}
}

/* Małe ekrany — ciaśniejsze marginesy okna */
@media (max-width: 640px) {
	#brc-up-root.is-fullscreen {
		top: 1.5vh;
		right: 1.5vw;
		bottom: 1.5vh;
		left: 1.5vw;
		border-radius: 12px;
	}

	body.admin-bar #brc-up-root.is-fullscreen {
		top: calc(1.5vh + 46px);
	}
}

/* Ankieta po usłudze — blokujący overlay (v1.32.0) */
#brc-up-survey-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.78);
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.brc-up-survey-modal {
	background: #fff;
	border-radius: 16px;
	width: 100%;
	max-width: 580px;
	max-height: 92vh;
	overflow-y: auto;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
	padding: 22px 24px;
}
.brc-up-survey-modal #brc-up-pending-ratings { margin: 0; }
.brc-up-survey-price {
	margin: 10px 0 4px;
	padding: 12px;
	background: #f8fafc;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
}
.brc-up-price-opt { display: inline-flex; align-items: center; gap: 5px; margin-right: 14px; font-size: .88rem; cursor: pointer; }
.brc-up-price-val { width: 120px; }
.brc-up-price-unit { margin-left: 6px; }

/* ==========================================================
   Wymuszone losowe hasło — modal (v1.25.0)
   z-index > panel fullscreen (99991) i modale (99999)
   ========================================================== */
#brc-up-pwd-overlay,
#brc-up-sms-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.78);
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.brc-up-pwd-modal {
	background: #ffffff;
	border-radius: 16px;
	width: 100%;
	max-width: 460px;
	max-height: 92vh;
	overflow-y: auto;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}
.brc-up-pwd-hdr {
	padding: 20px 24px 0;
}
.brc-up-pwd-hdr h3 {
	margin: 0;
	font-size: 1.15rem;
	color: #1e40af;
}
.brc-up-pwd-body {
	padding: 14px 24px 24px;
}
.brc-up-pwd-intro {
	font-size: 0.9rem;
	color: #374151;
	line-height: 1.55;
	margin: 0 0 16px;
}
#brc-up-pwd-gen {
	width: 100%;
}
.brc-up-pwd-left {
	text-align: center;
	font-size: 0.82rem;
	color: #6b7280;
	margin: 10px 0 0;
}
.brc-up-pwd-box {
	margin: 14px 0 4px;
	background: #f0fdf4;
	border: 1px solid #86efac;
	border-radius: 10px;
	padding: 12px 14px;
	text-align: center;
}
.brc-up-pwd-box-label {
	display: block;
	font-size: 0.72rem;
	font-weight: 600;
	color: #15803d;
	text-transform: uppercase;
	letter-spacing: .04em;
	margin-bottom: 6px;
}
.brc-up-pwd-value {
	display: block;
	font-family: monospace;
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: 1px;
	color: #14532d;
	word-break: break-all;
	user-select: all;
}
.brc-up-pwd-confirm {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9rem;
	color: #374151;
	margin: 16px 0 14px;
	cursor: pointer;
}
.brc-up-pwd-confirm input {
	margin: 0;
	flex: 0 0 auto;
}
#brc-up-pwd-confirm {
	width: 100%;
}
#brc-up-pwd-confirm:disabled {
	opacity: .5;
	cursor: not-allowed;
}
.brc-up-pwd-locked-text {
	font-size: 0.9rem;
	color: #374151;
	line-height: 1.55;
	margin: 12px 0 16px;
}
#brc-up-pwd-help { width: 100%; }
#brc-up-pwd-help:disabled { opacity: .6; cursor: default; }

/* ==========================================================
   Combobox Marka / Model (v1.26.0)
   ========================================================== */
.brc-up-combo { position: relative; }
.brc-up-combo-hint { color: #9ca3af; font-size: 0.78rem; font-weight: 400; margin-left: 6px; }
.brc-up-combo-trigger {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 9px 12px;
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 0.9rem;
	font-family: inherit;
	color: #1f2937;
	cursor: pointer;
	text-align: left;
}
.brc-up-combo-trigger:hover { border-color: #9ca3af; }
.brc-up-combo-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brc-up-combo-placeholder { color: #9ca3af; }
.brc-up-combo-arrow { color: #6b7280; font-size: 0.7rem; flex: 0 0 auto; }
.brc-up-combo-panel {
	position: absolute;
	z-index: 30;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
	padding: 8px;
	max-height: 280px;
	display: flex;
	flex-direction: column;
}
.brc-up-combo-search {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #d1d5db;
	border-radius: 7px;
	font-size: 0.88rem;
	font-family: inherit;
	box-sizing: border-box;
	margin-bottom: 6px;
}
.brc-up-combo-add {
	display: block;
	width: 100%;
	text-align: left;
	padding: 8px 10px;
	margin-bottom: 6px;
	background: #eff6ff;
	border: 1px dashed #93c5fd;
	border-radius: 7px;
	color: #1d4ed8;
	font-size: 0.85rem;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
}
.brc-up-combo-add:hover { background: #dbeafe; }
.brc-up-combo-list {
	list-style: none;
	margin: 0;
	padding: 0;
	overflow-y: auto;
	flex: 1 1 auto;
}
.brc-up-combo-option {
	padding: 8px 10px;
	border-radius: 6px;
	font-size: 0.9rem;
	color: #1f2937;
	cursor: pointer;
}
.brc-up-combo-option:hover { background: #f1f5f9; }
.brc-up-combo-empty {
	padding: 10px;
	text-align: center;
	color: #9ca3af;
	font-size: 0.85rem;
}
