/* File: admin-shell/assets/admin.css | Version: 5.2.9 | Patch: 4.9.8 */
:root {
    --bg: #f1f4f6;
    --surface: #fff;
    --border: #e1e8ed;
    --text: #191f28;
    --muted: #5b6775;
    --toolbar-height: 50px;
    --shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 15px/1.5 Montserrat, Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 56px;
    padding: 0 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}
.toolbar {
    position: sticky;
    top: 56px;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: var(--toolbar-height);
    padding: 0 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}
.toolbar-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
}
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}
.grid { display: grid; gap: 16px; }
.grid.cards { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.brand { font-weight: 700; letter-spacing: .2px; }
.eyebrow {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 8px;
}
.metric {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
}
.subtle { color: var(--muted); }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 10px;
    cursor: pointer;
}
.button:hover { background: var(--bg); }
.button.primary {
    background: var(--text);
    color: #fff;
}
.button.static {
    cursor: default;
}
.button.static:hover {
    background: var(--surface);
}
.button[disabled] {
    opacity: .65;
    cursor: wait;
}
.session-chip {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg);
}
.section-title {
    margin: 28px 0 14px;
    font-size: 18px;
}
.workspace-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.workspace-card h3 {
    margin: 0 0 6px;
    font-size: 18px;
}
.workspace-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 0;
}
.pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 12px;
}
.list,
.link-list,
.data-list,
.form-list {
    display: grid;
    gap: 10px;
}
.kv,
.data-list .row,
.form-list .row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 8px 12px;
}
.empty {
    color: var(--muted);
}
.editor,
textarea,
input[type="email"],
input[type="password"],
input[type="text"],
select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
}
.editor,
textarea {
    min-height: 260px;
    padding: 14px;
    font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
}
input[type="email"],
input[type="password"],
input[type="text"],
select {
    min-height: 44px;
    padding: 10px 12px;
}
.message {
    min-height: 22px;
    margin-top: 12px;
    color: var(--muted);
}
.message.error {
    color: #8f1d1d;
}
.screen-auth {
    min-height: 100vh;
    display: grid;
    place-items: center;
}
.panel {
    width: min(460px, calc(100vw - 28px));
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 24px;
}
.panel.compact {
    width: min(420px, calc(100vw - 28px));
}
.field {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}
.inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.remember {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.remember input {
    width: 16px;
    min-height: 16px;
}
.stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}
@media (max-width: 720px) {
    .topbar,
    .toolbar {
        padding: 0 14px;
    }
    .page {
        padding: 14px;
    }
    .kv,
    .data-list .row,
    .form-list .row {
        grid-template-columns: 1fr;
    }
    .inline {
        flex-direction: column;
        align-items: stretch;
    }
}

.panel code {font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;}
.field label {font-weight: 600;}


/* --- 3.7.7 visual layer --- */
:root {
	--bmt-ea-bg-primary: #fff;
	--bmt-ea-bg-secondary: #f1f4f6;
	--bmt-ea-border: #c3c4c7;
	--bmt-ea-text: #191f28;
	--bmt-ea-font: Montserrat, sans-serif;
	--bmt-ea-loader-progress: 0.86turn;
	--bmt-ea-radius1: 6px;
	--bmt-ea-radius2: 12px;
	--bmt-ea-control-height: 44px;
	--bmt-ea-button-height: 44px;
	--bmt-ea-overlay-bg: rgba(241, 244, 246, 0.86);
	--bmt-ea-overlay-ring-track: #d9dde1;
	--bmt-ea-overlay-ring-accent: #191f28;
}

.mtb-20 {margin-top: 20px; margin-bottom: 20px;}

html, body {
	margin: 0;
	padding: 0;
	font-family: var(--bmt-ea-font);
	font-size: 15px;
	background: var(--bmt-ea-bg-secondary);
	color: var(--bmt-ea-text);
}

* {
	box-sizing: border-box;
}

body.bmt-external-admin-page {
	min-height: 100vh;
}

#bmt-external-admin-root {
	min-height: 100vh;
}

.bmt-ea-login-shell {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px;
	background: var(--bmt-ea-bg-secondary);
}

.bmt-ea-login-card {
	width: 100%;
	max-width: 520px;
	background: #ffffff;
	border: 1px solid var(--bmt-ea-border);
	border-radius: var(--bmt-ea-radius1);
	padding: 32px;
	box-shadow: 0 16px 36px rgba(25, 31, 40, 0.06);
}

.bmt-ea-login-logo-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 72px;
	margin-bottom: 18px;
}

.bmt-ea-login-logo-wrap-empty {
	min-height: 24px;
	margin-bottom: 6px;
}

.bmt-ea-login-logo {
	display: block;
	max-width: 240px;
	max-height: 72px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.bmt-ea-brand {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-bottom: 8px;
	text-align: center;
}

.bmt-ea-brand h1,
.bmt-ea-brand strong {
	margin: 0;
	font-size: 24px;
	line-height: 1.2;
	color: var(--bmt-ea-text);
}

.bmt-ea-brand p,
.bmt-ea-brand span {
	margin: 4px 0 0;
	color: #5f6975;
	font-size: 13px;
}

.bmt-ea-login-subtitle {
	margin: 10px 0 0;
	font-size: 16px;
	font-weight: 700;
	color: var(--bmt-ea-text);
}

.bmt-ea-login-caption {
	margin: 6px 0 0;
	font-size: 13px;
	line-height: 1.6;
	color: #5f6975;
}

.bmt-ea-auth-stage-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 22px;
}

.bmt-ea-auth-stage-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 14px;
	border: 1px solid var(--bmt-ea-border);
	border-radius: var(--bmt-ea-radius1);
	background: #f8fafc;
	color: var(--bmt-ea-text);
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
}

.bmt-ea-auth-stage-link.is-active {
	background: var(--bmt-ea-text);
	border-color: var(--bmt-ea-text);
	color: #ffffff;
}

.bmt-ea-auth-context-strip {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-top: 16px;
}

.bmt-ea-auth-context-card {
	padding: 12px 14px;
	border: 1px solid var(--bmt-ea-border);
	border-radius: var(--bmt-ea-radius1);
	background: #f8fafc;
}

.bmt-ea-auth-context-card small {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: #64748b;
}

.bmt-ea-auth-context-card strong {
	display: block;
	margin-top: 8px;
	font-size: 14px;
	line-height: 1.4;
	color: var(--bmt-ea-text);
	word-break: break-word;
}

.bmt-ea-auth-context-note {
	margin: 12px 0 0;
	font-size: 13px;
	line-height: 1.6;
	color: #5f6975;
}

.bmt-ea-auth-validation-stack {
	margin-top: 18px;
	display: grid;
	gap: 12px;
}

.bmt-ea-auth-validation-list {
	margin: 0;
	padding-left: 18px;
	display: grid;
	gap: 6px;
}

.bmt-ea-brand-mark {
	width: 48px;
	height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 14px;
	background: #1d4ed8;
	color: #ffffff;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.bmt-ea-login-form {
	display: grid;
	gap: 16px;
	margin-top: 24px;
}

.bmt-ea-login-form-auth-stack {
	display: block;
	gap: 0;
}

.bmt-ea-login-form-auth-stack .bmt-ea-auth-form-row + .bmt-ea-auth-form-row {
	margin-top: 18px;
}

.bmt-ea-login-form-auth-stack .bmt-ea-auth-form-row-submit,
.bmt-ea-login-form-auth-stack .bmt-ea-auth-form-row-actions {
	margin-top: 22px;
}

.bmt-ea-login-form-auth-stack .bmt-ea-auth-form-row-locale .bmt-ea-login-form-label-wide,
.bmt-ea-login-form-auth-stack .bmt-ea-auth-form-row-actions .bmt-ea-login-action-row,
.bmt-ea-login-form-auth-stack .bmt-ea-auth-form-row-submit .bmt-ea-button {
	margin-top: 0;
}

.bmt-ea-login-form-label,
.bmt-ea-login-form label {
	display: grid;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--bmt-ea-text);
}

.bmt-ea-login-form input,
.bmt-ea-select-input {
	width: 100%;
	min-height: var(--bmt-ea-control-height);
	padding: 12px 14px;
	border-radius: var(--bmt-ea-radius1);
	border: 1px solid var(--bmt-ea-border);
	background: var(--bmt-ea-bg-primary);
	font-size: 15px;
	font-family: var(--bmt-ea-font);
	color: var(--bmt-ea-text);
}

.bmt-ea-login-form input::placeholder {
	color: #8a94a3;
}

.bmt-ea-password-field {
	position: relative;
	display: block;
}

.bmt-ea-password-field input {
	padding-right: 48px;
}

.bmt-ea-password-toggle {
	position: absolute;
	top: 50%;
	right: 10px;
	transform: translateY(-50%);
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #5f6975;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.bmt-ea-password-toggle:hover,
.bmt-ea-password-toggle:focus-visible {
	background: rgba(15, 23, 42, 0.06);
	color: #0f172a;
	outline: none;
}

.bmt-ea-password-toggle-icon {
	width: 20px;
	height: 20px;
	line-height: 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.bmt-ea-password-toggle-icon svg {
	width: 20px;
	height: 20px;
	display: block;
	stroke: currentColor;
}

.bmt-ea-password-toggle.is-visible .bmt-ea-password-toggle-icon {
	color: #0f172a;
}

.bmt-ea-button {
	border: 1px solid var(--bmt-ea-border);
	background: var(--bmt-ea-bg-primary);
	color: var(--bmt-ea-text);
	min-height: var(--bmt-ea-button-height);
	padding: 11px 15px;
	border-radius: var(--bmt-ea-radius1);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.bmt-ea-button:hover {
	background: var(--bmt-ea-bg-secondary);
}

.bmt-ea-button-primary {
	background: var(--bmt-ea-text);
	border-color: var(--bmt-ea-text);
	color: #ffffff;
}

.bmt-ea-button-primary:hover {
	background: #2c3440;
}

.bmt-ea-login-meta {
	margin-top: 18px;
	font-size: 13px;
	color: #5f6975;
}

.bmt-ea-login-meta code {
	padding: 2px 6px;
	border-radius: 6px;
	background: #eff6ff;
	color: #1e3a8a;
}


.bmt-ea-login-help {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid #dbe4f0;
	border-radius: var(--bmt-ea-radius1);
	background: #f8fafc;
	font-size: 13px;
	color: #475569;
}

.bmt-ea-alert {
	padding: 14px 16px;
}

.bmt-ea-login-card > .bmt-ea-alert,
.bmt-ea-login-card > .bmt-ea-action-list {
	margin-top: 22px;
}

.bmt-ea-login-action-row {
	margin-top: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.bmt-ea-login-action-row .bmt-ea-button {
	min-width: 148px;
}

.bmt-ea-login-action-buttons {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	flex-wrap: wrap;
}

.bmt-ea-login-action-buttons .bmt-ea-button {
	min-width: 148px;
}

.bmt-ea-checkbox-field {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	font-weight: 600;
	color: var(--bmt-ea-text);
}

.bmt-ea-checkbox-field input {
	width: 16px;
	height: 16px;
	margin: 0;
}

.bmt-ea-locale-form {
	margin: 0;
}

.bmt-ea-login-form-label-wide {
	width: 100%;
}

.bmt-ea-alert-info {
	border-color: #bfdbfe;
	background: #eff6ff;
	color: #1d4ed8;
	margin-bottom: 14px;
}




html[data-admin-loading-boot="1"] body {
	overflow: hidden;
}

html[data-admin-loading-boot="1"] body > :not(#bmt-admin-loading-overlay) {
	visibility: hidden;
}

html[data-admin-loading-boot="1"] #bmt-admin-loading-overlay[hidden] {
	display: flex !important;
}

html[data-admin-loading-boot="1"] .bmt-ea-loading-overlay {
	background: rgba(241, 244, 246, 0.92);
	opacity: 1 !important;
	pointer-events: auto !important;
}

html[data-theme="dark"][data-admin-loading-boot="1"] .bmt-ea-loading-overlay {
	background: rgba(15, 23, 42, 0.92);
}

.bmt-ea-loading-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: var(--bmt-ea-overlay-bg);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.18s ease;
}

.bmt-ea-loading-overlay.is-active {
	opacity: 1;
	pointer-events: auto;
}

.bmt-ea-loading-shell {
	width: 124px;
	height: 124px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bmt-ea-loading-ring {
	position: relative;
	width: 92px;
	height: 92px;
	margin: 0 auto 16px;
	isolation: isolate;
}

.bmt-ea-loading-track,
.bmt-ea-loading-spinner,
.bmt-ea-loading-spinner-arc {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	-webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 calc(100% - 10px));
	mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 calc(100% - 10px));
}

.bmt-ea-loading-track {
	z-index: 1;
	background: var(--bmt-ea-overlay-ring-track);
}

.bmt-ea-loading-spinner {
	z-index: 2;
}

.bmt-ea-loading-spinner-arc {
	background: conic-gradient(var(--bmt-ea-overlay-ring-accent) 0turn, var(--bmt-ea-overlay-ring-accent) 0.22turn, transparent 0.22turn, transparent 1turn);
	transform-origin: 50% 50%;
	animation: bmt-ea-loader-spin 1.1s linear infinite;
}

.bmt-ea-loading-core {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 3;
	width: 64px;
	height: 48px;
	transform: translate(-50%, -50%);
	border-radius: 999px;
	background: transparent;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bmt-ea-loading-icon {
	position: relative;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: transparent;
}

.bmt-ea-loading-icon img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.bmt-ea-loading-icon-fallback {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--bmt-ea-text);
}

body.bmt-ea-loading-active {
	overflow: hidden;
}


@keyframes bmt-ea-loader-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.bmt-ea-shell {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	min-height: 100vh;
}

.bmt-ea-sidebar {
	background: #0f172a;
	color: #e2e8f0;
	padding: 24px 18px;
	border-right: 1px solid #0b1220;
}

.bmt-ea-sidebar .bmt-ea-brand p,
.bmt-ea-sidebar .bmt-ea-brand span,
.bmt-ea-sidebar h2,
.bmt-ea-sidebar h3,
.bmt-ea-sidebar strong,
.bmt-ea-sidebar a {
	color: inherit;
}

.bmt-ea-sidebar-section {
	margin-top: 28px;
}

.bmt-ea-sidebar-section h2 {
	margin: 0 0 12px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #94a3b8;
}

.bmt-ea-nav-section + .bmt-ea-nav-section {
	margin-top: 18px;
}

.bmt-ea-nav-section h3 {
	margin: 0 0 8px;
	font-size: 12px;
	color: #cbd5e1;
}

.bmt-ea-nav-list {
	display: grid;
	gap: 6px;
}

.bmt-ea-nav-item {
	display: block;
	padding: 10px 12px;
	border-radius: var(--bmt-ea-radius1);
	color: #cbd5e1;
	text-decoration: none;
	font-size: 14px;
}

.bmt-ea-nav-item:hover,
.bmt-ea-nav-item.is-active {
	background: rgba(59, 130, 246, 0.18);
	color: #ffffff;
}

.bmt-ea-chip-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.bmt-ea-chip {
	padding: 6px 10px;
	border-radius: 999px;
	font-size: 12px;
	background: rgba(148, 163, 184, 0.16);
	color: #e2e8f0;
}

.bmt-ea-contract-list {
	display: grid;
	gap: 10px;
}

.bmt-ea-contract-item {
	padding: 12px;
	border-radius: var(--bmt-ea-radius1);
	background: rgba(15, 23, 42, 0.55);
	border: 1px solid rgba(148, 163, 184, 0.12);
}

.bmt-ea-contract-item strong,
.bmt-ea-contract-item span {
	display: block;
}

.bmt-ea-contract-item span {
	margin-top: 4px;
	font-size: 12px;
	color: #94a3b8;
}

.bmt-ea-main {
	padding: 28px;
}

.bmt-ea-topbar {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 22px;
}

.bmt-ea-topbar h1 {
	margin: 0;
	font-size: 28px;
}

.bmt-ea-topbar p {
	margin: 6px 0 0;
	color: #64748b;
}

.bmt-ea-topbar-actions {
	display: flex;
	gap: 10px;
}

.bmt-ea-card-grid,
.bmt-ea-module-grid,
.bmt-ea-dashboard-grid,
.bmt-ea-insight-grid {
	display: grid;
	gap: 16px;
}

.bmt-ea-card-grid {
	grid-template-columns: repeat(6, minmax(0, 1fr));
	margin-bottom: 18px;
}

.bmt-ea-card-grid-compact {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bmt-ea-module-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bmt-ea-dashboard-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bmt-ea-insight-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bmt-ea-section {
	margin-bottom: 18px;
}

.bmt-ea-panel-card,
.bmt-ea-metric-card,
.bmt-ea-alert,
.bmt-ea-empty,
.bmt-ea-loading {
	background: var(--bmt-ea-bg-primary);
	border: 1px solid var(--bmt-ea-border);
	border-radius: var(--bmt-ea-radius1);
	box-shadow: 0 10px 30px rgba(25, 31, 40, 0.04);
}

.bmt-ea-panel-card {
	padding: 18px;
}

.bmt-ea-panel-card-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.bmt-ea-panel-card-head h2,
.bmt-ea-health-section h3,
.bmt-ea-insight-block h3 {
	margin: 0;
	font-size: 18px;
}

.bmt-ea-panel-card-head a {
	color: #1d4ed8;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.bmt-ea-widget-wide {
	grid-column: span 2;
}

.bmt-ea-metric-card {
	padding: 16px;
}

.bmt-ea-metric-card span {
	display: block;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #64748b;
}

.bmt-ea-metric-card strong {
	display: block;
	margin-top: 12px;
	font-size: 24px;
	line-height: 1.2;
	word-break: break-word;
}

.bmt-ea-metric-attention {
	border-color: #fecaca;
	background: #fff7f7;
}

.bmt-ea-metric-ok,
.bmt-ea-metric-stable {
	border-color: #bbf7d0;
	background: #f4fff7;
}

.bmt-ea-alert,
.bmt-ea-empty,
.bmt-ea-loading {
	padding: 16px 18px;
	font-size: 14px;
}

.bmt-ea-alert-error {
	border-color: #fecaca;
	background: #fff5f5;
	color: #991b1b;
}


.bmt-ea-alert-warning {
	border: 1px solid #fde68a;
	background: #fffbeb;
	color: #92400e;
}

.bmt-ea-status-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	border: 1px solid #dbe4f0;
	background: #f8fafc;
	font-size: 12px;
	font-weight: 600;
	color: #475569;
}

.bmt-ea-status-pill.is-stable {
	border-color: #bbf7d0;
	background: #f0fdf4;
	color: #166534;
}

.bmt-ea-status-pill.is-attention {
	border-color: #fde68a;
	background: #fffbeb;
	color: #92400e;
}


.bmt-ea-definition-list {
	display: grid;
	gap: 10px;
}

.bmt-ea-definition-row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 10px;
	border-bottom: 1px solid #edf2f7;
}

.bmt-ea-definition-row:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.bmt-ea-definition-row span {
	font-size: 13px;
	color: #64748b;
}

.bmt-ea-definition-row strong {
	font-size: 13px;
	text-align: right;
	word-break: break-word;
}

.bmt-ea-action-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.bmt-ea-activity-list,
.bmt-ea-health-list {
	display: grid;
	gap: 12px;
}

.bmt-ea-activity-item,
.bmt-ea-health-item,
.bmt-ea-insight-block {
	padding: 14px;
	border-radius: 14px;
	background: var(--bmt-ea-bg-secondary);
	border: 1px solid var(--bmt-ea-border);
}

.bmt-ea-activity-head,
.bmt-ea-health-item {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: flex-start;
}

.bmt-ea-activity-head span,
.bmt-ea-activity-meta,
.bmt-ea-health-item span,
.bmt-ea-insight-block li {
	font-size: 13px;
	color: #64748b;
}

.bmt-ea-activity-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 10px;
}

.bmt-ea-health-section + .bmt-ea-health-section {
	margin-top: 18px;
}

.bmt-ea-health-item strong {
	font-size: 14px;
}

.bmt-ea-insight-block ul {
	margin: 12px 0 0;
	padding-left: 18px;
}

@media (max-width: 1200px) {
	.bmt-ea-card-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.bmt-ea-module-grid,
	.bmt-ea-dashboard-grid,
	.bmt-ea-insight-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 960px) {
	.bmt-ea-shell {
		grid-template-columns: 1fr;
	}

	.bmt-ea-sidebar {
		padding-bottom: 12px;
	}

	.bmt-ea-main {
		--bmt-ea-main-padding-x: 20px;
		--bmt-ea-main-padding-y: 20px;
		padding: var(--bmt-ea-main-padding-y) var(--bmt-ea-main-padding-x);
	}

	.bmt-ea-topbar {
		flex-direction: column;
	}

	.bmt-ea-card-grid,
	.bmt-ea-card-grid-compact {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bmt-ea-widget-wide {
		grid-column: auto;
	}
}

@media (max-width: 640px) {
	.bmt-ea-login-shell,
	.bmt-ea-sidebar {
		padding: 16px;
	}

	.bmt-ea-main {
		--bmt-ea-main-padding-x: 16px;
		--bmt-ea-main-padding-y: 16px;
		padding: var(--bmt-ea-main-padding-y) var(--bmt-ea-main-padding-x);
	}

	.bmt-ea-card-grid,
	.bmt-ea-card-grid-compact {
		grid-template-columns: 1fr;
	}

	.bmt-ea-company-filter-row {
		align-items: stretch;
	}

	.bmt-ea-company-filter-actions {
		margin-left: 0;
		width: 100%;
		justify-content: stretch;
	}

	.bmt-ea-company-filter-actions .bmt-ea-button {
		flex: 1 1 calc(50% - 5px);
	}

	.bmt-ea-definition-row,
	.bmt-ea-health-item,
	.bmt-ea-activity-head {
		flex-direction: column;
	}
}


.bmt-ea-inline-muted {
	display: inline-flex;
	align-items: center;
	font-size: 13px;
	color: #64748b;
}

.bmt-ea-resource-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 16px;
}

.bmt-ea-resource-tab {
	border: 1px solid #cbd5e1;
	background: #f8fafc;
	color: #334155;
	padding: 10px 14px;
	border-radius: var(--bmt-ea-radius1);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.bmt-ea-resource-tab.is-active {
	background: #1d4ed8;
	border-color: #1d4ed8;
	color: #ffffff;
}

.bmt-ea-filter-form {
	margin-bottom: 18px;
}

.bmt-ea-filter-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.bmt-ea-filter-grid label {
	display: grid;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	color: #334155;
}

.bmt-ea-filter-grid input,
.bmt-ea-filter-grid select {
	width: 100%;
	padding: 11px 12px;
	border-radius: var(--bmt-ea-radius1);
	border: 1px solid #cbd5e1;
	background: #ffffff;
	font-size: 14px;
}

.bmt-ea-filter-actions {
	display: flex;
	gap: 10px;
	margin-top: 14px;
}

.bmt-ea-table-wrap {
	overflow-x: auto;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	background: #ffffff;
}

.bmt-ea-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 760px;
}

.bmt-ea-table th,
.bmt-ea-table td {
	padding: 14px 16px;
	text-align: left;
	border-bottom: 1px solid #edf2f7;
	font-size: 14px;
	vertical-align: top;
}

.bmt-ea-table th {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #64748b;
	background: #f8fafc;
}

.bmt-ea-table-row.is-active td {
	background: #eff6ff;
}

.bmt-ea-link-button {
	padding: 0;
	border: 0;
	background: transparent;
	color: #1d4ed8;
	font-weight: 600;
	cursor: pointer;
}

.bmt-ea-link-button:hover {
	text-decoration: underline;
}

.bmt-ea-pagination {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-top: 14px;
}

.bmt-ea-pagination-actions {
	display: flex;
	gap: 10px;
}

.bmt-ea-detail-hero {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	padding: 0 0 18px;
	margin-bottom: 18px;
	border-bottom: 1px solid #edf2f7;
}

.bmt-ea-detail-hero h3 {
	margin: 0;
	font-size: 22px;
}

.bmt-ea-detail-hero p {
	margin: 6px 0 0;
	color: #64748b;
	font-size: 13px;
}

.bmt-ea-detail-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 18px;
}

.bmt-ea-detail-section {
	padding: 16px;
	border-radius: 16px;
	background: var(--bmt-ea-bg-secondary);
	border: 1px solid var(--bmt-ea-border);
}

.bmt-ea-detail-section h3 {
	margin: 0 0 12px;
	font-size: 16px;
}

.bmt-ea-pre {
	margin: 0;
	padding: 16px;
	background: #0f172a;
	color: #e2e8f0;
	border-radius: 14px;
	overflow: auto;
	font-size: 12px;
	line-height: 1.6;
}

@media (max-width: 1200px) {
	.bmt-ea-filter-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 960px) {
	.bmt-ea-detail-grid {
		grid-template-columns: 1fr;
	}

	.bmt-ea-pagination,
	.bmt-ea-detail-hero {
		flex-direction: column;
	}
}

@media (max-width: 640px) {
	.bmt-ea-filter-grid {
		grid-template-columns: 1fr;
	}

	.bmt-ea-filter-actions,
	.bmt-ea-resource-tabs,
	.bmt-ea-pagination-actions {
		flex-direction: column;
	}
}

.bmt-ea-operations-block {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid #e2e8f0;
	display: grid;
	gap: 14px;
}

.bmt-ea-selection-actions {
	display: flex;
	justify-content: flex-end;
}

.bmt-ea-operation-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 14px;
}

.bmt-ea-operation-card {
	border: 1px solid #dbe4f0;
	border-radius: 14px;
	padding: 16px;
	background: #f8fafc;
	display: grid;
	gap: 12px;
}

.bmt-ea-mutation-console {
	display: grid;
	gap: 16px;
}

.bmt-ea-mutation-group {
	display: grid;
	gap: 14px;
	padding-top: 8px;
	border-top: 1px solid #e2e8f0;
}

.bmt-ea-mutation-group:first-child {
	padding-top: 0;
	border-top: 0;
}

.bmt-ea-form-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 12px;
}

.bmt-ea-form-field {
	display: grid;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	color: #334155;
}

.bmt-ea-form-field input,
.bmt-ea-form-field select,
.bmt-ea-form-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	background: #ffffff;
	font: inherit;
	color: #0f172a;
}

.bmt-ea-form-field small {
	font-size: 12px;
	font-weight: 400;
	color: #64748b;
}

.bmt-ea-alert-success {
	border: 1px solid #bbf7d0;
	background: #f0fdf4;
	color: #166534;
}

.bmt-ea-operation-result {
	display: grid;
	gap: 10px;
}

.bmt-ea-pre-compact {
	max-height: 220px;
	overflow: auto;
}

.bmt-ea-table-check {
	width: 44px;
	text-align: center;
}

.bmt-ea-table-row.is-selected {
	background: #eff6ff;
}


.bmt-ea-button[disabled] {
	opacity: 0.55;
	cursor: not-allowed;
	pointer-events: none;
}

.bmt-ea-validation-panel {
	display: grid;
	gap: 12px;
	padding: 14px;
	border: 1px solid #dbe4f0;
	border-radius: var(--bmt-ea-radius1);
	background: #ffffff;
}

.bmt-ea-validation-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 12px;
}

.bmt-ea-validation-list {
	display: grid;
	gap: 8px;
	padding: 12px;
	border-radius: var(--bmt-ea-radius1);
	border: 1px solid #e2e8f0;
	background: #f8fafc;
}

.bmt-ea-validation-list.is-error {
	border-color: #fecaca;
	background: #fef2f2;
}

.bmt-ea-validation-list.is-warning {
	border-color: #fde68a;
	background: #fffbeb;
}

.bmt-ea-validation-list.is-stable {
	border-color: #bbf7d0;
	background: #f0fdf4;
}

.bmt-ea-validation-item {
	font-size: 13px;
	color: #334155;
}

.bmt-ea-form-field.has-error input,
.bmt-ea-form-field.has-error select,
.bmt-ea-form-field.has-error textarea {
	border-color: #ef4444;
	background: #fff7f7;
}

.bmt-ea-form-field.has-warning input,
.bmt-ea-form-field.has-warning select,
.bmt-ea-form-field.has-warning textarea {
	border-color: #f59e0b;
	background: #fffaf0;
}

.bmt-ea-field-status.is-error {
	color: #b91c1c;
}

.bmt-ea-field-status.is-warning {
	color: #b45309;
}


.bmt-ea-assignment-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 12px;
}

.bmt-ea-check-grid {
	display: grid;
	gap: 8px;
}

.bmt-ea-check-grid-scroll {
	max-height: 240px;
	overflow: auto;
	padding-right: 4px;
}

.bmt-ea-check-item {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 10px 12px;
	border: 1px solid #dbe4f0;
	border-radius: 10px;
	background: #ffffff;
	font-size: 13px;
	color: #0f172a;
}

.bmt-ea-check-item input {
	margin-top: 2px;
}

.bmt-ea-check-item span {
	display: grid;
	gap: 4px;
}

.bmt-ea-check-item small {
	font-size: 12px;
	color: #64748b;
}


.bmt-ea-client-layout {
	display: grid;
	grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
	gap: 16px;
	align-items: start;
}

.bmt-ea-client-stack {
	display: grid;
	gap: 12px;
	margin: 12px 0;
}

.bmt-ea-receipt-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.bmt-ea-receipt-meta span {
	display: inline-flex;
	align-items: center;
	padding: 6px 10px;
	border-radius: 999px;
	background: #eef2ff;
	color: #334155;
	font-size: 12px;
	font-weight: 600;
}

.bmt-ea-form-field-span-2 {
	grid-column: span 2;
}

@media (max-width: 960px) {
	.bmt-ea-client-layout {
		grid-template-columns: 1fr;
	}

	.bmt-ea-form-field-span-2 {
		grid-column: auto;
	}
}

.bmt-ea-relation-picker {
	display: grid;
	gap: 8px;
}

.bmt-ea-relation-picker input[type="search"] {
	padding: 9px 12px;
	border: 1px solid #dbe4f0;
	border-radius: 10px;
	background: #f8fafc;
}

.bmt-ea-relation-picker.is-stale select {
	border-color: #f59e0b;
	background: #fffaf0;
}

.bmt-ea-relation-picker.is-error select,
.bmt-ea-relation-picker.is-error input[type="search"] {
	border-color: #ef4444;
	background: #fff7f7;
}

.bmt-ea-operation-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.bmt-ea-operation-meta span {
	display: inline-flex;
	align-items: center;
	padding: 6px 10px;
	border-radius: 999px;
	background: #eef2ff;
	color: #334155;
	font-size: 12px;
	font-weight: 600;
}


.bmt-ea-operation-field-group{margin-top:16px;padding-top:12px;border-top:1px solid rgba(15,23,42,.08)}
.bmt-ea-operation-field-group:first-of-type{margin-top:0;padding-top:0;border-top:0}
.bmt-ea-operation-field-group-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.bmt-ea-operation-field-group-head h4{margin:0;font-size:13px;font-weight:600;color:#0f172a}
.bmt-ea-field-chip-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.bmt-ea-field-chip-list span{display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;background:#f8fafc;border:1px solid rgba(148,163,184,.35);font-size:11px;line-height:1.4;color:#475569}

.bmt-ea-checklist-preview {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 8px;
}

.bmt-ea-checklist-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 10px;
	border: 1px solid rgba(148, 163, 184, 0.25);
	border-radius: 10px;
	background: rgba(15, 23, 42, 0.02);
}

.bmt-ea-checklist-row strong {
	font-size: 12px;
}

.bmt-ea-checklist-row span {
	font-size: 12px;
	color: #64748b;
	text-align: right;
}

.bmt-ea-alert-success {
	border-color: #bbf7d0;
	background: #f0fdf4;
	color: #166534;
}

.bmt-ea-record-grid,
.bmt-ea-json-grid {
	display: grid;
	gap: 16px;
}

.bmt-ea-record-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bmt-ea-json-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 18px;
}

.bmt-ea-json-card {
	padding: 16px;
	border: 1px solid #dbe4f0;
	border-radius: 16px;
	background: #f8fafc;
}

.bmt-ea-json-card h3 {
	margin: 0 0 12px;
	font-size: 15px;
}

.bmt-ea-json-card pre,
.bmt-ea-activity-item pre {
	margin: 0;
	white-space: pre-wrap;
	word-break: break-word;
	font-size: 12px;
	line-height: 1.55;
	color: #334155;
}

.bmt-ea-filter-form {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	align-items: end;
}

.bmt-ea-filter-form label,
.bmt-ea-editor-label {
	display: grid;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	color: #334155;
}

.bmt-ea-filter-form input,
.bmt-ea-filter-form select,
.bmt-ea-payload-editor {
	width: 100%;
	min-height: var(--bmt-ea-control-height);
	padding: 12px 14px;
	border-radius: var(--bmt-ea-radius1);
	border: 1px solid #cbd5e1;
	background: #ffffff;
	font-size: 14px;
	font-family: inherit;
}

.bmt-ea-payload-editor {
	min-height: 360px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	resize: vertical;
}

.bmt-ea-record-card {
	min-height: 100%;
}

.bmt-ea-inline-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.bmt-ea-help-text,
.bmt-ea-inline-muted {
	font-size: 13px;
	color: #64748b;
}

.bmt-ea-pagination {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}

@media (max-width: 1200px) {
	.bmt-ea-shell {
		grid-template-columns: 260px minmax(0, 1fr);
	}

	.bmt-ea-card-grid,
	.bmt-ea-dashboard-grid,
	.bmt-ea-record-grid,
	.bmt-ea-json-grid {
		grid-template-columns: 1fr;
	}

	.bmt-ea-filter-form {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 860px) {
	.bmt-ea-shell {
		grid-template-columns: 1fr;
	}

	.bmt-ea-sidebar {
		border-right: 0;
		border-bottom: 1px solid #0b1220;
	}

	.bmt-ea-main {
		--bmt-ea-main-padding-x: 18px;
		--bmt-ea-main-padding-y: 18px;
		padding: var(--bmt-ea-main-padding-y) var(--bmt-ea-main-padding-x);
	}

	.bmt-ea-main.bmt-ea-main-has-page-toolbar {
		padding-top: var(--bmt-ea-main-padding-y, 18px);
	}

	.bmt-ea-page-toolbar {
		position: sticky;
		left: auto;
		right: auto;
		height: auto;
		min-height: var(--bmt-ea-page-toolbar-height, 50px);
		padding: 7px var(--bmt-ea-main-padding-x, 18px);
		margin: calc(var(--bmt-ea-main-padding-y, 18px) * -1) calc(var(--bmt-ea-main-padding-x, 18px) * -1) 18px;
	}

	.bmt-ea-page-toolbar-left,
	.bmt-ea-page-toolbar-actions {
		flex-basis: 100%;
	}

	.bmt-ea-page-toolbar-actions .bmt-ea-action-list {
		justify-content: flex-start;
	}

	.bmt-ea-topbar,
	.bmt-ea-pagination {
		flex-direction: column;
		align-items: stretch;
	}

	.bmt-ea-filter-form {
		grid-template-columns: 1fr;
	}
}


.bmt-ea-selection-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	margin-top: 16px;
	border: 1px solid #dbe4f0;
	border-radius: 14px;
	background: #f8fafc;
}

.bmt-ea-selection-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
	font-size: 13px;
	font-weight: 600;
	color: #475569;
}

.bmt-ea-selection-toggle input {
	margin: 0;
}

.bmt-ea-record-card.is-selected {
	border-color: #93c5fd;
	background: #f8fbff;
}

.bmt-ea-selection-presets-card {
	margin-top: 14px;
}

.bmt-ea-preset-list {
	display: grid;
	gap: 10px;
}

.bmt-ea-preset-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid #dbe4f0;
	border-radius: 14px;
	background: #f8fafc;
}

.bmt-ea-preset-item strong,
.bmt-ea-preset-item span {
	display: block;
}

.bmt-ea-preset-item span {
	margin-top: 4px;
	font-size: 12px;
	color: #64748b;
}

.bmt-ea-bulk-action-select {
	width: 100%;
	min-height: var(--bmt-ea-control-height);
	padding: 12px 14px;
	border-radius: var(--bmt-ea-radius1);
	border: 1px solid #cbd5e1;
	background: #ffffff;
	font-size: 14px;
	font-family: inherit;
}

.bmt-ea-receipt-list {
	display: grid;
	gap: 12px;
}

.bmt-ea-receipt-item {
	padding: 14px;
	border: 1px solid #dbe4f0;
	border-radius: 14px;
	background: #f8fafc;
	display: grid;
	gap: 8px;
}

@media (max-width: 860px) {
	.bmt-ea-selection-bar,
	.bmt-ea-preset-item {
		flex-direction: column;
		align-items: stretch;
	}
}

.bmt-ea-workspace-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: 16px;
	margin-top: 18px;
}

.bmt-ea-workspace-column {
	min-width: 0;
}

.bmt-ea-workspace-tools {
	margin-top: 14px;
}

.bmt-ea-field-groups {
	display: grid;
	gap: 16px;
}

.bmt-ea-field-group {
	padding: 16px;
	border: 1px solid #dbe4f0;
	border-radius: 16px;
	background: #f8fafc;
}

.bmt-ea-field-group-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.bmt-ea-field-group-head h3 {
	margin: 0;
	font-size: 15px;
}

.bmt-ea-field-group-head span {
	font-size: 12px;
	color: #64748b;
}

.bmt-ea-field-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.bmt-ea-form-field {
	display: grid;
	gap: 8px;
	padding: 12px;
	border: 1px solid #dbe4f0;
	border-radius: 14px;
	background: #ffffff;
}

.bmt-ea-form-field-wide {
	grid-column: 1 / -1;
}

.bmt-ea-form-field span {
	font-size: 13px;
	font-weight: 700;
	color: #334155;
}

.bmt-ea-form-field small {
	font-size: 11px;
	color: #64748b;
}

.bmt-ea-field-input,
.bmt-ea-field-textarea,
.bmt-ea-relation-select {
	width: 100%;
	padding: 10px 12px;
	border-radius: var(--bmt-ea-radius1);
	border: 1px solid #cbd5e1;
	background: #ffffff;
	font-size: 14px;
	font-family: inherit;
}

.bmt-ea-field-textarea {
	min-height: 120px;
	resize: vertical;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.bmt-ea-boolean-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	color: #334155;
}

.bmt-ea-boolean-toggle input {
	margin: 0;
}

.bmt-ea-relation-picker {
	display: grid;
	gap: 8px;
}

.bmt-ea-relation-picker-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 10px;
	align-items: center;
}

@media (max-width: 1200px) {
	.bmt-ea-workspace-grid,
	.bmt-ea-field-grid {
		grid-template-columns: 1fr;
	}
}

.bmt-ea-workspace-stack {
	display: grid;
	gap: 16px;
}

.bmt-ea-guidance-alert {
	min-height: var(--bmt-ea-control-height);
	padding: 12px 14px;
	border-radius: var(--bmt-ea-radius1);
	font-size: 13px;
	font-weight: 600;
	margin-top: 12px;
}

.bmt-ea-guidance-alert-ok {
	background: #ecfdf5;
	border: 1px solid #bbf7d0;
	color: #166534;
}

.bmt-ea-guidance-alert-danger {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
}

.bmt-ea-guidance-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.bmt-ea-guidance-list span,
.bmt-ea-field-options span,
.bmt-ea-mini-chip {
	display: inline-flex;
	align-items: center;
	padding: 5px 8px;
	border-radius: 999px;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	font-size: 12px;
	color: #1d4ed8;
}

.bmt-ea-mini-chip-danger {
	background: #fef2f2;
	border-color: #fecaca;
	color: #b91c1c;
}

.bmt-ea-guidance-note,
.bmt-ea-field-help {
	display: block;
	margin-top: 10px;
	font-size: 12px;
	color: #64748b;
}

.bmt-ea-field-badges,
.bmt-ea-field-options {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}

.bmt-ea-form-field.is-missing {
	border-color: #fecaca;
	background: #fff7f7;
}

.bmt-ea-operation-feed {
	display: grid;
	gap: 10px;
}

.bmt-ea-operation-item {
	display: grid;
	gap: 4px;
	padding: 12px;
	border: 1px solid #dbe4f0;
	border-radius: var(--bmt-ea-radius1);
	background: #f8fafc;
}

.bmt-ea-operation-item strong {
	font-size: 13px;
}

.bmt-ea-operation-item span,
.bmt-ea-operation-item small {
	color: #64748b;
	font-size: 12px;
}

.bmt-ea-operation-item-archived {
	background: #ffffff;
}

.bmt-ea-operation-item-archived .bmt-ea-action-list {
	margin-top: 10px;
}


.bmt-ea-auth-stat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 12px;
}

.bmt-ea-auth-stat-card {
	border: 1px solid rgba(15,23,42,.12);
	border-radius: var(--bmt-ea-radius1);
	padding: 14px 16px;
	background: #fff;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.bmt-ea-auth-stat-card span {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #64748b;
}

.bmt-ea-auth-stat-card strong {
	font-size: 24px;
	line-height: 1.1;
	color: #0f172a;
}

.bmt-ea-auth-stat-card.is-attention {
	border-color: rgba(220,38,38,.28);
	background: rgba(254,242,242,.9);
}

.bmt-ea-auth-form {
	display: grid;
	gap: 12px;
}

.bmt-ea-checkbox-inline {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #334155;
}

.bmt-ea-auth-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.bmt-ea-auth-row {
	display: flex;
	justify-content: space-between;
	gap: 14px;
	align-items: flex-start;
	padding: 12px 14px;
	border: 1px solid rgba(15,23,42,.08);
	border-radius: var(--bmt-ea-radius1);
	background: #fff;
}

.bmt-ea-auth-row > div:first-child {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.bmt-ea-auth-row strong {
	font-size: 14px;
	color: #0f172a;
}

.bmt-ea-auth-row span {
	font-size: 12px;
	color: #64748b;
	word-break: break-word;
}

.bmt-ea-panel-card-compact {
	min-height: 0;
}

.bmt-ea-text-input {
	width: 100%;
	min-height: var(--bmt-ea-control-height);
	padding: 12px 14px;
	border-radius: var(--bmt-ea-radius1);
	border: 1px solid #cbd5e1;
	background: #ffffff;
	font-size: 14px;
	font-family: inherit;
}

.bmt-ea-auth-form textarea.bmt-ea-text-input {
	min-height: 96px;
	resize: vertical;
}

.bmt-ea-chip-light {
	background: #eef2ff;
	color: #4338ca;
}

.bmt-ea-status-pill.is-blocked {
	border-color: #fecaca;
	background: #fff1f2;
	color: #b91c1c;
}

.bmt-ea-module-lane-grid,
.bmt-ea-module-entity-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 14px;
}

.bmt-ea-module-lane-card,
.bmt-ea-module-entity-card {
	border: 1px solid #dbe4f0;
	border-radius: 16px;
	padding: 16px;
	background: #f8fafc;
	display: grid;
	gap: 12px;
}

.bmt-ea-module-lane-card.is-stable,
.bmt-ea-module-entity-card.is-stable {
	border-color: #bbf7d0;
	background: #f0fdf4;
}

.bmt-ea-module-lane-card.is-attention,
.bmt-ea-module-entity-card.is-attention {
	border-color: #fde68a;
	background: #fffbeb;
}

.bmt-ea-module-lane-card.is-blocked,
.bmt-ea-module-entity-card.is-blocked {
	border-color: #fecaca;
	background: #fff1f2;
}

.bmt-ea-module-lane-head,
.bmt-ea-module-entity-head,
.bmt-ea-module-queue-item,
.bmt-ea-module-entity-action {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: flex-start;
}

.bmt-ea-module-lane-head strong,
.bmt-ea-module-entity-head strong,
.bmt-ea-module-queue-item strong,
.bmt-ea-module-entity-action strong {
	display: block;
}

.bmt-ea-module-entity-head small,
.bmt-ea-module-queue-item span,
.bmt-ea-module-queue-meta small,
.bmt-ea-module-lane-metric span,
.bmt-ea-module-entity-action span {
	color: #64748b;
	font-size: 12px;
}

.bmt-ea-module-lane-metric strong {
	font-size: 22px;
	line-height: 1;
}

.bmt-ea-module-queue-list {
	display: grid;
	gap: 12px;
}

.bmt-ea-module-queue-item {
	padding: 12px 14px;
	border: 1px solid #dbe4f0;
	border-radius: 14px;
	background: #f8fafc;
}

.bmt-ea-module-queue-meta {
	display: grid;
	justify-items: end;
	gap: 6px;
}

.bmt-ea-module-workspace-grid,
.bmt-ea-module-intervention-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 14px;
}

.bmt-ea-module-workspace-card,
.bmt-ea-module-intervention-card {
	border: 1px solid #dbe4f0;
	border-radius: 16px;
	padding: 16px;
	background: #f8fafc;
	display: grid;
	gap: 12px;
}

.bmt-ea-module-workspace-card.is-stable,
.bmt-ea-module-intervention-card.is-stable {
	border-color: #bbf7d0;
	background: #f0fdf4;
}

.bmt-ea-module-workspace-card.is-attention,
.bmt-ea-module-intervention-card.is-attention {
	border-color: #fde68a;
	background: #fffbeb;
}

.bmt-ea-module-workspace-card.is-blocked,
.bmt-ea-module-intervention-card.is-blocked {
	border-color: #fecaca;
	background: #fff1f2;
}

.bmt-ea-module-workspace-head,
.bmt-ea-module-workspace-metric,
.bmt-ea-module-workspace-primary,
.bmt-ea-module-intervention-head,
.bmt-ea-module-intervention-metric {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: flex-start;
}

.bmt-ea-module-workspace-head strong,
.bmt-ea-module-workspace-metric strong,
.bmt-ea-module-workspace-primary strong,
.bmt-ea-module-intervention-head strong,
.bmt-ea-module-intervention-metric strong {
	display: block;
}

.bmt-ea-module-workspace-head small,
.bmt-ea-module-intervention-head small,
.bmt-ea-module-workspace-metric span,
.bmt-ea-module-workspace-primary span,
.bmt-ea-module-intervention-metric span {
	color: #64748b;
	font-size: 12px;
}

.bmt-ea-module-workspace-metrics {
	display: grid;
	gap: 8px;
}

.bmt-ea-module-workspace-primary strong,
.bmt-ea-module-intervention-metric strong {
	font-size: 22px;
	line-height: 1;
}

.bmt-ea-shell-server .bmt-ea-sidebar {
	min-width: 300px;
}

.bmt-ea-workspace-tab-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 18px;
}

.bmt-ea-workspace-tab-trigger {
	appearance: none;
	border: 1px solid #e1e8ed;
	background: #fff;
	border-radius: 999px;
	padding: 9px 14px;
	line-height: 1.2;
	font: inherit;
	color: #191f28;
	cursor: pointer;
}

.bmt-ea-workspace-tab-trigger[aria-selected="true"],
.bmt-ea-workspace-tab-trigger.is-active {
	background: #191f28;
	border-color: #191f28;
	color: #fff;
}

.bmt-ea-workspace-tab-panel {
	display: none;
}

.bmt-ea-workspace-tab-panel.is-active {
	display: block;
}

.bmt-ea-workspace-tab-panel > * + * {
	margin-top: 18px;
}

.bmt-ea-company-form {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.bmt-ea-content-stack-tight {
	gap: 4px;
}

.bmt-ea-company-summary-strip {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 14px;
	margin-bottom: 4px;
}

.bmt-ea-company-summary-card {
	border: 1px solid var(--bmt-ea-border);
	border-radius: 16px;
	padding: 16px;
	background: var(--bmt-ea-bg-secondary);
	display: grid;
	gap: 10px;
}

.bmt-ea-company-summary-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
}

.bmt-ea-company-summary-value {
	font-size: 22px;
	line-height: 1.1;
	font-weight: 700;
	color: var(--bmt-ea-text);
}

.bmt-ea-company-tab-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 18px;
}

.bmt-ea-company-tab-trigger {
	appearance: none;
	border: 1px solid #e1e8ed;
	background: #fff;
	border-radius: 18px;
	padding: 12px 14px;
	line-height: 1.2;
	font: inherit;
	color: #191f28;
	cursor: pointer;
	min-width: 220px;
	text-align: left;
	display: grid;
	gap: 8px;
}

.bmt-ea-company-tab-label-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
}

.bmt-ea-company-tab-label {
	font-weight: 700;
}

.bmt-ea-company-tab-meta {
	font-size: 12px;
	color: #64748b;
}

.bmt-ea-company-tab-trigger[aria-selected="true"],
.bmt-ea-company-tab-trigger.is-active {
	background: #191f28;
	border-color: #191f28;
	color: #fff;
}

.bmt-ea-company-tab-trigger[aria-selected="true"] .bmt-ea-company-tab-meta,
.bmt-ea-company-tab-trigger.is-active .bmt-ea-company-tab-meta {
	color: rgba(255,255,255,0.78);
}

.bmt-ea-company-tab-panel {
	display: none;
}

.bmt-ea-company-tab-panel.is-active {
	display: block;
}

.bmt-ea-company-tab-panel > .bmt-ea-company-section + .bmt-ea-company-section {
	margin-top: 18px;
}

.bmt-ea-company-repeater {
	display: grid;
	gap: 14px;
}

.bmt-ea-company-repeater-body {
	display: grid;
	gap: 14px;
}

.bmt-ea-company-repeater-item {
	border: 1px solid var(--bmt-ea-border);
	border-radius: 16px;
	padding: 16px;
	background: var(--bmt-ea-bg-secondary);
	display: grid;
	gap: 14px;
}

.bmt-ea-company-repeater-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
}

.bmt-ea-company-repeater-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 18px;
}

.bmt-ea-company-repeater-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding-top: 4px;
}

.bmt-ea-button-subtle {
	border-color: var(--bmt-ea-border);
	background: #fff;
	color: var(--bmt-ea-text);
}

.bmt-ea-company-section {
	padding-top: 8px;
	border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.bmt-ea-company-section:first-of-type {
	border-top: 0;
	padding-top: 0;
}

.bmt-ea-tab-nav-anchor-list {
	margin-bottom: 8px;
}

.bmt-ea-tab-nav-anchor-list .bmt-ea-chip {
	text-decoration: none;
}

.bmt-ea-editor-label-wide {
	grid-column: 1 / -1;
}

.bmt-ea-card-grid-compact {
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.bmt-ea-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border: 1px solid rgba(148, 163, 184, 0.22);
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.35);
}

.bmt-ea-checkbox input[type="hidden"] {
	display: none;
}

.bmt-ea-checkbox span:empty {
	display: none;
}

.bmt-ea-company-form .bmt-ea-table td {
	vertical-align: top;
}

.bmt-ea-company-kpi-grid .bmt-ea-kpi-card {
	min-height: 100%;
}

.bmt-ea-kpi-value {
	font-size: 28px;
	line-height: 1;
	font-weight: 700;
	color: var(--bmt-ea-text);
	margin-bottom: 8px;
}

.bmt-ea-inline-chip-list,
.bmt-ea-inline-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.bmt-ea-inline-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 10px;
	border: 1px solid var(--bmt-ea-border);
	border-radius: 999px;
	background: var(--bmt-ea-bg-secondary);
	color: var(--bmt-ea-text);
	font-size: 13px;
	line-height: 1.2;
}

.bmt-ea-inline-chip-list .bmt-ea-chip {
	background: var(--bmt-ea-bg-secondary);
	border-color: var(--bmt-ea-border);
	color: var(--bmt-ea-text);
}

.bmt-ea-company-guardrail-grid .bmt-ea-panel-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.bmt-ea-company-guardrail-grid .bmt-ea-panel-card-head h3 {
	margin: 0;
	font-size: 14px;
}


/* Panel shell refresh: fixed topbar + sticky leftbar */
.bmt-ea-shell {
	grid-template-columns: 200px minmax(0, 1fr);
	padding-top: 50px;
	background: #fff;
}

.bmt-ea-topbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 50px;
	padding: 0 16px;
	margin: 0;
	align-items: center;
	background: #fff;
	border-bottom: 1px solid var(--bmt-ea-border);
	z-index: 1000;
}

.bmt-ea-topbar-left,
.bmt-ea-topbar-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.bmt-ea-topbar-left {
	flex: 1 1 auto;
	min-width: 0;
	margin-right: 16px;
}

.bmt-ea-topbar-local {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	font-size: 13px;
	line-height: 1.2;
	color: var(--bmt-ea-text);
}

.bmt-ea-topbar-local-date,
.bmt-ea-topbar-local-time {
	font-weight: 600;
	color: var(--bmt-ea-text);
}

.bmt-ea-topbar-local-time {
	font-variant-numeric: tabular-nums;
}

.bmt-ea-topbar-local-separator {
	color: #94a3b8;
	flex: 0 0 auto;
}

.bmt-ea-topbar-logo {
	width: 32px;
	height: 32px;
	flex: 0 0 32px;
	display: block;
	object-fit: contain;
}

.bmt-ea-topbar-home-link {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1 1 auto;
	min-width: 0;
	color: inherit;
	text-decoration: none;
}

.bmt-ea-topbar-home-link:hover,
.bmt-ea-topbar-home-link:focus,
.bmt-ea-topbar-home-link:active {
	color: inherit;
	text-decoration: none;
}

.bmt-ea-topbar-brand-name {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-size: 15px;
	font-weight: 700;
	color: var(--bmt-ea-text);
}

.bmt-ea-topbar-sidebar-toggle {
	width: 36px;
	height: 36px;
	min-width: 36px;
	padding: 0;
	border: 1px solid var(--bmt-ea-border);
	border-radius: 7px;
	background: #fff;
	box-shadow: none;
}

.bmt-ea-topbar-sidebar-toggle:hover {
	background: var(--bmt-ea-bg-secondary);
}

.bmt-ea-topbar-sidebar-toggle .bmt-ea-sidebar-toggle-icon {
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
	transition: opacity 0.18s ease;
}

.bmt-ea-topbar-sidebar-toggle .bmt-ea-sidebar-toggle-icon svg {
	width: 20px;
	height: 20px;
}

.bmt-ea-topbar-locale,
.bmt-ea-topbar-logout {
	margin: 0;
}

.bmt-ea-topbar-locale-menu {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.bmt-ea-topbar-locale-trigger {
	gap: 8px;
	padding: 0 11px;
	min-width: 72px;
}

.bmt-ea-topbar-locale-current {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	height: 24px;
	padding: 0 8px;
	border-radius: 999px;
	background: #f8fafc;
	border: 1px solid #dbe3ec;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #475569;
}

.bmt-ea-topbar-locale-menu.is-open .bmt-ea-topbar-locale-trigger {
	background: #f7f9fc;
	border-color: #cbd5e1;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.bmt-ea-topbar-locale-dropdown {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	width: 248px;
	padding: 10px;
	border: 1px solid #dbe3ec;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(8px);
	transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
	z-index: 35;
}

.bmt-ea-topbar-locale-menu.is-open .bmt-ea-topbar-locale-dropdown {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}

.bmt-ea-topbar-locale-option {
	appearance: none;
	-webkit-appearance: none;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 13px 14px;
	border: 1px solid transparent;
	border-radius: 14px;
	background: transparent;
	color: var(--bmt-ea-text);
	text-decoration: none;
	font: inherit;
	text-align: left;
	cursor: pointer;
	box-shadow: none;
}

.bmt-ea-topbar-locale-option + .bmt-ea-topbar-locale-option {
	margin-top: 8px;
}

.bmt-ea-topbar-locale-option:hover,
.bmt-ea-topbar-locale-option:focus-visible {
	background: #f8fafc;
	border-color: #dbe3ec;
	outline: none;
}

.bmt-ea-topbar-locale-option.is-active {
	background: #eef5ff;
	border-color: #bfd5ff;
	box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.bmt-ea-topbar-locale-option-copy {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.bmt-ea-topbar-locale-option-check {
	width: 20px;
	height: 20px;
	min-width: 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: #dbeafe;
	color: #2563eb;
	opacity: 0;
	transform: scale(0.85);
	transition: opacity 0.14s ease, transform 0.14s ease;
}

.bmt-ea-topbar-locale-option.is-active .bmt-ea-topbar-locale-option-check {
	opacity: 1;
	transform: scale(1);
}

.bmt-ea-topbar-locale-option-check svg {
	width: 14px;
	height: 14px;
}

.bmt-ea-topbar-locale-option-label {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	color: #0f172a;
}

.bmt-ea-topbar-locale-option-meta {
	font-size: 12px;
	line-height: 1.3;
	color: #64748b;
}

.bmt-ea-icon-button .bmt-ea-nav-icon,
.bmt-ea-topbar-locale-visual .bmt-ea-nav-icon {

	width: 20px;
	height: 20px;
	min-width: 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.bmt-ea-icon-button .bmt-ea-nav-icon svg,
.bmt-ea-topbar-locale-visual .bmt-ea-nav-icon svg {
	width: 20px;
	height: 20px;
}


.bmt-ea-topbar-action-placeholder,
.bmt-ea-topbar-action-placeholder[disabled],
.bmt-ea-topbar-action-placeholder[aria-disabled="true"] {
	cursor: not-allowed;
	background: #f8fafc;
	border-color: #e2e8f0;
	color: #94a3b8;
	opacity: 0.58;
	box-shadow: none;
	pointer-events: none;
}

.bmt-ea-topbar-action-placeholder:hover,
.bmt-ea-topbar-action-placeholder:focus,
.bmt-ea-topbar-action-placeholder:active {
	background: #f8fafc;
	color: #94a3b8;
}

.bmt-ea-icon-button {
	width: 36px;
	height: 36px;
	min-width: 36px;
	padding: 0;
	border: 1px solid var(--bmt-ea-border);
	border-radius: 7px;
	background: #fff;
	box-shadow: none;
	color: var(--bmt-ea-text);
	text-decoration: none;
	line-height: 1;
	cursor: pointer;
	font-size: 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 36px;
}

.bmt-ea-icon-button:hover {
	background: var(--bmt-ea-bg-secondary);
}

.bmt-ea-icon-button .bmt-ea-nav-icon {
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
}

.bmt-ea-icon-button .bmt-ea-nav-icon svg {
	width: 20px;
	height: 20px;
}


.bmt-ea-sidebar {
	position: relative;
	top: auto;
	height: auto;
	overflow: visible;
	padding: 18px 14px;
	background: #fff;
	color: var(--bmt-ea-text);
	border-right: 1px solid var(--bmt-ea-border);
	align-self: start;
}

.bmt-ea-sidebar .bmt-ea-brand p,
.bmt-ea-sidebar .bmt-ea-brand span,
.bmt-ea-sidebar h2,
.bmt-ea-sidebar h3,
.bmt-ea-sidebar strong,
.bmt-ea-sidebar a {
	color: var(--bmt-ea-text);
}

.bmt-ea-sidebar-section {
	margin-top: 0;
}

.bmt-ea-sidebar-section h2 {
	display: none;
}

.bmt-ea-sidebar-nav {
	gap: 4px;
}

.bmt-ea-nav-item {
	padding: 10px 12px;
	color: var(--bmt-ea-text);
	background: transparent;
	border: 1px solid transparent;
}

.bmt-ea-nav-item:hover,
.bmt-ea-nav-item.is-active {
	background: var(--bmt-ea-bg-secondary);
	color: var(--bmt-ea-text);
	border-color: var(--bmt-ea-border);
}


.bmt-ea-company-filter-shell {
	margin: 0 0 16px;
}

.bmt-ea-company-filter-form {
	margin: 0;
}

.bmt-ea-company-filter-row {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.bmt-ea-company-filter-control {
	min-height: 42px;
	margin: 0;
}

.bmt-ea-company-filter-search {
	flex: 1 1 280px;
	min-width: 220px;
}

.bmt-ea-company-filter-select {
	flex: 0 1 220px;
	min-width: 180px;
}

.bmt-ea-company-filter-actions {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-left: auto;
}

.bmt-ea-company-filter-actions .bmt-ea-button {
	min-height: 42px;
}

.bmt-ea-module-filter-shell {
	margin: 0 0 16px;
}

.bmt-ea-module-filter-form {
	margin: 0;
}

.bmt-ea-module-filter-row {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.bmt-ea-module-filter-control {
	min-height: 42px;
	margin: 0;
}

.bmt-ea-module-filter-search {
	flex: 1 1 280px;
	min-width: 220px;
}

.bmt-ea-module-filter-select {
	flex: 0 1 220px;
	min-width: 180px;
}

.bmt-ea-module-filter-actions {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-left: auto;
}

.bmt-ea-module-filter-actions .bmt-ea-button {
	min-height: 42px;
}

.bmt-ea-nav-item.is-disabled {
	opacity: 0.52;
	cursor: default;
	pointer-events: none;
}

.bmt-ea-chip {
	background: #fff;
	color: var(--bmt-ea-text);
	border: 1px solid var(--bmt-ea-border);
}

.bmt-ea-main {
	--bmt-ea-main-padding-x: 24px;
	--bmt-ea-main-padding-y: 24px;
	padding: var(--bmt-ea-main-padding-y) var(--bmt-ea-main-padding-x);
	background: #fff;
}

.bmt-ea-main.bmt-ea-main-has-page-toolbar {
	padding-top: calc(var(--bmt-ea-main-padding-y, 24px) + var(--bmt-ea-page-toolbar-height, 50px) + 18px);
}

.bmt-ea-page-toolbar {
	--bmt-ea-page-toolbar-height: 50px;
	position: fixed;
	top: var(--bmt-ea-topbar-height, 50px);
	left: var(--bmt-ea-page-toolbar-left-offset, 0px);
	right: 0;
	z-index: 990;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: nowrap;
	height: var(--bmt-ea-page-toolbar-height);
	padding: 0 var(--bmt-ea-main-padding-x, 24px);
	margin: 0 0 18px;
	box-sizing: border-box;
	border-top: 0;
	border-right: 0;
	border-bottom: 1px solid #e1e8ed;
	border-left: 0;
	border-radius: 0;
	background: #fff;
	box-shadow: 0 10px 18px rgba(15, 23, 42, 0.04);
}

.bmt-ea-page-toolbar-left {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	flex: 1 1 auto;
}

.bmt-ea-page-toolbar-title {
	margin: 0;
	font: 600 18px/1.2 Montserrat, sans-serif;
	color: #191f28;
}

.bmt-ea-page-toolbar-actions {
	margin-left: auto;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	align-self: stretch;
}

.bmt-ea-page-toolbar-actions .bmt-ea-action-list {
	margin: 0;
	justify-content: flex-end;
	align-items: center;
	gap: 10px;
}

.bmt-ea-page-toolbar-actions .bmt-ea-button {
	min-height: 36px;
	padding: 0 14px;
}

.bmt-ea-page-head {
	margin-bottom: 18px;
}

.bmt-ea-page-head h1 {
	margin: 0;
	font-size: 26px;
	line-height: 1.2;
	color: var(--bmt-ea-text);
}

.bmt-ea-page-head p {
	margin: 6px 0 0;
	color: #64748b;
	font-size: 14px;
}

.bmt-ea-shell-server .bmt-ea-sidebar {
	min-width: 0;
	width: 100%;
}

@media (max-width: 1200px) {
	.bmt-ea-company-filter-actions {
		margin-left: 0;
	}

	.bmt-ea-shell {
		grid-template-columns: 200px minmax(0, 1fr);
	}
}

@media (max-width: 860px) {
	.bmt-ea-shell {
		grid-template-columns: 1fr;
	}

	.bmt-ea-topbar {
		height: auto;
		min-height: 50px;
		padding-top: 8px;
		padding-bottom: 8px;
		align-items: flex-start;
	}

	.bmt-ea-sidebar {
		top: 66px;
		height: auto;
		max-height: none;
		border-right: 0;
		border-bottom: 1px solid var(--bmt-ea-border);
	}

	.bmt-ea-main {
		--bmt-ea-main-padding-x: 18px;
		--bmt-ea-main-padding-y: 18px;
		padding: var(--bmt-ea-main-padding-y) var(--bmt-ea-main-padding-x);
	}

	.bmt-ea-main.bmt-ea-main-has-page-toolbar {
		padding-top: var(--bmt-ea-main-padding-y, 18px);
	}

	.bmt-ea-page-toolbar {
		position: sticky;
		left: auto;
		right: auto;
		height: auto;
		min-height: var(--bmt-ea-page-toolbar-height, 50px);
		padding: 7px var(--bmt-ea-main-padding-x, 18px);
		margin: calc(var(--bmt-ea-main-padding-y, 18px) * -1) calc(var(--bmt-ea-main-padding-x, 18px) * -1) 18px;
	}

	.bmt-ea-page-toolbar-left,
	.bmt-ea-page-toolbar-actions {
		flex-basis: 100%;
	}

	.bmt-ea-page-toolbar-actions .bmt-ea-action-list {
		justify-content: flex-start;
	}

	.bmt-ea-topbar,
	.bmt-ea-topbar-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.bmt-ea-topbar-left {
		width: 100%;
		min-width: 0;
		max-width: 100%;
	}

	.bmt-ea-topbar-local {
		width: 100%;
	}

	.bmt-ea-topbar-brand-name {
		max-width: none;
		width: 100%;
	}

	.bmt-ea-topbar-locale-dropdown {
		right: 0;
		min-width: 176px;
	}
}

.bmt-ea-settings-workspace {
	display: grid;
	gap: 18px;
}

.bmt-ea-settings-tab-bar,
.bmt-ea-settings-subtab-bar,
.bmt-ea-settings-note-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.bmt-ea-settings-tab,
.bmt-ea-settings-subtab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 14px;
	border: 1px solid var(--bmt-ea-border);
	border-radius: var(--bmt-ea-radius1);
	background: #fff;
	color: var(--bmt-ea-text);
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
}

.bmt-ea-settings-tab:hover,
.bmt-ea-settings-subtab:hover,
.bmt-ea-settings-tab.is-active,
.bmt-ea-settings-subtab.is-active {
	background: var(--bmt-ea-bg-secondary);
}

.bmt-ea-settings-subtab {
	padding: 8px 12px;
	font-size: 13px;
}

.bmt-ea-settings-note-item {
	padding: 10px 12px;
	border: 1px solid var(--bmt-ea-border);
	border-radius: var(--bmt-ea-radius1);
	background: var(--bmt-ea-bg-secondary);
	font-size: 13px;
	color: #475569;
}

.bmt-ea-icon-button {
	text-decoration: none;
}

@media (max-width: 860px) {
	.bmt-ea-settings-tab-bar,
	.bmt-ea-settings-subtab-bar {
		flex-direction: column;
	}
}

/* Sidebar navigation refresh: full-width separators + icon/text spacing */
.bmt-ea-shell {
	grid-template-columns: 200px minmax(0, 1fr);
}

.bmt-ea-sidebar {
	display: flex;
	flex-direction: column;
	gap: 0;
	padding: 0;
}

.bmt-ea-sidebar-section {
	flex: 1 1 auto;
	min-height: 0;
}

.bmt-ea-sidebar-nav {
	display: grid;
	gap: 0;
}

.bmt-ea-sidebar-logout {
	margin: 0;
}

.bmt-ea-nav-button {
	background: transparent;
	font: inherit;
	text-align: left;
	cursor: pointer;
}


.bmt-ea-nav-item,
.bmt-ea-sidebar-toggle {
	width: 100%;
	padding: 0 10px;
	border-radius: 0;
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	color: #7a8089;
	transition: background-color 0.18s ease, color 0.18s ease;
}

.bmt-ea-nav-item {
	min-height: 50px;
	height: 50px;
	border: 0;
	border-top: 1px solid var(--bmt-ea-border);
}

.bmt-ea-sidebar-nav .bmt-ea-nav-item {
	min-height: 50px;
	height: 50px;
}

.bmt-ea-sidebar-toggle {
	min-height: 52px;
}

.bmt-ea-nav-item:hover,
.bmt-ea-nav-item.is-active {
	background: #eef1f4;
	color: #191f28;
	margin-right: 1px;
}

.bmt-ea-nav-item.is-disabled {
	opacity: 1;
	color: #8f959d;
	pointer-events: none;
}

.bmt-ea-nav-icon,
.bmt-ea-sidebar-toggle-icon {
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.bmt-ea-nav-icon svg,
.bmt-ea-sidebar-toggle-icon svg {
	width: 20px;
	height: 20px;
	display: block;
}

.bmt-ea-nav-label {
	flex: 1 1 auto;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.bmt-ea-sidebar-footer {
	padding-top: 0;
	border-top: 1px solid rgba(195, 196, 199, 0.7);
}

.bmt-ea-sidebar-toggle {
	border: 0;
	border-top: 1px solid rgba(195, 196, 199, 0.7);
	background: transparent;
	cursor: pointer;
	text-align: left;
	color: #59616d;
}

.bmt-ea-sidebar-toggle:hover {
	background: #eef1f4;
	color: #191f28;
}

.bmt-ea-shell-server.bmt-ea-sidebar-collapsed {
	grid-template-columns: 60px minmax(0, 1fr);
}

.bmt-ea-shell-server.bmt-ea-sidebar-collapsed .bmt-ea-sidebar {
	min-width: 0;
	width: 100%;
	padding-left: 8px;
	padding-right: 8px;
}

.bmt-ea-shell-server.bmt-ea-sidebar-collapsed .bmt-ea-nav-item,
.bmt-ea-shell-server.bmt-ea-sidebar-collapsed .bmt-ea-sidebar-toggle {
	justify-content: center;
	padding-left: 0;
	padding-right: 0;
	gap: 0;
}

.bmt-ea-shell-server.bmt-ea-sidebar-collapsed .bmt-ea-nav-label {
	display: none;
}

.bmt-ea-shell-server.bmt-ea-sidebar-collapsed .bmt-ea-topbar-sidebar-toggle {
	background: var(--bmt-ea-bg-secondary);
}

@media (max-width: 860px) {
	.bmt-ea-sidebar {
		padding: 0;
	}

	.bmt-ea-nav-item,
	.bmt-ea-sidebar-toggle {
		min-height: 48px;
	}

	.bmt-ea-shell-server.bmt-ea-sidebar-collapsed {
		grid-template-columns: 1fr;
	}

	.bmt-ea-shell-server.bmt-ea-sidebar-collapsed .bmt-ea-nav-label {
		display: inline;
	}

	.bmt-ea-shell-server.bmt-ea-sidebar-collapsed .bmt-ea-nav-item,
	.bmt-ea-shell-server.bmt-ea-sidebar-collapsed .bmt-ea-sidebar-toggle {
		justify-content: flex-start;
		padding-left: 10px;
		padding-right: 10px;
		gap: 12px;
	}
}


/* Keep desktop sidebar behavior on narrow desktop widths too */
@media (max-width: 860px) {
	.bmt-ea-shell {
		grid-template-columns: 200px minmax(0, 1fr);
	}

	.bmt-ea-topbar {
		height: 50px;
		min-height: 50px;
		padding-top: 0;
		padding-bottom: 0;
		align-items: center;
	}

	.bmt-ea-topbar,
	.bmt-ea-topbar-actions {
		flex-direction: row;
		align-items: center;
	}

	.bmt-ea-topbar-left {
		flex: 1 1 auto;
		min-width: 0;
		max-width: none;
	}

	.bmt-ea-topbar-brand-name {
		width: auto;
		max-width: none;
	}

	.bmt-ea-sidebar {
		border-right: 1px solid var(--bmt-ea-border);
		border-bottom: 0;
	}

	.bmt-ea-shell-server.bmt-ea-sidebar-collapsed {
		grid-template-columns: 60px minmax(0, 1fr);
	}

	.bmt-ea-shell-server.bmt-ea-sidebar-collapsed .bmt-ea-nav-label {
		display: none;
	}

	.bmt-ea-shell-server.bmt-ea-sidebar-collapsed .bmt-ea-nav-item,
	.bmt-ea-shell-server.bmt-ea-sidebar-collapsed .bmt-ea-sidebar-toggle {
		justify-content: center;
		padding-left: 0;
		padding-right: 0;
		gap: 0;
	}
}


/* Reliable server sidebar collapse state */
.bmt-ea-shell-server {
	--bmt-ea-server-sidebar-width: 200px;
	--bmt-ea-page-toolbar-left-offset: var(--bmt-ea-server-sidebar-width, 200px);
	grid-template-columns: var(--bmt-ea-server-sidebar-width) minmax(0, 1fr) !important;
}

.bmt-ea-shell-server[data-sidebar-state="collapsed"],
.bmt-ea-shell-server.bmt-ea-sidebar-collapsed {
	--bmt-ea-server-sidebar-width: 60px;
}

.bmt-ea-shell-server > .bmt-ea-topbar {
	grid-column: 1 / -1;
}

.bmt-ea-shell-server > .bmt-ea-sidebar {
	width: var(--bmt-ea-server-sidebar-width) !important;
	min-width: var(--bmt-ea-server-sidebar-width) !important;
	max-width: var(--bmt-ea-server-sidebar-width) !important;
	overflow: visible !important;
	max-height: none !important;
	height: auto !important;
	align-self: start;
}

.bmt-ea-shell-server[data-sidebar-state="collapsed"] > .bmt-ea-sidebar,
.bmt-ea-shell-server.bmt-ea-sidebar-collapsed > .bmt-ea-sidebar {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.bmt-ea-shell-server[data-sidebar-state="collapsed"] .bmt-ea-nav-item,
.bmt-ea-shell-server[data-sidebar-state="collapsed"] .bmt-ea-sidebar-toggle,
.bmt-ea-shell-server.bmt-ea-sidebar-collapsed .bmt-ea-nav-item,
.bmt-ea-shell-server.bmt-ea-sidebar-collapsed .bmt-ea-sidebar-toggle {
	justify-content: center !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	gap: 0 !important;
}

.bmt-ea-shell-server[data-sidebar-state="collapsed"] .bmt-ea-nav-label,
.bmt-ea-shell-server.bmt-ea-sidebar-collapsed .bmt-ea-nav-label {
	display: none !important;
}

/* Server sidebar: smart sticky without internal scrollbar */
.bmt-ea-shell-server {
	align-items: start;
	--bmt-ea-topbar-height: 50px;
	--bmt-ea-sidebar-sticky-top: var(--bmt-ea-topbar-height);
}

.bmt-ea-shell-server > .bmt-ea-sidebar {
	position: sticky;
	top: var(--bmt-ea-sidebar-sticky-top);
	height: var(--bmt-ea-sidebar-viewport-height, calc(100vh - var(--bmt-ea-topbar-height)));
	min-height: var(--bmt-ea-sidebar-viewport-height, calc(100vh - var(--bmt-ea-topbar-height)));
	max-height: var(--bmt-ea-sidebar-viewport-height, calc(100vh - var(--bmt-ea-topbar-height)));
	overflow: hidden !important;
}

.bmt-ea-shell-server > .bmt-ea-sidebar .bmt-ea-sidebar-section {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	transform: translateY(var(--bmt-ea-sidebar-scroll-offset, 0px));
}

.bmt-ea-shell-server > .bmt-ea-sidebar .bmt-ea-sidebar-nav {
	display: flex;
	flex-direction: column;
	flex: 0 0 auto;
	min-height: 0;
	overflow: visible !important;
}

.bmt-ea-shell-server > .bmt-ea-sidebar .bmt-ea-sidebar-logout {
	margin-top: 0;
	padding-top: 0;
	flex: 0 0 auto;
	position: relative;
	bottom: auto;
	background: transparent;
	z-index: auto;
}

.bmt-ea-shell-server > .bmt-ea-sidebar .bmt-ea-sidebar-logout .bmt-ea-nav-item {
	border-bottom: 0;
}

.bmt-ea-shell-server > .bmt-ea-sidebar .bmt-ea-sidebar-version {
	margin-top: auto;
	padding: 6px 10px 10px;
	border-top: 1px solid var(--bmt-ea-border);
	color: #8f959d;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.08em;
	text-align: center;
	white-space: nowrap;
}

.bmt-ea-shell-server > .bmt-ea-sidebar .bmt-ea-sidebar-version-prefix {
	display: inline-block;
}

.bmt-ea-shell-server > .bmt-ea-sidebar .bmt-ea-sidebar-version-separator {
	display: inline-block;
	width: 6px;
}

.bmt-ea-shell-server > .bmt-ea-sidebar .bmt-ea-sidebar-version-number {
	display: inline-block;
}

.bmt-ea-shell-server[data-sidebar-state="collapsed"] > .bmt-ea-sidebar .bmt-ea-sidebar-version,
.bmt-ea-shell-server.bmt-ea-sidebar-collapsed > .bmt-ea-sidebar .bmt-ea-sidebar-version {
	display: block;
	padding: 6px 4px 10px;
	font-size: 10px;
	letter-spacing: 0.02em;
}

.bmt-ea-shell-server[data-sidebar-state="collapsed"] > .bmt-ea-sidebar .bmt-ea-sidebar-version-prefix,
.bmt-ea-shell-server.bmt-ea-sidebar-collapsed > .bmt-ea-sidebar .bmt-ea-sidebar-version-prefix,
.bmt-ea-shell-server[data-sidebar-state="collapsed"] > .bmt-ea-sidebar .bmt-ea-sidebar-version-separator,
.bmt-ea-shell-server.bmt-ea-sidebar-collapsed > .bmt-ea-sidebar .bmt-ea-sidebar-version-separator {
	display: none;
}

@media (max-width: 860px) {
	.bmt-ea-shell-server {
		--bmt-ea-sidebar-sticky-top: auto;
		--bmt-ea-page-toolbar-left-offset: 0px;
	}

	.bmt-ea-shell-server > .bmt-ea-sidebar {
		position: relative;
		top: auto;
		min-height: 0;
		height: auto !important;
		max-height: none !important;
		overflow: visible !important;
	}

	.bmt-ea-shell-server > .bmt-ea-sidebar .bmt-ea-sidebar-section {
		min-height: 0;
		transform: none;
	}

	.bmt-ea-shell-server > .bmt-ea-sidebar .bmt-ea-sidebar-nav {
		overflow: visible !important;
	}

	.bmt-ea-shell-server > .bmt-ea-sidebar .bmt-ea-sidebar-logout {
		position: static;
	}
}


.bmt-ea-payload-studio-toolbar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 14px;
	align-items: end;
	margin-bottom: 16px;
}

.bmt-ea-payload-studio-toolbar .bmt-ea-action-list {
	margin-top: 0;
	justify-content: flex-end;
}

@media (max-width: 860px) {
	.bmt-ea-payload-studio-toolbar {
		grid-template-columns: 1fr;
	}

	.bmt-ea-payload-studio-toolbar .bmt-ea-action-list {
		justify-content: flex-start;
	}
}

@media (max-width: 860px) {
	.bmt-ea-company-filter-row {
		align-items: stretch;
	}

	.bmt-ea-company-filter-search,
	.bmt-ea-company-filter-select,
	.bmt-ea-company-filter-actions {
		flex: 1 1 100%;
		min-width: 0;
	}

	.bmt-ea-company-filter-actions {
		margin-left: 0;
	}
}


@media (max-width: 900px) {
	.bmt-ea-company-tab-trigger {
		min-width: 0;
		width: 100%;
	}

	.bmt-ea-company-repeater-head,
	.bmt-ea-company-repeater-footer {
		flex-direction: column;
		align-items: stretch;
	}

	.bmt-ea-company-repeater-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.bmt-ea-auth-context-strip {
		grid-template-columns: 1fr;
	}

	.bmt-ea-auth-stage-link {
		width: 100%;
	}
}


/* standalone 3.8.3-2 compatibility */
.bmt-ea-hidden{display:none !important;}
.bmt-ea-login-logo-wrap img[hidden]{display:none !important;}
.bmt-ea-action-list{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.bmt-ea-card-grid{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));margin-bottom:18px;}
.bmt-ea-panel-card{background:#fff;border:1px solid #e1e8ed;border-radius:14px;padding:16px;box-shadow:0 1px 2px rgba(17,24,39,.04);}
.bmt-ea-panel-card h2,.bmt-ea-panel-card h3{margin:0 0 8px;font-size:18px;color:#191f28;}
.bmt-ea-panel-card .subtle,.bmt-ea-help-text{color:#5b6775;}
.bmt-ea-definition-list{display:grid;gap:10px;}
.bmt-ea-definition-row{display:grid;grid-template-columns:160px 1fr;gap:8px 12px;}
.bmt-ea-definition-row span{color:#5b6775;}
.bmt-ea-workspace-grid{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));}
.bmt-ea-workspace-card .bmt-ea-workspace-meta{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 0;}
.bmt-ea-workspace-card .bmt-ea-chip{font-size:12px;border-radius:999px;padding:4px 10px;}
.bmt-ea-workspace-card h3{margin:0 0 6px;font-size:18px;}
.bmt-ea-empty-state{color:#5b6775;}
.bmt-ea-auth-message{min-height:22px;margin-top:12px;color:#5f6975;font-size:13px;}
.bmt-ea-auth-message.is-error{color:#8f1d1d;}
.bmt-ea-auth-message.is-success{color:#166534;}
.bmt-ea-login-card .bmt-ea-button[disabled]{opacity:.65;cursor:wait;}
.bmt-ea-topbar-actions #logout-link{display:inline-flex;}
@media (max-width: 860px){.bmt-ea-definition-row{grid-template-columns:1fr}.bmt-ea-login-card{padding:24px}.bmt-ea-login-shell{padding:20px}}

.bmt-ea-content-stack{display:grid;gap:18px;}
.bmt-ea-topbar-actions .session-chip{display:none !important;}
.bmt-ea-panel-card .list,.bmt-ea-panel-card .form-list,.bmt-ea-panel-card .data-list{display:grid;gap:10px;}
.bmt-ea-panel-card .row{display:grid;grid-template-columns:160px 1fr;gap:8px 12px;}
@media (max-width: 860px){.bmt-ea-panel-card .row{grid-template-columns:1fr;}}


.screen-auth .bmt-ea-login-shell {
	min-height: calc(100vh - 50px);
	padding-top: calc(50px + 32px);
}

.bmt-ea-topbar-auth .bmt-ea-topbar-left {
	margin-right: 0;
}

.bmt-ea-topbar-auth .bmt-ea-topbar-actions {
	margin-left: auto;
}

.bmt-ea-topbar-auth .bmt-ea-topbar-home-link {
	max-width: min(100%, 420px);
}


.bmt-ea-topbar-theme-toggle[data-theme-state="dark"] {
	color: #f59e0b;
}

html[data-theme="dark"],
body[data-theme="dark"] {
	color-scheme: dark;
	--bg: #0f1720;
	--surface: #151d27;
	--border: #2a3644;
	--text: #edf2f7;
	--muted: #a7b4c2;
	--shadow: 0 10px 30px rgba(0,0,0,.28);
	--bmt-ea-bg-primary: #151d27;
	--bmt-ea-bg-secondary: #0f1720;
	--bmt-ea-border: #2a3644;
	--bmt-ea-text: #edf2f7;
	--bmt-ea-overlay-bg: rgba(7, 12, 18, 0.78);
	--bmt-ea-overlay-ring-track: rgba(255,255,255,.16);
	--bmt-ea-overlay-ring-accent: #ffffff;
}

html[data-theme="dark"] body,
body[data-theme="dark"] {
	background: var(--bmt-ea-bg-secondary);
	color: var(--bmt-ea-text);
}

html[data-theme="dark"] .bmt-ea-topbar,
html[data-theme="dark"] .bmt-ea-sidebar,
html[data-theme="dark"] .bmt-ea-page-toolbar,
html[data-theme="dark"] .bmt-ea-panel-card,
html[data-theme="dark"] .bmt-ea-login-card,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .card,
html[data-theme="dark"] .workspace-card,
html[data-theme="dark"] .topbar,
html[data-theme="dark"] .toolbar {
	background: var(--bmt-ea-bg-primary) !important;
	border-color: var(--bmt-ea-border) !important;
	color: var(--bmt-ea-text);
	box-shadow: var(--shadow);
}

html[data-theme="dark"] .bmt-ea-main,
html[data-theme="dark"] .bmt-ea-login-shell,
html[data-theme="dark"] .page {
	background: var(--bmt-ea-bg-secondary);
}

html[data-theme="dark"] .bmt-ea-icon-button,
html[data-theme="dark"] .bmt-ea-topbar-sidebar-toggle,
html[data-theme="dark"] .bmt-ea-button,
html[data-theme="dark"] .button,
html[data-theme="dark"] input[type="email"],
html[data-theme="dark"] input[type="password"],
html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .editor {
	background: #111923 !important;
	border-color: var(--bmt-ea-border) !important;
	color: var(--bmt-ea-text) !important;
}

html[data-theme="dark"] .bmt-ea-button-primary,
html[data-theme="dark"] .button.primary {
	background: #edf2f7 !important;
	border-color: #edf2f7 !important;
	color: #0f1720 !important;
}

html[data-theme="dark"] .bmt-ea-icon-button:hover,
html[data-theme="dark"] .bmt-ea-topbar-sidebar-toggle:hover,
html[data-theme="dark"] .bmt-ea-button:hover,
html[data-theme="dark"] .button:hover {
	background: #19222d !important;
}

html[data-theme="dark"] .bmt-ea-topbar-locale-menu.is-open .bmt-ea-topbar-locale-trigger,
html[data-theme="dark"] .bmt-ea-topbar-locale-dropdown {
	background: #111923 !important;
	border-color: var(--bmt-ea-border) !important;
	color: var(--bmt-ea-text);
	box-shadow: 0 24px 48px rgba(0,0,0,.42);
}

html[data-theme="dark"] .bmt-ea-topbar-locale-option:hover,
html[data-theme="dark"] .bmt-ea-topbar-locale-option:focus-visible {
	background: #1a2430;
	border-color: #334155;
}

html[data-theme="dark"] .bmt-ea-topbar-locale-option.is-active {
	background: rgba(96,165,250,.14);
	border-color: rgba(96,165,250,.45);
}

html[data-theme="dark"] .bmt-ea-topbar-locale-option-label,
html[data-theme="dark"] .bmt-ea-brand h1,
html[data-theme="dark"] .bmt-ea-page-toolbar-title,
html[data-theme="dark"] .bmt-ea-panel-card h2,
html[data-theme="dark"] .bmt-ea-panel-card h3,
html[data-theme="dark"] .bmt-ea-topbar-brand-name {
	color: var(--bmt-ea-text) !important;
}

html[data-theme="dark"] .bmt-ea-topbar-locale-option-meta,
html[data-theme="dark"] .subtle,
html[data-theme="dark"] .empty,
html[data-theme="dark"] .message,
html[data-theme="dark"] .bmt-ea-auth-message,
html[data-theme="dark"] .bmt-ea-login-form-label span {
	color: var(--muted) !important;
}

html[data-theme="dark"] .bmt-ea-topbar-action-placeholder,
html[data-theme="dark"] .bmt-ea-topbar-action-placeholder[disabled],
html[data-theme="dark"] .bmt-ea-topbar-action-placeholder[aria-disabled="true"] {
	background: #111923 !important;
	border-color: var(--bmt-ea-border) !important;
	color: #64748b !important;
}

html[data-theme="dark"] .bmt-ea-login-logo,
html[data-theme="dark"] .bmt-ea-topbar-logo,
html[data-theme="dark"] .bmt-ea-loading-logo {
	filter: brightness(0) invert(1);
}

html[data-theme="dark"] .bmt-ea-loading-spinner::before {
	border-color: var(--bmt-ea-overlay-ring-track);
	border-top-color: var(--bmt-ea-overlay-ring-accent);
}


/* dashboard cards scaffold */
.bmt-ea-dashboard-surface {
    display: block;
}

.bmt-ea-dashboard-card-grid {
    display: grid;
    grid-template-columns: repeat(60, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.bmt-ea-dashboard-card-grid > [data-grid="1"] { grid-column: span 60; }
.bmt-ea-dashboard-card-grid > [data-grid="2"] { grid-column: span 30; }
.bmt-ea-dashboard-card-grid > [data-grid="3"] { grid-column: span 20; }
.bmt-ea-dashboard-card-grid > [data-grid="4"] { grid-column: span 15; }
.bmt-ea-dashboard-card-grid > [data-grid="5"] { grid-column: span 12; }
.bmt-ea-dashboard-card-grid > [data-grid="6"] { grid-column: span 10; }

.bmt-ea-dashboard-card {
    min-height: 152px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--bmt-ea-border);
    background: var(--bmt-ea-bg-primary);
    box-shadow: 0 12px 32px rgba(25, 31, 40, 0.05);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.bmt-ea-dashboard-card-label {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--bmt-ea-text);
}

.bmt-ea-dashboard-card-value {
    min-height: 38px;
    border-radius: 10px;
}

.bmt-ea-dashboard-card-value--empty {
    background: transparent;
}

.bmt-ea-dashboard-card-grid--compact {
    align-items: start;
}

.bmt-ea-dashboard-company-card {
    min-height: 178px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 14px;
    padding: 16px 18px;
    align-items: start;
    justify-items: center;
    text-align: center;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.94) 0%, rgba(255, 255, 255, 1) 100%);
}

.bmt-ea-dashboard-company-card-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.bmt-ea-dashboard-company-card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--bmt-ea-text);
    text-align: center;
}

.bmt-ea-dashboard-company-card-total {
    font-size: 42px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--bmt-ea-text);
    text-align: center;
}
.bmt-ea-dashboard-company-card-total {
    align-self: center;
}

.bmt-ea-dashboard-company-breakdown--placeholder {
    min-height: 32px;
    width: 100%;
    visibility: hidden;
    pointer-events: none;
}

.bmt-ea-dashboard-company-breakdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.bmt-ea-dashboard-company-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 11px;
    border-radius: 10px;
    border: 1px solid var(--bmt-ea-border);
    background: #f8fafc;
    color: var(--bmt-ea-text);
    font-size: 13px;
    line-height: 1;
}

.bmt-ea-dashboard-company-pill strong {
    font-size: 13px;
    font-weight: 700;
}

.bmt-ea-dashboard-company-pill.is-approved {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.2);
    color: #1557b0;
}

.bmt-ea-dashboard-company-pill.is-pending {
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.18);
    color: #b42318;
}

.bmt-ea-dashboard-company-pill.is-passive {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(148, 163, 184, 0.35);
    color: #334155;
}



html[data-theme="dark"] .bmt-ea-dashboard-company-card {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.88) 100%);
    box-shadow: 0 14px 38px rgba(2, 6, 23, 0.34);
}

html[data-theme="dark"] .bmt-ea-dashboard-company-pill {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(71, 85, 105, 0.7);
    color: #e2e8f0;
}

html[data-theme="dark"] .bmt-ea-dashboard-company-pill.is-approved {
    background: rgba(37, 99, 235, 0.2);
    border-color: rgba(96, 165, 250, 0.35);
    color: #93c5fd;
}

html[data-theme="dark"] .bmt-ea-dashboard-company-pill.is-pending {
    background: rgba(127, 29, 29, 0.32);
    border-color: rgba(248, 113, 113, 0.25);
    color: #fecaca;
}

html[data-theme="dark"] .bmt-ea-dashboard-company-pill.is-passive {
    background: rgba(30, 41, 59, 0.96);
    border-color: rgba(100, 116, 139, 0.52);
    color: #cbd5e1;
}

@media (max-width: 1280px) {
    .bmt-ea-dashboard-card-grid > [data-grid="6"] { grid-column: span 12; }
    .bmt-ea-dashboard-card-grid > [data-grid="5"] { grid-column: span 15; }
}

@media (max-width: 1024px) {
    .bmt-ea-dashboard-card-grid > [data-grid="4"],
    .bmt-ea-dashboard-card-grid > [data-grid="5"],
    .bmt-ea-dashboard-card-grid > [data-grid="6"] { grid-column: span 20; }
}

@media (max-width: 860px) {
    .bmt-ea-dashboard-card-grid > [data-grid="3"],
    .bmt-ea-dashboard-card-grid > [data-grid="4"],
    .bmt-ea-dashboard-card-grid > [data-grid="5"],
    .bmt-ea-dashboard-card-grid > [data-grid="6"] { grid-column: span 30; }
}

@media (max-width: 640px) {
    .bmt-ea-dashboard-card-grid > [data-grid] { grid-column: span 60; }
    .bmt-ea-dashboard-card { min-height: 132px; }
    .bmt-ea-dashboard-company-card-total { font-size: 36px; }
}


/* dashboard: fixed summary row */
.bmt-ea-dashboard-card-grid--compact {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
}

.bmt-ea-dashboard-card-grid--compact > [data-grid] {
    grid-column: auto;
    min-width: 0;
}

@media (max-width: 1024px) {
    .bmt-ea-dashboard-card-grid--compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bmt-ea-dashboard-card-grid--compact > [data-grid] {
        grid-column: auto;
    }
}

@media (max-width: 640px) {
    .bmt-ea-dashboard-card-grid--compact {
        grid-template-columns: 1fr;
    }

    .bmt-ea-dashboard-card-grid--compact > [data-grid] {
        grid-column: auto;
    }
}

/* companies module */
.bmt-company-workspace-stack,.bmt-company-form-stack{display:grid;gap:18px;}
.bmt-company-kpi-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:16px;}
.bmt-company-metric-card{grid-column:span 2;min-height:104px;padding:16px;border:1px solid var(--bmt-ea-border);border-radius:14px;background:var(--bmt-ea-bg-primary);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;box-shadow:0 8px 24px rgba(25,31,40,.04)}
.bmt-company-metric-card-label{font-size:13px;font-weight:700;line-height:1.35;color:var(--bmt-ea-text-muted,#5b6775);text-transform:uppercase;letter-spacing:.02em}
.bmt-company-metric-card-value{font-size:34px;line-height:1;font-weight:700;color:var(--bmt-ea-text)}
.bmt-company-metric-card-caption{display:none}
.bmt-company-filter-shell .bmt-ea-panel-card-head{align-items:flex-start}
.bmt-company-results-count{font-size:13px;font-weight:700;color:var(--bmt-ea-text-muted,#5b6775);white-space:nowrap}
.bmt-company-panel-subtitle{margin:6px 0 0;color:var(--bmt-ea-text-muted,#5b6775);font-size:14px;line-height:1.5}
.bmt-company-filter-grid{display:flex;gap:14px;align-items:flex-end;flex-wrap:nowrap}
.bmt-company-filter-field{display:grid;gap:8px;flex:1 1 0;min-width:0}
.bmt-company-filter-field-grow{flex:1.6 1 0}
.bmt-company-filter-field label,.bmt-company-form-field span,.bmt-company-section-head h3,.bmt-company-tab-button{font-family:Montserrat,sans-serif}
.bmt-company-filter-field label,.bmt-company-form-field span{font-size:13px;font-weight:700;color:var(--bmt-ea-text)}
.bmt-company-filter-field input,.bmt-company-filter-field select,.bmt-company-form-field input,.bmt-company-form-field select,.bmt-company-form-field textarea{width:100%;min-height:44px;border:1px solid var(--bmt-ea-border);border-radius:12px;background:var(--bmt-ea-bg-primary);padding:10px 12px;font:inherit;color:var(--bmt-ea-text);outline:none}
.bmt-company-filter-field textarea,.bmt-company-form-field textarea{min-height:120px;resize:vertical}
.bmt-company-filter-field input:focus,.bmt-company-filter-field select:focus,.bmt-company-form-field input:focus,.bmt-company-form-field select:focus,.bmt-company-form-field textarea:focus{border-color:var(--bmt-ea-accent,#2563eb);box-shadow:0 0 0 3px rgba(37,99,235,.12)}
.bmt-company-filter-actions{display:flex;justify-content:flex-end;align-items:flex-end;gap:10px;flex:0 0 auto;flex-wrap:nowrap;white-space:nowrap}
.bmt-company-icon-button{width:44px;min-width:44px;height:44px;padding:0;display:inline-flex;align-items:center;justify-content:center;border-radius:12px}
.bmt-company-icon-button-glyph{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px}
.bmt-company-icon-button-glyph svg{display:block;width:18px;height:18px}
.bmt-company-table-shell{overflow:auto}
.bmt-company-document-file-cell input[readonly]{background:rgba(241,244,246,.8);cursor:default}
.bmt-company-document-upload-cell{min-width:240px}
.bmt-company-document-upload-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.bmt-company-document-upload-state{margin-top:6px;font-size:12px;line-height:1.4;color:var(--bmt-ea-text-muted,#5b6775)}
.bmt-company-document-row.is-uploading .bmt-company-document-upload-state{color:var(--bmt-ea-accent,#2563eb)}
.bmt-company-document-upload-cell .is-hidden{display:none !important}
.bmt-company-table{width:100%;border-collapse:separate;border-spacing:0}
.bmt-company-table thead th{padding:12px 14px;border-bottom:1px solid var(--bmt-ea-border);font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.02em;color:var(--bmt-ea-text-muted,#5b6775);text-align:left;background:rgba(241,244,246,.5)}
.bmt-company-table tbody td{padding:14px;border-bottom:1px solid var(--bmt-ea-border);vertical-align:top;color:var(--bmt-ea-text);font-size:14px}
.bmt-company-table tbody tr:hover td{background:rgba(241,244,246,.5)}
.bmt-company-table-title{font-weight:700;color:var(--bmt-ea-text)}
.bmt-company-table-text{font-weight:400;color:var(--bmt-ea-text);line-height:1.35}
.bmt-entity-text-link{color:var(--bmt-ea-text);font-weight:400;text-decoration:none}
.bmt-entity-text-link:hover{text-decoration:underline;color:var(--bmt-ea-accent,#2563eb)}
.bmt-entity-chip-link{text-decoration:none;cursor:pointer}
.bmt-entity-chip-link:hover{border-color:var(--bmt-ea-accent,#2563eb);color:var(--bmt-ea-accent,#2563eb);background:rgba(37,99,235,.08)}
.bmt-company-table-meta{margin-top:4px;font-size:12px;color:var(--bmt-ea-text-muted,#5b6775)}
.bmt-company-table-actions{text-align:right;white-space:nowrap;display:flex;align-items:center;justify-content:flex-end;gap:8px}
.bmt-company-table-actions .bmt-company-icon-button{margin-left:0}
.bmt-company-empty-state{padding:18px;border:1px dashed var(--bmt-ea-border);border-radius:12px;background:rgba(241,244,246,.5);display:grid;gap:6px;color:var(--bmt-ea-text-muted,#5b6775)}
.bmt-company-empty-state[hidden]{display:none !important}
.bmt-company-status-badge{display:inline-flex;align-items:center;min-height:28px;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:700;background:#eef2ff;color:#3730a3;border:1px solid #c7d2fe}
.bmt-company-status-badge[data-tone="active"],.bmt-company-status-badge[data-tone="approved"]{background:#ecfdf3;color:#166534;border-color:#bbf7d0}
.bmt-company-status-badge[data-tone="draft"],.bmt-company-status-badge[data-tone="pending_review"],.bmt-company-status-badge[data-tone="pending"],.bmt-company-status-badge[data-tone="partial"]{background:#fff7ed;color:#9a3412;border-color:#fdba74}
.bmt-company-status-badge[data-tone="archived"],.bmt-company-status-badge[data-tone="rejected"],.bmt-company-status-badge[data-tone="expired"]{background:#f8fafc;color:#475569;border-color:#cbd5e1}
.bmt-company-status-badge[data-tone="suspended"],.bmt-company-status-badge[data-tone="hold"]{background:#fef2f2;color:#b91c1c;border-color:#fecaca}
.bmt-route-kpi-grid .bmt-company-metric-card{grid-column:span 4;min-width:0}
.bmt-route-table-head{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-bottom:14px}
.bmt-route-table tbody td{vertical-align:middle}
.bmt-route-table td.bmt-company-table-actions{display:table-cell;text-align:right;vertical-align:middle}
.bmt-route-table td.bmt-company-table-actions .bmt-company-icon-button{display:inline-flex;vertical-align:middle;margin-left:8px}
.bmt-route-table td.bmt-company-table-actions .bmt-company-icon-button:first-child{margin-left:0}
.bmt-route-cell-main{font-weight:400;color:var(--bmt-ea-text);line-height:1.35}
.bmt-route-distance-duration{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.bmt-route-distance-duration-separator{color:var(--bmt-ea-text-muted,#5b6775);font-weight:400}
.bmt-route-builder-card{display:grid;gap:18px}
.bmt-route-builder-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.bmt-route-builder-head h2{margin:0;font-family:Montserrat,sans-serif;font-size:20px;line-height:1.25;color:var(--bmt-ea-text)}
.bmt-route-builder-head p{margin:5px 0 0;color:var(--bmt-ea-text-muted,#5b6775);font-size:14px;line-height:1.45}
.bmt-route-builder-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.bmt-route-builder-actions-inline{justify-content:flex-start}
.bmt-route-builder-meta{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(160px,.5fr) minmax(160px,.5fr);gap:14px}
.bmt-route-point-table{display:grid;border:1px solid var(--bmt-ea-border);border-radius:12px;overflow:hidden;background:var(--bmt-ea-bg-primary)}
.bmt-route-point-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(110px,.25fr) minmax(220px,.5fr);gap:0;border-top:1px solid var(--bmt-ea-border)}
.bmt-route-point-row:first-child{border-top:0}
.bmt-route-point-row>strong,.bmt-route-point-row>label,.bmt-route-point-row>div{padding:12px 14px;border-left:1px solid var(--bmt-ea-border)}
.bmt-route-point-row>strong:first-child,.bmt-route-point-row>label:first-child{border-left:0}
.bmt-route-point-head{background:rgba(241,244,246,.65);font-size:13px;color:var(--bmt-ea-text);font-family:Montserrat,sans-serif}
.bmt-route-point-row label{display:grid;gap:7px}
.bmt-route-point-row label span{font-size:13px;font-weight:700;color:var(--bmt-ea-text)}
.bmt-route-point-row label small{font-size:12px;color:var(--bmt-ea-text-muted,#5b6775)}
.bmt-route-point-row input{width:100%;min-height:44px;border:1px solid var(--bmt-ea-border);border-radius:8px;background:var(--bmt-ea-bg-primary);padding:10px 12px;font:inherit;color:var(--bmt-ea-text);outline:none}
.bmt-route-point-row input:focus{border-color:var(--bmt-ea-accent,#2563eb);box-shadow:0 0 0 3px rgba(37,99,235,.12)}
.bmt-route-link-button{border:0;background:transparent;padding:0;color:var(--bmt-ea-accent,#2563eb);font:inherit;font-weight:650;text-decoration:underline;cursor:pointer}
.bmt-route-map-shell{display:grid;gap:10px}
.bmt-route-map{position:relative;width:100%;height:520px;min-height:420px;border:1px solid var(--bmt-ea-border);border-radius:14px;overflow:hidden;background:#e8eef5}
.bmt-route-map-controls{position:absolute;top:12px;right:12px;z-index:2;display:grid;gap:8px}
.bmt-route-map-control{width:40px;height:40px;border:1px solid rgba(15,23,42,.16);border-radius:8px;background:#fff;color:#111827;font-size:22px;font-weight:700;line-height:1;box-shadow:0 10px 22px rgba(15,23,42,.16);cursor:pointer}
.bmt-route-map-control:hover{background:#f8fafc}
.bmt-route-map-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:24px;text-align:center;color:var(--bmt-ea-text-muted,#5b6775);background:linear-gradient(135deg,rgba(241,245,249,.92),rgba(226,232,240,.82));z-index:1}
.bmt-route-map-empty[hidden]{display:none!important}
.bmt-route-summary{display:flex;align-items:center;gap:14px;color:var(--bmt-ea-text-muted,#5b6775);font-size:14px}
.bmt-route-summary strong{font-size:18px;color:var(--bmt-ea-text)}
.bmt-company-save-state.is-error{color:#b91c1c}
html[data-theme="dark"] .bmt-route-cell-main{color:#f8fafc}
html[data-theme="dark"] .bmt-route-point-table,html[data-theme="dark"] .bmt-route-point-row input{background:#0f172a;border-color:#273449;color:#e5edf7}
html[data-theme="dark"] .bmt-route-point-row,html[data-theme="dark"] .bmt-route-point-row>strong,html[data-theme="dark"] .bmt-route-point-row>label,html[data-theme="dark"] .bmt-route-point-row>div{border-color:#273449}
html[data-theme="dark"] .bmt-route-point-head{background:#111c2d}
html[data-theme="dark"] .bmt-route-map-control{background:#0f172a;border-color:#273449;color:#f8fafc}
html[data-theme="dark"] .bmt-route-map-control:hover{background:#111c2d}
html[data-theme="dark"] .bmt-route-map-empty{background:linear-gradient(135deg,rgba(15,23,42,.94),rgba(17,28,45,.88))}
@media (max-width: 1280px){.bmt-route-kpi-grid .bmt-company-metric-card{grid-column:span 4}}
@media (max-width: 920px){.bmt-route-builder-head{display:grid}.bmt-route-builder-actions{justify-content:flex-start}.bmt-route-builder-meta{grid-template-columns:1fr}.bmt-route-point-row{grid-template-columns:1fr}.bmt-route-point-row>strong,.bmt-route-point-row>label,.bmt-route-point-row>div{border-left:0;border-top:1px solid var(--bmt-ea-border)}.bmt-route-point-row>strong:first-child,.bmt-route-point-row>label:first-child{border-top:0}.bmt-route-point-head{display:none}.bmt-route-map{height:420px}}
@media (max-width: 780px){.bmt-route-table-head{justify-content:flex-start}}
.bmt-company-form-card{display:grid;gap:18px}
.bmt-company-form-summary{font-size:13px;color:var(--bmt-ea-text-muted,#5b6775)}
.bmt-company-form-summary-meta{display:inline-flex;align-items:center;min-height:28px;padding:4px 10px;border-radius:999px;border:1px solid var(--bmt-ea-border);background:rgba(241,244,246,.6);color:var(--bmt-ea-text-muted,#5b6775);font-size:12px;font-weight:700}
.bmt-company-record-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.bmt-company-record-actions .bmt-ea-button{min-height:36px;padding:0 14px;border-radius:var(--bmt-ea-radius1);font-size:15px;font-weight:600;line-height:normal}
.bmt-company-record-action{min-width:120px}
.bmt-company-tab-button{display:inline-flex;align-items:center;gap:8px}
.bmt-company-tab-state{display:inline-flex;align-items:center;min-height:22px;padding:0 8px;border-radius:999px;border:1px solid var(--bmt-ea-border);font-size:11px;font-weight:700;line-height:1;background:rgba(241,244,246,.7);color:var(--bmt-ea-text-muted,#5b6775)}
.bmt-company-tab-state.is-ready{background:#ecfdf3;border-color:#bbf7d0;color:#166534}
.bmt-company-tab-state.is-missing{background:#fff7ed;border-color:#fdba74;color:#9a3412}
.bmt-company-tab-nav{display:flex;gap:10px;flex-wrap:wrap;padding-bottom:2px}
.bmt-company-tab-button{min-height:40px;padding:0 14px;border-radius:999px;border:1px solid var(--bmt-ea-border);background:var(--bmt-ea-bg-primary);font-size:13px;font-weight:700;color:var(--bmt-ea-text-muted,#5b6775);cursor:pointer}
.bmt-company-tab-button.is-active{border-color:var(--bmt-ea-accent,#2563eb);color:var(--bmt-ea-accent,#2563eb);background:rgba(37,99,235,.08)}
.bmt-company-tab-panel{display:grid;gap:18px}
.bmt-company-form-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:14px}
.bmt-company-form-grid-2 .bmt-company-form-field{grid-column:span 6;display:grid;gap:8px}
.bmt-company-form-field-full{grid-column:1 / -1 !important}
.bmt-company-inline-check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.bmt-company-inline-check{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;border:1px solid var(--bmt-ea-border);border-radius:12px;background:rgba(241,244,246,.45);font-size:14px;color:var(--bmt-ea-text)}
.bmt-company-inline-check input{margin-top:2px}
.bmt-company-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.bmt-company-section-head h3{margin:0;font-size:16px;color:var(--bmt-ea-text)}
.bmt-company-feedback{display:grid;gap:10px}
.bmt-company-feedback-row{padding:11px 13px;border-radius:12px;font-size:14px;border:1px solid var(--bmt-ea-border)}
.bmt-company-feedback-row.is-error{background:#fef2f2;border-color:#fecaca;color:#b91c1c}
.bmt-company-feedback-row.is-warning{background:#fff7ed;border-color:#fdba74;color:#9a3412}
.bmt-company-form-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid var(--bmt-ea-border);padding-top:18px}
.bmt-company-save-state{font-size:13px;color:var(--bmt-ea-text-muted,#5b6775)}
html[data-theme="dark"] .bmt-company-metric-card,html[data-theme="dark"] .bmt-company-tab-button,html[data-theme="dark"] .bmt-company-filter-field input,html[data-theme="dark"] .bmt-company-filter-field select,html[data-theme="dark"] .bmt-company-form-field input,html[data-theme="dark"] .bmt-company-form-field select,html[data-theme="dark"] .bmt-company-form-field textarea{background:#0f172a;border-color:#273449;color:#e5edf7}
html[data-theme="dark"] .bmt-company-filter-field label,html[data-theme="dark"] .bmt-company-form-field span,html[data-theme="dark"] .bmt-company-section-head h3,html[data-theme="dark"] .bmt-company-table-title,html[data-theme="dark"] .bmt-company-metric-card-value{color:#f8fafc}
html[data-theme="dark"] .bmt-company-panel-subtitle,html[data-theme="dark"] .bmt-company-results-count,html[data-theme="dark"] .bmt-company-table-meta,html[data-theme="dark"] .bmt-company-metric-card-caption,html[data-theme="dark"] .bmt-company-metric-card-label,html[data-theme="dark"] .bmt-company-form-summary,html[data-theme="dark"] .bmt-company-save-state{color:#9fb0c5}
html[data-theme="dark"] .bmt-company-form-summary-meta,html[data-theme="dark"] .bmt-company-tab-state{background:#111c2d;border-color:#273449;color:#9fb0c5}
html[data-theme="dark"] .bmt-company-tab-state.is-ready{background:rgba(22,101,52,.22);border-color:#166534;color:#bbf7d0}
html[data-theme="dark"] .bmt-company-tab-state.is-missing{background:rgba(154,52,18,.22);border-color:#9a3412;color:#fdba74}
html[data-theme="dark"] .bmt-company-table thead th{background:#111c2d;border-color:#273449;color:#9fb0c5}
html[data-theme="dark"] .bmt-company-table tbody td{border-color:#273449;color:#e5edf7}
html[data-theme="dark"] .bmt-company-table tbody tr:hover td,html[data-theme="dark"] .bmt-company-inline-check,html[data-theme="dark"] .bmt-company-empty-state{background:#111c2d;border-color:#273449;color:#9fb0c5}
@media (max-width: 1280px){.bmt-company-metric-card{grid-column:span 4}}
@media (max-width: 1024px){.bmt-company-kpi-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.bmt-company-metric-card{grid-column:span 3}.bmt-company-filter-grid{flex-wrap:wrap}.bmt-company-filter-field,.bmt-company-filter-field-grow{flex:1 1 calc(50% - 14px)}.bmt-company-filter-actions{margin-left:auto}}
@media (max-width: 780px){.bmt-company-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bmt-company-metric-card{grid-column:span 1}.bmt-company-inline-check-grid{grid-template-columns:1fr}.bmt-company-filter-grid,.bmt-company-form-grid{display:grid;grid-template-columns:1fr}.bmt-company-filter-field,.bmt-company-filter-field-grow,.bmt-company-filter-actions,.bmt-company-form-grid-2 .bmt-company-form-field{grid-column:auto;flex:auto}.bmt-company-filter-actions,.bmt-company-form-actions{justify-content:stretch}.bmt-company-filter-actions .bmt-ea-button,.bmt-company-form-actions .bmt-ea-button{flex:1 1 0}}
@media (max-width: 520px){.bmt-company-kpi-grid{grid-template-columns:1fr}.bmt-company-metric-card{grid-column:auto}}


.bmt-company-bulk-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:nowrap;margin-bottom:14px;padding:12px 14px;border:1px solid var(--bmt-ea-border);border-radius:12px;background:rgba(241,244,246,.6)}
.bmt-company-bulk-copy{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--bmt-ea-text);white-space:nowrap;flex:0 0 auto}
.bmt-company-bulk-copy strong{font-size:15px;font-weight:700;color:var(--bmt-ea-text)}
.bmt-company-bulk-actions{display:flex;align-items:center;gap:10px;flex-wrap:nowrap;min-width:0;flex:1 1 auto}
.bmt-company-bulk-actions select{min-height:40px;border:1px solid var(--bmt-ea-border);border-radius:12px;background:var(--bmt-ea-bg-primary);padding:8px 12px;font:inherit;color:var(--bmt-ea-text);flex:0 1 220px;min-width:0}
.bmt-company-table-select{width:52px;min-width:52px;text-align:center}
.bmt-company-checkbox{display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.bmt-company-checkbox input{position:absolute;opacity:0;pointer-events:none}
.bmt-company-checkbox span{display:inline-block;width:18px;height:18px;border-radius:6px;border:1px solid var(--bmt-ea-border);background:var(--bmt-ea-bg-primary);position:relative}
.bmt-company-checkbox input:checked + span{background:var(--bmt-ea-accent,#2563eb);border-color:var(--bmt-ea-accent,#2563eb)}
.bmt-company-checkbox input:checked + span::after{content:'';position:absolute;left:5px;top:2px;width:5px;height:9px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
html[data-theme="dark"] .bmt-company-bulk-bar{background:#111c2d;border-color:#273449}
html[data-theme="dark"] .bmt-company-bulk-actions select,html[data-theme="dark"] .bmt-company-checkbox span{background:#0f172a;border-color:#273449;color:#e5edf7}
@media (max-width: 780px){.bmt-company-bulk-bar{align-items:stretch;flex-wrap:wrap}.bmt-company-bulk-actions{width:100%;flex-wrap:wrap}.bmt-company-bulk-actions select,.bmt-company-bulk-actions .bmt-ea-button{flex:1 1 0}}

.bmt-company-status-badge-readiness[data-tone="ready"] {
    background: rgba(16, 185, 129, 0.14);
    color: #047857;
    border-color: rgba(16, 185, 129, 0.22);
}
.bmt-company-status-badge-readiness[data-tone="in_progress"] {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
    border-color: rgba(59, 130, 246, 0.2);
}
.bmt-company-status-badge-readiness[data-tone="setup_required"] {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
    border-color: rgba(245, 158, 11, 0.22);
}
.bmt-company-progress {
    min-width: 122px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.bmt-company-progress-track {
    flex: 1 1 auto;
    min-width: 72px;
    height: 8px;
    border-radius: 999px;
    background: #e7edf2;
    overflow: hidden;
}
.bmt-company-progress-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #191f28 0%, #4b5563 100%);
}
.bmt-company-progress-value {
    font-size: 12px;
    font-weight: 700;
    color: #191f28;
}
.bmt-company-insights {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 18px 0 24px;
}
.bmt-company-insight-card {
    border: 1px solid #e1e8ed;
    border-radius: 16px;
    background: #f8fafc;
    padding: 18px;
    min-height: 168px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.bmt-company-insight-card-attention[data-tone="warning"] {
    border-color: #f59e0b;
    background: #fffaf0;
}
.bmt-company-insight-card-attention[data-tone="critical"] {
    border-color: #ef4444;
    background: #fff5f5;
}
.bmt-company-insight-card-attention[data-tone="ok"] {
    border-color: #10b981;
    background: #f0fdf4;
}
.bmt-company-insight-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #64748b;
}
.bmt-company-insight-value .bmt-company-status-badge {
    margin-right: 0;
}
.bmt-company-insight-caption {
    color: #526173;
    font-size: 13px;
    line-height: 1.55;
}
.bmt-company-insight-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.bmt-company-insight-split span {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e1e8ed;
}
.bmt-company-insight-split strong {
    font-size: 20px;
    line-height: 1;
    color: #191f28;
}
.bmt-company-insight-split small {
    font-size: 12px;
    color: #64748b;
}
.bmt-company-insight-list {
    margin: 0;
    padding-left: 18px;
    color: #191f28;
    display: grid;
    gap: 6px;
}
.bmt-company-insight-list li {
    font-size: 13px;
    line-height: 1.5;
}
@media (max-width: 1440px) {
    .bmt-company-insights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 1180px) {
    .bmt-company-insights {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 780px){.bmt-company-record-actions{justify-content:stretch}.bmt-company-record-action{flex:1 1 160px}}


.bmt-company-panel-subtitle:empty {
	display: none;
}


.bmt-ea-toast-stack {
	position: fixed;
	top: 88px;
	right: 20px;
	z-index: 1300;
	display: flex;
	flex-direction: column;
	gap: 12px;
	pointer-events: none;
}

.bmt-ea-toast-stack.is-centered {
	inset: 0;
	top: 0;
	right: 0;
	left: 0;
	bottom: 0;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.bmt-ea-toast {
	min-width: 280px;
	max-width: min(420px, calc(100vw - 40px));
	border-radius: 16px;
	border: 1px solid var(--bmt-ea-border);
	background: var(--bmt-ea-bg-primary);
	box-shadow: 0 18px 40px rgba(15, 23, 42, .14);
	padding: 14px 16px;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	pointer-events: auto;
	opacity: 0;
	transform: translateY(-6px);
	transition: opacity .18s ease, transform .18s ease;
}

.bmt-ea-toast.is-centered {
	width: min(460px, calc(100vw - 32px));
	max-width: min(460px, calc(100vw - 32px));
	border-width: 1px;
	box-shadow: 0 24px 80px rgba(15, 23, 42, .24);
	padding: 18px 20px;
	font-size: 15px;
}

.bmt-ea-toast.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.bmt-ea-toast.is-success { border-color: rgba(34, 197, 94, .28); }
.bmt-ea-toast.is-info { border-color: rgba(37, 99, 235, .22); }
.bmt-ea-toast.is-warning { border-color: rgba(245, 158, 11, .28); }
.bmt-ea-toast.is-error { border-color: rgba(239, 68, 68, .26); }

.bmt-ea-toast-icon,
.bmt-ea-dialog-icon {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--bmt-ea-accent, #2563eb);
}

.bmt-ea-toast.is-success .bmt-ea-toast-icon { color: #16a34a; }
.bmt-ea-toast.is-warning .bmt-ea-toast-icon { color: #d97706; }
.bmt-ea-toast.is-error .bmt-ea-toast-icon { color: #dc2626; }
.bmt-ea-toast-icon svg,
.bmt-ea-dialog-icon svg {
	width: 20px;
	height: 20px;
	display: block;
}

.bmt-ea-toast-body {
	font-size: 14px;
	line-height: 1.5;
	color: var(--bmt-ea-text);
}

.bmt-ea-dialog-open {
	overflow: hidden;
}

.bmt-ea-dialog-backdrop[hidden] { display: none !important; }

.bmt-ea-dialog-backdrop {
	position: fixed;
	inset: 0;
	z-index: 1400;
	background: rgba(15, 23, 42, .42);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.bmt-ea-dialog {
	width: min(520px, calc(100vw - 32px));
	border-radius: 18px;
	border: 1px solid var(--bmt-ea-border);
	background: var(--bmt-ea-bg-primary);
	box-shadow: 0 24px 80px rgba(15, 23, 42, .24);
	padding: 20px;
}

.bmt-ea-dialog-headline {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 18px;
	line-height: 1.3;
	color: var(--bmt-ea-text);
}

.bmt-ea-dialog-icon[data-kind="warning"] { color: #d97706; }
.bmt-ea-dialog-icon[data-kind="error"] { color: #dc2626; }
.bmt-ea-dialog-icon[data-kind="success"] { color: #16a34a; }
.bmt-ea-dialog-icon[data-kind="info"] { color: var(--bmt-ea-accent, #2563eb); }

.bmt-ea-dialog-body {
	margin-top: 14px;
	font-size: 14px;
	line-height: 1.65;
	color: var(--bmt-ea-text-muted, #5b6775);
}

.bmt-ea-dialog-actions {
	margin-top: 18px;
	display: flex;
	justify-content: flex-end;
	gap: 10px;
}

html[data-theme="dark"] .bmt-ea-toast {
	box-shadow: 0 18px 44px rgba(2, 6, 23, .42);
}

html[data-theme="dark"] .bmt-ea-dialog-backdrop {
	background: rgba(2, 6, 23, .62);
}

@media (max-width: 640px) {
	.bmt-ea-toast-stack {
		left: 16px;
		right: 16px;
		top: 76px;
	}

	.bmt-ea-toast-stack.is-centered {
		padding: 16px;
	}

	.bmt-ea-toast {
		max-width: none;
		min-width: 0;
	}

	.bmt-ea-toast.is-centered {
		width: min(100%, 420px);
	}

	.bmt-ea-dialog-backdrop {
		padding: 16px;
	}
}





.bmt-ea-dashboard-module-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.bmt-ea-dashboard-module-card-copy {
    display: grid;
    gap: 8px;
}

.bmt-ea-dashboard-module-card-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--bmt-ea-text-muted,#5b6775);
}

.bmt-ea-dashboard-module-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(33, 150, 83, 0.12);
    color: #1f7a45;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

html[data-theme="dark"] .bmt-ea-dashboard-module-badge {
    background: rgba(103, 214, 145, 0.16);
    color: #8fe6af;
}

.bmt-ea-dashboard-module-metric {
    display: grid;
    gap: 6px;
}

.bmt-ea-dashboard-module-count {
    font-size: 38px;
    line-height: 1;
    font-weight: 700;
    color: var(--bmt-ea-text);
}

.bmt-ea-dashboard-module-caption {
    font-size: 13px;
    line-height: 1.5;
    color: var(--bmt-ea-text-muted,#5b6775);
}

.bmt-ea-dashboard-module-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .bmt-ea-dashboard-module-card-head {
        flex-direction: column;
    }

    .bmt-ea-dashboard-module-actions {
        align-items: stretch;
    }

    .bmt-ea-dashboard-module-actions .bmt-ea-button,
    .bmt-ea-dashboard-module-actions .bmt-ea-link-button {
        width: 100%;
        justify-content: center;
    }
}



/* drivers module: Firmalar module parity layer */
.bmt-ea-content-stack.bmt-driver-workspace-stack,
.bmt-ea-content-stack.bmt-driver-form-stack{
    width:100%;
    max-width:none;
    align-self:stretch;
    justify-self:stretch;
}
.bmt-driver-workspace-stack,
.bmt-driver-form-stack{
    display:grid;
    gap:18px;
}
.bmt-driver-form-card .bmt-company-tab-panel[hidden]{display:none!important;}
.bmt-driver-form-card .bmt-company-tab-panel:not([hidden]){display:grid;}
.bmt-driver-kpi-grid{
    width:100%;
}
.bmt-driver-filter-shell,
.bmt-driver-table-shell,
.bmt-driver-form-card{
    width:100%;
    max-width:none;
}
.bmt-driver-table .bmt-company-progress{
    min-width:122px;
}
.bmt-driver-table th,
.bmt-driver-table td{
    white-space:nowrap;
}
.bmt-driver-table .bmt-company-table-title,
.bmt-driver-table .bmt-company-table-text,
.bmt-driver-table .bmt-company-table-meta{
    white-space:normal;
}
.bmt-driver-day-grid{
    margin-bottom:16px;
}
.bmt-driver-repeater-table-shell{
    margin-top:0;
}
.bmt-driver-repeater-table input,
.bmt-driver-repeater-table select{
    width:100%;
    min-height:40px;
    border:1px solid var(--bmt-ea-border);
    border-radius:10px;
    background:var(--bmt-ea-bg-primary);
    color:var(--bmt-ea-text);
    padding:8px 10px;
    font:inherit;
    outline:none;
}
.bmt-driver-repeater-actions{
    display:flex;
    justify-content:flex-end;
    margin-top:12px;
}
.bmt-driver-form-card .bmt-company-form-actions{
    margin-top:20px;
}
html[data-theme="dark"] .bmt-driver-repeater-table input,
html[data-theme="dark"] .bmt-driver-repeater-table select{
    background:#0f172a;
    border-color:#273449;
    color:#e5edf7;
}
.bmt-driver-vehicle-list,.bmt-company-vehicle-list,.bmt-company-driver-list{display:flex;flex-wrap:wrap;gap:6px;min-width:120px}
.bmt-driver-vehicle-chip,.bmt-company-vehicle-chip,.bmt-company-driver-chip{display:inline-flex;align-items:center;max-width:100%;padding:4px 8px;border:1px solid var(--bmt-ea-border);border-radius:999px;background:var(--bmt-ea-bg-soft);color:var(--bmt-ea-text);font-size:12px;line-height:1.25;white-space:normal}
@media (max-width: 1024px){
    .bmt-driver-table th,
    .bmt-driver-table td{white-space:normal;}
}


/* drivers module: 4.0.0-10 form additions */

.bmt-driver-language-grid,
.bmt-driver-notification-grid,
.bmt-driver-capability-grid{
    margin-top:4px;
}
.bmt-driver-language-grid{
    grid-template-columns:repeat(6,minmax(0,1fr));
}
@media (max-width: 1024px){
    .bmt-driver-language-grid{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }
}
@media (max-width: 640px){
    .bmt-driver-language-grid{
        grid-template-columns:1fr;
    }
}
.bmt-driver-form-card input[type="file"]{
    width:100%;
    min-height:44px;
    border:1px solid var(--bmt-ea-border);
    border-radius:12px;
    background:var(--bmt-ea-bg-primary);
    color:var(--bmt-ea-text);
    padding:9px 12px;
    font:inherit;
}
html[data-theme="dark"] .bmt-driver-form-card input[type="file"]{
    background:#0f172a;
    border-color:#273449;
    color:#e5edf7;
}

/* drivers module: 4.0.0-11 compact checkbox normalization */
.bmt-driver-form-card .bmt-company-inline-check input[type="checkbox"]{
    width:14px !important;
    min-width:14px !important;
    max-width:14px !important;
    height:14px !important;
    min-height:14px !important;
    max-height:14px !important;
    padding:0 !important;
    margin:2px 6px 0 0 !important;
    flex:0 0 14px !important;
    display:inline-block;
}
.bmt-driver-form-card .bmt-company-inline-check{
    align-items:flex-start;
    justify-content:flex-start;
}
.bmt-driver-form-card .bmt-company-inline-check span{
    flex:0 1 auto;
}



/* drivers module: 4.0.0-14 leave-period and social-row refinement */
.bmt-driver-availability-note,
.bmt-driver-social-help{
    margin:0 0 14px;
}
.bmt-driver-social-table td:first-child{
    width:220px;
}
.bmt-driver-social-table td:first-child strong{
    display:block;
    font-weight:700;
    color:var(--bmt-ea-text);
}
.bmt-driver-private-note-field{
    margin-top:8px;
}

/* Vehicles module · 4.5.0 */
.bmt-vehicle-workspace-stack,.bmt-vehicle-record-stack{width:100%;max-width:none;}
.bmt-vehicle-price-table input,.bmt-vehicle-price-table select,.bmt-vehicle-route-price-table input,.bmt-vehicle-route-price-table select,.bmt-vehicle-repeater-table input,.bmt-vehicle-repeater-table select{width:100%;min-height:38px;border:1px solid rgba(148,163,184,.45);border-radius:10px;padding:8px 10px;background:var(--bmt-ea-surface,#fff);color:inherit;}
.bmt-vehicle-price-table{min-width:1120px;}
.bmt-vehicle-route-price-table{min-width:1180px;}
.bmt-vehicle-attribute-grid{margin-top:4px;}
.bmt-vehicle-form-card .bmt-company-tab-panel[hidden]{display:none!important;}
html[data-theme="dark"] .bmt-vehicle-price-table input,html[data-theme="dark"] .bmt-vehicle-price-table select,html[data-theme="dark"] .bmt-vehicle-route-price-table input,html[data-theme="dark"] .bmt-vehicle-route-price-table select,html[data-theme="dark"] .bmt-vehicle-repeater-table input,html[data-theme="dark"] .bmt-vehicle-repeater-table select{background:#0f172a;border-color:rgba(100,116,139,.55);color:#e2e8f0;}


/* 4.5.0 dashboard and vehicle surface refinements */
.bmt-ea-dashboard-card-grid--compact {
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 14px;
}
.bmt-ea-dashboard-card-grid--compact .bmt-ea-dashboard-company-card {
    min-height: 144px;
    padding: 14px 16px;
    gap: 10px;
    border-radius: 16px;
}
.bmt-ea-dashboard-card-grid--compact .bmt-ea-dashboard-company-card-title {
    font-size: 15px;
}
.bmt-ea-dashboard-card-grid--compact .bmt-ea-dashboard-company-card-total {
    font-size: 38px;
}
.bmt-ea-dashboard-card-grid--compact .bmt-ea-dashboard-company-pill {
    min-height: 30px;
    padding: 0 9px;
    font-size: 12px;
}
.bmt-ea-topbar-calendar-shortcut[disabled] {
    opacity: .42;
    cursor: not-allowed;
}
.bmt-vehicle-kpi-grid {
    grid-template-columns: repeat(5, minmax(150px, 1fr));
}
.bmt-vehicle-kpi-grid .bmt-company-metric-card,
.bmt-company-kpi-card {
    grid-column: auto;
    min-height: 104px;
    padding: 16px;
    border: 1px solid var(--bmt-ea-border);
    border-radius: 14px;
    background: var(--bmt-ea-bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(25,31,40,.04);
}
.bmt-company-kpi-card span,
.bmt-company-kpi-label {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--bmt-ea-text-muted,#5b6775);
    text-transform: uppercase;
    letter-spacing: .02em;
}
.bmt-company-kpi-card strong,
.bmt-company-kpi-value {
    font-size: 34px;
    line-height: 1;
    font-weight: 700;
    color: var(--bmt-ea-text);
}
.bmt-company-field-hint {
    display: block;
    margin-top: 6px;
    color: var(--bmt-ea-text-muted,#5b6775);
    font-size: 12px;
    line-height: 1.4;
    font-weight: 500;
}
.bmt-company-form-field select[multiple] {
    min-height: 124px;
    padding: 8px;
}
.bmt-vehicle-price-table {
    min-width: 860px;
}
@media (max-width: 1180px) {
    .bmt-ea-dashboard-card-grid--compact {
        grid-template-columns: repeat(5, minmax(130px, 1fr));
        gap: 12px;
    }
    .bmt-ea-dashboard-card-grid--compact .bmt-ea-dashboard-company-card {
        padding: 13px 12px;
    }
    .bmt-ea-dashboard-card-grid--compact .bmt-ea-dashboard-company-pill {
        padding: 0 7px;
    }
}
@media (max-width: 900px) {
    .bmt-ea-dashboard-card-grid--compact,
    .bmt-vehicle-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 560px) {
    .bmt-ea-dashboard-card-grid--compact,
    .bmt-vehicle-kpi-grid {
        grid-template-columns: 1fr;
    }
}
html[data-theme="dark"] .bmt-company-kpi-card {
    background:#0f172a;
    border-color:#273449;
    color:#e5edf7;
}

/* 4.5.0: vehicle KPI card normalization */
.bmt-vehicle-kpi-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}
.bmt-vehicle-kpi-grid .bmt-company-metric-card {
    grid-column: auto;
    min-width: 0;
}
@media (max-width: 1180px) {
    .bmt-vehicle-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 900px) {
    .bmt-vehicle-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 560px) {
    .bmt-vehicle-kpi-grid {
        grid-template-columns: 1fr;
    }
}

/* Vehicles module · 4.5.0 passenger/cargo price subtabs */
.bmt-vehicle-price-subtab-shell {
    margin: 0 0 14px;
    width: 100%;
}
.bmt-vehicle-price-subtab-nav {
    display: flex;
    width: 100%;
    max-width: 100%;
    align-self: stretch;
    flex-wrap: wrap;
    padding: 6px;
    border: 1px solid var(--bmt-ea-border,#d9e2ec);
    border-radius: 14px;
    background: var(--bmt-ea-bg-secondary,#f8fafc);
    gap: 6px;
}
.bmt-vehicle-price-subtab-panel[hidden] {
    display: none !important;
}


/* Settings module · 4.5.0 conditional subtabs */
.bmt-settings-subtab-nav[hidden] {
    display: none !important;
}
.bmt-settings-subtab-nav {
    display: inline-flex;
    width: auto;
    max-width: 100%;
    align-self: flex-start;
    flex-wrap: wrap;
    padding: 6px;
    border: 1px solid var(--bmt-ea-border,#d9e2ec);
    border-radius: 14px;
    background: var(--bmt-ea-bg-secondary,#f8fafc);
    gap: 6px;
}
.bmt-settings-subtab-nav .bmt-settings-subtab-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--bmt-ea-border,#d9e2ec);
    background: var(--bmt-ea-bg-primary,#ffffff);
    color: var(--bmt-ea-text-muted,#5b6775);
    font-size: 13px;
    font-weight: 700;
}
.bmt-settings-subtab-nav .bmt-settings-subtab-button:hover {
    border-color: var(--bmt-ea-accent,#2563eb);
    color: var(--bmt-ea-accent,#2563eb);
    background: rgba(37,99,235,.04);
}
.bmt-settings-subtab-nav .bmt-settings-subtab-button.is-active {
    border-color: var(--bmt-ea-accent,#2563eb);
    background: rgba(37,99,235,.08);
    color: var(--bmt-ea-accent,#2563eb);
}
html[data-theme="dark"] .bmt-settings-subtab-nav {
    background: #111c2d;
    border-color: #273449;
}
html[data-theme="dark"] .bmt-settings-subtab-nav .bmt-settings-subtab-button {
    background: #0f172a;
    border-color: #273449;
    color: #c9d5e4;
}
html[data-theme="dark"] .bmt-settings-subtab-nav .bmt-settings-subtab-button:hover,
html[data-theme="dark"] .bmt-settings-subtab-nav .bmt-settings-subtab-button.is-active {
    border-color: var(--bmt-ea-accent,#2563eb);
    color: #8fb4ff;
    background: rgba(37,99,235,.18);
}

/*
 * admin-shell/assets/admin.css
 * File version: 4.7.0 install wizard additions
 */
.bmt-ea-install-shell{min-height:calc(100vh - var(--bmt-ea-topbar-height,64px));display:flex;align-items:flex-start;justify-content:center;padding:32px 18px 48px;background:var(--bmt-ea-page-bg,#f6f7fb)}
.bmt-ea-install-card{width:min(980px,100%);background:var(--bmt-ea-card-bg,#fff);border:1px solid var(--bmt-ea-border,#e4e7ef);border-radius:24px;box-shadow:0 24px 70px rgba(15,23,42,.10);padding:28px}
.bmt-ea-install-lead{margin:8px 0 0;color:var(--bmt-ea-muted,#64748b);font-size:14px;line-height:1.5}
.bmt-ea-install-form{display:flex;flex-direction:column;gap:22px;margin-top:24px}
.bmt-ea-install-section{border:1px solid var(--bmt-ea-border,#e4e7ef);border-radius:18px;padding:18px;background:var(--bmt-ea-soft-bg,#f8fafc)}
.bmt-ea-install-section h2{font-size:15px;line-height:1.2;margin:0 0 16px;font-weight:700;color:var(--bmt-ea-text,#0f172a)}
.bmt-ea-install-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.bmt-ea-install-grid .bmt-ea-login-form-label small{display:block;margin-top:6px;color:var(--bmt-ea-muted,#64748b);font-size:12px;line-height:1.35}
.bmt-ea-install-grid select{width:100%;min-height:44px;border:1px solid var(--bmt-ea-border,#d7dce7);border-radius:12px;background:var(--bmt-ea-input-bg,#fff);color:var(--bmt-ea-text,#0f172a);padding:0 12px;font:inherit}
.bmt-ea-install-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.bmt-ea-install-status{margin:0;padding:14px;border-radius:14px;border:1px solid var(--bmt-ea-border,#e4e7ef);background:var(--bmt-ea-soft-bg,#f8fafc);color:var(--bmt-ea-text,#0f172a);font-size:12px;line-height:1.45;max-height:260px;overflow:auto;white-space:pre-wrap}
@media (max-width:760px){.bmt-ea-install-shell{padding:18px 12px 32px}.bmt-ea-install-card{padding:20px;border-radius:18px}.bmt-ea-install-grid{grid-template-columns:1fr}.bmt-ea-install-actions{justify-content:stretch}.bmt-ea-install-actions .bmt-ea-button{width:100%;justify-content:center}}

.bmt-company-tab-button.is-disabled,
.bmt-company-tab-button:disabled {
    opacity: 0.48;
    cursor: not-allowed;
    pointer-events: none;
}

/* Vehicles module · 4.8.4 settings-like price subtabs */
.bmt-vehicle-price-subtab-nav{align-self:stretch;flex-wrap:wrap;display:flex;width:100%;max-width:100%;}
.bmt-vehicle-price-subtab-nav .bmt-company-tab-button{display:inline-flex;align-items:center;gap:8px;min-height:40px;width:auto;flex:0 0 auto;padding:0 14px;border-radius:999px;border:1px solid var(--bmt-ea-border,#d9e2ec);background:var(--bmt-ea-bg-primary,#fff);color:var(--bmt-ea-text-muted,#5b6775);font-size:13px;font-weight:700;}
.bmt-vehicle-price-subtab-nav .bmt-company-tab-button:hover{border-color:var(--bmt-ea-accent,#2563eb);color:var(--bmt-ea-accent,#2563eb);background:rgba(37,99,235,.04);}
.bmt-vehicle-price-subtab-nav .bmt-company-tab-button.is-active{border-color:var(--bmt-ea-accent,#2563eb);background:rgba(37,99,235,.08);color:var(--bmt-ea-accent,#2563eb);}
html[data-theme="dark"] .bmt-vehicle-price-subtab-nav .bmt-company-tab-button{background:#0f172a;border-color:#273449;color:#c9d5e4;}
html[data-theme="dark"] .bmt-vehicle-price-subtab-nav .bmt-company-tab-button:hover,html[data-theme="dark"] .bmt-vehicle-price-subtab-nav .bmt-company-tab-button.is-active{border-color:var(--bmt-ea-accent,#2563eb);color:#bfdbfe;background:rgba(37,99,235,.16);}

/* File version: 4.8.4 - shared message modal */
.bmt-message-modal {
	width: min(720px, calc(100vw - 32px));
}

.bmt-message-modal-grid {
	margin-top: 18px;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.bmt-message-modal-grid label,
.bmt-message-channel-row label {
	display: grid;
	gap: 6px;
	font-size: 13px;
	font-weight: 650;
	color: var(--bmt-ea-text);
}

.bmt-message-modal-grid input,
.bmt-message-modal-grid select,
.bmt-message-modal-grid textarea {
	width: 100%;
	border: 1px solid var(--bmt-ea-border);
	border-radius: 12px;
	background: var(--bmt-ea-bg-primary);
	color: var(--bmt-ea-text);
	font: inherit;
	font-weight: 500;
	padding: 10px 12px;
}

.bmt-message-modal-grid textarea {
	resize: vertical;
	min-height: 150px;
}

.bmt-message-modal-full {
	grid-column: 1 / -1;
}

.bmt-message-channel-row {
	margin-top: 16px;
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
	padding: 12px;
	border: 1px solid var(--bmt-ea-border);
	border-radius: 14px;
	background: var(--bmt-ea-bg-soft, rgba(15,23,42,.035));
}

.bmt-message-channel-row label {
	display: inline-flex;
	grid-template-columns: none;
	align-items: center;
	gap: 8px;
	font-weight: 650;
}

.bmt-message-channel-row input[disabled] + span {
	opacity: .55;
}

.bmt-message-modal-status {
	margin-top: 12px;
	border-radius: 12px;
	padding: 10px 12px;
	font-size: 13px;
	font-weight: 650;
	background: rgba(37, 99, 235, .08);
	color: var(--bmt-ea-accent, #2563eb);
}

.bmt-message-modal-status.is-warning {
	background: rgba(245, 158, 11, .12);
	color: #b45309;
}

.bmt-message-modal-status.is-error {
	background: rgba(239, 68, 68, .1);
	color: #b91c1c;
}

.bmt-company-icon-button-message svg,
.bmt-driver-icon-button-message svg {
	width: 18px;
	height: 18px;
	display: block;
}

@media (max-width: 720px) {
	.bmt-message-modal-grid {
		grid-template-columns: 1fr;
	}
}

/* Bookings workspace · 4.8.4 */
.bmt-booking-workspace-stack{gap:18px}.bmt-booking-kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.bmt-booking-kpi-card{padding:18px}.bmt-booking-kpi-card strong{display:block;margin-top:8px;font-size:26px;line-height:1.1}.bmt-booking-kpi-card span,.bmt-booking-kpi-label,.bmt-booking-muted{color:var(--bmt-ea-muted,#64748b);font-size:12px}.bmt-booking-table-shell{overflow:auto}.bmt-booking-table{min-width:1420px}.bmt-booking-table td{vertical-align:top}.bmt-booking-address{display:inline-block;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bmt-booking-row-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.bmt-booking-badge{display:inline-flex;align-items:center;min-height:24px;padding:3px 9px;border-radius:999px;background:rgba(100,116,139,.12);color:var(--bmt-ea-text,#0f172a);font-size:12px;font-weight:700;white-space:nowrap}.bmt-booking-badge-pending,.bmt-booking-badge-conflict_driver_vehicle{background:rgba(245,158,11,.15);color:#92400e}.bmt-booking-badge-confirmed,.bmt-booking-badge-assigned,.bmt-booking-badge-resolved_from_driver,.bmt-booking-badge-resolved_from_vehicle,.bmt-booking-badge-resolved_from_driver_vehicle,.bmt-booking-badge-manual_override{background:rgba(34,197,94,.14);color:#166534}.bmt-booking-badge-on_route{background:rgba(59,130,246,.14);color:#1d4ed8}.bmt-booking-badge-completed{background:rgba(20,184,166,.14);color:#0f766e}.bmt-booking-badge-cancelled,.bmt-booking-badge-cancelled_late,.bmt-booking-badge-no_show{background:rgba(239,68,68,.14);color:#991b1b}.bmt-booking-modal[hidden]{display:none}.bmt-booking-modal{position:fixed;inset:0;z-index:1200;display:flex;align-items:center;justify-content:center;padding:24px}.bmt-booking-modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.56);backdrop-filter:blur(4px)}.bmt-booking-modal-panel{position:relative;display:flex;flex-direction:column;width:min(1120px,96vw);max-height:90vh;background:var(--bmt-ea-card,#fff);border:1px solid var(--bmt-ea-border,#e2e8f0);border-radius:24px;box-shadow:0 28px 80px rgba(15,23,42,.24);overflow:hidden}.bmt-booking-modal-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:22px 24px 16px;border-bottom:1px solid var(--bmt-ea-border,#e2e8f0)}.bmt-booking-modal-header h2{margin:4px 0 0;font-size:22px}.bmt-booking-modal-eyebrow{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--bmt-ea-muted,#64748b)}.bmt-booking-tabs{display:flex;gap:6px;padding:12px 16px;border-bottom:1px solid var(--bmt-ea-border,#e2e8f0);overflow:auto}.bmt-booking-tabs button{border:0;background:transparent;color:var(--bmt-ea-muted,#64748b);font-weight:700;padding:9px 12px;border-radius:999px;white-space:nowrap;cursor:pointer}.bmt-booking-tabs button.is-active{background:rgba(37,99,235,.12);color:#1d4ed8}.bmt-booking-modal-body{padding:20px 24px;overflow:auto}.bmt-booking-tab-panel{display:none}.bmt-booking-tab-panel.is-active{display:block}.bmt-booking-detail-grid,.bmt-booking-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.bmt-booking-form-grid-full{grid-template-columns:1fr}.bmt-booking-detail-field,.bmt-booking-form-field{display:flex;flex-direction:column;gap:6px;padding:13px;border:1px solid var(--bmt-ea-border,#e2e8f0);border-radius:16px;background:rgba(148,163,184,.06)}.bmt-booking-detail-field span,.bmt-booking-form-field span{font-size:12px;font-weight:800;color:var(--bmt-ea-muted,#64748b)}.bmt-booking-form-field input,.bmt-booking-form-field select,.bmt-booking-form-field textarea{width:100%;min-height:38px;border:1px solid var(--bmt-ea-border,#cbd5e1);border-radius:12px;padding:8px 10px;background:var(--bmt-ea-input,#fff);color:var(--bmt-ea-text,#0f172a)}.bmt-booking-form-field textarea{min-height:92px;resize:vertical}.bmt-booking-accounting-box{padding:15px 16px;margin-bottom:14px;border-radius:16px;background:rgba(100,116,139,.10);border:1px solid var(--bmt-ea-border,#e2e8f0)}.bmt-booking-accounting-box.conflict_driver_vehicle{background:rgba(245,158,11,.13);border-color:rgba(245,158,11,.35)}.bmt-booking-accounting-box p{margin:6px 0 0;color:var(--bmt-ea-muted,#64748b)}.bmt-booking-history-list{display:grid;gap:10px;margin-bottom:18px}.bmt-booking-history-list article{display:flex;justify-content:space-between;gap:14px;padding:12px;border-radius:14px;border:1px solid var(--bmt-ea-border,#e2e8f0)}.bmt-booking-history-list span,.bmt-booking-history-empty{color:var(--bmt-ea-muted,#64748b);font-size:12px}.bmt-booking-modal-footer{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:14px 24px;border-top:1px solid var(--bmt-ea-border,#e2e8f0);background:rgba(148,163,184,.06)}.bmt-booking-modal-state{margin-right:auto;color:var(--bmt-ea-muted,#64748b);font-size:13px}.bmt-booking-modal-state.is-error{color:#b91c1c}.bmt-booking-modal-open{overflow:hidden}@media(max-width:980px){.bmt-booking-kpi-grid,.bmt-booking-detail-grid,.bmt-booking-form-grid{grid-template-columns:1fr}.bmt-booking-modal{padding:10px}.bmt-booking-modal-panel{max-height:96vh;border-radius:18px}}
.bmt-booking-create-stack{gap:18px}.bmt-booking-create-summary{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.bmt-booking-create-summary h2{margin:0 0 6px;font-size:18px;line-height:1.25}.bmt-booking-create-summary p{margin:0;color:var(--bmt-ea-muted,#64748b);max-width:760px}.bmt-booking-create-state{display:inline-flex;align-items:center;min-height:28px;color:var(--bmt-ea-muted,#64748b);font-size:13px;font-weight:700;text-align:right}.bmt-booking-create-state.is-error{color:#b91c1c}.bmt-booking-create-state.is-success{color:#166534}.bmt-booking-create-form{display:grid;gap:20px}.bmt-booking-create-section{display:grid;gap:12px}.bmt-booking-create-section h3{margin:0;font-size:15px;line-height:1.3}.bmt-booking-honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}.bmt-booking-form-field-wide{grid-column:1/-1}.bmt-booking-create-form .bmt-booking-form-field textarea{min-height:100px}@media(max-width:980px){.bmt-booking-create-summary{display:grid;text-align:left}.bmt-booking-create-state{text-align:left}}
.bmt-booking-warning-list{display:grid;gap:8px;margin-bottom:14px}.bmt-booking-warning-list div{padding:10px 12px;border-radius:14px;border:1px solid rgba(245,158,11,.35);background:rgba(245,158,11,.13);color:#92400e;font-size:13px;font-weight:700}.bmt-booking-history-list article strong{line-height:1.45}.bmt-booking-history-list article span{white-space:nowrap}.bmt-booking-history-log-list{gap:8px}.bmt-booking-history-log-list .bmt-booking-history-log{display:grid;justify-content:stretch;gap:4px}.bmt-booking-history-log-list .bmt-booking-history-log strong{font-size:12px;color:var(--bmt-ea-muted,#64748b);font-weight:800}.bmt-booking-history-log-list .bmt-booking-history-log span{white-space:normal;color:var(--bmt-ea-text,#0f172a);font-size:13px;line-height:1.45}

/* Customers module additions · 4.8.4 */
.bmt-customer-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
.bmt-customer-definition-list{display:grid;gap:10px;}
.bmt-customer-definition-row{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:10px 0;border-bottom:1px solid rgba(148,163,184,.22);}
.bmt-customer-definition-row:last-child{border-bottom:0;}
.bmt-customer-definition-row span{color:var(--bmt-muted,#64748b);font-size:13px;}
.bmt-customer-definition-row strong{text-align:right;font-weight:650;max-width:65%;word-break:break-word;}
@media (max-width: 960px){.bmt-customer-detail-grid{grid-template-columns:1fr;}.bmt-customer-definition-row{display:block;}.bmt-customer-definition-row strong{display:block;text-align:left;max-width:none;margin-top:4px;}}

/* Customers module 4.8.4 */
.bmt-customer-timeline {
    display: grid;
    gap: 12px;
}
.bmt-customer-timeline-item {
    border: 1px solid var(--bmt-border, rgba(148, 163, 184, .35));
    border-radius: 14px;
    padding: 12px 14px;
    background: var(--bmt-panel-muted, rgba(148, 163, 184, .08));
}
.bmt-customer-timeline-item strong,
.bmt-customer-timeline-item span {
    display: block;
}
.bmt-customer-timeline-item p {
    margin: 4px 0 0;
    color: var(--bmt-muted, #64748b);
}
.bmt-company-form-field-wide {
    grid-column: 1 / -1;
}
.bmt-company-form-field-checkbox {
    align-self: end;
    min-height: 46px;
}
.bmt-company-form-field-checkbox > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

/* Customers module additions · 4.8.4 */
.bmt-customer-action-list{display:flex;flex-wrap:wrap;gap:8px;align-items:center;}
.bmt-customer-topbar-quick-actions{display:flex;align-items:center;min-width:0;}
.bmt-customer-topbar-quick-actions[hidden]{display:none!important;}
.bmt-customer-topbar-action-list{gap:6px;justify-content:flex-end;}
.bmt-customer-topbar-action-list .bmt-ea-button{min-height:34px;padding:7px 10px;border-radius:10px;font-size:12px;line-height:1.1;white-space:nowrap;}
.bmt-customer-duplicate-list{display:grid;gap:10px;}
.bmt-customer-duplicate-list article{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;border:1px solid var(--bmt-border,rgba(148,163,184,.35));border-radius:14px;background:var(--bmt-panel-muted,rgba(148,163,184,.08));}
.bmt-customer-duplicate-list strong,.bmt-customer-duplicate-list span,.bmt-customer-duplicate-list small{display:block;}
.bmt-customer-duplicate-list span,.bmt-customer-duplicate-list small{color:var(--bmt-muted,#64748b);font-size:12px;margin-top:3px;}
@media(max-width:720px){.bmt-customer-duplicate-list article{display:grid;}.bmt-customer-action-list .bmt-ea-button{width:100%;justify-content:center;}.bmt-customer-topbar-quick-actions{width:100%;}.bmt-customer-topbar-action-list{width:100%;justify-content:stretch;}.bmt-customer-topbar-action-list .bmt-ea-button{width:auto;flex:1 1 auto;}}

/* 4.8.4 reservation/driver/vehicle workspace refinements */
.bmt-booking-kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr));}
.bmt-booking-table{min-width:980px;}
.bmt-booking-table .bmt-company-table-actions{display:flex;gap:8px;align-items:center;justify-content:flex-start;}
.bmt-driver-kpi-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;}
.bmt-driver-kpi-grid .bmt-company-metric-card{grid-column:auto;min-width:0;}
.bmt-vehicle-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;}
.bmt-vehicle-kpi-grid .bmt-company-metric-card{grid-column:auto;min-width:0;}
@media (max-width:1180px){.bmt-driver-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr));}.bmt-vehicle-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media (max-width:900px){.bmt-booking-kpi-grid,.bmt-driver-kpi-grid,.bmt-vehicle-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.bmt-booking-table{min-width:760px;}}
@media (max-width:560px){.bmt-booking-kpi-grid,.bmt-driver-kpi-grid,.bmt-vehicle-kpi-grid{grid-template-columns:1fr;}}

/* Reservation list and modal refinements · 4.8.4 */
.bmt-booking-contact-cell,
.bmt-booking-driver-cell{display:flex;align-items:center;gap:8px;min-width:0;}
.bmt-booking-table-text,
.bmt-booking-entity-link,
.bmt-booking-contact-cell .bmt-booking-table-text,
.bmt-booking-contact-cell .bmt-booking-entity-link,
.bmt-booking-driver-cell .bmt-booking-table-text,
.bmt-booking-driver-cell .bmt-booking-entity-link{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400;}
.bmt-booking-entity-link{color:inherit;text-decoration:none;}
.bmt-booking-entity-link:hover{color:var(--bmt-ea-accent,#2563eb);text-decoration:underline;}
.bmt-booking-contact-icons{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;}
.bmt-booking-contact-icon{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:999px;border:1px solid var(--bmt-ea-border,#e2e8f0);background:var(--bmt-ea-card,#fff);color:var(--bmt-ea-muted,#64748b);text-decoration:none;transition:background .18s ease,color .18s ease,border-color .18s ease;}
.bmt-booking-contact-icon:hover{background:rgba(37,99,235,.10);border-color:rgba(37,99,235,.28);color:var(--bmt-ea-accent,#2563eb);}
.bmt-booking-contact-icon svg{width:16px;height:16px;display:block;}
.bmt-booking-driver-cell .bmt-company-icon-button{width:30px;height:30px;min-height:30px;padding:0;flex:0 0 auto;}
.bmt-booking-form-grid-3{grid-template-columns:repeat(3,minmax(0,1fr));}
@media(max-width:980px){.bmt-booking-form-grid-3{grid-template-columns:1fr;}.bmt-booking-contact-cell,.bmt-booking-driver-cell{align-items:flex-start;}.bmt-booking-contact-cell{flex-direction:column;}}

/* 4.8.4 reservation create tabs and contact message icon */
.bmt-booking-contact-icon-message{cursor:pointer;padding:0;font:inherit;}
.bmt-booking-create-form .bmt-booking-create-tabs{margin-bottom:18px;}
.bmt-booking-create-panel{display:none;}
.bmt-booking-create-panel.is-active{display:block;}

/* 4.8.4 reservation card normalization */
.bmt-booking-kpi-grid .bmt-company-metric-card{grid-column:auto;min-width:0;}
.bmt-booking-kpi-grid .bmt-company-metric-card-caption{display:none;}
.bmt-booking-create-stack{gap:18px;}
.bmt-booking-create-form .bmt-booking-create-nav-shell{display:block;}
.bmt-booking-create-form .bmt-booking-create-tabs{padding:0 0 2px;border-bottom:0;overflow:visible;margin:0;}
.bmt-booking-create-form .bmt-booking-create-panel{display:none;}
.bmt-booking-create-form .bmt-booking-create-panel.is-active{display:grid;gap:18px;}
.bmt-booking-create-form .bmt-booking-create-section h3{margin:0;font-size:16px;color:var(--bmt-ea-text);font-family:Montserrat,sans-serif;line-height:1.3;}
.bmt-booking-create-form .bmt-booking-form-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:14px;}
.bmt-booking-create-form .bmt-booking-form-grid .bmt-booking-form-field{grid-column:span 4;display:grid;gap:8px;padding:0;border:0;border-radius:0;background:transparent;}
.bmt-booking-create-form .bmt-booking-form-field-wide{grid-column:1/-1!important;}
.bmt-booking-create-form .bmt-booking-form-field span{font-size:13px;font-weight:700;color:var(--bmt-ea-text);font-family:Montserrat,sans-serif;}
.bmt-booking-create-form .bmt-booking-form-field input,
.bmt-booking-create-form .bmt-booking-form-field select,
.bmt-booking-create-form .bmt-booking-form-field textarea{width:100%;min-height:44px;border:1px solid var(--bmt-ea-border);border-radius:12px;background:var(--bmt-ea-bg-primary);padding:10px 12px;font:inherit;color:var(--bmt-ea-text);outline:none;}
.bmt-booking-create-form .bmt-booking-form-field textarea{min-height:120px;resize:vertical;}
.bmt-booking-create-form .bmt-booking-form-field input:focus,
.bmt-booking-create-form .bmt-booking-form-field select:focus,
.bmt-booking-create-form .bmt-booking-form-field textarea:focus{border-color:var(--bmt-ea-accent,#2563eb);box-shadow:0 0 0 3px rgba(37,99,235,.12);}
html[data-theme="dark"] .bmt-booking-kpi-grid .bmt-company-metric-card-caption{color:#9fb0c5;}
html[data-theme="dark"] .bmt-booking-create-form .bmt-booking-form-field input,
html[data-theme="dark"] .bmt-booking-create-form .bmt-booking-form-field select,
html[data-theme="dark"] .bmt-booking-create-form .bmt-booking-form-field textarea{background:#0f172a;border-color:#273449;color:#e5edf7;}
html[data-theme="dark"] .bmt-booking-create-form .bmt-booking-form-field span,
html[data-theme="dark"] .bmt-booking-create-form .bmt-booking-create-section h3{color:#f8fafc;}
@media (max-width:780px){.bmt-booking-create-form .bmt-booking-form-grid{grid-template-columns:1fr;}.bmt-booking-create-form .bmt-booking-form-grid .bmt-booking-form-field{grid-column:auto;}}

/* 4.8.4 shared booking UI standard */
.bmt-booking-kpi-grid .bmt-booking-kpi-label,
.bmt-booking-kpi-grid .bmt-company-metric-card-label{
    font-size:13px;
    font-weight:700;
    line-height:1.35;
    color:var(--bmt-ea-text-muted,#5b6775);
    text-transform:uppercase;
    letter-spacing:.02em;
}
.bmt-booking-contact-icon,
.bmt-booking-table-icon{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:30px;
    height:30px;
    min-width:30px;
    min-height:30px;
    padding:0;
    flex:0 0 auto;
    border-radius:999px;
    border:1px solid var(--bmt-ea-border,#e2e8f0);
    background:var(--bmt-ea-card,#fff);
    color:var(--bmt-ea-muted,#64748b);
    text-decoration:none;
    font:inherit;
    line-height:1;
    appearance:none;
    -webkit-appearance:none;
    cursor:pointer;
    box-shadow:none;
    transition:background .18s ease,color .18s ease,border-color .18s ease;
}
.bmt-booking-contact-icon:hover,
.bmt-booking-table-icon:hover{
    background:rgba(37,99,235,.10);
    border-color:rgba(37,99,235,.28);
    color:var(--bmt-ea-accent,#2563eb);
}
.bmt-booking-contact-icon svg,
.bmt-booking-table-icon svg{
    width:16px;
    height:16px;
    display:block;
}
.bmt-booking-driver-cell .bmt-booking-table-icon,
.bmt-booking-table .bmt-company-table-actions .bmt-booking-table-icon{
    margin:0;
}
.bmt-booking-contact-icon-message{
    font:inherit;
}
html[data-theme="dark"] .bmt-booking-kpi-grid .bmt-booking-kpi-label,
html[data-theme="dark"] .bmt-booking-kpi-grid .bmt-company-metric-card-label{
    color:#9fb0c5;
}

/* 4.8.4 shared table action alignment and icon standard */
.bmt-company-table-actions,
.bmt-booking-table .bmt-company-table-actions,
.bmt-customer-table-actions,
.bmt-vehicle-table-actions{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    text-align:center;
    white-space:nowrap;
}
.bmt-company-table-actions-heading,
.bmt-customer-table-actions-heading,
.bmt-vehicle-table-actions-heading{
    text-align:center !important;
}
.bmt-booking-table .bmt-company-table-actions{
    justify-content:center;
}
.bmt-company-table-actions .bmt-company-icon-button,
.bmt-company-table-actions .bmt-company-row-action,
.bmt-customer-table-actions .bmt-customer-table-icon,
.bmt-customer-table-actions .bmt-table-icon-button,
.bmt-vehicle-table-actions .bmt-vehicle-table-icon,
.bmt-vehicle-table-actions .bmt-table-icon-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:30px;
    height:30px;
    min-width:30px;
    min-height:30px;
    padding:0;
    flex:0 0 auto;
    border-radius:999px;
    border:1px solid var(--bmt-ea-border,#e2e8f0);
    background:var(--bmt-ea-card,#fff);
    color:var(--bmt-ea-muted,#64748b);
    text-decoration:none;
    font:inherit;
    line-height:1;
    appearance:none;
    -webkit-appearance:none;
    box-shadow:none;
    cursor:pointer;
    transition:background .18s ease,color .18s ease,border-color .18s ease;
}
.bmt-company-table-actions .bmt-company-icon-button:hover,
.bmt-company-table-actions .bmt-company-row-action:hover,
.bmt-customer-table-actions .bmt-customer-table-icon:hover,
.bmt-customer-table-actions .bmt-table-icon-button:hover,
.bmt-vehicle-table-actions .bmt-vehicle-table-icon:hover,
.bmt-vehicle-table-actions .bmt-table-icon-button:hover{
    background:rgba(37,99,235,.10);
    border-color:rgba(37,99,235,.28);
    color:var(--bmt-ea-accent,#2563eb);
}
.bmt-company-table-actions .bmt-company-icon-button:focus-visible,
.bmt-company-table-actions .bmt-company-row-action:focus-visible,
.bmt-customer-table-actions .bmt-customer-table-icon:focus-visible,
.bmt-customer-table-actions .bmt-table-icon-button:focus-visible,
.bmt-vehicle-table-actions .bmt-vehicle-table-icon:focus-visible,
.bmt-vehicle-table-actions .bmt-table-icon-button:focus-visible{
    outline:2px solid rgba(37,99,235,.35);
    outline-offset:2px;
}
.bmt-company-table-actions .bmt-company-icon-button-glyph,
.bmt-company-table-actions .bmt-company-icon-button-glyph svg,
.bmt-customer-table-actions .bmt-company-icon-button-glyph,
.bmt-customer-table-actions .bmt-company-icon-button-glyph svg,
.bmt-vehicle-table-actions .bmt-company-icon-button-glyph,
.bmt-vehicle-table-actions .bmt-company-icon-button-glyph svg{
    width:16px;
    height:16px;
    display:block;
}
.bmt-customer-table-actions .bmt-company-icon-button-glyph,
.bmt-vehicle-table-actions .bmt-company-icon-button-glyph{
    display:inline-flex;
    align-items:center;
    justify-content:center;
}
html[data-theme="dark"] .bmt-company-table-actions .bmt-company-icon-button,
html[data-theme="dark"] .bmt-company-table-actions .bmt-company-row-action,
html[data-theme="dark"] .bmt-customer-table-actions .bmt-customer-table-icon,
html[data-theme="dark"] .bmt-customer-table-actions .bmt-table-icon-button,
html[data-theme="dark"] .bmt-vehicle-table-actions .bmt-vehicle-table-icon,
html[data-theme="dark"] .bmt-vehicle-table-actions .bmt-table-icon-button{
    background:#0f172a;
    border-color:#273449;
    color:#9fb0c5;
}
html[data-theme="dark"] .bmt-company-table-actions .bmt-company-icon-button:hover,
html[data-theme="dark"] .bmt-company-table-actions .bmt-company-row-action:hover,
html[data-theme="dark"] .bmt-customer-table-actions .bmt-customer-table-icon:hover,
html[data-theme="dark"] .bmt-customer-table-actions .bmt-table-icon-button:hover,
html[data-theme="dark"] .bmt-vehicle-table-actions .bmt-vehicle-table-icon:hover,
html[data-theme="dark"] .bmt-vehicle-table-actions .bmt-table-icon-button:hover{
    background:rgba(59,130,246,.14);
    border-color:rgba(96,165,250,.35);
    color:#93c5fd;
}


/* Settings notifications · 4.8.4-3 dispatch flow UI */
.bmt-company-form-grid-3 .bmt-company-form-field,
.bmt-company-form-grid-3 .bmt-settings-choice-card {
    grid-column: span 4;
}

.bmt-settings-notification-overview-block {
    overflow: hidden;
}

.bmt-settings-notification-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.bmt-settings-notification-head h3,
.bmt-settings-block-heading h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 800;
    color: var(--bmt-ea-text);
}

.bmt-settings-notification-head p,
.bmt-settings-block-heading p {
    margin: 7px 0 0;
    max-width: 960px;
    font-size: 13px;
    line-height: 1.65;
    color: var(--bmt-ea-text-muted, #64748b);
}

.bmt-settings-flow-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 30px;
    padding: 6px 11px;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, .22);
    background: rgba(37, 99, 235, .08);
    color: #1d4ed8;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    white-space: nowrap;
}

.bmt-settings-flow-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
    counter-reset: none;
}

.bmt-settings-flow-list li {
    display: grid;
    align-content: start;
    gap: 8px;
    min-height: 162px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, .34);
    border-radius: 16px;
    background: rgba(248, 250, 252, .72);
}

.bmt-settings-flow-list li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: var(--bmt-ea-accent, #2563eb);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.bmt-settings-flow-list strong {
    display: block;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 800;
    color: var(--bmt-ea-text);
}

.bmt-settings-flow-list small {
    display: block;
    font-size: 12px;
    line-height: 1.55;
    color: var(--bmt-ea-text-muted, #64748b);
}

.bmt-settings-block-heading {
    margin-bottom: 16px;
}

.bmt-settings-notification-rule-grid .bmt-settings-choice-card {
    min-height: 100%;
}

.bmt-settings-notification-rule-grid .bmt-company-form-field,
.bmt-settings-notification-rule-grid .bmt-settings-choice-card {
    align-self: stretch;
}

@media (max-width: 1180px) {
    .bmt-settings-flow-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bmt-company-form-grid-3 .bmt-company-form-field,
    .bmt-company-form-grid-3 .bmt-settings-choice-card {
        grid-column: span 6;
    }
}

@media (max-width: 780px) {
    .bmt-settings-notification-head {
        display: grid;
    }

    .bmt-settings-flow-list {
        grid-template-columns: 1fr;
    }

    .bmt-settings-flow-list li {
        min-height: auto;
    }

    .bmt-company-form-grid-3 .bmt-company-form-field,
    .bmt-company-form-grid-3 .bmt-settings-choice-card {
        grid-column: auto;
    }
}

html[data-theme="dark"] .bmt-settings-flow-badge {
    border-color: rgba(96, 165, 250, .28);
    background: rgba(59, 130, 246, .14);
    color: #93c5fd;
}

html[data-theme="dark"] .bmt-settings-flow-list li {
    background: rgba(15, 23, 42, .72);
    border-color: rgba(100, 116, 139, .42);
}

.bmt-settings-static-rule {
    min-height: 96px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
    padding: 14px 16px;
    border: 1px dashed rgba(148, 163, 184, 0.72);
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.88);
    color: var(--bmt-ea-text);
}

.bmt-settings-static-rule span {
    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bmt-ea-muted);
}

.bmt-settings-static-rule strong {
    font-size: 14px;
    line-height: 1.35;
    font-weight: 800;
    color: var(--bmt-ea-text);
}

.bmt-settings-static-rule small {
    font-size: 12px;
    line-height: 1.45;
    color: var(--bmt-ea-muted);
}

/* 4.8.4-10 shared phone input standard */
.bmt-phone-input-shell {
    display: grid;
    grid-template-columns: minmax(168px, 42%) minmax(0, 1fr);
    align-items: stretch;
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--bmt-ea-border);
    border-radius: 12px;
    background: var(--bmt-ea-bg-primary);
    overflow: hidden;
}

.bmt-phone-input-prefix,
.bmt-phone-input-country {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    width: 100%;
    padding: 0 10px;
    border: 0;
    border-right: 1px solid var(--bmt-ea-border);
    border-radius: 0;
    background: rgba(148, 163, 184, .12);
    color: var(--bmt-ea-muted);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .01em;
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bmt-phone-input-country {
    height: 100%;
    min-height: 42px;
    cursor: pointer;
    appearance: auto;
}

.bmt-company-form-field .bmt-phone-input-shell input,
.bmt-company-filter-field .bmt-phone-input-shell input {
    width: 100%;
    min-height: 42px;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 10px 12px;
}

.bmt-phone-input-shell:focus-within {
    border-color: var(--bmt-ea-accent, #2563eb);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

@media (max-width: 560px) {
    .bmt-phone-input-shell {
        grid-template-columns: minmax(138px, 46%) minmax(0, 1fr);
    }
}

.bmt-settings-message-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.bmt-settings-message-grid .bmt-company-inline-check,
.bmt-settings-message-grid .bmt-company-form-field {
    margin: 0;
    min-height: 44px;
    align-self: stretch;
}

@media (max-width: 780px) {
    .bmt-settings-message-grid { grid-template-columns: 1fr; }
}

html[data-theme="dark"] .bmt-phone-input-shell {
    background: #0f172a;
    border-color: #273449;
}

html[data-theme="dark"] .bmt-phone-input-prefix {
    border-color: #273449;
    background: rgba(30, 41, 59, .82);
    color: #cbd5e1;
}
.bmt-phone-input-shell input {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 10px 12px;
    font: inherit;
    color: inherit;
    outline: none;
}

/* 4.8.6 vehicle preview reuse and settings cron helpers */
.bmt-ea-button-small {
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 12px;
}
.bmt-vehicle-current-preview {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}
.bmt-vehicle-current-preview img {
    width: 160px;
    height: 100px;
    object-fit: contain;
    border-radius: 0;
    border: 0;
    background: transparent;
}
.bmt-vehicle-preview-picker {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}
.bmt-vehicle-preview-picker-title {
    font-weight: 700;
    font-size: 13px;
    color: var(--text);
}
.bmt-vehicle-preview-picker-empty {
    padding: 10px 12px;
    border: 1px dashed var(--border);
    border-radius: 12px;
    color: var(--muted);
    background: rgba(148, 163, 184, .08);
}
.bmt-vehicle-preview-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 10px;
}
.bmt-vehicle-preview-card {
    position: relative;
    display: grid;
    align-content: start;
    gap: 8px;
    width: 100%;
    min-width: 0;
    min-height: 122px;
    padding: 10px 28px 10px 10px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    text-align: left;
    cursor: pointer;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.bmt-vehicle-preview-card:hover,
.bmt-vehicle-preview-card:focus-visible {
    border-color: rgba(20, 184, 166, .55);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
    transform: translateY(-1px);
}
.bmt-vehicle-preview-card.is-selected {
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, .14);
}
.bmt-vehicle-preview-delete {
    position: absolute;
    top: 7px;
    right: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}
.bmt-vehicle-preview-delete:hover,
.bmt-vehicle-preview-delete:focus-visible {
    color: #b91c1c;
    border-color: rgba(185, 28, 28, .45);
    box-shadow: 0 0 0 3px rgba(185, 28, 28, .12);
}
.bmt-vehicle-preview-thumb {
    width: 100%;
    height: 64px;
    overflow: visible;
    border-radius: 0;
    border: 0;
    background: transparent;
}
.bmt-vehicle-preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: transparent;
    border: 0;
    border-radius: 0;
}
.bmt-vehicle-preview-meta {
    display: grid;
    gap: 4px;
    min-width: 0;
}
.bmt-vehicle-preview-meta strong,
.bmt-vehicle-preview-meta small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bmt-vehicle-preview-meta strong {
    font-weight: 700;
}
.bmt-vehicle-preview-meta small {
    color: var(--muted);
    font-size: 12px;
}
.bmt-vehicle-preview-badge {
    display: inline-flex;
    width: fit-content;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(20, 184, 166, .12);
    color: #0f766e;
    font-size: 11px;
    font-weight: 700;
}
.bmt-settings-cron-command {
    width: 100%;
    min-height: 82px;
    resize: vertical;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(15, 23, 42, .04);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    line-height: 1.5;
}
html[data-theme="dark"] .bmt-vehicle-preview-card,
html[data-theme="dark"] .bmt-vehicle-preview-delete,
html[data-theme="dark"] .bmt-vehicle-current-preview img,
html[data-theme="dark"] .bmt-settings-cron-command {
    background: rgba(15, 23, 42, .72);
}
html[data-theme="dark"] .bmt-vehicle-preview-badge {
    color: #5eead4;
}
@media (max-width: 1280px) {
    .bmt-vehicle-preview-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
    .bmt-vehicle-preview-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .bmt-vehicle-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
    .bmt-vehicle-preview-grid { grid-template-columns: 1fr; }
}

/* Vehicle table preview: transparent artwork must render without container chrome. */
.bmt-vehicle-table-preview-cell {
    width: 92px;
    min-width: 92px;
    padding: 0 12px !important;
    line-height: 0;
    vertical-align: middle;
}
.bmt-vehicle-table-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 48px;
    margin: 0;
    padding: 0;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}
.bmt-vehicle-table-preview img {
    display: block;
    width: 72px;
    height: 48px;
    max-width: 72px;
    max-height: 48px;
    object-fit: contain;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.bmt-vehicle-table-preview-empty {
    display: none;
}

.bmt-booking-money-field{position:relative;display:flex;align-items:center;width:100%;}
.bmt-booking-money-field input[name="total_amount"]{width:100%;min-width:0;padding-right:78px;}
.bmt-booking-money-currency{position:absolute;right:12px;top:50%;transform:translateY(-50%);font-weight:800;color:var(--bmt-ea-muted,#64748b);pointer-events:none;}
.bmt-booking-phone-field{display:grid;grid-template-columns:104px minmax(0,1fr);gap:8px;align-items:center;width:100%;}
.bmt-booking-phone-field select,.bmt-booking-phone-field input{width:100%;min-width:0;}
.bmt-booking-phone-country{font-weight:700;}

.bmt-booking-operation-actions{display:flex;justify-content:flex-end;margin:0 0 14px;}
.bmt-booking-operation-log{display:grid;gap:10px;margin:0 0 16px;}
.bmt-booking-operation-log h3{margin:0;font-size:15px;line-height:1.3;}
.bmt-booking-operation-history-list article{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;}
.bmt-booking-operation-history-list article strong{min-width:0;}
.bmt-booking-operation-history-list article span{white-space:nowrap;}
@media(max-width:720px){.bmt-booking-phone-field{grid-template-columns:96px minmax(0,1fr);}.bmt-booking-operation-history-list article{grid-template-columns:1fr;}.bmt-booking-operation-history-list article span{white-space:normal;}}

/* 4.8.12-5 reservation form admin workspace */
.bmt-rsf-stack,.bmt-rsf-workspace-stack{width:100%;max-width:none;align-self:stretch;justify-self:stretch}.bmt-rsf-form-card{padding:0;overflow:hidden}.bmt-rsf-toolbar-subtitle{margin:4px 0 0;color:#64748b;font-size:13px}.bmt-rsf-nav-shell{padding:14px 18px 0;border-bottom:1px solid rgba(148,163,184,.22)}.bmt-rsf-tab-nav{gap:8px;overflow-x:auto;padding-bottom:14px}.bmt-rsf-tab-panel{padding:22px 24px 26px}.bmt-rsf-panel-head{display:flex;flex-direction:column;gap:4px;margin:0 0 18px}.bmt-rsf-panel-head h2{margin:0;color:#0f172a;font-size:18px;line-height:1.25}.bmt-rsf-panel-head p{margin:0;color:#64748b;font-size:13px;line-height:1.45}.bmt-rsf-mini-title{display:block;margin:0 0 8px;color:#334155;font-size:13px;font-weight:700}.bmt-rsf-shortcode-card{padding:14px;border:1px solid rgba(148,163,184,.22);border-radius:16px;background:rgba(248,250,252,.78)}.bmt-rsf-copy-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;margin-top:8px}.bmt-rsf-copy-row input[readonly]{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;background:#fff}.bmt-rsf-choice-card{padding:13px 14px;border:1px solid rgba(148,163,184,.22);border-radius:16px;background:rgba(248,250,252,.68)}.bmt-rsf-choice-card>span,
/* Reservation Forms driving-zone rows: active, country, city and mode side-by-side. */
.bmt-rsf-driving-zone-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
}

.bmt-rsf-driving-zone-grid > .bmt-company-form-field,
.bmt-rsf-driving-zone-grid > .bmt-company-inline-check {
    grid-column: auto !important;
    min-width: 0;
    box-sizing: border-box;
}

.bmt-rsf-driving-zone-grid > .bmt-company-inline-check {
    align-items: center;
    min-height: 100%;
}

@media (max-width: 1180px) {
    .bmt-rsf-driving-zone-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .bmt-rsf-driving-zone-grid {
        grid-template-columns: 1fr;
    }
}

.bmt-rsf-subsection h3{display:block;margin:0 0 10px;color:#334155;font-size:13px;font-weight:800}.bmt-rsf-check-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.bmt-rsf-check-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.bmt-rsf-check-grid-5{grid-template-columns:repeat(5,minmax(0,1fr))}.bmt-rsf-check-grid label,.bmt-rsf-standard-field label{display:flex;align-items:center;gap:8px;min-height:34px;padding:8px 10px;border:1px solid rgba(148,163,184,.22);border-radius:12px;background:#fff;color:#334155;font-size:13px;font-weight:650}.bmt-rsf-subsection{margin-top:18px;padding:16px;border:1px solid rgba(148,163,184,.22);border-radius:18px;background:rgba(248,250,252,.58)}.bmt-rsf-subsection:first-of-type{margin-top:0}.bmt-rsf-subsection-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.bmt-rsf-subsection-head h3{margin:0}.bmt-rsf-standard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.bmt-rsf-standard-field{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:center;padding:12px;border:1px solid rgba(148,163,184,.22);border-radius:16px;background:#fff}.bmt-rsf-standard-field-main{display:flex;flex-direction:column;gap:3px}.bmt-rsf-standard-field-main strong{font-size:13px;color:#0f172a}.bmt-rsf-standard-field-main span{font-size:12px;color:#64748b}.bmt-rsf-custom-field-list{display:grid;gap:12px}.bmt-rsf-custom-field{padding:14px;border:1px solid rgba(148,163,184,.24);border-radius:18px;background:#fff}.bmt-rsf-custom-field-actions{display:flex;justify-content:flex-end;margin-top:10px}.bmt-rsf-empty-state{padding:16px;border:1px dashed rgba(148,163,184,.44);border-radius:14px;color:#64748b;background:#fff;text-align:center}.bmt-rsf-form-actions{border-top:1px solid rgba(148,163,184,.22);padding:16px 24px 22px;background:rgba(248,250,252,.72)}.bmt-company-feedback.is-error{display:block;color:#991b1b;background:#fef2f2;border-color:#fecaca}.bmt-company-feedback.is-success{display:block;color:#166534;background:#f0fdf4;border-color:#bbf7d0}html[data-theme="dark"] .bmt-rsf-toolbar-subtitle,html[data-theme="dark"] .bmt-rsf-panel-head p,html[data-theme="dark"] .bmt-rsf-standard-field-main span{color:#94a3b8}html[data-theme="dark"] .bmt-rsf-panel-head h2,html[data-theme="dark"] .bmt-rsf-standard-field-main strong{color:#e2e8f0}html[data-theme="dark"] .bmt-rsf-shortcode-card,html[data-theme="dark"] .bmt-rsf-choice-card,html[data-theme="dark"] .bmt-rsf-subsection,html[data-theme="dark"] .bmt-rsf-form-actions{background:rgba(15,23,42,.56);border-color:rgba(148,163,184,.2)}html[data-theme="dark"] .bmt-rsf-check-grid label,html[data-theme="dark"] .bmt-rsf-standard-field,html[data-theme="dark"] .bmt-rsf-custom-field,html[data-theme="dark"] .bmt-rsf-empty-state{background:rgba(15,23,42,.84);border-color:rgba(148,163,184,.22);color:#cbd5e1}html[data-theme="dark"] .bmt-rsf-copy-row input[readonly]{background:rgba(15,23,42,.92)}@media (max-width:1180px){.bmt-rsf-check-grid,.bmt-rsf-check-grid-4,.bmt-rsf-check-grid-5{grid-template-columns:repeat(2,minmax(0,1fr))}.bmt-rsf-standard-grid{grid-template-columns:1fr}.bmt-rsf-standard-field{grid-template-columns:1fr auto auto}}@media (max-width:720px){.bmt-rsf-tab-panel{padding:18px 16px}.bmt-rsf-check-grid,.bmt-rsf-check-grid-4,.bmt-rsf-check-grid-5{grid-template-columns:1fr}.bmt-rsf-copy-row{grid-template-columns:1fr}.bmt-rsf-standard-field{grid-template-columns:1fr}.bmt-rsf-form-actions{padding:16px}.bmt-rsf-subsection-head{align-items:stretch;flex-direction:column}}

/* Reservation forms workspace alignment | Version: 5.2.9 */
.bmt-rsf-workspace-stack .bmt-company-filter-shell{margin-bottom:0}
.bmt-rsf-list-bar{align-items:center}
.bmt-rsf-table-shell{min-height:220px}
.bmt-rsf-table-shortcode{display:flex;align-items:center;gap:10px;min-width:260px;max-width:420px}
.bmt-rsf-table-shortcode code{display:block;max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:6px 8px;border:1px solid var(--bmt-ea-border);border-radius:10px;background:rgba(241,244,246,.7);font-size:12px;color:var(--bmt-ea-text)}
html[data-theme="dark"] .bmt-rsf-table-shortcode code{background:#111c2d;border-color:#273449;color:#e5edf7}
@media (max-width: 780px){.bmt-rsf-table-shortcode{min-width:220px;max-width:100%}.bmt-rsf-table-shortcode code{max-width:220px}}

/* Vehicle driver/price UX updates | Version: 5.2.9 */
.bmt-vehicle-driver-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}
.bmt-vehicle-driver-check {
    min-height: 42px;
}
.bmt-vehicle-driver-empty {
    grid-column: 1 / -1;
    padding: 12px 14px;
    border: 1px dashed rgba(148, 163, 184, .45);
    border-radius: 14px;
    color: var(--bmt-ea-muted, #64748b);
    background: rgba(248, 250, 252, .72);
    font-size: 13px;
}
.bmt-vehicle-price-subtab-nav .bmt-company-tab-button.is-disabled,
.bmt-vehicle-price-subtab-nav .bmt-company-tab-button:disabled {
    opacity: .48;
    cursor: not-allowed;
    filter: grayscale(.15);
}
.bmt-vehicle-price-table tr.is-disabled td {
    color: var(--bmt-ea-muted, #64748b);
    background: rgba(148, 163, 184, .08);
}
.bmt-vehicle-price-table tr.is-disabled input:disabled {
    cursor: not-allowed;
    background: rgba(148, 163, 184, .12);
    color: var(--bmt-ea-muted, #64748b);
}
html[data-theme="dark"] .bmt-vehicle-driver-empty {
    background: rgba(15, 23, 42, .64);
    border-color: rgba(148, 163, 184, .28);
}
html[data-theme="dark"] .bmt-vehicle-price-table tr.is-disabled td {
    background: rgba(148, 163, 184, .06);
}
@media (max-width: 1040px) {
    .bmt-vehicle-driver-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .bmt-vehicle-driver-grid { grid-template-columns: 1fr; }
}

/* reservation forms module: 4.8.12-8 parity and compact checkbox normalization */
.bmt-rsf-form-card .bmt-company-inline-check input[type="checkbox"],
.bmt-rsf-form-card .bmt-rsf-check-grid input[type="checkbox"],
.bmt-rsf-form-card .bmt-rsf-standard-field input[type="checkbox"]{
    width:14px !important;
    min-width:14px !important;
    max-width:14px !important;
    height:14px !important;
    min-height:14px !important;
    max-height:14px !important;
    padding:0 !important;
    margin:2px 6px 0 0 !important;
    flex:0 0 14px !important;
    display:inline-block;
}
.bmt-rsf-form-card .bmt-company-inline-check{
    align-items:flex-start;
    justify-content:flex-start;
    min-height:38px;
    padding:10px 12px;
}
.bmt-rsf-form-card .bmt-company-inline-check span{
    flex:0 1 auto;
}
.bmt-rsf-form-card .bmt-rsf-check-grid{
    gap:8px 12px;
}
.bmt-rsf-form-card .bmt-rsf-check-grid label,
.bmt-rsf-form-card .bmt-rsf-standard-field label{
    min-height:24px;
    padding:2px 0;
    border:0;
    border-radius:0;
    background:transparent;
    color:var(--bmt-ea-text,#1f2937);
    font-size:13px;
    font-weight:600;
}
.bmt-rsf-form-card .bmt-rsf-choice-card{
    padding:12px 14px;
}
html[data-theme="dark"] .bmt-rsf-form-card .bmt-rsf-check-grid label,
html[data-theme="dark"] .bmt-rsf-form-card .bmt-rsf-standard-field label{
    background:transparent;
    border-color:transparent;
    color:#cbd5e1;
}

/* 4.8.12-23 · compact list action alignment */
td.bmt-vehicle-table-actions{
    display:table-cell !important;
    text-align:center !important;
    vertical-align:middle !important;
}
.bmt-vehicle-row-actions{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
}
.bmt-rsf-table-shortcode code,
.bmt-company-table-meta code{
    font:inherit;
    font-size:12px;
    color:var(--bmt-ea-muted,#64748b);
    background:transparent;
    padding:0;
}

/* Reservation forms admin hardening | 4.8.12-34 */
.bmt-rsf-tab-panel[hidden]{display:none!important;}
.bmt-rsf-tab-panel.is-active{display:block;}
.bmt-rsf-help-text{margin:0 0 12px;color:#64748b;font-size:13px;line-height:1.55;}
.bmt-rsf-radio-stack{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:12px;}
.bmt-company-form-field.is-disabled{opacity:.62;}
.bmt-company-form-field.is-disabled input:disabled{cursor:not-allowed;background:rgba(148,163,184,.10);}
html[data-theme="dark"] .bmt-rsf-help-text{color:#94a3b8;}

/* 4.8.13-6 booking modal reference badge */

.bmt-booking-modal-titlebar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-width:0;}
.bmt-booking-modal-titlebar h2{margin:0;}
.bmt-booking-modal-reference-badge{display:inline-flex;align-items:center;min-height:28px;padding:5px 10px;border-radius:999px;border:1px solid var(--bmt-ea-border,#e2e8f0);background:rgba(37,99,235,.08);color:var(--bmt-ea-accent,#2563eb);font-size:12px;font-weight:800;letter-spacing:.02em;}
html[data-theme="dark"] .bmt-booking-modal-reference-badge{background:rgba(96,165,250,.14);border-color:rgba(96,165,250,.30);color:#93c5fd;}

/* Reservation list and modal refinements · 4.8.13-10 */
.bmt-booking-vehicle-link{
    color:inherit;
    font-weight:400;
    text-decoration:none;
}
.bmt-booking-vehicle-link:hover{
    text-decoration:underline;
}
.bmt-booking-route-address-grid{
    grid-column:1 / -1;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
}
.bmt-booking-route-address-grid .bmt-booking-form-field{
    min-width:0;
}
.bmt-booking-footer-portal-actions{
    display:flex;
    align-items:center;
    gap:10px;
}
@media(max-width:980px){
    .bmt-booking-route-address-grid{grid-template-columns:1fr;}
    .bmt-booking-modal-footer{align-items:stretch;flex-wrap:wrap;}
    .bmt-booking-footer-portal-actions{width:100%;justify-content:flex-end;flex-wrap:wrap;}
}
@media(max-width:560px){
    .bmt-booking-footer-portal-actions .bmt-ea-button,
    .bmt-booking-modal-footer > .bmt-ea-button{width:100%;justify-content:center;}
}

/* Booking detail footer and invoice table refinements · 4.8.13-12 */
.bmt-booking-footer-service-actions,
.bmt-booking-footer-invoice-actions{
    display:flex;
    align-items:center;
    gap:10px;
}
.bmt-booking-footer-service-actions[hidden],
.bmt-booking-footer-invoice-actions[hidden],
.bmt-booking-footer-portal-actions[hidden]{
    display:none!important;
}
.bmt-booking-footer-service-actions .bmt-ea-button,
.bmt-booking-footer-invoice-actions .bmt-ea-button,
.bmt-booking-footer-portal-actions .bmt-ea-button{
    min-height:38px;
    font-size:13px;
    white-space:normal;
}
.bmt-booking-invoice-box{
    margin:0 0 16px;
}
.bmt-booking-invoice-box h3{
    margin:0 0 10px;
    font-size:16px;
    line-height:1.3;
}
.bmt-booking-invoice-table-wrap{
    overflow:auto;
    border:1px solid var(--bmt-ea-border,#e2e8f0);
    border-radius:16px;
    background:var(--bmt-ea-card,#fff);
}
.bmt-booking-invoice-table{
    width:100%;
    min-width:1280px;
    border-collapse:collapse;
    font-size:13px;
}
.bmt-booking-invoice-table th,
.bmt-booking-invoice-table td{
    padding:12px 12px;
    border-bottom:1px solid var(--bmt-ea-border,#e2e8f0);
    border-right:1px solid rgba(226,232,240,.72);
    text-align:right;
    white-space:nowrap;
}
.bmt-booking-invoice-table th:first-child,
.bmt-booking-invoice-table td:first-child,
.bmt-booking-invoice-table th:nth-child(2),
.bmt-booking-invoice-table td:nth-child(2),
.bmt-booking-invoice-table th:nth-child(3),
.bmt-booking-invoice-table td:nth-child(3){
    text-align:left;
}

.bmt-booking-invoice-input{
    width:100%;
    min-width:96px;
    box-sizing:border-box;
    border:1px solid #d1d5db;
    border-radius:8px;
    padding:7px 8px;
    background:#fff;
    color:#111827;
    font:inherit;
}
.bmt-booking-invoice-input[type="hidden"]{display:none;}
.bmt-booking-invoice-cell-label{
    display:block;
    margin:0 0 4px;
    color:#64748b;
    font-size:11px;
    line-height:1.2;
    white-space:normal;
}
.bmt-booking-invoice-input[readonly]{
    background:#f3f4f6;
    color:#6b7280;
    cursor:not-allowed;
}
.bmt-booking-invoice-lock-note{
    margin:0 0 10px;
    color:#64748b;
    font-size:13px;
    line-height:1.45;
}
.bmt-booking-invoice-table th{
    background:rgba(148,163,184,.14);
    color:var(--bmt-ea-text,#0f172a);
    font-weight:800;
}
.bmt-booking-invoice-table tr:last-child td{
    border-bottom:0;
}
.bmt-booking-invoice-total-row td{
    font-weight:800;
    background:rgba(248,250,252,.72);
}

html[data-theme="dark"] .bmt-booking-invoice-input{
    background:#0f172a;
    border-color:#334155;
    color:#e5edf7;
}
html[data-theme="dark"] .bmt-booking-invoice-input[readonly]{
    background:#111827;
    color:#94a3b8;
}
html[data-theme="dark"] .bmt-booking-invoice-cell-label{color:#94a3b8;}
html[data-theme="dark"] .bmt-booking-invoice-lock-note{color:#94a3b8;}
html[data-theme="dark"] .bmt-booking-invoice-table-wrap{background:#111827;border-color:#273449;}
html[data-theme="dark"] .bmt-booking-invoice-table th{background:rgba(148,163,184,.12);color:#e5edf7;}
html[data-theme="dark"] .bmt-booking-invoice-table td{border-color:#273449;}
html[data-theme="dark"] .bmt-booking-invoice-total-row td{background:rgba(15,23,42,.72);}
@media(max-width:980px){
    .bmt-booking-footer-service-actions,
    .bmt-booking-footer-invoice-actions{width:100%;justify-content:flex-end;flex-wrap:wrap;}
}
@media(max-width:560px){
    .bmt-booking-footer-service-actions .bmt-ea-button,
    .bmt-booking-footer-invoice-actions .bmt-ea-button{width:100%;justify-content:center;}
}

/* Calendar workspace · 4.8.14-4 */
.bmt-ea-topbar-calendar-shortcut.is-active {
    background: rgba(59,130,246,.14);
    color: var(--bmt-ea-accent, #2563eb);
}
.bmt-calendar-workspace-stack {
    width: 100%;
    max-width: none;
}
.bmt-calendar-shell {
    width: 100%;
    min-height: calc(100vh - 150px);
    background: var(--bmt-ea-bg-primary, #fff);
    border: 1px solid var(--bmt-ea-border, rgba(148,163,184,.35));
    border-radius: 18px;
    box-shadow: var(--bmt-ea-card-shadow, 0 12px 34px rgba(15,23,42,.08));
    overflow: hidden;
}
.bmt-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    background: var(--bmt-ea-bg-secondary, #f8fafc);
    border-bottom: 1px solid var(--bmt-ea-border, rgba(148,163,184,.35));
}
.bmt-calendar-navigation {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.bmt-calendar-nav-button {
    width: 38px;
    height: 38px;
    border: 1px solid var(--bmt-ea-border, rgba(148,163,184,.4));
    border-radius: 999px;
    background: var(--bmt-ea-bg-primary, #fff);
    color: var(--bmt-ea-text, #111827);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.bmt-calendar-nav-button:hover,
.bmt-calendar-nav-button:focus-visible {
    border-color: rgba(37,99,235,.5);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
    outline: none;
}
.bmt-calendar-month-title {
    margin: 0 0 0 8px;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--bmt-ea-text, #111827);
    text-transform: capitalize;
}
.bmt-calendar-filter-field select {
    min-width: 220px;
    min-height: 38px;
    border: 1px solid var(--bmt-ea-border, rgba(148,163,184,.45));
    border-radius: 10px;
    padding: 8px 34px 8px 10px;
    background: var(--bmt-ea-bg-primary, #fff);
    color: var(--bmt-ea-text, #111827);
}
.bmt-calendar-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-height: 46px;
    padding: 10px 16px;
    color: var(--bmt-ea-muted, #64748b);
    border-bottom: 1px solid var(--bmt-ea-border, rgba(148,163,184,.28));
}
.bmt-calendar-summary-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 26px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(148,163,184,.14);
    color: var(--bmt-ea-text, #111827);
    font-size: 12px;
}
.bmt-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(136px, 1fr));
    width: 100%;
    overflow-x: auto;
}
.bmt-calendar-weekday {
    min-height: 42px;
    padding: 12px 10px 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--bmt-ea-text, #111827);
    border-right: 1px solid var(--bmt-ea-border, rgba(148,163,184,.18));
    border-bottom: 1px solid var(--bmt-ea-border, rgba(148,163,184,.25));
}
.bmt-calendar-weekday:nth-child(7n) {
    border-right: 0;
}
.bmt-calendar-cell {
    min-height: 156px;
    padding: 8px;
    border-right: 1px solid var(--bmt-ea-border, rgba(148,163,184,.18));
    border-bottom: 1px solid var(--bmt-ea-border, rgba(148,163,184,.2));
    background: var(--bmt-ea-bg-primary, #fff);
}
.bmt-calendar-cell:nth-child(7n) {
    border-right: 0;
}
.bmt-calendar-cell-muted {
    background: var(--bmt-ea-bg-secondary, #f8fafc);
}
.bmt-calendar-cell.is-today {
    box-shadow: inset 0 0 0 2px rgba(37,99,235,.28);
}
.bmt-calendar-day-number {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--bmt-ea-text, #111827);
    margin-bottom: 8px;
}
.bmt-calendar-events {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.bmt-calendar-event {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 5px 7px;
    border: 0;
    border-radius: 6px;
    background: #c7e8fb;
    color: #0f172a;
    text-align: left;
    text-decoration: none;
    font: inherit;
    font-size: 12px;
    line-height: 1.25;
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.bmt-calendar-event:disabled {
    cursor: default;
    opacity: .68;
}
.bmt-calendar-event:hover,
.bmt-calendar-event:focus-visible {
    filter: brightness(.96);
    outline: 2px solid rgba(37,99,235,.35);
    outline-offset: 1px;
}
.bmt-calendar-event-payment_pending,
.bmt-calendar-summary-pill-payment_pending { background: #fed7aa; }
.bmt-calendar-event-pending,
.bmt-calendar-summary-pill-pending { background: #dbeafe; }
.bmt-calendar-event-assigned,
.bmt-calendar-summary-pill-assigned { background: #c7e8fb; }
.bmt-calendar-event-on_route,
.bmt-calendar-summary-pill-on_route { background: #fde68a; }
.bmt-calendar-event-completed,
.bmt-calendar-summary-pill-completed { background: #bbf7d0; }
.bmt-calendar-event-cancelled,
.bmt-calendar-summary-pill-cancelled { background: #fecaca; }
.bmt-calendar-event-cancelled_late,
.bmt-calendar-summary-pill-cancelled_late { background: #fca5a5; }
.bmt-calendar-event-cancelled_refunded,
.bmt-calendar-summary-pill-cancelled_refunded { background: #f5d0fe; }
.bmt-calendar-event-draft,
.bmt-calendar-summary-pill-draft { background: #e5e7eb; }
.bmt-calendar-empty-state {
    margin: 16px;
}
html[data-theme="dark"] .bmt-calendar-event {
    color: #0f172a;
}
html[data-theme="dark"] .bmt-calendar-cell-muted {
    background: rgba(15,23,42,.55);
}
@media (max-width: 900px) {
    .bmt-calendar-header {
        align-items: stretch;
        flex-direction: column;
    }
    .bmt-calendar-filter-field select {
        width: 100%;
    }
    .bmt-calendar-grid {
        grid-template-columns: repeat(7, minmax(172px, 1fr));
    }
}

/* Booking modal footer button standardization · 4.8.14-6 */
.bmt-booking-modal-footer .bmt-ea-button,
.bmt-booking-footer-service-actions .bmt-ea-button,
.bmt-booking-footer-invoice-actions .bmt-ea-button,
.bmt-booking-footer-portal-actions .bmt-ea-button{
    min-height:var(--bmt-ea-button-height);
    padding:11px 15px;
    border-radius:var(--bmt-ea-radius1);
    font-size:15px;
    font-weight:600;
    line-height:1.2;
    white-space:nowrap;
}
@media(max-width:560px){
    .bmt-booking-modal-footer .bmt-ea-button,
    .bmt-booking-footer-service-actions .bmt-ea-button,
    .bmt-booking-footer-invoice-actions .bmt-ea-button,
    .bmt-booking-footer-portal-actions .bmt-ea-button{white-space:normal;}
}

/* Customers list simplification · 4.8.14-8 */
.bmt-customer-filter-grid-compact{grid-template-columns:minmax(260px,1fr) auto;align-items:center;}
.bmt-customer-table{min-width:980px;}
.bmt-customer-table td,.bmt-customer-table th{vertical-align:middle;}
.bmt-customer-table td:last-child,.bmt-customer-table th:last-child{width:94px;}
.bmt-customer-contact-icons{justify-content:flex-start;}
.bmt-customer-contact-icon{margin:0;}
.bmt-customer-table-actions{height:100%;min-height:42px;}
.bmt-customer-table-actions .bmt-table-icon-button{margin:0;}
@media(max-width:720px){.bmt-customer-filter-grid-compact{grid-template-columns:1fr;}.bmt-customer-filter-grid-compact .bmt-company-filter-actions{justify-content:flex-start;}}


/* 4.8.14-9 company/driver contact actions and vehicle extras cleanup */
.bmt-driver-record-actions{
    display:inline-flex;
    align-items:center;
    justify-content:flex-end;
    gap:8px;
    flex-wrap:wrap;
}
.bmt-driver-record-actions .bmt-ea-button{
    margin:0;
}
.bmt-vehicle-driver-grid .bmt-company-inline-check input[type="checkbox"]{
    width:14px !important;
    min-width:14px !important;
    max-width:14px !important;
    height:14px !important;
    min-height:14px !important;
    max-height:14px !important;
    padding:0 !important;
    margin:2px 6px 0 0 !important;
    flex:0 0 14px !important;
    display:inline-block;
}
.bmt-vehicle-driver-grid .bmt-company-inline-check{
    align-items:flex-start;
    justify-content:flex-start;
}
.bmt-vehicle-price-section-row td{
    padding:16px 14px 8px !important;
    background:rgba(37,99,235,.05);
    border-top:1px solid rgba(37,99,235,.16);
    border-bottom:1px solid rgba(37,99,235,.10);
}
.bmt-vehicle-price-section-row span{
    display:inline-flex;
    align-items:center;
    min-height:24px;
    color:var(--bmt-ea-text,#111827);
    font:800 13px/1.25 Montserrat, sans-serif;
    letter-spacing:.04em;
    text-transform:uppercase;
}
html[data-theme="dark"] .bmt-vehicle-price-section-row td{
    background:rgba(59,130,246,.10);
    border-color:rgba(59,130,246,.20);
}
html[data-theme="dark"] .bmt-vehicle-price-section-row span{
    color:#e5edf7;
}

.bmt-settings-info-card {
    border: 1px solid var(--bmt-ea-border, #e5e7eb);
    border-radius: 14px;
    padding: 14px 16px;
    background: var(--bmt-ea-surface-muted, rgba(15, 23, 42, .035));
}

.bmt-settings-info-card strong {
    display: block;
    margin-bottom: 6px;
    color: var(--bmt-ea-text, #111827);
}

.bmt-settings-info-card p,
.bmt-settings-info-card small {
    display: block;
    margin: 0;
    color: var(--bmt-ea-muted, #64748b);
    font-size: 13px;
    line-height: 1.45;
}

.bmt-settings-info-card-wide {
    grid-column: 1 / -1;
}

.bmt-settings-health-json {
    margin-top: 8px;
}

.bmt-settings-health-json summary {
    cursor: pointer;
    color: var(--bmt-ea-muted, #64748b);
    font-size: 12px;
    font-weight: 700;
}

.bmt-settings-health-json pre {
    max-width: 100%;
    margin: 8px 0 0;
    padding: 10px 12px;
    overflow: auto;
    border: 1px solid var(--bmt-ea-border, #e5e7eb);
    border-radius: 10px;
    background: rgba(15, 23, 42, .035);
    font-size: 12px;
    line-height: 1.45;
    white-space: pre-wrap;
}

.bmt-settings-checkbox-list {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-top: 8px;
}


.bmt-settings-checkbox-list-compact {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 8px 14px;
}

.bmt-settings-standard-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    font-size: 13px;
    color: var(--bmt-ea-text);
}

.bmt-settings-standard-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    margin: 0;
}

.bmt-settings-locked-check {
    opacity: .9;
}

.bmt-settings-locked-check input:disabled {
    cursor: not-allowed;
}

/* 4.9.3-6 dashboard finance visuals */
.bmt-ea-dashboard-card-grid--finance {
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 14px;
}

.bmt-ea-dashboard-card-grid--finance > [data-grid] {
    grid-column: auto;
}

.bmt-ea-dashboard-finance-card {
    min-height: 214px;
    padding: 16px 16px 14px;
    gap: 14px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(241, 245, 249, 0.92) 0%, rgba(255, 255, 255, 1) 100%);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.bmt-ea-dashboard-finance-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.bmt-ea-dashboard-finance-card-title {
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
    color: var(--bmt-ea-text);
}


.bmt-ea-dashboard-finance-card-total {
    font-size: 30px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--bmt-ea-text);
    word-break: break-word;
}

.bmt-ea-dashboard-finance-card-note {
    font-size: 12px;
    line-height: 1.45;
    font-weight: 600;
    color: var(--bmt-ea-text-muted, #64748b);
    margin-top: -6px;
}

.bmt-ea-dashboard-finance-breakdown {
    display: grid;
    gap: 8px;
}

.bmt-ea-dashboard-finance-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 38px;
    padding: 8px 11px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(248, 250, 252, 0.96);
    color: var(--bmt-ea-text);
    font-size: 12px;
    line-height: 1.3;
}

.bmt-ea-dashboard-finance-pill strong {
    font-size: 12px;
    font-weight: 800;
    text-align: right;
}

.bmt-ea-dashboard-finance-pill.is-gross {
    border-color: rgba(59, 130, 246, 0.18);
    background: rgba(59, 130, 246, 0.08);
    color: #1d4ed8;
}

.bmt-ea-dashboard-finance-pill.is-net {
    border-color: rgba(16, 185, 129, 0.22);
    background: rgba(16, 185, 129, 0.10);
    color: #047857;
}

.bmt-ea-dashboard-finance-pill.is-remaining {
    border-color: rgba(245, 158, 11, 0.24);
    background: rgba(245, 158, 11, 0.10);
    color: #b45309;
}

.bmt-ea-dashboard-analytics-shell {
    gap: 18px;
    padding: 20px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, rgba(255, 255, 255, 1) 100%);
}

.bmt-ea-dashboard-analytics-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.bmt-ea-dashboard-analytics-copy {
    display: grid;
    gap: 6px;
    max-width: 720px;
}

.bmt-ea-dashboard-analytics-eyebrow {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #2563eb;
}

.bmt-ea-dashboard-analytics-title {
    margin: 0;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 800;
    color: var(--bmt-ea-text);
}

.bmt-ea-dashboard-analytics-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--bmt-ea-text-muted, #64748b);
}

.bmt-ea-dashboard-analytics-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(148px, 1fr));
    gap: 10px;
    width: min(100%, 720px);
}

.bmt-ea-dashboard-analytics-badge {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(255, 255, 255, 0.82);
}

.bmt-ea-dashboard-analytics-badge small {
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--bmt-ea-text-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.bmt-ea-dashboard-analytics-badge strong {
    font-size: 16px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--bmt-ea-text);
    word-break: break-word;
}

.bmt-ea-dashboard-analytics-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px;
}

.bmt-ea-dashboard-analytics-panel {
    grid-column: span 4;
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.88);
    min-height: 320px;
}

.bmt-ea-dashboard-analytics-panel.is-wide {
    grid-column: span 12;
    min-height: 300px;
}

.bmt-ea-dashboard-analytics-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.bmt-ea-dashboard-analytics-panel-head h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--bmt-ea-text);
}

.bmt-ea-dashboard-analytics-panel-head p {
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: var(--bmt-ea-text-muted, #64748b);
}

.bmt-ea-dashboard-chart-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
}

.bmt-ea-dashboard-column-chart,
.bmt-ea-dashboard-comparison-chart,
.bmt-ea-dashboard-donut-layout {
    min-height: 240px;
}

.bmt-ea-dashboard-chart-empty {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    border-radius: 16px;
    border: 1px dashed rgba(148, 163, 184, 0.4);
    color: var(--bmt-ea-text-muted, #64748b);
    background: rgba(248, 250, 252, 0.8);
    font-size: 13px;
    line-height: 1.5;
}

.bmt-ea-dashboard-column-chart-shell {
    display: grid;
    gap: 12px;
}

.bmt-ea-dashboard-column-chart-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--bmt-ea-text-muted, #64748b);
}

.bmt-ea-dashboard-column-chart-total {
    font-weight: 800;
    color: var(--bmt-ea-text);
}

.bmt-ea-dashboard-column-chart-track {
    position: relative;
    height: 212px;
    border-radius: 18px;
    padding: 14px 10px 10px;
    background:
        linear-gradient(to top, rgba(148, 163, 184, 0.12) 1px, transparent 1px) 0 100% / 100% 25%,
        linear-gradient(180deg, rgba(248, 250, 252, 0.72) 0%, rgba(241, 245, 249, 0.92) 100%);
    overflow: hidden;
}

.bmt-ea-dashboard-column-chart-list {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    min-height: 100%;
    min-width: fit-content;
}

.bmt-ea-dashboard-column-chart-item {
    width: 40px;
    min-width: 40px;
    display: grid;
    gap: 8px;
    align-items: end;
    justify-items: center;
}

.bmt-ea-dashboard-column-chart-bar-wrap {
    width: 100%;
    min-height: 154px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.bmt-ea-dashboard-column-chart-bar {
    width: 100%;
    border-radius: 12px 12px 6px 6px;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.88) 0%, rgba(59, 130, 246, 0.98) 100%);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.2);
    min-height: 4px;
}

.bmt-ea-dashboard-column-chart-item.is-low .bmt-ea-dashboard-column-chart-bar {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.88) 0%, rgba(34, 197, 94, 0.98) 100%);
}

.bmt-ea-dashboard-column-chart-item.is-zero .bmt-ea-dashboard-column-chart-bar {
    background: rgba(148, 163, 184, 0.28);
    min-height: 3px;
}

.bmt-ea-dashboard-column-chart-value {
    font-size: 11px;
    line-height: 1.25;
    font-weight: 700;
    color: var(--bmt-ea-text-muted, #64748b);
    text-align: center;
    min-height: 28px;
}

.bmt-ea-dashboard-column-chart-label {
    font-size: 11px;
    line-height: 1;
    color: var(--bmt-ea-text-muted, #64748b);
    font-weight: 700;
    letter-spacing: .02em;
}

.bmt-ea-dashboard-comparison-chart {
    display: grid;
    gap: 12px;
    align-content: start;
}

.bmt-ea-dashboard-comparison-item {
    display: grid;
    gap: 8px;
}

.bmt-ea-dashboard-comparison-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    line-height: 1.3;
}

.bmt-ea-dashboard-comparison-head strong {
    font-size: 13px;
    font-weight: 800;
    color: var(--bmt-ea-text);
}

.bmt-ea-dashboard-comparison-bar {
    position: relative;
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(148, 163, 184, 0.16);
}

.bmt-ea-dashboard-comparison-bar span {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: inherit;
    width: var(--bar-width, 0%);
    background: var(--bar-color, #2563eb);
}

.bmt-ea-dashboard-donut-layout {
    display: grid;
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
    align-items: center;
    gap: 20px;
}

.bmt-ea-dashboard-donut {
    position: relative;
    width: min(220px, 100%);
    aspect-ratio: 1;
    margin: 0 auto;
    border-radius: 50%;
    background: conic-gradient(#cbd5e1 0deg 360deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bmt-ea-dashboard-donut-hole {
    width: 58%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.22);
    display: grid;
    place-items: center;
    text-align: center;
    padding: 12px;
}

.bmt-ea-dashboard-donut-hole strong {
    font-size: 24px;
    line-height: 1;
    font-weight: 800;
    color: var(--bmt-ea-text);
}

.bmt-ea-dashboard-donut-hole span {
    font-size: 12px;
    line-height: 1.35;
    color: var(--bmt-ea-text-muted, #64748b);
    font-weight: 700;
}

.bmt-ea-dashboard-donut-legend {
    display: grid;
    gap: 10px;
}

.bmt-ea-dashboard-donut-legend-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--bmt-ea-text);
}

.bmt-ea-dashboard-donut-legend-item strong {
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.bmt-ea-dashboard-donut-legend-color {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--legend-color, #2563eb);
}

html[data-theme="dark"] .bmt-ea-dashboard-finance-card,
html[data-theme="dark"] .bmt-ea-dashboard-analytics-shell {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.88) 100%);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.34);
}


html[data-theme="dark"] .bmt-ea-dashboard-finance-pill,
html[data-theme="dark"] .bmt-ea-dashboard-analytics-badge,
html[data-theme="dark"] .bmt-ea-dashboard-analytics-panel,
html[data-theme="dark"] .bmt-ea-dashboard-chart-empty {
    background: rgba(15, 23, 42, 0.92);
    border-color: rgba(71, 85, 105, 0.56);
    color: #e2e8f0;
}

html[data-theme="dark"] .bmt-ea-dashboard-finance-pill.is-gross {
    background: rgba(37, 99, 235, 0.18);
    border-color: rgba(96, 165, 250, 0.35);
    color: #bfdbfe;
}

html[data-theme="dark"] .bmt-ea-dashboard-finance-pill.is-net {
    background: rgba(6, 95, 70, 0.24);
    border-color: rgba(52, 211, 153, 0.24);
    color: #6ee7b7;
}

html[data-theme="dark"] .bmt-ea-dashboard-finance-pill.is-remaining {
    background: rgba(120, 53, 15, 0.24);
    border-color: rgba(251, 191, 36, 0.26);
    color: #fcd34d;
}

html[data-theme="dark"] .bmt-ea-dashboard-analytics-eyebrow {
    color: #93c5fd;
}

html[data-theme="dark"] .bmt-ea-dashboard-column-chart-track {
    background:
        linear-gradient(to top, rgba(51, 65, 85, 0.42) 1px, transparent 1px) 0 100% / 100% 25%,
        linear-gradient(180deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.82) 100%);
}

html[data-theme="dark"] .bmt-ea-dashboard-column-chart-item.is-zero .bmt-ea-dashboard-column-chart-bar {
    background: rgba(100, 116, 139, 0.55);
}

html[data-theme="dark"] .bmt-ea-dashboard-donut-hole {
    background: rgba(15, 23, 42, 0.98);
    box-shadow: inset 0 0 0 1px rgba(71, 85, 105, 0.52);
}

@media (max-width: 1200px) {
    .bmt-ea-dashboard-card-grid--finance,
    .bmt-ea-dashboard-analytics-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bmt-ea-dashboard-analytics-panel,
    .bmt-ea-dashboard-analytics-panel.is-wide {
        grid-column: span 6;
    }

    .bmt-ea-dashboard-analytics-panel.is-wide {
        grid-column: span 12;
    }
}

@media (max-width: 900px) {
    .bmt-ea-dashboard-card-grid--finance {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bmt-ea-dashboard-analytics-panel,
    .bmt-ea-dashboard-analytics-panel.is-wide {
        grid-column: span 12;
    }

    .bmt-ea-dashboard-donut-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .bmt-ea-dashboard-card-grid--finance,
    .bmt-ea-dashboard-analytics-summary {
        grid-template-columns: 1fr;
    }

    .bmt-ea-dashboard-finance-card,
    .bmt-ea-dashboard-analytics-shell {
        padding: 16px;
    }

    .bmt-ea-dashboard-finance-card-total {
        font-size: 24px;
    }

    .bmt-ea-dashboard-column-chart-item {
        width: 34px;
        min-width: 34px;
    }
}

/* 4.9.3-7 dashboard spacing refinement */
.bmt-ea-dashboard-surface {
    display: grid !important;
    gap: 18px;
}

.bmt-ea-dashboard-card-grid--finance {
    margin-top: 0;
}

/* 4.9.3-10 dashboard period selector */
.bmt-dashboard-period-select[hidden] {
    display: none !important;
}

.bmt-dashboard-period-select {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-right: 8px;
    color: var(--bmt-ea-text-muted, #64748b);
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
    white-space: nowrap;
}

.bmt-dashboard-period-select select {
    box-sizing: border-box;
    width: 224px;
    min-width: 224px;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px;
    border: 1px solid var(--bmt-ea-border, #d7dee8);
    border-radius: 999px;
    padding: 0 34px 0 24px !important;
    background: var(--bmt-ea-bg-primary, #fff);
    color: var(--bmt-ea-text, #191f28);
    font-size: 13px;
    line-height: 28px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    outline: none;
}

.bmt-dashboard-period-select select:focus {
    border-color: rgba(37, 99, 235, .55);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

html[data-theme="dark"] .bmt-dashboard-period-select select {
    background: #0f172a;
    border-color: rgba(71, 85, 105, .72);
    color: #e2e8f0;
}

@media (max-width: 720px) {
    .bmt-dashboard-period-select span {
        display: none;
    }

    .bmt-dashboard-period-select select {
        width: 112px;
        min-width: 112px;
        padding-left: 10px !important;
        padding-right: 28px !important;
    }
}

.bmt-company-field-label-row {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.bmt-company-inline-help {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.bmt-company-inline-help > summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, .55);
    border-radius: 999px;
    background: rgba(241, 245, 249, .92);
    color: #475569;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.bmt-company-inline-help > summary::-webkit-details-marker {
    display: none;
}

.bmt-company-inline-help[open] > summary {
    background: rgba(219, 234, 254, .95);
    border-color: rgba(96, 165, 250, .7);
    color: #1d4ed8;
}

.bmt-company-inline-help-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 30;
    width: min(360px, calc(100vw - 56px));
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, .32);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 20px 48px rgba(15, 23, 42, .14);
}

.bmt-company-inline-help-panel p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: #475569;
}

html[data-theme="dark"] .bmt-company-inline-help > summary {
    background: rgba(15, 23, 42, .88);
    border-color: rgba(71, 85, 105, .86);
    color: #cbd5e1;
}

html[data-theme="dark"] .bmt-company-inline-help-panel {
    background: #0f172a;
    border-color: rgba(71, 85, 105, .75);
}

html[data-theme="dark"] .bmt-company-inline-help-panel p {
    color: #cbd5e1;
}

/* Customers module refinements · 4.9.8 */
.bmt-customer-form-card .bmt-company-tab-panel[hidden]{display:none!important;}
.bmt-customer-form-card .bmt-company-tab-panel:not([hidden]){display:grid;}
.bmt-customer-status-action{border:0;cursor:pointer;font:inherit;line-height:1;}
.bmt-customer-status-action:hover,.bmt-customer-status-action:focus-visible{filter:brightness(.96);outline:2px solid rgba(37,99,235,.22);outline-offset:2px;}
.bmt-customer-status-action[disabled]{cursor:not-allowed;opacity:.72;}
.bmt-customer-status-stack{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap;}
.bmt-customer-invite-count{display:inline-flex;align-items:center;color:#64748b;font-size:12px;line-height:1.2;white-space:nowrap;}

/* Customers record quick actions · 4.9.8 */
.bmt-customer-topbar-quick-actions {
    max-width: min(100%, 560px);
}
.bmt-customer-topbar-action-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.bmt-customer-topbar-action-list .bmt-ea-button {
    min-height: 36px;
    padding: 0 14px;
    border-radius: var(--bmt-ea-radius1);
    font-size: 15px;
    font-weight: 600;
    line-height: normal;
}
.bmt-customer-table-actions button.bmt-table-icon-button {
    font: inherit;
}
@media (max-width: 860px) {
    .bmt-customer-topbar-quick-actions {
        width: 100%;
        max-width: none;
    }
    .bmt-customer-topbar-action-list {
        width: 100%;
    }
    .bmt-customer-topbar-action-list .bmt-ea-button {
        flex: 1 1 auto;
        justify-content: center;
    }
}


/* Customers record toolbar and checkbox normalization · 4.9.8 */
.bmt-customer-form-card .bmt-company-form-field-checkbox {
    align-self: center;
    min-height: auto;
}
.bmt-customer-form-card .bmt-company-form-field-checkbox input[type="checkbox"] {
    width: 16px !important;
    min-width: 16px !important;
    max-width: 16px !important;
    height: 16px !important;
    min-height: 16px !important;
    max-height: 16px !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: 0 0 16px !important;
    display: inline-block;
    border-radius: 4px;
}
.bmt-customer-topbar-action-list .bmt-customer-toolbar-icon-button {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    border-radius: 12px;
    flex: 0 0 38px;
}
.bmt-customer-topbar-action-list .bmt-customer-toolbar-icon-button .bmt-company-icon-button-glyph {
    width: 18px;
    height: 18px;
}
.bmt-customer-topbar-action-list .bmt-customer-toolbar-icon-button svg {
    width: 18px;
    height: 18px;
}
@media (max-width: 860px) {
    .bmt-customer-topbar-action-list .bmt-customer-toolbar-icon-button {
        flex: 0 0 38px;
        width: 38px;
    }
}

/* Customers workspace state cards · 4.9.8 */
.bmt-customer-state-grid{grid-template-columns:repeat(4,minmax(0,1fr));}
.bmt-customer-state-grid .bmt-company-metric-card{grid-column:auto;min-width:0;}
.bmt-customer-state-grid .bmt-company-metric-card-caption{display:block;font-size:12px;line-height:1.35;max-width:240px;}
@media(max-width:1024px){.bmt-customer-state-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:560px){.bmt-customer-state-grid{grid-template-columns:1fr;}}

/* Reservation Forms list icon buttons · 4.9.8 */
.bmt-rsf-table-shortcode{display:flex;align-items:center;gap:8px;min-width:0;}
.bmt-rsf-table-shortcode code{display:inline-block;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.bmt-rsf-table-shortcode .bmt-company-icon-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:30px;
    height:30px;
    min-width:30px;
    min-height:30px;
    padding:0;
    flex:0 0 30px;
    border-radius:999px;
    border:1px solid var(--bmt-ea-border,#e2e8f0);
    background:var(--bmt-ea-card,#fff);
    color:var(--bmt-ea-muted,#64748b);
    text-decoration:none;
    font:inherit;
    line-height:1;
    appearance:none;
    -webkit-appearance:none;
    box-shadow:none;
    cursor:pointer;
    transition:background .18s ease,color .18s ease,border-color .18s ease;
}
.bmt-rsf-table-shortcode .bmt-company-icon-button:hover{
    background:rgba(37,99,235,.10);
    border-color:rgba(37,99,235,.28);
    color:var(--bmt-ea-accent,#2563eb);
}
.bmt-rsf-table-shortcode .bmt-company-icon-button:focus-visible{
    outline:2px solid rgba(37,99,235,.35);
    outline-offset:2px;
}
.bmt-rsf-table-shortcode .bmt-company-icon-button-glyph,
.bmt-rsf-table-shortcode .bmt-company-icon-button-glyph svg{
    width:16px;
    height:16px;
    display:block;
}
html[data-theme="dark"] .bmt-rsf-table-shortcode .bmt-company-icon-button{
    background:#111c2d;
    border-color:#273449;
    color:#cbd5e1;
}
html[data-theme="dark"] .bmt-rsf-table-shortcode .bmt-company-icon-button:hover{
    background:rgba(59,130,246,.16);
    border-color:rgba(96,165,250,.35);
    color:#93c5fd;
}
/* Bookings status cards · 4.9.9-10 */
.bmt-booking-kpi-grid{
    grid-template-columns:repeat(8,minmax(112px,1fr));
    grid-auto-flow:column;
    overflow-x:auto;
    overflow-y:hidden;
    scrollbar-gutter:stable;
    padding-bottom:4px;
}
.bmt-booking-kpi-grid .bmt-company-metric-card{
    grid-column:auto;
    min-width:112px;
    min-height:94px;
    padding:14px 10px;
}
.bmt-booking-kpi-grid .bmt-company-metric-card-label,
.bmt-booking-kpi-grid .bmt-booking-kpi-label{
    font-size:11px;
    line-height:1.25;
}
.bmt-booking-kpi-grid .bmt-company-metric-card-value{
    font-size:28px;
}

/* 4.9.9-11: bookings record route uses the booking detail surface as an embedded page. */
body[data-admin-screen="workspace-record"][data-workspace-key="bookings"] .bmt-booking-record-stack{gap:18px;}
body[data-admin-screen="workspace-record"][data-workspace-key="bookings"] .bmt-booking-record-detail-shell{position:static;inset:auto;z-index:auto;display:block;padding:0;}
body[data-admin-screen="workspace-record"][data-workspace-key="bookings"] .bmt-booking-record-detail-shell[hidden]{display:none;}
body[data-admin-screen="workspace-record"][data-workspace-key="bookings"] .bmt-booking-record-detail-shell .bmt-booking-modal-backdrop{display:none;}
body[data-admin-screen="workspace-record"][data-workspace-key="bookings"] .bmt-booking-record-detail-shell .bmt-booking-modal-panel{width:100%;max-height:none;border-radius:22px;box-shadow:none;}
body[data-admin-screen="workspace-record"][data-workspace-key="bookings"] .bmt-booking-record-detail-shell .bmt-booking-modal-body{overflow:visible;}
body[data-admin-screen="workspace-record"][data-workspace-key="bookings"] .bmt-booking-record-detail-shell .bmt-booking-modal-header .bmt-ea-icon-button[data-booking-modal-close]{display:none;}
body[data-admin-screen="workspace-record"][data-workspace-key="bookings"] .bmt-booking-record-detail-shell .bmt-booking-modal-footer{position:sticky;bottom:0;z-index:3;}

/* coupons module: compact checkbox normalization · 4.9.9-19 */
.bmt-coupon-check-card{
    align-items:flex-start;
    justify-content:flex-start;
}
.bmt-coupon-check-card input[type="checkbox"]{
    width:14px !important;
    min-width:14px !important;
    max-width:14px !important;
    height:14px !important;
    min-height:14px !important;
    max-height:14px !important;
    padding:0 !important;
    margin:2px 6px 0 0 !important;
    flex:0 0 14px !important;
    display:inline-block;
}
.bmt-coupon-check-card > span{
    flex:0 1 auto;
}

/* 5.0.0-23 dashboard finance card visual alignment */
.bmt-ea-dashboard-card-grid--finance {
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 14px;
    align-items: start;
}

.bmt-ea-dashboard-card-grid--finance > [data-grid] {
    grid-column: auto;
}

.bmt-ea-dashboard-card-grid--finance .bmt-ea-dashboard-finance-card {
    min-height: 144px;
    padding: 14px 16px;
    gap: 10px;
    border-radius: 16px;
    background: var(--bmt-ea-bg-primary);
    box-shadow: 0 8px 24px rgba(25, 31, 40, 0.04);
    display: grid;
    grid-template-rows: auto 1fr auto;
    align-items: start;
    justify-items: center;
    text-align: center;
}

.bmt-ea-dashboard-card-grid--finance .bmt-ea-dashboard-finance-card-head {
    justify-content: center;
    width: 100%;
}

.bmt-ea-dashboard-card-grid--finance .bmt-ea-dashboard-finance-card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--bmt-ea-text);
    text-align: center;
}

.bmt-ea-dashboard-card-grid--finance .bmt-ea-dashboard-finance-card-total {
    align-self: center;
    font-size: 38px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--bmt-ea-text);
    text-align: center;
}

.bmt-ea-dashboard-card-grid--finance .bmt-ea-dashboard-finance-breakdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 2px;
    width: 100%;
}

.bmt-ea-dashboard-card-grid--finance .bmt-ea-dashboard-finance-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 30px;
    padding: 0 9px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1;
}

.bmt-ea-dashboard-card-grid--finance .bmt-ea-dashboard-finance-pill strong {
    font-size: 12px;
    font-weight: 700;
}

html[data-theme="dark"] .bmt-ea-dashboard-card-grid--finance .bmt-ea-dashboard-finance-card {
    background: #0f172a;
    border-color: #273449;
    box-shadow: 0 14px 38px rgba(2, 6, 23, 0.34);
}

@media (max-width: 1180px) {
    .bmt-ea-dashboard-card-grid--finance {
        grid-template-columns: repeat(5, minmax(130px, 1fr));
        gap: 12px;
    }
    .bmt-ea-dashboard-card-grid--finance .bmt-ea-dashboard-finance-card {
        padding: 13px 12px;
    }
    .bmt-ea-dashboard-card-grid--finance .bmt-ea-dashboard-finance-pill {
        padding: 0 7px;
    }
}

@media (max-width: 900px) {
    .bmt-ea-dashboard-card-grid--finance {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .bmt-ea-dashboard-card-grid--finance {
        grid-template-columns: 1fr;
    }
}

.bmt-ea-dashboard-card-grid--finance .bmt-ea-dashboard-finance-pill.is-approved {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.2);
    color: #1557b0;
}

.bmt-ea-dashboard-card-grid--finance .bmt-ea-dashboard-finance-pill.is-pending {
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.18);
    color: #b42318;
}

html[data-theme="dark"] .bmt-ea-dashboard-card-grid--finance .bmt-ea-dashboard-finance-pill.is-approved {
    background: rgba(37, 99, 235, 0.2);
    border-color: rgba(96, 165, 250, 0.35);
    color: #bfdbfe;
}

html[data-theme="dark"] .bmt-ea-dashboard-card-grid--finance .bmt-ea-dashboard-finance-pill.is-pending {
    background: rgba(248, 113, 113, 0.16);
    border-color: rgba(248, 113, 113, 0.32);
    color: #fecaca;
}

/* 5.0.0-26 dashboard standalone line chart alignment */
.bmt-ea-dashboard-analytics-shell--standalone {
    width: 100%;
    margin-top: 16px;
}

.bmt-ea-dashboard-line-chart-scroll {
    overflow: visible;
    padding-bottom: 0;
}

/* 5.0.0-25 dashboard daily line chart */
.bmt-ea-dashboard-line-chart-shell {
    min-height: 260px;
}

.bmt-ea-dashboard-line-chart-plot {
    position: relative;
    width: 100%;
    height: 278px;
    overflow: visible;
}

.bmt-ea-dashboard-line-chart-svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.bmt-ea-dashboard-line-chart-grid {
    stroke: rgba(148, 163, 184, 0.36);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.bmt-ea-dashboard-line-chart-axis {
    stroke: rgba(15, 23, 42, 0.68);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.bmt-ea-dashboard-line-chart-path {
    fill: none;
    stroke: #2563eb;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.bmt-ea-dashboard-line-chart-y-label,
.bmt-ea-dashboard-line-chart-x-label {
    fill: var(--bmt-ea-text, #111827);
    font-size: 12px;
    line-height: 1;
    font-weight: 500;
}

.bmt-ea-dashboard-line-chart-points {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.bmt-ea-dashboard-line-chart-point {
    position: absolute;
    width: 24px;
    height: 24px;
    padding: 0;
    margin: -12px 0 0 -12px;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: default;
    pointer-events: auto;
    z-index: 2;
}

.bmt-ea-dashboard-line-chart-point.is-zero .bmt-ea-dashboard-line-chart-dot {
    opacity: 0;
}

.bmt-ea-dashboard-line-chart-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 12px;
    transform: translate(-50%, -50%) scale(.72);
    border-radius: 999px;
    background: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18), 0 4px 12px rgba(15, 23, 42, 0.16);
    opacity: 0;
    transition: opacity .12s ease, transform .12s ease;
}

.bmt-ea-dashboard-line-chart-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    min-width: 150px;
    transform: translateX(-50%) translateY(4px);
    padding: 10px 14px 12px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    border-radius: 2px;
    background: #fff;
    color: #020617;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
    pointer-events: none;
    z-index: 10;
}

.bmt-ea-dashboard-line-chart-tooltip::before,
.bmt-ea-dashboard-line-chart-tooltip::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
}

.bmt-ea-dashboard-line-chart-tooltip::before {
    border-top: 10px solid rgba(148, 163, 184, 0.5);
}

.bmt-ea-dashboard-line-chart-tooltip::after {
    margin-top: -1px;
    border-top: 9px solid #fff;
}

.bmt-ea-dashboard-line-chart-tooltip strong {
    display: block;
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1;
    font-weight: 800;
    color: #020617;
}

.bmt-ea-dashboard-line-chart-tooltip span {
    display: block;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 500;
    white-space: nowrap;
}

.bmt-ea-dashboard-line-chart-tooltip b {
    font-weight: 800;
}

.bmt-ea-dashboard-line-chart-point:hover,
.bmt-ea-dashboard-line-chart-point:focus-visible {
    z-index: 12;
}

.bmt-ea-dashboard-line-chart-point:hover .bmt-ea-dashboard-line-chart-dot,
.bmt-ea-dashboard-line-chart-point:focus-visible .bmt-ea-dashboard-line-chart-dot {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.bmt-ea-dashboard-line-chart-point.is-zero:hover .bmt-ea-dashboard-line-chart-dot,
.bmt-ea-dashboard-line-chart-point.is-zero:focus-visible .bmt-ea-dashboard-line-chart-dot {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.72);
}

.bmt-ea-dashboard-line-chart-point:hover .bmt-ea-dashboard-line-chart-tooltip,
.bmt-ea-dashboard-line-chart-point:focus-visible .bmt-ea-dashboard-line-chart-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

html[data-theme="dark"] .bmt-ea-dashboard-line-chart-grid {
    stroke: rgba(71, 85, 105, 0.6);
}

html[data-theme="dark"] .bmt-ea-dashboard-line-chart-axis {
    stroke: rgba(226, 232, 240, 0.64);
}

html[data-theme="dark"] .bmt-ea-dashboard-line-chart-y-label,
html[data-theme="dark"] .bmt-ea-dashboard-line-chart-x-label {
    fill: #e2e8f0;
}

html[data-theme="dark"] .bmt-ea-dashboard-line-chart-tooltip {
    background: #0f172a;
    border-color: rgba(71, 85, 105, 0.8);
    color: #f8fafc;
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.42);
}

html[data-theme="dark"] .bmt-ea-dashboard-line-chart-tooltip::after {
    border-top-color: #0f172a;
}

html[data-theme="dark"] .bmt-ea-dashboard-line-chart-tooltip strong {
    color: #f8fafc;
}

@media (max-width: 640px) {
    .bmt-ea-dashboard-line-chart-plot {
        min-width: 720px;
    }
}


/* 5.0.0-27 dashboard chart card and axis label cleanup */
.bmt-ea-dashboard-chart-card {
    width: 100%;
    margin-top: 16px;
    padding: 18px 18px 16px;
    border-radius: 20px;
    background: var(--bmt-ea-bg-primary);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 10px 28px rgba(25, 31, 40, 0.05);
}

.bmt-ea-dashboard-chart-card + .bmt-ea-dashboard-chart-card {
    margin-top: 16px;
}

.bmt-ea-dashboard-chart-card .bmt-ea-dashboard-analytics-panel-head {
    margin-bottom: 10px;
}

.bmt-ea-dashboard-chart-card--daily .bmt-ea-dashboard-analytics-panel-head p {
    display: none;
}

.bmt-ea-dashboard-line-chart-shell {
    min-height: 260px;
}

.bmt-ea-dashboard-line-chart-plot {
    height: 260px;
    padding-bottom: 0;
}

.bmt-ea-dashboard-line-chart-y-labels,
.bmt-ea-dashboard-line-chart-x-labels {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.bmt-ea-dashboard-line-chart-y-label,
.bmt-ea-dashboard-line-chart-x-label {
    position: absolute;
    color: var(--bmt-ea-text, #111827);
    font-size: 13px;
    line-height: 1;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    white-space: nowrap;
    transform: none;
}

.bmt-ea-dashboard-line-chart-y-label {
    min-width: 34px;
    text-align: right;
    transform: translate(-100%, -50%);
}

.bmt-ea-dashboard-line-chart-x-label {
    top: calc(100% - 22px);
    transform: translateX(-50%);
    text-align: center;
}

.bmt-ea-dashboard-line-chart-points {
    z-index: 3;
}

html[data-theme="dark"] .bmt-ea-dashboard-chart-card {
    background: #0f172a;
    border-color: #273449;
    box-shadow: 0 14px 38px rgba(2, 6, 23, 0.34);
}

@media (max-width: 640px) {
    .bmt-ea-dashboard-chart-card {
        padding: 16px 12px 14px;
    }
    .bmt-ea-dashboard-line-chart-y-label,
    .bmt-ea-dashboard-line-chart-x-label {
        font-size: 12px;
    }
}

/* 5.0.0-28 dashboard monthly bar chart */
.bmt-ea-dashboard-bar-chart-shell {
    min-height: 328px;
}

.bmt-ea-dashboard-bar-chart-plot {
    position: relative;
    width: 100%;
    height: 336px;
    overflow: visible;
    padding-bottom: 0;
}

.bmt-ea-dashboard-bar-chart-svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.bmt-ea-dashboard-bar-chart-grid {
    stroke: rgba(148, 163, 184, 0.36);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.bmt-ea-dashboard-bar-chart-axis {
    stroke: rgba(15, 23, 42, 0.68);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.bmt-ea-dashboard-bar-chart-bar {
    fill: #2563eb;
    opacity: .92;
    vector-effect: non-scaling-stroke;
}

.bmt-ea-dashboard-bar-chart-bar.is-zero {
    opacity: 0;
}

.bmt-ea-dashboard-bar-chart-y-labels,
.bmt-ea-dashboard-bar-chart-x-labels,
.bmt-ea-dashboard-bar-chart-hits {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.bmt-ea-dashboard-bar-chart-hits {
    z-index: 4;
}

.bmt-ea-dashboard-bar-chart-y-label,
.bmt-ea-dashboard-bar-chart-x-label {
    position: absolute;
    color: var(--bmt-ea-text, #111827);
    font-size: 13px;
    line-height: 1;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.bmt-ea-dashboard-bar-chart-y-label {
    min-width: 48px;
    text-align: right;
    transform: translate(-100%, -50%);
}

.bmt-ea-dashboard-bar-chart-x-label {
    top: calc(100% - 24px);
    transform: translateX(-50%);
    text-align: center;
}

.bmt-ea-dashboard-bar-chart-hit {
    position: absolute;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: default;
    pointer-events: auto;
    z-index: 4;
}

.bmt-ea-dashboard-bar-chart-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    min-width: 156px;
    transform: translateX(-50%) translateY(4px);
    padding: 10px 14px 12px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    border-radius: 2px;
    background: #fff;
    color: #020617;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
    pointer-events: none;
    z-index: 60;
}

.bmt-ea-dashboard-bar-chart-tooltip::before,
.bmt-ea-dashboard-bar-chart-tooltip::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
}

.bmt-ea-dashboard-bar-chart-tooltip::before {
    border-top: 10px solid rgba(148, 163, 184, 0.5);
}

.bmt-ea-dashboard-bar-chart-tooltip::after {
    margin-top: -1px;
    border-top: 9px solid #fff;
}

.bmt-ea-dashboard-bar-chart-tooltip strong {
    display: block;
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1;
    font-weight: 800;
    color: #020617;
}

.bmt-ea-dashboard-bar-chart-tooltip span {
    display: block;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 500;
    white-space: nowrap;
}

.bmt-ea-dashboard-bar-chart-tooltip b {
    font-weight: 800;
}

.bmt-ea-dashboard-bar-chart-hit:hover,
.bmt-ea-dashboard-bar-chart-hit:focus-visible {
    z-index: 50;
}

.bmt-ea-dashboard-bar-chart-hit:hover .bmt-ea-dashboard-bar-chart-tooltip,
.bmt-ea-dashboard-bar-chart-hit:focus-visible .bmt-ea-dashboard-bar-chart-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

html[data-theme="dark"] .bmt-ea-dashboard-bar-chart-grid {
    stroke: rgba(71, 85, 105, 0.6);
}

html[data-theme="dark"] .bmt-ea-dashboard-bar-chart-axis {
    stroke: rgba(226, 232, 240, 0.64);
}

html[data-theme="dark"] .bmt-ea-dashboard-bar-chart-y-label,
html[data-theme="dark"] .bmt-ea-dashboard-bar-chart-x-label {
    color: #e2e8f0;
}

html[data-theme="dark"] .bmt-ea-dashboard-bar-chart-tooltip {
    background: #0f172a;
    border-color: rgba(71, 85, 105, 0.8);
    color: #f8fafc;
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.42);
}

html[data-theme="dark"] .bmt-ea-dashboard-bar-chart-tooltip::after {
    border-top-color: #0f172a;
}

html[data-theme="dark"] .bmt-ea-dashboard-bar-chart-tooltip strong {
    color: #f8fafc;
}

@media (max-width: 640px) {
    .bmt-ea-dashboard-bar-chart-plot {
        min-width: 920px;
    }
    .bmt-ea-dashboard-bar-chart-y-label,
    .bmt-ea-dashboard-bar-chart-x-label {
        font-size: 12px;
    }
}

/* Driver live map modal */
.bmt-ea-topbar-map-button {
	position: relative;
}

.bmt-driver-map-backdrop {
	z-index: 1200;
	padding: 22px;
}

.bmt-driver-map-modal {
	width: min(1380px, calc(100vw - 36px));
	max-width: 1380px;
	max-height: min(860px, calc(100vh - 36px));
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 18px;
	overflow: hidden;
}

.bmt-driver-map-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.bmt-driver-map-head .bmt-ea-dialog-headline {
	margin: 0;
	align-items: center;
}

.bmt-driver-map-head .bmt-ea-dialog-headline span:last-child {
	display: grid;
	gap: 3px;
}

.bmt-driver-map-head .bmt-ea-dialog-headline small {
	font-size: 12px;
	font-weight: 600;
	color: var(--bmt-ea-muted);
}

.bmt-driver-map-close {
	font-size: 22px;
	font-weight: 700;
	line-height: 1;
}

.bmt-driver-map-toolbar {
	display: flex;
	align-items: end;
	gap: 10px;
	flex-wrap: wrap;
	padding: 12px;
	border: 1px solid var(--bmt-ea-border);
	border-radius: 14px;
	background: var(--bmt-ea-surface-soft, #f8fafc);
}

.bmt-driver-map-toolbar label {
	display: grid;
	gap: 5px;
	min-width: 180px;
	font-size: 12px;
	font-weight: 700;
	color: var(--bmt-ea-muted);
}

.bmt-driver-map-toolbar select,
.bmt-driver-map-toolbar input {
	height: 38px;
	border: 1px solid var(--bmt-ea-border);
	border-radius: 10px;
	padding: 0 11px;
	background: #fff;
	color: var(--bmt-ea-text);
	font: inherit;
}

.bmt-driver-map-toolbar input {
	min-width: 260px;
}

.bmt-driver-map-toolbar .bmt-driver-map-stats {
	margin-left: auto;
	min-width: 300px;
	max-width: 360px;
	align-self: stretch;
}

.bmt-driver-map-toolbar .bmt-driver-map-stats div {
	min-height: 38px;
	padding: 8px 10px;
}

.bmt-driver-map-layout {
	min-height: 0;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 14px;
	flex: 1;
}

.bmt-driver-map-stage {
	position: relative;
	min-height: 560px;
	border: 1px solid var(--bmt-ea-border);
	border-radius: 18px;
	overflow: hidden;
	background: linear-gradient(135deg, rgba(224, 242, 254, .8), rgba(240, 253, 244, .78));
	cursor: grab;
	touch-action: none;
	user-select: none;
}

.bmt-driver-map-stage.is-panning {
	cursor: grabbing;
}

.bmt-driver-map-stage.is-google {
	cursor: default;
	touch-action: auto;
	user-select: auto;
}

.bmt-driver-google-map {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: none;
	background: #dbeafe;
}

.bmt-driver-map-stage.is-google .bmt-driver-google-map {
	display: block;
}

.bmt-driver-map-stage.is-google .bmt-driver-map-tile-layer,
.bmt-driver-map-stage.is-google .bmt-driver-map-grid,
.bmt-driver-map-stage.is-google .bmt-driver-map-attribution,
.bmt-driver-map-stage.is-google .bmt-driver-map-pin-layer {
	display: none;
}

.bmt-driver-map-tile-layer {
	position: absolute;
	inset: 0;
	overflow: hidden;
	background: #dbeafe;
}

.bmt-driver-map-tile-layer img {
	position: absolute;
	width: 256px;
	height: 256px;
	max-width: none;
	border: 0;
	user-select: none;
	-webkit-user-drag: none;
}

.bmt-driver-map-grid {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(15, 23, 42, .055) 1px, transparent 1px),
		linear-gradient(90deg, rgba(15, 23, 42, .055) 1px, transparent 1px);
	background-size: 64px 64px;
	opacity: .35;
}

.bmt-driver-map-attribution {
	position: absolute;
	left: 10px;
	bottom: 8px;
	z-index: 2;
	padding: 3px 7px;
	border-radius: 8px;
	background: rgba(255, 255, 255, .86);
	color: #475569;
	font-size: 10px;
	font-weight: 700;
	box-shadow: 0 6px 18px rgba(15, 23, 42, .12);
}

html[data-theme="dark"] .bmt-driver-map-attribution {
	background: rgba(15, 23, 42, .82);
	color: #cbd5e1;
}


.bmt-driver-map-camera-controls,
.bmt-driver-map-zoom-controls {
	position: absolute;
	top: 12px;
	z-index: 5;
}

.bmt-driver-map-camera-controls {
	left: 12px;
	display: grid;
	grid-template-columns: repeat(3, 36px);
	grid-template-rows: repeat(3, 36px);
	gap: 4px;
}

.bmt-driver-map-camera-controls [data-driver-map-pan="north"] {
	grid-column: 2;
	grid-row: 1;
}

.bmt-driver-map-camera-controls [data-driver-map-pan="west"] {
	grid-column: 1;
	grid-row: 2;
}

.bmt-driver-map-camera-controls [data-driver-map-reset-camera] {
	grid-column: 2;
	grid-row: 2;
}

.bmt-driver-map-camera-controls [data-driver-map-pan="east"] {
	grid-column: 3;
	grid-row: 2;
}

.bmt-driver-map-camera-controls [data-driver-map-pan="south"] {
	grid-column: 2;
	grid-row: 3;
}

.bmt-driver-map-zoom-controls {
	right: 12px;
	display: grid;
	gap: 6px;
}

.bmt-driver-map-camera-controls button,
.bmt-driver-map-zoom-controls button {
	width: 36px;
	height: 36px;
	border: 1px solid rgba(148, 163, 184, .45);
	border-radius: 10px;
	background: rgba(255, 255, 255, .92);
	color: #0f172a;
	font-size: 20px;
	font-weight: 900;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(15, 23, 42, .14);
}

.bmt-driver-map-camera-controls [data-driver-map-reset-camera] {
	font-size: 18px;
}

.bmt-driver-map-camera-controls button:hover,
.bmt-driver-map-zoom-controls button:hover {
	border-color: rgba(37, 99, 235, .5);
	box-shadow: 0 10px 24px rgba(37, 99, 235, .18);
}

html[data-theme="dark"] .bmt-driver-map-camera-controls button,
html[data-theme="dark"] .bmt-driver-map-zoom-controls button {
	background: rgba(15, 23, 42, .88);
	color: #f8fafc;
}

.bmt-driver-map-pin-layer {
	position: absolute;
	inset: 0;
	z-index: 3;
}

.bmt-driver-map-empty {
	position: absolute;
	inset: 20px;
	z-index: 4;
	display: grid;
	place-items: center;
	text-align: center;
	font-weight: 800;
	color: var(--bmt-ea-muted);
	border: 1px dashed rgba(100, 116, 139, .38);
	border-radius: 16px;
	background: rgba(255, 255, 255, .78);
	backdrop-filter: blur(2px);
}

.bmt-driver-map-empty[hidden] {
	display: none;
}

.bmt-driver-map-pin {
	position: absolute;
	transform: translate(-50%, -100%);
	width: 34px;
	height: 42px;
	border: 0;
	background: transparent;
	cursor: pointer;
	padding: 0;
	filter: drop-shadow(0 10px 18px rgba(15, 23, 42, .26));
}

.bmt-driver-map-pin::before {
	content: '';
	position: absolute;
	left: 4px;
	top: 0;
	width: 26px;
	height: 26px;
	border-radius: 50% 50% 50% 0;
	transform: rotate(-45deg);
	background: #64748b;
	border: 3px solid #fff;
}

.bmt-driver-map-pin[data-status="online"][data-freshness="fresh"]::before {
	background: #16a34a;
}

.bmt-driver-map-pin[data-status="online"][data-freshness="recent"]::before {
	background: #eab308;
}

.bmt-driver-map-pin.is-selected::before {
	box-shadow: 0 0 0 4px rgba(37, 99, 235, .22);
}

.bmt-driver-map-pin span {
	position: absolute;
	left: 7px;
	top: 5px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-size: 10px;
	font-weight: 900;
	color: #fff;
	z-index: 1;
}

.bmt-driver-map-side,
.bmt-driver-map-list {
	display: none;
}

.bmt-driver-map-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
}

.bmt-driver-map-stats div {
	border: 1px solid var(--bmt-ea-border);
	border-radius: 14px;
	padding: 10px;
	background: #fff;
	display: grid;
	gap: 3px;
}

.bmt-driver-map-stats strong {
	font-size: 20px;
	line-height: 1;
}

.bmt-driver-map-stats span {
	font-size: 11px;
	font-weight: 800;
	color: var(--bmt-ea-muted);
}

.bmt-driver-map-list {
	min-height: 0;
	overflow: auto;
	display: grid;
	gap: 8px;
	align-content: start;
}

.bmt-driver-map-list-item {
	width: 100%;
	border: 1px solid var(--bmt-ea-border);
	border-radius: 14px;
	background: #fff;
	padding: 10px 11px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	text-align: left;
	cursor: pointer;
	color: var(--bmt-ea-text);
}

.bmt-driver-map-list-item.is-selected,
.bmt-driver-map-list-item:hover {
	border-color: rgba(37, 99, 235, .45);
	box-shadow: 0 12px 24px rgba(15, 23, 42, .08);
}

.bmt-driver-map-list-item span {
	display: grid;
	gap: 2px;
}

.bmt-driver-map-list-item small,
.bmt-driver-map-list-item em {
	font-size: 11px;
	font-style: normal;
	font-weight: 700;
	color: var(--bmt-ea-muted);
}

.bmt-driver-map-details {
	position: absolute;
	right: 16px;
	bottom: 16px;
	z-index: 6;
	width: min(360px, calc(100% - 32px));
	max-height: calc(100% - 96px);
	overflow: auto;
	border: 1px solid var(--bmt-ea-border);
	border-radius: 16px;
	padding: 14px;
	background: rgba(255, 255, 255, .96);
	box-shadow: 0 18px 42px rgba(15, 23, 42, .18);
	backdrop-filter: blur(4px);
}

.bmt-driver-map-details[hidden] {
	display: none;
}

.bmt-driver-map-details h3 {
	margin: 0 34px 10px 0;
}

.bmt-driver-map-details-close {
	position: absolute;
	right: 10px;
	top: 10px;
	width: 28px;
	height: 28px;
	border: 1px solid rgba(148, 163, 184, .45);
	border-radius: 9px;
	background: rgba(255, 255, 255, .92);
	color: #0f172a;
	font-size: 18px;
	font-weight: 900;
	line-height: 1;
	cursor: pointer;
}

.bmt-driver-map-details-close:hover {
	border-color: rgba(37, 99, 235, .5);
	box-shadow: 0 8px 18px rgba(37, 99, 235, .16);
}

.bmt-driver-map-details dl {
	margin: 0 0 12px;
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr);
	gap: 7px 10px;
	font-size: 13px;
}

.bmt-driver-map-details dt {
	font-weight: 800;
	color: var(--bmt-ea-muted);
}

.bmt-driver-map-details dd {
	margin: 0;
	font-weight: 700;
	word-break: break-word;
}

.bmt-driver-map-note,
.bmt-driver-map-empty-list {
	font-size: 12px;
	line-height: 1.45;
	color: var(--bmt-ea-muted);
	margin: 10px 0 0;
}

@media (max-width: 980px) {
	.bmt-driver-map-stage {
		min-height: 420px;
	}
}

@media (max-width: 640px) {
	.bmt-driver-map-backdrop {
		padding: 8px;
	}
	.bmt-driver-map-modal {
		width: calc(100vw - 16px);
		max-height: calc(100vh - 16px);
	}
	.bmt-driver-map-toolbar,
	.bmt-driver-map-toolbar label,
	.bmt-driver-map-toolbar input,
	.bmt-driver-map-toolbar select,
	.bmt-driver-map-toolbar button {
		width: 100%;
		min-width: 0;
	}
	.bmt-driver-map-toolbar .bmt-driver-map-stats {
		width: 100%;
		min-width: 0;
		max-width: none;
		margin-left: 0;
	}
	.bmt-driver-map-camera-controls {
		left: 8px;
		top: 8px;
		grid-template-columns: repeat(3, 32px);
		grid-template-rows: repeat(3, 32px);
	}
	.bmt-driver-map-zoom-controls {
		right: 8px;
		top: 8px;
	}
	.bmt-driver-map-camera-controls button,
	.bmt-driver-map-zoom-controls button {
		width: 32px;
		height: 32px;
		border-radius: 9px;
	}
	.bmt-driver-map-details {
		left: 12px;
		right: 12px;
		bottom: 12px;
		width: auto;
		max-height: calc(100% - 84px);
	}
	.bmt-driver-map-details dl {
		grid-template-columns: 1fr;
	}
}
.bmt-booking-badge-passenger_picked_up{background:rgba(59,130,246,.14);color:#1d4ed8}


/* 5.0.8-5 dashboard chart tooltip and hit-area alignment */
.bmt-ea-dashboard-chart-card {
    position: relative;
    overflow: visible;
}

.bmt-ea-dashboard-chart-card--daily,
.bmt-ea-dashboard-chart-card--monthly {
    z-index: 2;
}

.bmt-ea-dashboard-chart-card--daily:hover,
.bmt-ea-dashboard-chart-card--monthly:hover,
.bmt-ea-dashboard-chart-card--daily:focus-within,
.bmt-ea-dashboard-chart-card--monthly:focus-within {
    z-index: 20;
}

.bmt-ea-dashboard-chart-card--monthly .bmt-ea-dashboard-chart-scroll,
.bmt-ea-dashboard-chart-card--monthly .bmt-ea-dashboard-column-chart,
.bmt-ea-dashboard-chart-card--monthly .bmt-ea-dashboard-bar-chart-shell,
.bmt-ea-dashboard-chart-card--monthly .bmt-ea-dashboard-bar-chart-plot {
    overflow: visible;
}

.bmt-ea-dashboard-line-chart-plot {
    height: 260px;
    padding-bottom: 0;
}

.bmt-ea-dashboard-line-chart-points,
.bmt-ea-dashboard-bar-chart-hits {
    inset: 0;
}

.bmt-ea-dashboard-bar-chart-plot {
    padding-bottom: 0;
}

.bmt-ea-dashboard-bar-chart-hits {
    z-index: 40;
}

.bmt-ea-dashboard-bar-chart-tooltip {
    z-index: 60;
}

@media (max-width: 640px) {
    .bmt-ea-dashboard-chart-card--monthly .bmt-ea-dashboard-chart-scroll {
        overflow-x: auto;
        overflow-y: hidden;
    }
}


/* Accounting summary cards. */
.bmt-accounting-kpi-grid{
	grid-template-columns:repeat(3,minmax(0,1fr)) !important;
	gap:16px;
}

.bmt-accounting-kpi-grid .bmt-accounting-kpi-card{
	grid-column:auto !important;
	min-width:0;
}

@media(max-width:1180px){
	.bmt-accounting-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important;}
}

@media(max-width:780px){
	.bmt-accounting-kpi-grid{grid-template-columns:1fr !important;}
}

/* Accounting toolbar export buttons: match fixed topbar icon button footprint. */
.bmt-ea-page-toolbar-actions .bmt-accounting-actions .bmt-company-icon-button{
	width:44px;
	min-width:44px;
	height:44px;
	min-height:44px;
	padding:0;
	border-radius:12px;
	flex:0 0 44px;
}

.bmt-ea-page-toolbar-actions .bmt-accounting-actions .bmt-company-icon-button-glyph,
.bmt-ea-page-toolbar-actions .bmt-accounting-actions .bmt-company-icon-button-glyph svg{
	width:20px;
	height:20px;
}


/* Accounting toolbar period selector. */
.bmt-ea-page-toolbar-actions .bmt-accounting-actions{
	gap:8px;
}

.bmt-accounting-toolbar-period-field{
	display:flex;
	flex:0 0 auto;
	width:132px;
	min-width:132px;
}

.bmt-ea-page-toolbar-actions .bmt-accounting-toolbar-period-field select{
	width:132px;
	height:36px;
	min-height:36px;
	border:1px solid var(--bmt-ea-border);
	border-radius:7px;
	background:var(--bmt-ea-bg-primary);
	padding:0 34px 0 12px;
	font:700 13px/1 Montserrat,sans-serif;
	color:var(--bmt-ea-text);
	outline:none;
}

.bmt-ea-page-toolbar-actions .bmt-accounting-toolbar-period-field select:focus{
	border-color:var(--bmt-ea-accent,#2563eb);
	box-shadow:0 0 0 3px rgba(37,99,235,.12);
}

html[data-theme="dark"] .bmt-ea-page-toolbar-actions .bmt-accounting-toolbar-period-field select{
	background:#0f172a;
	border-color:#273449;
	color:#e5edf7;
}

/* Accounting period lock overview. */
.bmt-accounting-periods-panel{
	overflow:visible;
}
.bmt-accounting-section-head{
	display:flex;
	align-items:flex-start;
	justify-content:space-between;
	gap:16px;
	margin-bottom:14px;
}
.bmt-accounting-section-head h2{
	margin:0;
	font-size:18px;
	font-weight:800;
	color:var(--bmt-ea-text,#0f172a);
}
.bmt-accounting-section-head p{
	margin:4px 0 0;
	font-size:13px;
	color:var(--bmt-ea-text-muted,#64748b);
}
.bmt-accounting-periods{
	display:grid;
	gap:10px;
}
.bmt-accounting-period-card{
	border:1px solid var(--bmt-ea-border,#e2e8f0);
	border-radius:14px;
	background:var(--bmt-ea-card,#fff);
	overflow:hidden;
}
.bmt-accounting-period-card>summary{
	list-style:none;
	display:grid;
	grid-template-columns:max-content minmax(560px,1fr) auto;
	gap:14px;
	align-items:center;
	padding:12px 14px;
	cursor:pointer;
}
.bmt-accounting-period-card>summary::-webkit-details-marker{
	display:none;
}
.bmt-accounting-period-main{
	display:flex;
	align-items:center;
	gap:9px;
	min-width:0;
}
.bmt-accounting-period-title{
	font-size:15px;
	font-weight:850;
	white-space:nowrap;
	color:var(--bmt-ea-text,#0f172a);
}
.bmt-accounting-period-lock{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	min-height:24px;
	padding:3px 9px;
	border-radius:999px;
	font-size:11px;
	font-weight:850;
	white-space:nowrap;
}
.bmt-accounting-period-lock.is-locked{
	background:rgba(15,23,42,.10);
	color:#334155;
}
.bmt-accounting-period-lock.is-open{
	background:rgba(34,197,94,.14);
	color:#047857;
}
.bmt-accounting-period-metrics{
	display:grid;
	grid-template-columns:repeat(5,minmax(104px,1fr));
	gap:8px;
	min-width:0;
}
.bmt-accounting-period-metrics span{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:8px;
	min-width:0;
	padding:7px 9px;
	border-radius:10px;
	background:rgba(148,163,184,.10);
	font-size:12px;
	font-weight:700;
	color:var(--bmt-ea-text-muted,#64748b);
}
.bmt-accounting-period-metrics strong{
	font-weight:850;
	color:var(--bmt-ea-text,#0f172a);
	white-space:nowrap;
}
.bmt-accounting-period-actions{
	display:flex;
	align-items:center;
	justify-content:flex-end;
	gap:8px;
	white-space:nowrap;
}
.bmt-accounting-mini-button,
.bmt-accounting-period-action-note{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	height:30px;
	min-height:30px;
	padding:0 10px;
	border-radius:8px;
	font-size:12px;
	font-weight:800;
}
.bmt-accounting-period-action-note{
	background:rgba(148,163,184,.14);
	color:var(--bmt-ea-text-muted,#64748b);
}
.bmt-accounting-period-lock-button{
	height:36px;
	min-height:36px;
	border-radius:7px;
	padding:0 13px;
	font-size:13px;
	font-weight:850;
	white-space:nowrap;
}
.bmt-accounting-period-detail{
	padding:0 14px 14px;
	overflow:auto;
}
.bmt-accounting-recipient-table{
	min-width:940px;
}
.bmt-accounting-empty-cell{
	padding:18px;
	text-align:center;
	color:var(--bmt-ea-text-muted,#64748b);
}
.bmt-accounting-table{
	min-width:1360px;
}
.bmt-accounting-lock-modal[hidden]{
	display:none!important;
}
.bmt-accounting-lock-modal{
	position:fixed;
	inset:0;
	z-index:10000;
	display:flex;
	align-items:center;
	justify-content:center;
	padding:24px;
	background:rgba(15,23,42,.50);
	backdrop-filter:blur(3px);
}
.bmt-accounting-lock-card{
	width:min(520px,100%);
	border:1px solid var(--bmt-ea-border,#e2e8f0);
	border-radius:18px;
	background:var(--bmt-ea-card,#fff);
	box-shadow:0 24px 72px rgba(15,23,42,.28);
	padding:20px;
}
.bmt-accounting-lock-card h2{
	margin:0 0 8px;
	font-size:20px;
	font-weight:850;
	color:var(--bmt-ea-text,#0f172a);
}
.bmt-accounting-lock-card p{
	margin:0 0 14px;
	font-size:13px;
	color:var(--bmt-ea-text-muted,#64748b);
}
.bmt-accounting-progress{
	height:10px;
	border-radius:999px;
	background:rgba(148,163,184,.22);
	overflow:hidden;
}
.bmt-accounting-progress span{
	display:block;
	height:100%;
	width:0;
	border-radius:999px;
	background:var(--bmt-ea-accent,#2563eb);
	transition:width .18s ease;
}
.bmt-accounting-lock-meta{
	margin-top:10px;
	font-size:12px;
	font-weight:800;
	color:var(--bmt-ea-text-muted,#64748b);
	text-align:right;
}
html[data-theme="dark"] .bmt-accounting-period-card,
html[data-theme="dark"] .bmt-accounting-lock-card{
	background:#0f172a;
	border-color:#273449;
}
html[data-theme="dark"] .bmt-accounting-period-lock.is-locked{
	background:rgba(148,163,184,.18);
	color:#cbd5e1;
}
html[data-theme="dark"] .bmt-accounting-period-metrics span{
	background:rgba(148,163,184,.10);
}
@media(max-width:1180px){
	.bmt-accounting-period-card>summary{
		grid-template-columns:1fr;
	}
	.bmt-accounting-period-actions{
		justify-content:flex-start;
	}
}
@media(max-width:780px){
	.bmt-accounting-period-metrics{
		grid-template-columns:1fr;
	}
	.bmt-accounting-period-main,
	.bmt-accounting-period-actions{
		flex-wrap:wrap;
	}
}

/* Calendar booking detail modal alignment · 5.1.2-6 */
body[data-workspace-key="calendar"] #booking-detail-modal .bmt-booking-tabs{
    flex-wrap:wrap;
    align-items:center;
    overflow:visible;
}
body[data-workspace-key="calendar"] #booking-detail-modal .bmt-booking-tabs button{
    flex:0 0 auto;
}
body[data-workspace-key="calendar"] #booking-detail-modal .bmt-booking-modal-footer{
    flex-wrap:wrap;
    align-items:center;
}
body[data-workspace-key="calendar"] #booking-detail-modal .bmt-booking-modal-state{
    flex:1 1 220px;
    min-width:0;
    margin-right:0;
}
body[data-workspace-key="calendar"] #booking-detail-modal .bmt-booking-footer-portal-actions,
body[data-workspace-key="calendar"] #booking-detail-modal .bmt-booking-footer-service-actions,
body[data-workspace-key="calendar"] #booking-detail-modal .bmt-booking-footer-invoice-actions{
    flex:0 1 auto;
    min-width:0;
    justify-content:flex-end;
    flex-wrap:wrap;
}
body[data-workspace-key="calendar"] #booking-detail-modal .bmt-booking-footer-service-actions .bmt-ea-button,
body[data-workspace-key="calendar"] #booking-detail-modal .bmt-booking-footer-invoice-actions .bmt-ea-button,
body[data-workspace-key="calendar"] #booking-detail-modal .bmt-booking-footer-portal-actions .bmt-ea-button{
    flex:0 1 auto;
    max-width:260px;
}
@media(max-width:1180px){
    body[data-workspace-key="calendar"] #booking-detail-modal .bmt-booking-footer-service-actions,
    body[data-workspace-key="calendar"] #booking-detail-modal .bmt-booking-footer-invoice-actions,
    body[data-workspace-key="calendar"] #booking-detail-modal .bmt-booking-footer-portal-actions{
        width:100%;
        justify-content:flex-end;
    }
}

/* Customers cleanup · 5.1.2-7 */
.bmt-customer-state-grid .bmt-company-metric-card-caption,
.bmt-customer-workspace-stack .bmt-company-metric-card-caption,
.bmt-customer-detail-stack .bmt-company-metric-card-caption{
    display:none!important;
}
.bmt-customer-table-toolbar{
    gap:14px;
    align-items:center;
}
.bmt-customer-table-toolbar .bmt-company-bulk-actions{
    flex-wrap:wrap;
    gap:8px;
}
.bmt-customer-table .bmt-company-table-select{
    width:44px;
    min-width:44px;
    text-align:center;
}
.bmt-customer-detail-stack{
    gap:18px;
}
.bmt-customer-record-summary-card{
    display:block;
    padding:18px;
}
.bmt-customer-record-summary-card .bmt-booking-kpi-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    margin:0;
}
.bmt-customer-record-summary-card .bmt-booking-kpi-grid .bmt-company-metric-card{
    width:100%;
}
.bmt-customer-form-card{
    display:flex;
    flex-direction:column;
    gap:18px;
}
.bmt-customer-form-card .bmt-company-tab-nav{
    margin:0;
    padding-bottom:2px;
}
.bmt-customer-form-card .bmt-company-tab-panel:not([hidden]){
    display:block;
    padding-top:0;
}
.bmt-customer-form-card .bmt-company-form-grid{
    gap:18px;
}
.bmt-customer-form-card .bmt-company-form-field,
.bmt-customer-record-info-card{
    margin:0;
}
.bmt-customer-parapuan-grid{
    grid-template-columns:minmax(0,1fr)!important;
}
.bmt-customer-definition-list{
    display:grid;
    gap:10px;
}
.bmt-customer-definition-row{
    align-items:flex-start;
    gap:10px;
}
@media(max-width:760px){
    .bmt-customer-table-toolbar{align-items:flex-start;}
    .bmt-customer-table-toolbar .bmt-company-bulk-actions{width:100%;}
    .bmt-customer-table-toolbar .bmt-company-bulk-actions .bmt-ea-button{flex:1 1 160px;}
}

/* companies workspace: spread metric cards across the full row */
#company-kpi-grid.bmt-company-kpi-grid{
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
}
#company-kpi-grid .bmt-company-metric-card{
    grid-column:auto;
    width:100%;
    min-width:0;
}
@media (max-width: 780px){
    #company-kpi-grid.bmt-company-kpi-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}
@media (max-width: 520px){
    #company-kpi-grid.bmt-company-kpi-grid{
        grid-template-columns:1fr;
    }
}


/* 5.1.2-15: driver/vehicle listing refinements. */
.bmt-driver-quality-score {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    font-weight: 700;
    color: var(--bmt-ea-text);
    white-space: nowrap;
}
.bmt-vehicle-table-preview,
.bmt-vehicle-table-preview img,
.bmt-vehicle-current-preview,
.bmt-vehicle-current-preview img,
.bmt-vehicle-preview-thumb,
.bmt-vehicle-preview-thumb img {
    background-color: transparent !important;
}
html[data-theme="dark"] .bmt-driver-quality-score { color: #e5edf7; }

/* Reservation Forms driving-zone plain checkbox controls | Version: 5.2.9 */
.bmt-rsf-form-card .bmt-rsf-plain-check,
.bmt-rsf-driving-zone-grid > .bmt-rsf-plain-check {
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    align-items: center;
}
.bmt-rsf-form-card .bmt-rsf-plain-check:hover,
.bmt-rsf-driving-zone-grid > .bmt-rsf-plain-check:hover {
    background: transparent;
}
html[data-theme="dark"] .bmt-rsf-form-card .bmt-rsf-plain-check,
html[data-theme="dark"] .bmt-rsf-driving-zone-grid > .bmt-rsf-plain-check {
    background: transparent;
    border-color: transparent;
}

/* Pricing Rules editor tab layout alignment | Version: 5.2.9 */
#pricing-editor-panel.bmt-ea-panel-card {
    padding: 0;
    overflow: hidden;
}
#pricing-editor-panel .bmt-pricing-panel-head {
    margin: 0;
    padding: 0 18px;
}
#pricing-editor-panel .bmt-pricing-status {
    min-height: 0;
}
#pricing-editor-panel .bmt-pricing-status.is-error,
#pricing-editor-panel .bmt-pricing-status.is-success {
    margin-top: 14px;
    min-height: 18px;
}
#pricing-editor-panel .bmt-pricing-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(148, 163, 184, .22);
    overflow-x: auto;
}
#pricing-editor-panel .bmt-pricing-tab {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--bmt-ea-border, #d9e2ec);
    background: var(--bmt-ea-bg-primary, #fff);
    color: var(--bmt-ea-text-muted, #5b6775);
    font-size: 13px;
    font-weight: 700;
    box-shadow: none;
}
#pricing-editor-panel .bmt-pricing-tab:hover {
    border-color: var(--bmt-ea-accent, #2563eb);
    color: var(--bmt-ea-accent, #2563eb);
    background: rgba(37, 99, 235, .04);
}
#pricing-editor-panel .bmt-pricing-tab.is-active {
    border-color: var(--bmt-ea-accent, #2563eb);
    color: var(--bmt-ea-accent, #2563eb);
    background: rgba(37, 99, 235, .08);
}
#pricing-form > .bmt-pricing-form-stack {
    gap: 0;
    padding: 22px 24px 26px;
}
#pricing-form > .bmt-pricing-form-stack > .bmt-pricing-tab-panel {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
#pricing-form > .bmt-pricing-form-stack > .bmt-pricing-tab-panel > .bmt-pricing-form-stack {
    gap: 14px;
}
html[data-theme="dark"] #pricing-editor-panel .bmt-pricing-tabs {
    border-bottom-color: rgba(148, 163, 184, .2);
}
html[data-theme="dark"] #pricing-editor-panel .bmt-pricing-tab {
    background: #0f172a;
    border-color: #273449;
    color: #c9d5e4;
}
html[data-theme="dark"] #pricing-editor-panel .bmt-pricing-tab:hover,
html[data-theme="dark"] #pricing-editor-panel .bmt-pricing-tab.is-active {
    border-color: var(--bmt-ea-accent, #2563eb);
    color: #bfdbfe;
    background: rgba(37, 99, 235, .16);
}
@media (max-width: 720px) {
    #pricing-editor-panel .bmt-pricing-tabs {
        flex-wrap: nowrap;
        padding: 12px 16px;
    }
    #pricing-editor-panel .bmt-pricing-tab {
        flex: 0 0 auto;
    }
    #pricing-form > .bmt-pricing-form-stack {
        padding: 18px 16px 22px;
    }
}

/* Unified module tab layout alignment | Version: 5.2.9 */
body[data-workspace-key="companies"] .bmt-company-form-card,
body[data-workspace-key="drivers"] .bmt-company-form-card,
body[data-workspace-key="vehicles"] .bmt-company-form-card,
body[data-workspace-key="coupons"] #coupon-editor-panel.bmt-company-form-card,
body[data-workspace-key="settings"] .bmt-settings-panel-card {
    padding: 0 !important;
    overflow: hidden;
}
body[data-workspace-key="companies"] .bmt-company-form-card,
body[data-workspace-key="drivers"] .bmt-company-form-card,
body[data-workspace-key="vehicles"] .bmt-company-form-card,
body[data-workspace-key="coupons"] #coupon-editor-panel.bmt-company-form-card,
body[data-workspace-key="settings"] .bmt-settings-tabs-shell,
body[data-workspace-key="settings"] #settings-form.bmt-settings-form-card {
    gap: 0 !important;
}
body[data-workspace-key="companies"] .bmt-company-form-nav-shell,
body[data-workspace-key="drivers"] .bmt-company-form-nav-shell,
body[data-workspace-key="vehicles"] .bmt-company-form-nav-shell,
body[data-workspace-key="coupons"] #coupon-form > .bmt-company-tab-nav,
body[data-workspace-key="settings"] #settings-group-nav.bmt-company-tab-nav {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 14px 18px !important;
    border-bottom: 1px solid rgba(148, 163, 184, .22) !important;
    background: transparent !important;
    overflow-x: auto;
}
body[data-workspace-key="companies"] .bmt-company-form-nav-shell > .bmt-company-tab-nav,
body[data-workspace-key="drivers"] .bmt-company-form-nav-shell > .bmt-company-tab-nav,
body[data-workspace-key="vehicles"] .bmt-company-form-nav-shell > .bmt-company-tab-nav,
body[data-workspace-key="coupons"] #coupon-form > .bmt-company-tab-nav,
body[data-workspace-key="settings"] #settings-group-nav.bmt-company-tab-nav {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
}
body[data-workspace-key="companies"] .bmt-company-tab-button,
body[data-workspace-key="drivers"] .bmt-company-tab-button,
body[data-workspace-key="vehicles"] .bmt-company-tab-button,
body[data-workspace-key="coupons"] #coupon-form .bmt-company-tab-button,
body[data-workspace-key="settings"] #settings-group-nav .bmt-company-tab-button,
body[data-workspace-key="settings"] .bmt-settings-subtab-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 40px !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
    border: 1px solid var(--bmt-ea-border, #d9e2ec) !important;
    background: var(--bmt-ea-bg-primary, #fff) !important;
    color: var(--bmt-ea-text-muted, #5b6775) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    box-shadow: none !important;
    cursor: pointer;
}
body[data-workspace-key="companies"] .bmt-company-tab-button:hover,
body[data-workspace-key="drivers"] .bmt-company-tab-button:hover,
body[data-workspace-key="vehicles"] .bmt-company-tab-button:hover,
body[data-workspace-key="coupons"] #coupon-form .bmt-company-tab-button:hover,
body[data-workspace-key="settings"] #settings-group-nav .bmt-company-tab-button:hover,
body[data-workspace-key="settings"] .bmt-settings-subtab-button:hover {
    border-color: var(--bmt-ea-accent, #2563eb) !important;
    color: var(--bmt-ea-accent, #2563eb) !important;
    background: rgba(37, 99, 235, .04) !important;
}
body[data-workspace-key="companies"] .bmt-company-tab-button.is-active,
body[data-workspace-key="drivers"] .bmt-company-tab-button.is-active,
body[data-workspace-key="vehicles"] .bmt-company-tab-button.is-active,
body[data-workspace-key="coupons"] #coupon-form .bmt-company-tab-button.is-active,
body[data-workspace-key="settings"] #settings-group-nav .bmt-company-tab-button.is-active,
body[data-workspace-key="settings"] .bmt-settings-subtab-button.is-active {
    border-color: var(--bmt-ea-accent, #2563eb) !important;
    color: var(--bmt-ea-accent, #2563eb) !important;
    background: rgba(37, 99, 235, .08) !important;
}
body[data-workspace-key="companies"] .bmt-company-tab-panel,
body[data-workspace-key="drivers"] .bmt-company-tab-panel,
body[data-workspace-key="vehicles"] .bmt-company-tab-panel,
body[data-workspace-key="coupons"] #coupon-form .bmt-coupon-form-stack,
body[data-workspace-key="settings"] .bmt-settings-section-panel {
    padding: 22px 24px 26px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}
body[data-workspace-key="coupons"] #coupon-form .bmt-coupon-tab-panel {
    padding: 0 !important;
}
body[data-workspace-key="settings"] #settings-section-nav.bmt-settings-subtab-nav {
    display: flex !important;
    flex-wrap: wrap !important;
    align-self: stretch !important;
    gap: 8px !important;
    margin: 14px 18px 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    overflow-x: auto;
}
body[data-workspace-key="settings"] .bmt-settings-integration-subtab-nav {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}
body[data-workspace-key="companies"] .bmt-company-feedback,
body[data-workspace-key="drivers"] .bmt-company-feedback,
body[data-workspace-key="vehicles"] .bmt-company-feedback {
    margin: 14px 24px 0 !important;
}
body[data-workspace-key="coupons"] .bmt-coupon-editor-head {
    padding: 0 18px !important;
}
html[data-theme="dark"] body[data-workspace-key="companies"] .bmt-company-form-nav-shell,
html[data-theme="dark"] body[data-workspace-key="drivers"] .bmt-company-form-nav-shell,
html[data-theme="dark"] body[data-workspace-key="vehicles"] .bmt-company-form-nav-shell,
html[data-theme="dark"] body[data-workspace-key="coupons"] #coupon-form > .bmt-company-tab-nav,
html[data-theme="dark"] body[data-workspace-key="settings"] #settings-group-nav.bmt-company-tab-nav {
    border-bottom-color: rgba(148, 163, 184, .2) !important;
}
html[data-theme="dark"] body[data-workspace-key="companies"] .bmt-company-tab-button,
html[data-theme="dark"] body[data-workspace-key="drivers"] .bmt-company-tab-button,
html[data-theme="dark"] body[data-workspace-key="vehicles"] .bmt-company-tab-button,
html[data-theme="dark"] body[data-workspace-key="coupons"] #coupon-form .bmt-company-tab-button,
html[data-theme="dark"] body[data-workspace-key="settings"] #settings-group-nav .bmt-company-tab-button,
html[data-theme="dark"] body[data-workspace-key="settings"] .bmt-settings-subtab-button {
    background: #0f172a !important;
    border-color: #273449 !important;
    color: #c9d5e4 !important;
}
html[data-theme="dark"] body[data-workspace-key="companies"] .bmt-company-tab-button:hover,
html[data-theme="dark"] body[data-workspace-key="companies"] .bmt-company-tab-button.is-active,
html[data-theme="dark"] body[data-workspace-key="drivers"] .bmt-company-tab-button:hover,
html[data-theme="dark"] body[data-workspace-key="drivers"] .bmt-company-tab-button.is-active,
html[data-theme="dark"] body[data-workspace-key="vehicles"] .bmt-company-tab-button:hover,
html[data-theme="dark"] body[data-workspace-key="vehicles"] .bmt-company-tab-button.is-active,
html[data-theme="dark"] body[data-workspace-key="coupons"] #coupon-form .bmt-company-tab-button:hover,
html[data-theme="dark"] body[data-workspace-key="coupons"] #coupon-form .bmt-company-tab-button.is-active,
html[data-theme="dark"] body[data-workspace-key="settings"] #settings-group-nav .bmt-company-tab-button:hover,
html[data-theme="dark"] body[data-workspace-key="settings"] #settings-group-nav .bmt-company-tab-button.is-active,
html[data-theme="dark"] body[data-workspace-key="settings"] .bmt-settings-subtab-button:hover,
html[data-theme="dark"] body[data-workspace-key="settings"] .bmt-settings-subtab-button.is-active {
    border-color: var(--bmt-ea-accent, #2563eb) !important;
    color: #bfdbfe !important;
    background: rgba(37, 99, 235, .16) !important;
}
@media (max-width: 720px) {
    body[data-workspace-key="companies"] .bmt-company-form-nav-shell,
    body[data-workspace-key="drivers"] .bmt-company-form-nav-shell,
    body[data-workspace-key="vehicles"] .bmt-company-form-nav-shell,
    body[data-workspace-key="coupons"] #coupon-form > .bmt-company-tab-nav,
    body[data-workspace-key="settings"] #settings-group-nav.bmt-company-tab-nav,
    body[data-workspace-key="settings"] #settings-section-nav.bmt-settings-subtab-nav,
    body[data-workspace-key="settings"] .bmt-settings-integration-subtab-nav {
        flex-wrap: nowrap !important;
        overflow-x: auto;
    }
    body[data-workspace-key="companies"] .bmt-company-tab-button,
    body[data-workspace-key="drivers"] .bmt-company-tab-button,
    body[data-workspace-key="vehicles"] .bmt-company-tab-button,
    body[data-workspace-key="coupons"] #coupon-form .bmt-company-tab-button,
    body[data-workspace-key="settings"] #settings-group-nav .bmt-company-tab-button,
    body[data-workspace-key="settings"] .bmt-settings-subtab-button {
        flex: 0 0 auto !important;
    }
    body[data-workspace-key="companies"] .bmt-company-tab-panel,
    body[data-workspace-key="drivers"] .bmt-company-tab-panel,
    body[data-workspace-key="vehicles"] .bmt-company-tab-panel,
    body[data-workspace-key="coupons"] #coupon-form .bmt-coupon-form-stack,
    body[data-workspace-key="settings"] .bmt-settings-section-panel {
        padding: 18px 16px 22px !important;
    }
}

/* Coupons/settings tab normalization to reservation-forms standard | Version: 5.2.9 */
body[data-workspace-key="coupons"] #coupon-editor-panel.bmt-company-form-card,
body[data-workspace-key="settings"] .bmt-settings-panel-card,
body[data-workspace-key="settings"] #settings-form.bmt-settings-form-card {
    padding: 0 !important;
    gap: 0 !important;
    overflow: hidden;
}
body[data-workspace-key="coupons"] #coupon-form > .bmt-coupon-tab-nav,
body[data-workspace-key="settings"] #settings-group-nav.bmt-company-tab-nav {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 14px 18px 14px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(148, 163, 184, .22) !important;
    border-radius: 0 !important;
    background: transparent !important;
    overflow-x: auto;
}
body[data-workspace-key="coupons"] #coupon-form > .bmt-coupon-tab-nav .bmt-company-tab-button,
body[data-workspace-key="settings"] #settings-group-nav.bmt-company-tab-nav .bmt-company-tab-button,
body[data-workspace-key="settings"] #settings-section-nav.bmt-settings-subtab-nav .bmt-settings-subtab-button,
body[data-workspace-key="settings"] .bmt-settings-integration-subtab-nav .bmt-settings-subtab-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 40px !important;
    padding: 0 14px !important;
    border: 1px solid var(--bmt-ea-border, #d9e2ec) !important;
    border-radius: 999px !important;
    background: var(--bmt-ea-bg-primary, #fff) !important;
    color: var(--bmt-ea-text-muted, #5b6775) !important;
    box-shadow: none !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}
body[data-workspace-key="coupons"] #coupon-form > .bmt-coupon-tab-nav .bmt-company-tab-button:hover,
body[data-workspace-key="settings"] #settings-group-nav.bmt-company-tab-nav .bmt-company-tab-button:hover,
body[data-workspace-key="settings"] #settings-section-nav.bmt-settings-subtab-nav .bmt-settings-subtab-button:hover,
body[data-workspace-key="settings"] .bmt-settings-integration-subtab-nav .bmt-settings-subtab-button:hover {
    border-color: var(--bmt-ea-accent, #2563eb) !important;
    color: var(--bmt-ea-accent, #2563eb) !important;
    background: rgba(37, 99, 235, .04) !important;
}
body[data-workspace-key="coupons"] #coupon-form > .bmt-coupon-tab-nav .bmt-company-tab-button.is-active,
body[data-workspace-key="settings"] #settings-group-nav.bmt-company-tab-nav .bmt-company-tab-button.is-active,
body[data-workspace-key="settings"] #settings-section-nav.bmt-settings-subtab-nav .bmt-settings-subtab-button.is-active,
body[data-workspace-key="settings"] .bmt-settings-integration-subtab-nav .bmt-settings-subtab-button.is-active {
    border-color: var(--bmt-ea-accent, #2563eb) !important;
    color: var(--bmt-ea-accent, #2563eb) !important;
    background: rgba(37, 99, 235, .08) !important;
}
body[data-workspace-key="coupons"] #coupon-form > .bmt-coupon-form-stack,
body[data-workspace-key="settings"] #settings-form > .bmt-settings-form-sections {
    display: grid !important;
    gap: 18px !important;
    padding: 22px 24px 26px !important;
    margin: 0 !important;
}
body[data-workspace-key="coupons"] #coupon-form .bmt-coupon-tab-panel,
body[data-workspace-key="settings"] .bmt-settings-section-panel {
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}
body[data-workspace-key="settings"] #settings-section-nav.bmt-settings-subtab-nav {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    align-self: stretch !important;
    margin: 0 !important;
    padding: 14px 18px 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    overflow-x: auto;
}
body[data-workspace-key="settings"] .bmt-settings-integration-subtab-nav {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    overflow-x: auto;
}
body[data-workspace-key="coupons"] .bmt-coupon-editor-head {
    min-height: 0 !important;
    padding: 12px 18px 0 !important;
}
body[data-workspace-key="coupons"] .bmt-coupon-editor-head:empty,
body[data-workspace-key="coupons"] .bmt-coupon-status:empty {
    display: none !important;
}
html[data-theme="dark"] body[data-workspace-key="coupons"] #coupon-form > .bmt-coupon-tab-nav,
html[data-theme="dark"] body[data-workspace-key="settings"] #settings-group-nav.bmt-company-tab-nav {
    border-bottom-color: rgba(148, 163, 184, .2) !important;
}
html[data-theme="dark"] body[data-workspace-key="coupons"] #coupon-form > .bmt-coupon-tab-nav .bmt-company-tab-button,
html[data-theme="dark"] body[data-workspace-key="settings"] #settings-group-nav.bmt-company-tab-nav .bmt-company-tab-button,
html[data-theme="dark"] body[data-workspace-key="settings"] #settings-section-nav.bmt-settings-subtab-nav .bmt-settings-subtab-button,
html[data-theme="dark"] body[data-workspace-key="settings"] .bmt-settings-integration-subtab-nav .bmt-settings-subtab-button {
    background: #0f172a !important;
    border-color: #273449 !important;
    color: #c9d5e4 !important;
}
html[data-theme="dark"] body[data-workspace-key="coupons"] #coupon-form > .bmt-coupon-tab-nav .bmt-company-tab-button:hover,
html[data-theme="dark"] body[data-workspace-key="coupons"] #coupon-form > .bmt-coupon-tab-nav .bmt-company-tab-button.is-active,
html[data-theme="dark"] body[data-workspace-key="settings"] #settings-group-nav.bmt-company-tab-nav .bmt-company-tab-button:hover,
html[data-theme="dark"] body[data-workspace-key="settings"] #settings-group-nav.bmt-company-tab-nav .bmt-company-tab-button.is-active,
html[data-theme="dark"] body[data-workspace-key="settings"] #settings-section-nav.bmt-settings-subtab-nav .bmt-settings-subtab-button:hover,
html[data-theme="dark"] body[data-workspace-key="settings"] #settings-section-nav.bmt-settings-subtab-nav .bmt-settings-subtab-button.is-active,
html[data-theme="dark"] body[data-workspace-key="settings"] .bmt-settings-integration-subtab-nav .bmt-settings-subtab-button:hover,
html[data-theme="dark"] body[data-workspace-key="settings"] .bmt-settings-integration-subtab-nav .bmt-settings-subtab-button.is-active {
    border-color: var(--bmt-ea-accent, #2563eb) !important;
    color: #bfdbfe !important;
    background: rgba(37, 99, 235, .16) !important;
}
@media (max-width: 720px) {
    body[data-workspace-key="coupons"] #coupon-form > .bmt-coupon-tab-nav,
    body[data-workspace-key="settings"] #settings-group-nav.bmt-company-tab-nav,
    body[data-workspace-key="settings"] #settings-section-nav.bmt-settings-subtab-nav,
    body[data-workspace-key="settings"] .bmt-settings-integration-subtab-nav {
        flex-wrap: nowrap !important;
        overflow-x: auto;
    }
    body[data-workspace-key="coupons"] #coupon-form > .bmt-coupon-tab-nav .bmt-company-tab-button,
    body[data-workspace-key="settings"] #settings-group-nav.bmt-company-tab-nav .bmt-company-tab-button,
    body[data-workspace-key="settings"] #settings-section-nav.bmt-settings-subtab-nav .bmt-settings-subtab-button,
    body[data-workspace-key="settings"] .bmt-settings-integration-subtab-nav .bmt-settings-subtab-button {
        flex: 0 0 auto !important;
    }
    body[data-workspace-key="coupons"] #coupon-form > .bmt-coupon-form-stack,
    body[data-workspace-key="settings"] #settings-form > .bmt-settings-form-sections {
        padding: 18px 16px 22px !important;
    }
}

/* Coupons tabs exact reservation-forms alignment | Version: 5.2.9 */
body[data-workspace-key="coupons"] #coupon-editor-panel.bmt-company-form-card {
    padding: 0 !important;
    gap: 0 !important;
    overflow: hidden !important;
}
body[data-workspace-key="coupons"] .bmt-coupon-editor-head:has(.bmt-coupon-status:empty),
body[data-workspace-key="coupons"] .bmt-coupon-status:empty {
    display: none !important;
}
body[data-workspace-key="coupons"] #coupon-form > .bmt-coupon-nav-shell {
    padding: 14px 18px 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(148, 163, 184, .22) !important;
    border-radius: 0 !important;
    background: transparent !important;
}
body[data-workspace-key="coupons"] #coupon-form > .bmt-coupon-nav-shell > .bmt-coupon-tab-nav {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 0 0 14px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    overflow-x: auto !important;
}
body[data-workspace-key="coupons"] #coupon-form > .bmt-coupon-nav-shell > .bmt-coupon-tab-nav .bmt-company-tab-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 40px !important;
    padding: 0 14px !important;
    border: 1px solid var(--bmt-ea-border, #d9e2ec) !important;
    border-radius: 999px !important;
    background: var(--bmt-ea-bg-primary, #fff) !important;
    color: var(--bmt-ea-text-muted, #5b6775) !important;
    box-shadow: none !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}
body[data-workspace-key="coupons"] #coupon-form > .bmt-coupon-nav-shell > .bmt-coupon-tab-nav .bmt-company-tab-button:hover {
    border-color: var(--bmt-ea-accent, #2563eb) !important;
    color: var(--bmt-ea-accent, #2563eb) !important;
    background: rgba(37, 99, 235, .04) !important;
}
body[data-workspace-key="coupons"] #coupon-form > .bmt-coupon-nav-shell > .bmt-coupon-tab-nav .bmt-company-tab-button.is-active {
    border-color: var(--bmt-ea-accent, #2563eb) !important;
    color: var(--bmt-ea-accent, #2563eb) !important;
    background: rgba(37, 99, 235, .08) !important;
}
body[data-workspace-key="coupons"] #coupon-form > .bmt-coupon-form-stack {
    display: block !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}
body[data-workspace-key="coupons"] #coupon-form .bmt-coupon-tab-panel {
    padding: 22px 24px 26px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}
body[data-workspace-key="coupons"] #coupon-form .bmt-coupon-tab-panel[hidden] {
    display: none !important;
}
html[data-theme="dark"] body[data-workspace-key="coupons"] #coupon-form > .bmt-coupon-nav-shell {
    border-bottom-color: rgba(148, 163, 184, .2) !important;
}
html[data-theme="dark"] body[data-workspace-key="coupons"] #coupon-form > .bmt-coupon-nav-shell > .bmt-coupon-tab-nav .bmt-company-tab-button {
    background: #0f172a !important;
    border-color: #273449 !important;
    color: #c9d5e4 !important;
}
html[data-theme="dark"] body[data-workspace-key="coupons"] #coupon-form > .bmt-coupon-nav-shell > .bmt-coupon-tab-nav .bmt-company-tab-button:hover,
html[data-theme="dark"] body[data-workspace-key="coupons"] #coupon-form > .bmt-coupon-nav-shell > .bmt-coupon-tab-nav .bmt-company-tab-button.is-active {
    border-color: var(--bmt-ea-accent, #2563eb) !important;
    color: #bfdbfe !important;
    background: rgba(37, 99, 235, .16) !important;
}
@media (max-width: 720px) {
    body[data-workspace-key="coupons"] #coupon-form > .bmt-coupon-nav-shell {
        padding: 14px 16px 0 !important;
    }
    body[data-workspace-key="coupons"] #coupon-form > .bmt-coupon-nav-shell > .bmt-coupon-tab-nav {
        flex-wrap: nowrap !important;
    }
    body[data-workspace-key="coupons"] #coupon-form > .bmt-coupon-nav-shell > .bmt-coupon-tab-nav .bmt-company-tab-button {
        flex: 0 0 auto !important;
    }
    body[data-workspace-key="coupons"] #coupon-form .bmt-coupon-tab-panel {
        padding: 18px 16px 22px !important;
    }
}

/* Settings nested tab separators to reservation-forms standard | Version: 5.2.9 */
body[data-workspace-key="settings"] #settings-form.bmt-settings-form-card,
body[data-workspace-key="settings"] .bmt-settings-panel-card {
    overflow: hidden;
}
body[data-workspace-key="settings"] #settings-group-nav.bmt-company-tab-nav,
body[data-workspace-key="settings"] #settings-section-nav.bmt-settings-subtab-nav,
body[data-workspace-key="settings"] .bmt-settings-integration-subtab-nav {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    align-self: stretch !important;
    gap: 8px !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 14px 18px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(148, 163, 184, .22) !important;
    border-radius: 0 !important;
    background: transparent !important;
    overflow-x: auto;
}
body[data-workspace-key="settings"] #settings-section-nav.bmt-settings-subtab-nav[hidden],
body[data-workspace-key="settings"] .bmt-settings-integration-subtab-nav[hidden] {
    display: none !important;
}
body[data-workspace-key="settings"] #settings-section-nav.bmt-settings-subtab-nav {
    margin-top: 0 !important;
}
body[data-workspace-key="settings"] .bmt-settings-integration-subtab-nav {
    margin-bottom: 18px !important;
}
body[data-workspace-key="settings"] #settings-group-nav .bmt-company-tab-button,
body[data-workspace-key="settings"] #settings-section-nav .bmt-settings-subtab-button,
body[data-workspace-key="settings"] .bmt-settings-integration-subtab-nav .bmt-settings-subtab-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 40px !important;
    padding: 0 14px !important;
    border: 1px solid var(--bmt-ea-border, #d9e2ec) !important;
    border-radius: 999px !important;
    background: var(--bmt-ea-bg-primary, #fff) !important;
    color: var(--bmt-ea-text-muted, #5b6775) !important;
    box-shadow: none !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}
body[data-workspace-key="settings"] #settings-group-nav .bmt-company-tab-button:hover,
body[data-workspace-key="settings"] #settings-section-nav .bmt-settings-subtab-button:hover,
body[data-workspace-key="settings"] .bmt-settings-integration-subtab-nav .bmt-settings-subtab-button:hover {
    border-color: var(--bmt-ea-accent, #2563eb) !important;
    color: var(--bmt-ea-accent, #2563eb) !important;
    background: rgba(37, 99, 235, .04) !important;
}
body[data-workspace-key="settings"] #settings-group-nav .bmt-company-tab-button.is-active,
body[data-workspace-key="settings"] #settings-section-nav .bmt-settings-subtab-button.is-active,
body[data-workspace-key="settings"] .bmt-settings-integration-subtab-nav .bmt-settings-subtab-button.is-active {
    border-color: var(--bmt-ea-accent, #2563eb) !important;
    color: var(--bmt-ea-accent, #2563eb) !important;
    background: rgba(37, 99, 235, .08) !important;
}
html[data-theme="dark"] body[data-workspace-key="settings"] #settings-group-nav.bmt-company-tab-nav,
html[data-theme="dark"] body[data-workspace-key="settings"] #settings-section-nav.bmt-settings-subtab-nav,
html[data-theme="dark"] body[data-workspace-key="settings"] .bmt-settings-integration-subtab-nav {
    border-bottom-color: rgba(148, 163, 184, .2) !important;
}
html[data-theme="dark"] body[data-workspace-key="settings"] #settings-group-nav .bmt-company-tab-button,
html[data-theme="dark"] body[data-workspace-key="settings"] #settings-section-nav .bmt-settings-subtab-button,
html[data-theme="dark"] body[data-workspace-key="settings"] .bmt-settings-integration-subtab-nav .bmt-settings-subtab-button {
    background: #0f172a !important;
    border-color: #273449 !important;
    color: #c9d5e4 !important;
}
html[data-theme="dark"] body[data-workspace-key="settings"] #settings-group-nav .bmt-company-tab-button:hover,
html[data-theme="dark"] body[data-workspace-key="settings"] #settings-group-nav .bmt-company-tab-button.is-active,
html[data-theme="dark"] body[data-workspace-key="settings"] #settings-section-nav .bmt-settings-subtab-button:hover,
html[data-theme="dark"] body[data-workspace-key="settings"] #settings-section-nav .bmt-settings-subtab-button.is-active,
html[data-theme="dark"] body[data-workspace-key="settings"] .bmt-settings-integration-subtab-nav .bmt-settings-subtab-button:hover,
html[data-theme="dark"] body[data-workspace-key="settings"] .bmt-settings-integration-subtab-nav .bmt-settings-subtab-button.is-active {
    border-color: var(--bmt-ea-accent, #2563eb) !important;
    color: #bfdbfe !important;
    background: rgba(37, 99, 235, .16) !important;
}
@media (max-width: 720px) {
    body[data-workspace-key="settings"] #settings-group-nav.bmt-company-tab-nav,
    body[data-workspace-key="settings"] #settings-section-nav.bmt-settings-subtab-nav,
    body[data-workspace-key="settings"] .bmt-settings-integration-subtab-nav {
        flex-wrap: nowrap !important;
        padding: 14px 16px !important;
    }
    body[data-workspace-key="settings"] #settings-group-nav .bmt-company-tab-button,
    body[data-workspace-key="settings"] #settings-section-nav .bmt-settings-subtab-button,
    body[data-workspace-key="settings"] .bmt-settings-integration-subtab-nav .bmt-settings-subtab-button {
        flex: 0 0 auto !important;
    }
}

/* Accounting payout close workflow. */
.bmt-accounting-receipt-actions{
	display:flex;
	align-items:center;
	gap:8px;
	flex-wrap:wrap;
}
.bmt-accounting-receipt-link{
	display:inline-flex;
	align-items:center;
	min-height:28px;
	padding:0 9px;
	border-radius:8px;
	background:rgba(14,165,233,.12);
	color:#0369a1;
	font-size:12px;
	font-weight:800;
	text-decoration:none;
}
.bmt-accounting-recipient-table th,
.bmt-accounting-recipient-table td{
	vertical-align:middle;
}
.bmt-company-table th.bmt-accounting-money,
.bmt-company-table td.bmt-accounting-money{
	text-align:right;
	white-space:nowrap;
	font-variant-numeric:tabular-nums;
}
.bmt-company-table th.bmt-accounting-money{
	font-weight:800;
}
html[data-theme="dark"] .bmt-accounting-receipt-link{
	background:rgba(56,189,248,.18);
	color:#7dd3fc;
}


/* Accounting period header cleanup. */
.bmt-accounting-period-card>summary{
	grid-template-columns:max-content minmax(0,1fr) auto;
	gap:12px;
}
.bmt-accounting-period-main{
	width:max-content;
	min-width:0;
	flex:0 0 auto;
	gap:7px;
}
.bmt-accounting-period-main strong{
	font-size:15px;
	font-weight:850;
	white-space:nowrap;
}
.bmt-accounting-period-lock,
.bmt-accounting-period-lock.is-open,
.bmt-accounting-period-lock.is-locked{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	width:auto;
	min-width:0;
	min-height:0;
	padding:0;
	border-radius:0;
	background:transparent;
	color:inherit;
	font-size:16px;
	font-weight:400;
	line-height:1;
}
.bmt-accounting-period-metrics{
	grid-template-columns:repeat(5,minmax(104px,1fr));
}
@media(max-width:860px){
	.bmt-accounting-period-card>summary{
		grid-template-columns:1fr;
	}
	.bmt-accounting-period-main{
		width:auto;
	}
}
/* 5.1.3-4: customer record KPI cards should fill the row side-by-side. */
#customer-detail-kpis.bmt-booking-kpi-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    grid-auto-flow:row;
    gap:16px;
    width:100%;
    overflow:visible;
    padding-bottom:0;
}
#customer-detail-kpis.bmt-booking-kpi-grid .bmt-company-metric-card{
    grid-column:auto;
    width:100%;
    min-width:0;
}
@media(max-width:720px){
    #customer-detail-kpis.bmt-booking-kpi-grid{
        grid-template-columns:1fr;
    }
}

/* Accounting period ride-view action loading state. */
.bmt-accounting-mini-button.is-loading{
	gap:7px;
	pointer-events:none;
	opacity:.88;
}
.bmt-accounting-button-spinner{
	display:inline-block;
	width:12px;
	height:12px;
	border:2px solid currentColor;
	border-right-color:transparent;
	border-radius:999px;
	animation:bmt-accounting-button-spin .72s linear infinite;
	flex:0 0 auto;
}
@keyframes bmt-accounting-button-spin{
	to{transform:rotate(360deg);}
}

/* 5.1.3-9: accounting ride results panel and lock error state. */
.bmt-accounting-results-panel[hidden]{
	display:none!important;
}
.bmt-accounting-results-panel .bmt-accounting-filter-grid{
	margin-bottom:16px;
}
.bmt-accounting-results-panel{
	scroll-margin-top:84px;
}
.bmt-accounting-lock-copy p{
	margin:0 0 14px;
	font-size:13px;
	color:var(--bmt-ea-text-muted,#64748b);
}
.bmt-accounting-lock-copy ul{
	margin:0 0 14px 18px;
	padding:0;
	display:grid;
	gap:6px;
	font-size:13px;
	line-height:1.45;
	color:var(--bmt-ea-text-muted,#64748b);
}
.bmt-accounting-lock-copy.is-error p,
.bmt-accounting-lock-copy.is-error ul{
	color:#b91c1c;
}
.bmt-accounting-lock-actions{
	display:flex;
	justify-content:flex-end;
	gap:8px;
	margin-top:14px;
}
.bmt-accounting-lock-actions[hidden]{
	display:none!important;
}

/* Gallery workspace | 5.1.3-17 */
.bmt-gallery-workspace .bmt-gallery-filter-grid{
    grid-template-columns:minmax(260px,1fr) minmax(180px,240px) auto;
}
.bmt-gallery-kpi-grid{
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
}
.bmt-gallery-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:16px;
}
.bmt-gallery-card{
    display:flex;
    flex-direction:column;
    min-width:0;
    overflow:hidden;
    border:1px solid var(--bmt-border, #dfe5ee);
    border-radius:18px;
    background:var(--bmt-surface, #fff);
    box-shadow:0 10px 28px rgba(15,23,42,.06);
}
.bmt-gallery-thumb{
    display:flex;
    align-items:center;
    justify-content:center;
    height:170px;
    padding:12px;
    background:linear-gradient(180deg,rgba(241,245,249,.94),rgba(248,250,252,.96));
    color:var(--bmt-muted, #64748b);
    text-decoration:none;
}
.bmt-gallery-thumb img{
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
    border:0;
    border-radius:12px;
    background:transparent;
}
.bmt-gallery-card-body{
    display:flex;
    flex-direction:column;
    gap:8px;
    padding:14px;
    min-width:0;
}
.bmt-gallery-card-head{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:flex-start;
    gap:6px;
    min-width:0;
}
.bmt-gallery-card-head strong{
    width:100%;
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:var(--bmt-text, #111827);
}
.bmt-gallery-meta,
.bmt-gallery-file{
    color:var(--bmt-muted, #64748b);
    font-size:13px;
    line-height:1.4;
}
.bmt-gallery-file{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    min-width:0;
}
.bmt-gallery-file > small,
.bmt-gallery-file{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.bmt-gallery-file > small{
    flex:0 0 auto;
    color:var(--bmt-muted-strong, #475569);
}
.bmt-gallery-actions{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:8px;
    padding-top:4px;
}
.bmt-gallery-delete-button{
    color:#b42318;
}
.bmt-gallery-delete-button.is-loading{
    display:inline-flex;
    align-items:center;
    gap:7px;
    opacity:.78;
    pointer-events:none;
}
.bmt-inline-spinner{
    width:14px;
    height:14px;
    border:2px solid currentColor;
    border-right-color:transparent;
    border-radius:999px;
    display:inline-block;
    animation:bmtInlineSpin .72s linear infinite;
}
@keyframes bmtInlineSpin{to{transform:rotate(360deg)}}
@media (max-width: 760px){
    .bmt-gallery-workspace .bmt-gallery-filter-grid{
        grid-template-columns:1fr;
    }
    .bmt-gallery-grid{
        grid-template-columns:1fr;
    }
}

/* Form footer alignment fix | 5.1.3-16 */
body[data-workspace-key="companies"] .bmt-company-form-actions,
body[data-workspace-key="vehicles"] .bmt-company-form-actions,
body[data-workspace-key="drivers"] .bmt-company-form-actions{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:10px 12px;
}
body[data-workspace-key="companies"] .bmt-company-form-actions .bmt-company-save-state,
body[data-workspace-key="vehicles"] .bmt-company-form-actions .bmt-company-save-state,
body[data-workspace-key="drivers"] .bmt-company-form-actions .bmt-company-save-state{
    margin-left:auto;
    text-align:right;
    min-width:0;
}
body[data-workspace-key="companies"] .bmt-company-form-actions .bmt-company-save-state:empty,
body[data-workspace-key="vehicles"] .bmt-company-form-actions .bmt-company-save-state:empty,
body[data-workspace-key="drivers"] .bmt-company-form-actions .bmt-company-save-state:empty{
    width:0;
    min-width:0;
}
body[data-workspace-key="companies"] .bmt-company-form-actions .bmt-ea-button-primary:last-child,
body[data-workspace-key="vehicles"] .bmt-company-form-actions .bmt-ea-button-primary:last-child,
body[data-workspace-key="drivers"] .bmt-company-form-actions .bmt-ea-button-primary:last-child{
    margin-left:0;
    flex:0 0 auto;
}
@media (max-width:780px){
    body[data-workspace-key="companies"] .bmt-company-form-actions,
    body[data-workspace-key="vehicles"] .bmt-company-form-actions,
    body[data-workspace-key="drivers"] .bmt-company-form-actions{
        display:grid;
        grid-template-columns:1fr;
        justify-content:stretch;
    }
    body[data-workspace-key="companies"] .bmt-company-form-actions .bmt-company-save-state,
    body[data-workspace-key="vehicles"] .bmt-company-form-actions .bmt-company-save-state,
    body[data-workspace-key="drivers"] .bmt-company-form-actions .bmt-company-save-state{
        margin-left:0;
        text-align:left;
        width:auto;
    }
    body[data-workspace-key="companies"] .bmt-company-form-actions .bmt-ea-button,
    body[data-workspace-key="vehicles"] .bmt-company-form-actions .bmt-ea-button,
    body[data-workspace-key="drivers"] .bmt-company-form-actions .bmt-ea-button{
        width:100%;
    }
}


/* Table action column border alignment | 5.1.8-18 */
.bmt-company-table tbody td[class*="actions"],
.bmt-ea-table tbody td[class*="actions"]{
    display:table-cell !important;
    vertical-align:middle !important;
    text-align:center !important;
    white-space:nowrap;
    border-bottom:1px solid var(--bmt-ea-border) !important;
}
.bmt-company-table thead th[class*="actions"],
.bmt-ea-table thead th[class*="actions"]{
    text-align:center !important;
}
.bmt-company-table tbody td[class*="actions"] > .bmt-company-table-actions,
.bmt-company-table tbody td[class*="actions"] > .bmt-customer-table-actions,
.bmt-company-table tbody td[class*="actions"] > .bmt-vehicle-table-actions,
.bmt-company-table tbody td[class*="actions"] > .bmt-pricing-actions-inline,
.bmt-company-table tbody td[class*="actions"] > .bmt-accounting-actions,
.bmt-ea-table tbody td[class*="actions"] > .bmt-company-table-actions,
.bmt-ea-table tbody td[class*="actions"] > .bmt-customer-table-actions,
.bmt-ea-table tbody td[class*="actions"] > .bmt-vehicle-table-actions{
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    gap:8px;
    width:auto;
    min-height:30px;
    vertical-align:middle;
}
.bmt-company-table tbody td.bmt-company-table-actions > * + *,
.bmt-company-table tbody td.bmt-customer-table-actions > * + *,
.bmt-company-table tbody td.bmt-vehicle-table-actions > *,
.bmt-ea-table tbody td.bmt-company-table-actions > * + *,
.bmt-ea-table tbody td.bmt-customer-table-actions > * + *,
.bmt-ea-table tbody td.bmt-vehicle-table-actions > * + *{
    margin-left:8px;
}
.bmt-company-table tbody td[class*="actions"] .bmt-company-icon-button,
.bmt-company-table tbody td[class*="actions"] .bmt-company-row-action,
.bmt-company-table tbody td[class*="actions"] .bmt-table-icon-button,
.bmt-company-table tbody td[class*="actions"] .bmt-booking-table-icon,
.bmt-ea-table tbody td[class*="actions"] .bmt-company-icon-button,
.bmt-ea-table tbody td[class*="actions"] .bmt-company-row-action,
.bmt-ea-table tbody td[class*="actions"] .bmt-table-icon-button,
.bmt-ea-table tbody td[class*="actions"] .bmt-booking-table-icon{
    margin-top:0 !important;
    margin-bottom:0 !important;
    vertical-align:middle;
}

/* Form action footer vertical/center alignment | 5.1.8-19 */
body[data-workspace-key="companies"] .bmt-company-form-actions,
body[data-workspace-key="vehicles"] .bmt-company-form-actions,
body[data-workspace-key="drivers"] .bmt-company-form-actions{
    position:relative;
    min-height:144px;
    padding-top:32px !important;
    padding-bottom:32px !important;
    box-sizing:border-box;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:12px;
}
body[data-workspace-key="companies"] .bmt-company-form-actions > .bmt-ea-button:first-child,
body[data-workspace-key="vehicles"] .bmt-company-form-actions > .bmt-ea-button:first-child,
body[data-workspace-key="drivers"] .bmt-company-form-actions > .bmt-ea-button:first-child{
    margin-right:0 !important;
    flex:0 0 auto;
}
body[data-workspace-key="companies"] .bmt-company-form-actions > [data-company-back],
body[data-workspace-key="vehicles"] .bmt-company-form-actions > [data-vehicle-back],
body[data-workspace-key="drivers"] .bmt-company-form-actions > [data-driver-back]{
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
    margin:0 !important;
    flex:0 0 auto;
}
body[data-workspace-key="companies"] .bmt-company-form-actions > .bmt-company-save-state,
body[data-workspace-key="vehicles"] .bmt-company-form-actions > .bmt-company-save-state,
body[data-workspace-key="drivers"] .bmt-company-form-actions > .bmt-company-save-state{
    margin-left:auto !important;
    margin-right:12px;
    text-align:right;
    min-width:0;
    max-width:min(360px,32vw);
}
body[data-workspace-key="companies"] .bmt-company-form-actions > .bmt-company-save-state:empty,
body[data-workspace-key="vehicles"] .bmt-company-form-actions > .bmt-company-save-state:empty,
body[data-workspace-key="drivers"] .bmt-company-form-actions > .bmt-company-save-state:empty{
    display:none;
}
body[data-workspace-key="companies"] .bmt-company-form-actions > .bmt-ea-button-primary:last-child,
body[data-workspace-key="vehicles"] .bmt-company-form-actions > .bmt-ea-button-primary:last-child,
body[data-workspace-key="drivers"] .bmt-company-form-actions > .bmt-ea-button-primary:last-child{
    margin-left:auto !important;
    flex:0 0 auto;
}
body[data-workspace-key="settings"] .bmt-settings-save-actions{
    min-height:144px !important;
    padding-top:32px !important;
    padding-bottom:32px !important;
    box-sizing:border-box;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
}
body[data-workspace-key="settings"] .bmt-settings-save-actions .bmt-ea-action-list{
    align-items:center !important;
    justify-content:flex-end !important;
}
body[data-workspace-key="settings"] .bmt-settings-save-feedback{
    display:grid !important;
    gap:10px !important;
    flex:1 1 520px !important;
    min-width:0 !important;
    margin-right:auto !important;
}
body[data-workspace-key="settings"] .bmt-settings-save-feedback .bmt-settings-validation-summary{
    max-width:760px !important;
}
body[data-workspace-key="settings"] #settings-save-state:empty{
    display:none !important;
}
@media (max-width:780px){
    body[data-workspace-key="companies"] .bmt-company-form-actions,
    body[data-workspace-key="vehicles"] .bmt-company-form-actions,
    body[data-workspace-key="drivers"] .bmt-company-form-actions{
        position:static;
        min-height:0;
        padding-top:18px !important;
        padding-bottom:18px !important;
        display:grid !important;
        grid-template-columns:1fr;
        justify-content:stretch !important;
        align-items:stretch !important;
    }
    body[data-workspace-key="companies"] .bmt-company-form-actions > [data-company-back],
    body[data-workspace-key="vehicles"] .bmt-company-form-actions > [data-vehicle-back],
    body[data-workspace-key="drivers"] .bmt-company-form-actions > [data-driver-back]{
        position:static;
        transform:none;
    }
    body[data-workspace-key="companies"] .bmt-company-form-actions > .bmt-company-save-state,
    body[data-workspace-key="vehicles"] .bmt-company-form-actions > .bmt-company-save-state,
    body[data-workspace-key="drivers"] .bmt-company-form-actions > .bmt-company-save-state{
        margin-left:0 !important;
        margin-right:0;
        max-width:none;
        text-align:left;
    }
    body[data-workspace-key="companies"] .bmt-company-form-actions > .bmt-ea-button-primary:last-child,
    body[data-workspace-key="vehicles"] .bmt-company-form-actions > .bmt-ea-button-primary:last-child,
    body[data-workspace-key="drivers"] .bmt-company-form-actions > .bmt-ea-button-primary:last-child{
        margin-left:0 !important;
    }
    body[data-workspace-key="settings"] .bmt-settings-save-actions{
        min-height:0 !important;
        padding-top:18px !important;
        padding-bottom:18px !important;
        justify-content:stretch !important;
    }
}

/* Form action footer compact spacing correction | 5.1.8-20 */
body[data-workspace-key="companies"] .bmt-company-form-actions,
body[data-workspace-key="vehicles"] .bmt-company-form-actions,
body[data-workspace-key="drivers"] .bmt-company-form-actions{
    position:relative !important;
    min-height:112px !important;
    padding:16px 56px !important;
    box-sizing:border-box !important;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:12px !important;
}
body[data-workspace-key="companies"] .bmt-company-form-actions > .bmt-ea-button:first-child,
body[data-workspace-key="vehicles"] .bmt-company-form-actions > .bmt-ea-button:first-child,
body[data-workspace-key="drivers"] .bmt-company-form-actions > .bmt-ea-button:first-child{
    margin-left:0 !important;
    margin-right:0 !important;
    flex:0 0 auto !important;
}
body[data-workspace-key="companies"] .bmt-company-form-actions > [data-company-back],
body[data-workspace-key="vehicles"] .bmt-company-form-actions > [data-vehicle-back],
body[data-workspace-key="drivers"] .bmt-company-form-actions > [data-driver-back]{
    position:absolute !important;
    left:50% !important;
    top:50% !important;
    transform:translate(-50%,-50%) !important;
    margin:0 !important;
    flex:0 0 auto !important;
}
body[data-workspace-key="companies"] .bmt-company-form-actions > .bmt-company-save-state,
body[data-workspace-key="vehicles"] .bmt-company-form-actions > .bmt-company-save-state,
body[data-workspace-key="drivers"] .bmt-company-form-actions > .bmt-company-save-state{
    margin-left:auto !important;
    margin-right:12px !important;
    max-width:min(360px,32vw) !important;
    min-width:0 !important;
    text-align:right !important;
}
body[data-workspace-key="companies"] .bmt-company-form-actions > .bmt-company-save-state:empty,
body[data-workspace-key="vehicles"] .bmt-company-form-actions > .bmt-company-save-state:empty,
body[data-workspace-key="drivers"] .bmt-company-form-actions > .bmt-company-save-state:empty{
    display:none !important;
}
body[data-workspace-key="companies"] .bmt-company-form-actions > .bmt-ea-button-primary:last-child,
body[data-workspace-key="vehicles"] .bmt-company-form-actions > .bmt-ea-button-primary:last-child,
body[data-workspace-key="drivers"] .bmt-company-form-actions > .bmt-ea-button-primary:last-child{
    margin-left:auto !important;
    margin-right:0 !important;
    flex:0 0 auto !important;
}
body[data-workspace-key="settings"] .bmt-settings-save-actions{
    min-height:112px !important;
    padding:16px 56px !important;
    box-sizing:border-box !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
}
body[data-workspace-key="settings"] .bmt-settings-save-actions .bmt-ea-action-list{
    align-items:center !important;
    justify-content:flex-end !important;
}
body[data-workspace-key="settings"] .bmt-settings-save-feedback{
    display:grid !important;
    gap:10px !important;
    flex:1 1 520px !important;
    min-width:0 !important;
    margin-right:auto !important;
}
body[data-workspace-key="settings"] .bmt-settings-save-feedback .bmt-settings-validation-summary{
    max-width:760px !important;
}
body[data-workspace-key="settings"] #settings-save-state:empty{
    display:none !important;
}
@media (max-width:780px){
    body[data-workspace-key="companies"] .bmt-company-form-actions,
    body[data-workspace-key="vehicles"] .bmt-company-form-actions,
    body[data-workspace-key="drivers"] .bmt-company-form-actions{
        position:static !important;
        min-height:0 !important;
        padding:16px !important;
        display:grid !important;
        grid-template-columns:1fr !important;
        justify-content:stretch !important;
        align-items:stretch !important;
    }
    body[data-workspace-key="companies"] .bmt-company-form-actions > [data-company-back],
    body[data-workspace-key="vehicles"] .bmt-company-form-actions > [data-vehicle-back],
    body[data-workspace-key="drivers"] .bmt-company-form-actions > [data-driver-back]{
        position:static !important;
        transform:none !important;
    }
    body[data-workspace-key="companies"] .bmt-company-form-actions > .bmt-company-save-state,
    body[data-workspace-key="vehicles"] .bmt-company-form-actions > .bmt-company-save-state,
    body[data-workspace-key="drivers"] .bmt-company-form-actions > .bmt-company-save-state{
        margin-left:0 !important;
        margin-right:0 !important;
        max-width:none !important;
        text-align:left !important;
    }
    body[data-workspace-key="companies"] .bmt-company-form-actions > .bmt-ea-button-primary:last-child,
    body[data-workspace-key="vehicles"] .bmt-company-form-actions > .bmt-ea-button-primary:last-child,
    body[data-workspace-key="drivers"] .bmt-company-form-actions > .bmt-ea-button-primary:last-child{
        margin-left:0 !important;
    }
    body[data-workspace-key="settings"] .bmt-settings-save-actions{
        min-height:0 !important;
        padding:16px !important;
        justify-content:stretch !important;
    }
}

/* Documents preview modal | 5.2.4 */
.bmt-documents-preview-modal[hidden]{display:none;}
.bmt-documents-preview-modal{position:fixed;inset:0;z-index:1400;display:flex;align-items:center;justify-content:center;padding:24px;}
.bmt-documents-preview-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.58);backdrop-filter:blur(4px);}
.bmt-documents-preview-panel{position:relative;display:flex;flex-direction:column;width:min(1080px,96vw);max-height:92vh;background:var(--bmt-ea-card,#fff);border:1px solid var(--bmt-ea-border,#e2e8f0);border-radius:22px;box-shadow:0 28px 84px rgba(15,23,42,.28);overflow:hidden;}
.bmt-documents-preview-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:20px 22px 16px;border-bottom:1px solid var(--bmt-ea-border,#e2e8f0);}
.bmt-documents-preview-header h2{margin:4px 0 0;font-size:20px;line-height:1.25;}
.bmt-documents-preview-eyebrow{display:block;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--bmt-ea-muted,#64748b);}
.bmt-documents-preview-body{display:flex;align-items:center;justify-content:center;min-height:420px;padding:16px;background:rgba(148,163,184,.08);overflow:auto;}
.bmt-documents-preview-image{display:block;max-width:100%;max-height:70vh;object-fit:contain;border-radius:14px;background:#fff;box-shadow:0 10px 30px rgba(15,23,42,.12);}
.bmt-documents-preview-frame{display:block;width:100%;height:70vh;border:0;border-radius:14px;background:#fff;}
.bmt-documents-preview-fallback{display:flex;flex-direction:column;align-items:center;gap:8px;max-width:520px;text-align:center;color:var(--bmt-ea-muted,#64748b);}
.bmt-documents-preview-fallback strong{color:var(--bmt-ea-text,#0f172a);font-size:16px;}
.bmt-documents-preview-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 22px;border-top:1px solid var(--bmt-ea-border,#e2e8f0);background:var(--bmt-ea-card,#fff);}
.bmt-documents-preview-action-group{display:flex;align-items:center;flex-wrap:wrap;gap:10px;}
.bmt-ea-button-danger{border-color:rgba(185,28,28,.32)!important;color:#b91c1c!important;background:#fff!important;}
.bmt-ea-button-danger:hover{background:#fef2f2!important;border-color:rgba(185,28,28,.55)!important;}
.bmt-documents-preview-open{overflow:hidden;}
@media(max-width:780px){.bmt-documents-preview-modal{padding:10px;}.bmt-documents-preview-panel{max-height:96vh;border-radius:18px;}.bmt-documents-preview-body{min-height:320px;padding:10px;}.bmt-documents-preview-frame{height:68vh;}.bmt-documents-preview-footer{align-items:stretch;flex-direction:column-reverse;}.bmt-documents-preview-action-group{flex-direction:column;width:100%;}.bmt-documents-preview-footer .bmt-ea-button{justify-content:center;width:100%;}}

/* Booking review reminder count | 5.2.4 */
.bmt-booking-review-reminder-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: rgba(255,255,255,.72);
	border: 1px solid rgba(37,99,235,.24);
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}


/* Booking review rating column | 5.2.4 */
body[data-workspace-key="bookings"] .bmt-booking-review-cell{
	text-align:center;
	vertical-align:middle;
}
body[data-workspace-key="bookings"] .bmt-booking-review-rating{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	min-width:118px;
	color:#f59e0b;
	font-size:24px;
	font-weight:900;
	letter-spacing:1px;
	line-height:1;
	white-space:nowrap;
}
@media(max-width:780px){body[data-workspace-key="bookings"] .bmt-booking-review-rating{font-size:22px;min-width:108px;}}

/* Driver quality tab | 5.2.4 */
body[data-workspace-key="drivers"] .bmt-driver-quality-table td,
body[data-workspace-key="drivers"] .bmt-driver-quality-table th{white-space:nowrap;}
body[data-workspace-key="drivers"] .bmt-driver-quality-stars{display:inline-block;color:#f59e0b;font-size:22px;font-weight:900;letter-spacing:1px;line-height:1;}
body[data-workspace-key="drivers"] .bmt-driver-quality-empty{margin-top:14px;}
@media(max-width:780px){body[data-workspace-key="drivers"] .bmt-driver-quality-table td,body[data-workspace-key="drivers"] .bmt-driver-quality-table th{white-space:normal;}body[data-workspace-key="drivers"] .bmt-driver-quality-stars{font-size:20px;}}

/* Documents preview action button */
.bmt-documents-preview-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:34px;padding:7px 12px;border-color:rgba(37,99,235,.32);color:var(--bmt-ea-primary,#2563eb);font-weight:700;line-height:1;white-space:nowrap;}
.bmt-documents-preview-button:hover{border-color:var(--bmt-ea-primary,#2563eb);background:rgba(37,99,235,.08);}
.bmt-documents-preview-button .bmt-company-icon-button-glyph{width:18px;height:18px;}
.bmt-documents-no-file{display:inline-flex;align-items:center;min-height:34px;padding:0 8px;color:var(--bmt-ea-muted,#64748b);font-size:12px;font-weight:600;}
@media(max-width:780px){.bmt-documents-preview-button span:last-child{display:none;}.bmt-documents-preview-button{width:36px;min-width:36px;padding:7px;}}
/* Pricing Rules continue-processing plain checkbox | Version: 5.2.9 */
#pricing-editor-panel .bmt-pricing-check-card.bmt-pricing-check-card-plain{
    border:0!important;
    border-radius:0!important;
    padding:0!important;
    background:transparent!important;
    box-shadow:none!important;
}
#pricing-editor-panel .bmt-pricing-check-card.bmt-pricing-check-card-plain:hover{
    background:transparent!important;
}
html[data-theme="dark"] #pricing-editor-panel .bmt-pricing-check-card.bmt-pricing-check-card-plain{
    border-color:transparent!important;
    background:transparent!important;
}
