:root {
    --be2-nav-bg: #1a1d21;
    --be2-nav-bg-gradient: linear-gradient(90deg, #1a1d21, #252a31);
    --be2-nav-border: #0f1114;
    --be2-nav-active-indicator: #ffffff;
    --be2-nav-text: #f5f6f7;
    --be2-nav-muted: #b8bcc2;
    --be2-nav-active: #ffffff;
    --be2-page-bg: #eef0f2;
    --be2-surface: #ffffff;
    --be2-surface-muted: #f8f9fa;
    --be2-card-border: #d8dde3;
    --be2-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    --be2-text: #1e293b;
    --be2-text-muted: #64748b;
    --be2-text-inverse: #ffffff;
    --be2-link: #2a7de1;
    --be2-primary: #2a7de1;
    --be2-primary-end: #2563eb;
    --be2-primary-gradient: linear-gradient(90deg, #2a7de1, #2563eb);
    --be2-secondary: #2a7de1;
    --be2-success: #16a34a;
    --be2-warning: #f59e0b;
    --be2-danger: #ef4444;
    --be2-info: #0ea5e9;
    --be2-ts-header-gradient: linear-gradient(90deg, #2a7de1, #2563eb);
    --be2-ts-day-active-bg: rgba(42, 125, 225, 0.08);
    --be2-ts-day-active-border: #2a7de1;
    --be2-ts-status-complete: #22c55e;
    --be2-ts-status-pending: #94a3b8;
    --be2-ts-status-attention: #f97316;
    --be2-ts-status-missing: #ef4444;
    --be2-theme-color: #1a1d21;
    --be2-rail-bg: #f3f4f6;
    --be2-rail-border: #e5e7eb;
    --be2-rail-text: #374151;
    --be2-rail-muted: #9ca3af;
    --be2-rail-hover: rgba(255, 255, 255, 0.55);
    --be2-workspace-bg: #ffffff;
    --be2-heading: #111827;
    --be2-input-bg: #ffffff;
    --be2-input-border: #d1d5db;
    --be2-input-text: #1e293b;
    --be2-table-border: #e5e7eb;
    --be2-table-hover: #f8fafc;
    --be2-gauge-surface-top: #f8fafc;
    --be2-gauge-surface-bottom: #ffffff;
    --be2-gauge-track-a: #f1f5f9;
    --be2-gauge-track-b: #e2e8f0;
}

:root {
    --be2-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background: var(--be2-page-bg);
    color: var(--be2-text, #1e293b);
    font-family: var(--be2-font-sans);
    min-height: 100vh;
    box-sizing: border-box;
    --be2-chrome-top: 4.25rem;
}

body.be2-nav-short {
    --be2-chrome-top: 3.25rem;
}

body.be2-nav-tall {
    --be2-chrome-top: 5.75rem;
}

body.be2-nav-has-product {
    --be2-chrome-top: 5.25rem;
}

body.be2-nav-has-product.be2-nav-short {
    --be2-chrome-top: 4.65rem;
}

body.be2-nav-has-product.be2-nav-tall {
    --be2-chrome-top: 6.1rem;
}

.be2-skip-link {
    position: absolute;
    left: -9999px;
    top: 0.5rem;
    z-index: 10000;
    padding: 0.5rem 1rem;
    background: #fff;
    color: #111;
    border-radius: 0.35rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-weight: 600;
}

.be2-skip-link:focus {
    left: 0.5rem;
}

html.be2-page-loading .be2-main {
    opacity: 0;
}

html.be2-page-ready .be2-main {
    opacity: 1;
    transition: opacity 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
    html.be2-page-ready .be2-main {
        transition: none;
    }
}

.be2-btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.75;
}

.be2-main a:focus-visible,
.be2-main button:focus-visible,
.be2-main input:focus-visible,
.be2-main select:focus-visible,
.be2-main textarea:focus-visible {
    outline: 2px solid var(--be2-link);
    outline-offset: 2px;
}

.be2-topnav {
    background-color: var(--be2-nav-bg);
    background-image: var(--be2-nav-bg-gradient);
    padding: 0.35rem 1rem;
    border-bottom: 1px solid var(--be2-nav-border);
}

.be2-topnav--short {
    padding: 0.12rem 1rem;
}

.be2-topnav--short .be2-brand {
    padding-top: 0.1rem;
    padding-bottom: 0.1rem;
}

.be2-topnav--short .be2-brand-tagline {
    font-size: 0.88rem;
}

.be2-topnav--short .be2-main-nav .nav-link {
    padding: 0.45rem 0.85rem;
}

.be2-topnav--tall {
    padding: 0.65rem 1rem;
}

.be2-topnav--tall .be2-brand {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.be2-topnav--tall .be2-brand-tagline {
    font-size: 1.2rem;
}

.be2-topnav--tall .be2-main-nav .nav-link {
    padding: 1rem 1.15rem;
}

.be2-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.be2-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.be2-brand-company {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    color: var(--be2-nav-muted);
    font-weight: 600;
}

.be2-brand-tagline {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--be2-nav-text);
    letter-spacing: 0.02em;
}

.be2-brand-product {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    margin-right: 0;
    padding: 0.1rem 0;
    color: inherit;
}

.be2-brand-product:hover,
.be2-brand-product:focus {
    text-decoration: none;
    opacity: 0.92;
}

.be2-brand-product-logo {
    display: block;
    width: 120px;
    height: auto;
    max-width: 120px;
    object-fit: contain;
}

.be2-topnav--short .be2-brand-product-logo {
    width: 110px;
    max-width: 110px;
}

.be2-topnav--tall .be2-brand-product-logo {
    width: 130px;
    max-width: 130px;
}

.be2-topnav.navbar-dark .be2-brand-product-logo {
    filter: invert(1) hue-rotate(180deg);
}

.be2-topnav--with-product .be2-brand {
    margin-left: 0.7rem;
    padding-left: 0.95rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.be2-topnav.navbar-light.be2-topnav--with-product .be2-brand {
    border-left-color: rgba(15, 23, 42, 0.14);
}

.be2-brand-product-mark {
    position: relative;
    display: flex;
    align-items: stretch;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 0.4rem;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 1px 3px rgba(0, 0, 0, 0.1);
    min-width: 0;
    overflow: hidden;
}

.be2-brand-product-mark::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0.55rem;
    right: 0.55rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    pointer-events: none;
}

.be2-brand-product-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.16rem;
    padding: 0.34rem 0.72rem 0.36rem 0.58rem;
    border-left: 2px solid var(--be2-link, #2a7de1);
    line-height: 1.1;
}

.be2-brand-product-line {
    display: block;
    white-space: nowrap;
}

.be2-brand-product-line--primary {
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.015em;
    color: var(--be2-nav-text);
}

.be2-brand-product-rule {
    display: block;
    width: 1.65rem;
    height: 1px;
    margin: 0.02rem 0;
    background: rgba(255, 255, 255, 0.26);
    border-radius: 1px;
}

.be2-brand-product-line--secondary {
    font-size: 0.43rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.76);
}

.be2-topnav.navbar-light .be2-brand-product-mark {
    border-color: rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.82);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 1px 3px rgba(15, 23, 42, 0.06);
}

.be2-topnav.navbar-light .be2-brand-product-mark::after {
    background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.08), transparent);
}

.be2-topnav.navbar-light .be2-brand-product-copy {
    border-left-color: var(--be2-link, #2a7de1);
}

.be2-topnav.navbar-light .be2-brand-product-line--primary {
    color: var(--be2-text, #1e293b);
}

.be2-topnav.navbar-light .be2-brand-product-rule {
    background: rgba(15, 23, 42, 0.14);
}

.be2-topnav.navbar-light .be2-brand-product-line--secondary {
    color: var(--be2-text-muted, #64748b);
}

.be2-main-nav .nav-link {
    color: var(--be2-nav-muted);
    font-weight: 600;
    padding: 0.75rem 1rem;
}

.be2-main-nav .nav-link:hover,
.be2-main-nav .nav-link:focus {
    color: var(--be2-nav-text);
}

.be2-main-nav .nav-link.active {
    color: var(--be2-nav-active);
    box-shadow: inset 0 -3px 0 var(--be2-nav-active-indicator);
}

.be2-profile-menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    color: var(--be2-nav-text);
    vertical-align: middle;
}

.be2-profile-menu-icon svg {
    width: 1.35rem;
    height: 1.35rem;
    display: block;
}

.be2-profile-toggle::after {
    display: none;
}

.be2-main {
    padding: 1.25rem 1.5rem 2rem;
}

.be2-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 991px) {
    .be2-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.be2-card {
    background: var(--be2-surface, #fff);
    border: 1px solid var(--be2-card-border);
    border-radius: 0.35rem;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    color: var(--be2-text);
}

.be2-card-header {
    padding: 0.85rem 1rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--be2-heading);
}

.be2-card-header-link {
    display: block;
    color: inherit;
    text-decoration: none;
    font: inherit;
    font-weight: inherit;
}

.be2-card-header-link:hover,
.be2-card-header-link:focus {
    color: inherit;
    text-decoration: none;
}

.be2-card-header-link:focus-visible {
    outline: 2px solid var(--be2-link);
    outline-offset: 2px;
    border-radius: 0.15rem;
}

.be2-card-body {
    padding: 0.75rem 1rem 1rem;
    flex: 1;
    color: var(--be2-text);
}

.be2-card--compact {
    min-height: 0;
}

.be2-card--compact .be2-card-body {
    padding-bottom: 0.5rem;
}

.be2-card-footer {
    padding: 0.5rem 1rem 0.85rem;
    margin-top: auto;
    border-top: 1px solid var(--be2-card-border);
}

.be2-link--sm {
    font-size: 0.85rem;
}

.be2-dashboard-recent-table th,
.be2-dashboard-recent-table td {
    font-size: 0.85rem;
    vertical-align: middle;
}

.be2-card .table {
    color: var(--be2-text);
}

.be2-card .table thead th {
    color: var(--be2-text-muted);
    background-color: var(--be2-surface-muted);
    border-color: var(--be2-table-border);
}

.be2-card .table td,
.be2-card .table th {
    border-color: var(--be2-table-border);
}

.be2-card .table-hover tbody tr:hover {
    color: var(--be2-text);
    background-color: var(--be2-table-hover);
}

.be2-card .table a {
    color: var(--be2-link);
}

.be2-page-header h1 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    color: var(--be2-heading);
}

.be2-dashboard-config-reset-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem;
}

.be2-pricing-embed-wrap {
    background: var(--be2-surface);
    border: 1px solid var(--be2-card-border);
    border-radius: 0.35rem;
    overflow: hidden;
    min-height: 70vh;
}

.be2-pricing-embed {
    display: block;
    width: 100%;
    min-height: 70vh;
    border: 0;
}

.be2-kpi-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0.5rem 0;
}

.be2-kpi-caption {
    color: var(--be2-text-muted);
    font-size: 0.9rem;
}

.be2-table-wrap {
    max-height: 180px;
    overflow-y: auto;
}

.be2-table-wrap table {
    margin-bottom: 0;
    font-size: 0.875rem;
}

.be2-table-wrap th {
    border-top: 0;
    font-weight: 600;
    white-space: nowrap;
}

.be2-empty {
    color: var(--be2-text-muted);
    font-size: 0.95rem;
    padding: 1rem 0;
}

.be2-module-placeholder {
    background: var(--be2-surface, #fff);
    border: 1px solid var(--be2-card-border);
    border-radius: 0.35rem;
    padding: 2rem;
    color: var(--be2-text);
}

.be2-login-page {
    background: #0f1218;
}

.be2-login-page .be2-main {
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.be2-login-shell {
    position: relative;
    width: 100%;
    max-width: 440px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.be2-login-backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(42, 125, 225), 0.35), transparent 55%),
        radial-gradient(ellipse 70% 50% at 90% 85%, rgba(233, 30, 140, 0.18), transparent 50%),
        linear-gradient(160deg, #0f1218 0%, #1a1d21 45%, #12151c 100%);
}

.be2-login-backdrop::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
    pointer-events: none;
}

.be2-login-card {
    max-width: none;
    margin: 0;
    border-radius: 1rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
}

.be2-login-logo {
    display: block;
    margin: 0 auto 0.85rem;
    height: auto;
    width: min(220px, 70%);
    filter: drop-shadow(0 4px 12px rgba(42, 125, 225, 0.25));
}

.be2-login-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.15rem;
    letter-spacing: -0.02em;
}

.be2-login-tagline {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #6b7280;
    margin: 0;
}

.be2-login-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.35rem;
}

.be2-login-input {
    border-radius: 0.5rem;
    border-color: #e5e7eb;
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
}

.be2-login-input:focus {
    border-color: var(--be2-link);
    box-shadow: 0 0 0 3px rgba(42, 125, 225), 0.15);
}

.be2-login-submit {
    font-weight: 600;
    padding: 0.7rem 1rem;
    border-radius: 0.5rem;
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.be2-login-submit:hover {
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
}

.be2-gauge-placeholder {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--be2-text-muted);
    font-size: 0.9rem;
}

.be2-gauge svg {
    width: 100%;
    max-width: 220px;
    display: block;
    margin: 0 auto;
}

.be2-gauge-label {
    font-size: 11px;
    fill: var(--be2-text-muted);
}

.be2-gauge-value {
    font-size: 14px;
    font-weight: 700;
    fill: var(--be2-text);
}

.be2-card--kpi .be2-kpi-value {
    margin-top: 1.25rem;
    color: var(--be2-heading);
}

.be2-card--gauge .be2-card-body {
    padding-top: 0.25rem;
}

.be2-card--span-2 {
    grid-column: span 2;
}

.be2-card--span-3 {
    grid-column: span 3;
}

.be2-card--span-4 {
    grid-column: span 4;
}

.be2-project-overview-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.be2-project-overview-grid .be2-card--gauge,
.be2-project-overview-grid .be2-card--chart {
    min-height: 220px;
}

.be2-card--map .be2-project-overview-map {
    flex: 1;
    min-height: 280px;
    height: 280px;
    width: 100%;
    cursor: grab;
}

.be2-card--map .be2-project-overview-map:active {
    cursor: grabbing;
}

@media (max-width: 1199px) {
    .be2-project-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .be2-project-overview-grid .be2-card--span-4 {
        grid-column: span 2;
    }
}

@media (max-width: 991px) {
    .be2-project-overview-grid {
        grid-template-columns: 1fr;
    }

    .be2-project-overview-grid .be2-card--span-2,
    .be2-project-overview-grid .be2-card--span-3,
    .be2-project-overview-grid .be2-card--span-4 {
        grid-column: span 1;
    }
}

.be2-card--graph .be2-card-body {
    padding: 0.5rem 0.75rem 0.75rem;
}

.be2-card--graph .be2-overview-graph-panel {
    border: 0;
    padding: 0;
    background: transparent;
}

.be2-project-overview-grid .be2-overview-graph {
    height: min(62vh, 520px);
    min-height: 360px;
}

.be2-overview-site-map {
    min-height: 240px;
    border: 1px solid #e5e7eb;
    border-radius: 0.35rem;
    overflow: hidden;
    background: #b8d4e8;
}

.be2-overview-task-bars {
    min-height: 120px;
}

.be2-project-page-header .be2-project-stats-edit-btn {
    flex-shrink: 0;
}

.be2-card--map .be2-card-body,
.be2-card--chart .be2-card-body {
    display: flex;
    flex-direction: column;
}

.be2-dashboard-gauge {
    min-height: 148px;
    background: linear-gradient(180deg, var(--be2-gauge-surface-top) 0%, var(--be2-gauge-surface-bottom) 55%);
    border-radius: 0.35rem;
    padding: 0.35rem 0 0;
}

.be2-dashboard-gauge svg,
.be2-dashboard-gauge-svg {
    width: 100%;
    max-width: 240px;
    display: block;
    margin: 0 auto;
    overflow: visible;
}

.be2-dashboard-gauge-label {
    font-size: 11px;
    font-weight: 600;
    fill: var(--be2-text-muted);
}

.be2-dashboard-gauge-value {
    font-size: 1.05rem;
    font-weight: 800;
    fill: var(--be2-text);
}

.be2-dashboard-needle {
    pointer-events: none;
}

.be2-dashboard-position-marker {
    pointer-events: none;
}

.be2-dashboard-gauge-caption {
    color: var(--be2-text-muted);
    font-size: 0.85rem;
    text-align: center;
    margin: 0.35rem 0 0;
}

.be2-dashboard-header {
    margin-bottom: 1rem;
}

.be2-dashboard-header .be2-project-stats-edit-btn,
.be2-project-page-header .be2-project-stats-edit-btn {
    flex-shrink: 0;
}

.be2-dashboard-config-intro {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: var(--be2-text-muted);
}

.be2-dashboard-config-group {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--be2-text-muted);
    margin: 1rem 0 0.5rem;
}

.be2-dashboard-config-group:first-child {
    margin-top: 0;
}

.be2-dashboard-config-tile {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem 0;
    margin: 0;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--be2-text);
}

.be2-dashboard-config-tile input {
    margin: 0;
}

.be2-dashboard-project-map,
.be2-projects-location-map {
    border: 1px solid #e5e7eb;
    border-radius: 0.35rem;
    overflow: hidden;
    background: #b8d4e8;
}

.be2-dashboard-project-map {
    height: 260px;
}

.be2-projects-location-map {
    width: 100%;
    height: 100%;
    min-height: 0;
}

.be2-dashboard-map-host.leaflet-container,
.be2-project-location-map-host.leaflet-container {
    font-family: inherit;
    height: 100%;
}

.be2-project-map-dot-icon {
    background: transparent;
    border: none;
}

.be2-project-map-dot {
    display: block;
    box-sizing: border-box;
    border-radius: 50%;
    background: #ea580c;
    border: 2px solid #fff;
    opacity: 0.85;
    pointer-events: auto;
}

.be2-project-overview-map .leaflet-interactive {
    cursor: pointer;
}

.be2-dashboard-status-chart {
    min-height: 220px;
}

.be2-dashboard-donut-total {
    font-size: 1.65rem;
    font-weight: 700;
    fill: var(--be2-heading);
}

.be2-dashboard-donut-label {
    font-size: 0.75rem;
    fill: var(--be2-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.be2-dashboard-status-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.85rem;
    margin-top: 0.65rem;
    font-size: 0.8rem;
    color: var(--be2-text);
}

.be2-dashboard-status-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.be2-dashboard-status-swatch {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 999px;
    flex-shrink: 0;
}

@media (max-width: 991px) {
    .be2-card--span-2 {
        grid-column: span 1;
    }

    .be2-card--span-3 {
        grid-column: span 1;
    }
}

.be2-admin-migration-banner {
    background: linear-gradient(90deg, #78350f 0%, #92400e 100%);
    color: #fffbeb;
    border-bottom: 1px solid #b45309;
    font-size: 0.875rem;
}

.be2-admin-migration-banner__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.55rem 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
}

.be2-admin-migration-banner__hint {
    display: block;
    font-size: 0.8rem;
    opacity: 0.9;
    font-weight: normal;
}

.be2-admin-migration-banner__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
}

.be2-admin-migration-banner__link {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    background: rgba(255, 251, 235, 0.15);
    color: #fffbeb;
    font-family: ui-monospace, monospace;
    font-size: 0.8rem;
    text-decoration: none;
}

.be2-admin-migration-banner__link:hover {
    background: rgba(255, 251, 235, 0.28);
    color: #fff;
    text-decoration: none;
}

.be2-admin-migration-banner__details {
    color: #fde68a;
    font-size: 0.8rem;
    margin-left: 0.25rem;
}

.be2-admin-migration-banner__details:hover {
    color: #fff;
}

.be2-migration-log {
    max-height: 320px;
    overflow: auto;
    background: #1a1d21;
    color: #e5e7eb;
    padding: 1rem;
    border-radius: 6px;
}

.be2-toast-host {
    position: fixed;
    top: 4.5rem;
    right: 1rem;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: min(360px, calc(100vw - 2rem));
    pointer-events: none;
}

.be2-toast {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem 0.95rem;
    border-radius: 0.45rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.14);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
    pointer-events: auto;
}

.be2-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.be2-toast.is-leaving {
    opacity: 0;
    transform: translateY(-6px);
}

.be2-toast-icon {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.be2-toast-message {
    flex: 1;
    font-size: 0.92rem;
    line-height: 1.45;
    color: #111827;
    padding-top: 0.05rem;
}

.be2-toast-close {
    border: 0;
    background: transparent;
    color: #9ca3af;
    font-size: 1.15rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.be2-toast-close:hover {
    color: #374151;
}

.be2-toast--success .be2-toast-icon {
    background: #dcfce7;
    color: #15803d;
}

.be2-toast--error .be2-toast-icon {
    background: #fee2e2;
    color: #b91c1c;
}

.be2-toast--warning .be2-toast-icon {
    background: #fef3c7;
    color: #b45309;
}

.be2-toast--info .be2-toast-icon {
    background: #dbeafe;
    color: #1d4ed8;
}

.be2-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.be2-subnav {
    background: var(--be2-surface, #fff);
    border: 1px solid var(--be2-card-border);
    border-radius: 0.35rem;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    position: sticky;
    top: 0;
    z-index: 50;
}

.be2-subnav a {
    color: var(--be2-text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.be2-subnav a:hover {
    color: var(--be2-link);
}

.be2-subnav a.active {
    color: var(--be2-link);
}

.be2-panel {
    background: var(--be2-surface, #fff);
    border: 1px solid var(--be2-card-border);
    border-radius: 0.35rem;
    padding: 1.25rem;
    color: var(--be2-text, #1e293b);
}

.be2-panel .text-muted {
    color: var(--be2-text-muted, #6c757d) !important;
}

.be2-wizard-steps {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    max-width: 720px;
}

.be2-wizard-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.be2-wizard-step.is-active {
    color: #111827;
    font-weight: 600;
}

.be2-wizard-step.is-done {
    color: var(--be2-link);
}

.be2-wizard-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    border: 1px solid currentColor;
    font-size: 0.75rem;
    font-weight: 700;
}

.be2-wizard-step.is-active .be2-wizard-step-num,
.be2-wizard-step.is-done .be2-wizard-step-num {
    background: var(--be2-link);
    border-color: var(--be2-link);
    color: #fff;
}

.be2-wizard-steps--full {
    max-width: none;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 1rem;
    padding-bottom: 0.25rem;
}

.be2-wizard-steps--full .be2-wizard-step {
    flex-shrink: 0;
    cursor: pointer;
}

.be2-wizard-strip-toolbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    margin: 0 0 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--be2-border, #e5e7eb);
}

.be2-wizard-steps-edit {
    flex-shrink: 0;
    margin-left: auto;
}

.be2-wizard-order-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.35rem;
    border: 1px solid var(--be2-border, #e5e7eb);
    border-radius: 0.35rem;
    background: #fff;
}

.be2-wizard-order-item.is-dragging {
    opacity: 0.6;
}

.be2-wizard-order-item--locked {
    opacity: 0.75;
    background: #f9fafb;
}

.be2-wizard-order-handle {
    color: #9ca3af;
    cursor: grab;
    user-select: none;
}


























.be2-wizard-summary {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.35rem;
}

.be2-checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    gap: 0.35rem 1rem;
}

.be2-client-combobox {
    position: relative;
}

.be2-client-suggestions {
    position: absolute;
    z-index: 20;
    left: 0;
    right: 0;
    top: calc(100% + 0.25rem);
    margin: 0;
    padding: 0.25rem 0;
    list-style: none;
    max-height: 16rem;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 0.35rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.be2-client-suggestion {
    padding: 0.55rem 0.85rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.be2-client-suggestion:hover,
.be2-client-suggestion.is-active {
    background: #eff6ff;
}

.be2-client-suggestion-name {
    font-weight: 600;
    color: #111827;
}

.be2-client-suggestion-meta {
    font-size: 0.8rem;
    color: #6b7280;
}

.be2-client-suggestion--create {
    border-top: 1px solid #e5e7eb;
    color: var(--be2-link);
    font-size: 0.9rem;
}

.be2-client-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    margin-top: 0.75rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 0.35rem;
}

.be2-client-create-panel {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.be2-site-address-finder {
    position: relative;
}

.be2-site-address-combobox {
    position: relative;
}

.be2-site-address-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.be2-site-address-input-wrap .form-control {
    flex: 1;
}

.be2-site-address-clear {
    flex-shrink: 0;
    white-space: nowrap;
}

.be2-site-address-suggestions {
    position: absolute;
    z-index: 30;
    left: 0;
    right: 0;
    top: calc(100% + 0.25rem);
    margin: 0;
    padding: 0.25rem 0;
    list-style: none;
    max-height: 14rem;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 0.35rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.be2-site-address-suggestion {
    padding: 0.55rem 0.85rem;
    cursor: pointer;
}

.be2-site-address-suggestion:hover,
.be2-site-address-suggestion.is-active {
    background: #eff6ff;
}

.be2-site-address-suggestion-label {
    font-size: 0.9rem;
    color: #111827;
    line-height: 1.4;
}

.be2-site-address-suggestion--empty {
    color: #6b7280;
    cursor: default;
}

.be2-site-address-map {
    margin-top: 0.85rem;
    height: 280px;
    min-height: 220px;
    border: 1px solid #e5e7eb;
    border-radius: 0.35rem;
    overflow: hidden;
    background: #b8d4e8;
    cursor: grab;
}

.be2-site-address-map:active {
    cursor: grabbing;
}

.be2-site-address-map.leaflet-container {
    font-family: inherit;
}

.be2-site-address-hint {
    margin-top: 0.5rem;
}

.be2-schedule-day {
    border-left: 3px solid var(--be2-link);
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.be2-badge-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 0.2rem;
    background: #eef2ff;
    color: #2a7de1;
}

.be2-report-stat {
    font-size: 1.75rem;
    font-weight: 700;
    color: #222;
}

a.be2-link {
    color: var(--be2-link);
}

.be2-main--project-workspace {
    padding: 0;
    max-width: none;
}

body.be2-nav-position-floating {
    display: flex;
    flex-direction: column;
}

body.be2-nav-position-floating > .be2-topnav {
    flex: 0 0 auto;
}

body.be2-nav-position-floating > .be2-main.be2-main--project-workspace {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.be2-project-workspace {
    display: flex;
    align-items: stretch;
    flex: 1 1 auto;
    min-height: 0;
}

.be2-project-rail {
    width: 252px;
    flex-shrink: 0;
    background: var(--be2-rail-bg);
    border: none;
    border-radius: 0;
    padding: 0.85rem 0 1.5rem;
    position: sticky;
    /* Floating nav scrolls away; stick to the viewport top so no white gap remains. */
    top: 0;
    align-self: flex-start;
    height: auto;
    max-height: 100vh;
    min-height: 0;
    color: var(--be2-rail-text);
}

body.be2-nav-position-fixed {
    display: flex;
    flex-direction: column;
}

body.be2-nav-position-fixed > .be2-main.be2-main--project-workspace {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

body.be2-nav-position-fixed .be2-topnav,
.be2-topnav--fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    width: 100%;
}

body.be2-nav-position-fixed {
    padding-top: var(--be2-chrome-top);
    box-sizing: border-box;
    min-height: 100vh;
}

body.be2-nav-position-fixed .be2-project-rail {
    top: var(--be2-chrome-top);
    max-height: calc(100vh - var(--be2-chrome-top));
}

.be2-project-rail--tree {
    display: flex;
    flex-direction: column;
    padding: 0.85rem 0 0.85rem;
    overflow: hidden;
    align-self: stretch;
    height: calc(100vh - var(--be2-chrome-top));
    max-height: calc(100vh - var(--be2-chrome-top));
    min-height: calc(100vh - var(--be2-chrome-top));
}

/* Tree rails with a customise Edit control: fill workspace height, Edit beside menu. */
.be2-project-rail--tree:has(> .be2-workspace-nav-edit--rail) {
    position: relative;
    top: auto;
    height: auto;
    max-height: none;
    min-height: calc(100vh - var(--be2-chrome-top));
}

.be2-project-rail--tree:has(> .be2-workspace-nav-edit--rail) .be2-project-rail-menu {
    flex: 0 1 auto;
    min-height: 0;
    max-height: calc(100vh - var(--be2-chrome-top) - 3.25rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.be2-project-rail--tree:has(> .be2-workspace-nav-edit--rail) .be2-project-rail-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.be2-project-rail--tree:has(> .be2-workspace-nav-edit--rail) > .be2-workspace-nav-edit--rail {
    flex: 0 0 auto;
    margin-top: 0.35rem;
}

.be2-project-rail--tree:has(> .be2-workspace-nav-edit--rail)::after {
    content: "";
    flex: 1 1 auto;
    min-height: 0;
}

.be2-project-rail-filters {
    flex-shrink: 0;
    border-bottom: 1px solid var(--be2-rail-border);
    background: var(--be2-rail-bg);
}

.be2-project-rail-search {
    flex-shrink: 0;
    border-bottom: 1px solid var(--be2-rail-border);
    background: var(--be2-rail-bg);
}

.be2-rail-search-form {
    padding: 0 0.85rem 0.75rem;
}

.be2-rail-section-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 0.85rem 0.5rem;
    border: 0;
    background: transparent;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--be2-rail-muted);
    text-align: left;
    cursor: pointer;
}

.be2-rail-section-toggle:hover {
    color: var(--be2-rail-text);
}

.be2-rail-section-toggle-chevron {
    width: 0.45rem;
    height: 0.45rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.15s ease;
    margin-top: -0.15rem;
}

.be2-rail-section-toggle-chevron.is-collapsed {
    transform: rotate(-45deg);
    margin-top: 0.15rem;
}

.be2-rail-section-count {
    font-weight: 600;
    letter-spacing: 0.02em;
}

.be2-rail-section-body.is-collapsed {
    display: none;
}

.be2-rail-filter-form {
    padding: 0 0.85rem 0.75rem;
}

.be2-rail-filter-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--be2-rail-muted);
    margin-bottom: 0.35rem;
}

.be2-rail-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.be2-rail-filter-chip {
    display: inline-flex;
    align-items: center;
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--be2-rail-text);
    cursor: pointer;
}

.be2-rail-filter-chip input {
    margin-right: 0.25rem;
}

.be2-rail-filter-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.be2-rail-filter-label-row .be2-rail-filter-label {
    margin-bottom: 0;
}

.be2-rail-filter-select-all {
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.be2-rail-filter-clear {
    font-size: 0.75rem;
    font-weight: 600;
}

.be2-project-rail-filter-input {
    font-size: 0.8125rem;
    font-weight: 500;
    border-color: var(--be2-input-border);
    background: var(--be2-input-bg);
    color: var(--be2-input-text);
}

.be2-project-rail-filter-input:focus {
    border-color: var(--be2-link);
    box-shadow: 0 0 0 0.15rem rgba(59, 130, 246, 0.2);
}

.be2-project-rail-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.be2-project-rail-scroll > .be2-project-rail-nav {
    padding-bottom: 0.5rem;
}

.be2-project-rail-management {
    flex-shrink: 0;
    border-top: 1px solid var(--be2-rail-border);
    background: var(--be2-rail-bg);
    padding-bottom: 0.85rem;
}

.be2-project-rail-management .be2-project-rail-nav {
    padding-top: 0.15rem;
}

.be2-project-rail-project.is-filtered-out {
    display: none;
}

.be2-project-rail-no-match {
    margin: 0;
    padding: 0.5rem 0.85rem 0.75rem;
    font-size: 0.8125rem;
    color: #6b7280;
}

.be2-project-rail-no-match.is-hidden {
    display: none;
}

.be2-project-rail-project-children {
    margin: 0;
}

.be2-project-picker-form {
    padding: 0 0.85rem 0.85rem;
    margin-bottom: 0.35rem;
}

.be2-project-picker {
    font-size: 0.8125rem;
    font-weight: 600;
    border-color: var(--be2-input-border);
    background: var(--be2-input-bg);
    color: var(--be2-input-text);
    height: calc(1.5em + 0.75rem + 2px);
}

.be2-project-rail--tree .be2-project-rail-scroll .be2-project-rail-heading {
    padding-top: 0.65rem;
}

.be2-project-rail-heading {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--be2-rail-muted);
    padding: 1rem 0.85rem 0.35rem;
    margin: 0;
}

.be2-project-rail-link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.85rem;
    color: var(--be2-rail-text);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    border-left: 3px solid transparent;
    line-height: 1.25;
}

.be2-project-rail-link:hover {
    color: var(--be2-rail-text);
    text-decoration: none;
    background: var(--be2-rail-hover);
}

.be2-project-rail-link:focus {
    outline: none;
    box-shadow: none;
}

.be2-project-rail-link:focus-visible {
    outline: 2px solid var(--be2-link, #2a7de1);
    outline-offset: -2px;
}

.be2-project-rail-link.is-active {
    color: #fff;
    background: var(--be2-link);
    border-left-color: transparent;
}

.be2-project-rail-link.is-active .be2-project-rail-icon {
    color: #fff;
}

.be2-project-rail-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    color: var(--be2-rail-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.be2-project-rail-icon svg {
    width: 1rem;
    height: 1rem;
    display: block;
}

.be2-project-rail-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.be2-project-rail-parent-wrap {
    padding: 0.35rem 0.85rem 0.65rem;
    border-bottom: 1px solid var(--be2-rail-border);
    margin-bottom: 0.15rem;
}

.be2-project-rail-parent {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--be2-rail-text);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
}

.be2-project-rail-parent:hover {
    color: var(--be2-link);
    text-decoration: none;
}

.be2-project-rail-parent .be2-project-rail-icon {
    color: var(--be2-rail-muted);
}

.be2-project-rail-project.is-open-project {
    background: rgba(42, 125, 225), 0.05);
}

.be2-project-rail-project.is-open-project .be2-project-rail-folder.is-active {
    border-left-color: transparent;
}

.be2-project-rail-folder .be2-project-rail-icon {
    color: #d97706;
}

.be2-project-rail-folder.is-open {
    color: #374151;
    background: rgba(255, 255, 255, 0.72);
}

.be2-project-rail-folder.is-open .be2-project-rail-label {
    color: #111827;
}

.be2-project-rail-folder.is-open .be2-project-rail-icon {
    color: #ea580c;
}

.be2-project-rail-child {
    padding-left: 1.65rem;
    font-size: 0.8125rem;
    font-weight: 500;
}

.be2-project-rail-child-heading {
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #9ca3af;
    padding: 0.65rem 0.85rem 0.2rem 1.65rem;
    margin: 0;
}

.be2-project-rail-empty {
    padding: 0.45rem 0.85rem 0.65rem;
    color: #9ca3af;
    font-size: 0.8125rem;
    font-style: italic;
}

.be2-projects-landing-panel {
    max-width: 36rem;
}

.be2-projects-landing-lead {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}

.be2-projects-map-panel {
    width: calc(100% + 4rem);
    max-width: none;
    margin-left: -2rem;
    margin-right: -2rem;
}

.be2-projects-map-wrap {
    position: relative;
    height: calc(100vh / 2);
    min-height: 220px;
}

.be2-projects-map-empty {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 0.65rem 1rem;
    color: #6b7280;
    font-size: 0.9375rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #e5e7eb;
    border-radius: 0.35rem;
    pointer-events: none;
    z-index: 500;
}

.be2-projects-map-empty.is-hidden {
    display: none;
}

.be2-project-main--full {
    width: 100%;
    flex: 1 1 100%;
    max-width: 100%;
}

.be2-project-rail--workspace {
    display: flex;
    flex-direction: column;
    padding: 0.85rem 0 1.5rem;
    overflow-y: auto;
    align-self: stretch;
    height: calc(100vh - var(--be2-chrome-top));
    max-height: calc(100vh - var(--be2-chrome-top));
    min-height: calc(100vh - var(--be2-chrome-top));
}


.be2-project-rail-menu--workspace {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.85rem 0 0.5rem;
}

.be2-project-rail-nav--workspace {
    padding-top: 0.15rem;
}
























.be2-project-rail--hub {
    display: flex;
    flex-direction: column;
    padding: 0.85rem 0 0.85rem;
    overflow: hidden;
    align-self: stretch;
    min-height: calc(100vh - var(--be2-chrome-top));
    max-height: none;
    height: auto;
}

.be2-project-rail--hub .be2-project-rail-menu {
    flex: 0 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.be2-project-rail--hub::after {
    content: "";
    flex: 1 1 auto;
    min-height: 0;
}

.be2-workspace-nav-edit--rail {
    flex-shrink: 0;
    margin-top: 0.35rem;
    padding: 0.65rem 0.85rem 0;
    border-top: 1px solid var(--be2-rail-border);
}

.be2-workspace-nav-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.be2-workspace-nav-edit-icon {
    display: inline-flex;
    line-height: 0;
}

.be2-nav-customise-modal {
    z-index: 1065;
}

.be2-nav-customise-modal .modal-content {
    background: var(--be2-surface, #fff);
}

.be2-nav-customise-modal .modal-body {
    background: var(--be2-surface, #fff);
}

.be2-project-rail-nav--hub {
    padding: 0 0.85rem;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.be2-projects-list {
    width: 100%;
    max-width: 100%;
}

.be2-projects-hub {
    margin-bottom: 0.35rem;
}

.be2-projects-hub .be2-project-page-header--hub {
    margin-bottom: 0.35rem;
}

.be2-projects-hub-band {
    margin: 0 0 0.75rem;
}

.be2-projects-hub-band .be2-projects-status-tabs {
    margin-bottom: 0;
}

.be2-projects-row--status-changed {
    animation: be2-projects-row-flash 0.9s ease;
}

@keyframes be2-projects-row-flash {
    0% {
        background-color: color-mix(in srgb, var(--be2-link) 18%, transparent);
    }
    100% {
        background-color: transparent;
    }
}

.be2-projects-schedule-input {
    min-width: 8.5rem;
    font-size: 0.8125rem;
}

.be2-projects-schedule-end-cell--short .be2-projects-schedule-end {
    border-color: #dc3545;
    background-color: color-mix(in srgb, #dc3545 8%, var(--be2-surface, #fff));
}

.be2-projects-schedule-end-cell--long .be2-projects-schedule-end {
    border-color: #d97706;
    background-color: color-mix(in srgb, #d97706 10%, var(--be2-surface, #fff));
}

.be2-project-schedule-end-wrap--long .be2-project-schedule-date--end {
    border-color: #d97706;
}

.be2-projects-row.is-filtered-out {
    display: none;
}

































.be2-project-rail .be2-workspace-nav-layout-toggle-wrap--rail .be2-workspace-nav-layout-toggle {
    color: var(--be2-rail-muted);
    border-color: var(--be2-rail-border);
    background: color-mix(in srgb, var(--be2-rail-text) 6%, transparent);
}

.be2-project-rail .be2-workspace-nav-layout-toggle-wrap--rail .be2-workspace-nav-layout-toggle:hover {
    color: var(--be2-rail-text);
    background: var(--be2-rail-hover);
    border-color: color-mix(in srgb, var(--be2-rail-text) 22%, var(--be2-rail-border));
}







.be2-scheduling-rail-worker.is-hidden,
.be2-scheduling-rail-worker.is-filtered-out {
    display: none;
}

.be2-projects-status-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.3rem;
    width: fit-content;
    max-width: 100%;
    padding: 0.3rem;
    margin-bottom: 0.85rem;
    border: 1px solid var(--be2-card-border, #d8dde3);
    border-radius: 0.65rem;
    background: var(--be2-surface-muted, #f1f5f9);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.be2-projects-status-tabs::-webkit-scrollbar {
    display: none;
}

.be2-projects-status-tabs .nav-item {
    margin-bottom: 0;
    flex-shrink: 0;
}

.be2-projects-status-tabs .nav-link,
.be2-projects-status-tabs .be2-projects-status-tab {
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--be2-text-muted, #64748b);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0.45rem;
    padding: 0.45rem 0.85rem;
    white-space: nowrap;
    margin-bottom: 0;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.be2-projects-status-tabs .nav-link:hover,
.be2-projects-status-tabs .be2-projects-status-tab:hover {
    color: var(--be2-text, #1e293b);
    background: color-mix(in srgb, var(--be2-surface, #fff) 55%, transparent);
    border-color: transparent;
}

.be2-projects-status-tabs .nav-link.active,
.be2-projects-status-tabs .be2-projects-status-tab.active,
.be2-projects-status-tabs .nav-link.active:hover,
.be2-projects-status-tabs .be2-projects-status-tab.active:hover {
    color: var(--be2-link);
    background: var(--be2-surface, #fff);
    border-color: var(--be2-card-border, #d8dde3);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.be2-projects-status-tabs .nav-link:focus,
.be2-projects-status-tabs .be2-projects-status-tab:focus {
    outline: none;
}

.be2-projects-status-tabs .nav-link:focus-visible,
.be2-projects-status-tabs .be2-projects-status-tab:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--be2-link) 45%, transparent);
    outline-offset: 1px;
}

.be2-projects-list-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem 1rem;
    padding: 0.85rem 0 1rem;
    border-bottom: 1px solid var(--be2-card-border, #e5e7eb);
    margin-bottom: 1rem;
}

.be2-projects-list-toolbar-field {
    min-width: 0;
}

.be2-projects-list-toolbar-field--search {
    flex: 1 1 12rem;
    max-width: 18rem;
}

.be2-projects-list-toolbar-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--be2-text-muted, #6b7280);
    margin-bottom: 0.25rem;
}

.be2-projects-list-clear {
    font-size: 0.8125rem;
    font-weight: 600;
    padding-bottom: 0.35rem;
}

.be2-projects-list-panel {
    padding: 0;
    overflow: hidden;
}

.be2-projects-table thead th {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--be2-text-muted, #6b7280);
    border-top: none;
    white-space: nowrap;
}

.be2-projects-table tbody td {
    vertical-align: middle;
    font-size: 0.875rem;
}

.be2-projects-row.is-filtered-out {
    display: none;
}

.be2-projects-table-col-select {
    width: 2.25rem;
    min-width: 2.25rem;
    text-align: center;
    vertical-align: middle;
    user-select: none;
}

.be2-projects-row-select,
.be2-projects-select-all {
    width: 1rem;
    height: 1rem;
    margin: 0;
    cursor: pointer;
    accent-color: var(--be2-figma-accent, #2a7de1);
}

.be2-projects-bulk {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    padding: 0.65rem 0.85rem;
    margin: 0 0 0.75rem;
    background: #eef5fc;
    border: 1px solid #d3e4f7;
    border-radius: 0.25rem;
}

.be2-projects-bulk[hidden] {
    display: none !important;
}

.be2-projects-bulk-count {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--be2-text, #1f2937);
    margin-right: 0.15rem;
}

.be2-projects-bulk-status,
.be2-projects-bulk-timesheets {
    width: auto;
    min-width: 10.5rem;
}

.be2-projects-row.is-selected td {
    background: rgba(42, 125, 225, 0.08);
}

.be2-projects-table-col-ref {
    min-width: 10rem;
}

.be2-projects-ref-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.be2-projects-ref-link:hover {
    color: var(--be2-link);
    text-decoration: none;
}

.be2-projects-ref-link strong {
    display: block;
    color: #111827;
}

.be2-projects-ref-name {
    display: block;
    font-size: 0.8125rem;
    color: var(--be2-text-muted, #6b7280);
}

.be2-projects-task-link {
    display: inline-block;
    margin-top: 0.15rem;
    font-size: 0.8125rem;
    font-weight: 600;
}

.be2-projects-status-select {
    min-width: 8.5rem;
    max-width: 10rem;
}

.be2-projects-timesheet-cell {
    white-space: nowrap;
}

.be2-projects-timesheet-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.be2-projects-timesheet-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 999px;
    background: var(--be2-figma-accent, #2a7de1);
    color: #fff;
    flex-shrink: 0;
    text-decoration: none;
    line-height: 0;
}

.be2-projects-timesheet-open:hover,
.be2-projects-timesheet-open:focus {
    color: #fff;
    text-decoration: none;
    filter: brightness(1.08);
}

.be2-projects-timesheet-open.is-off {
    background: #c5c9d1;
}

.be2-projects-timesheet-open svg {
    width: 0.75rem;
    height: 0.75rem;
    display: block;
}

.be2-projects-visibility {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    font-size: 0.8125rem;
    color: var(--be2-text-muted, #6b7280);
    position: relative;
    cursor: pointer;
}

.be2-projects-visibility-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.be2-projects-visibility-switch {
    display: inline-block;
    width: 2.2rem;
    height: 1.15rem;
    border-radius: 999px;
    background: #d1d5db;
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
}

.be2-projects-visibility-input:checked + .be2-projects-visibility-switch {
    background: var(--be2-figma-accent, #2a7de1);
}

.be2-projects-visibility-switch::after {
    content: "";
    position: absolute;
    top: 0.12rem;
    left: 0.12rem;
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 999px;
    background: #fff;
    transition: transform 0.15s ease;
}

.be2-projects-visibility-input:checked + .be2-projects-visibility-switch::after {
    transform: translateX(1rem);
}

.be2-projects-visibility-input:focus-visible + .be2-projects-visibility-switch {
    outline: 2px solid var(--be2-figma-accent, #2a7de1);
    outline-offset: 2px;
}

.be2-projects-visibility-input:disabled + .be2-projects-visibility-switch {
    opacity: 0.55;
    cursor: default;
}

.be2-projects-list-no-match {
    margin: 0;
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    color: var(--be2-text-muted, #6b7280);
}

.be2-projects-list-no-match.is-hidden {
    display: none;
}

.be2-projects-list-empty {
    margin-top: 1rem;
}

.be2-project-main {
    flex: 1;
    min-width: 0;
    background: var(--be2-workspace-bg);
    padding: 1.35rem 2rem 2rem;
    min-height: 0;
    color: var(--be2-text);
}

.be2-project-page-header--section {
    margin-top: 0.15rem;
}

.be2-project-page-header--section .be2-project-page-title {
    font-size: 1.125rem;
    font-weight: 600;
}

.be2-project-page-rule--compact {
    margin: 0.5rem 0 0.85rem;
}

.be2-project-page-actions-only {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.75rem;
}

.be2-project-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.45rem;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--be2-text-muted, #64748b);
    margin: 0 0 0.65rem;
    padding: 0.35rem 0 0;
}

.be2-project-breadcrumb-link,
.be2-project-breadcrumb-job {
    color: var(--be2-link);
    font-weight: 500;
    font-size: inherit;
    text-decoration: none;
}

.be2-project-breadcrumb-link:hover,
.be2-project-breadcrumb-job:hover {
    text-decoration: underline;
    color: var(--be2-link);
}

.be2-project-breadcrumb-job {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem;
}

.be2-project-breadcrumb-ref {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    letter-spacing: normal;
}

.be2-project-breadcrumb-name {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

.be2-project-breadcrumb-sep {
    color: var(--be2-text-muted, #94a3b8);
    font-weight: 400;
    user-select: none;
}

.be2-project-breadcrumb-current {
    font-size: inherit;
    font-weight: 500;
    color: var(--be2-text, #334155);
}

.be2-estimate-subnav-bar {
    margin-top: -0.25rem;
}

.be2-estimate-tabs--subnav {
    border-radius: 0.45rem 0.45rem 0 0;
    overflow: hidden;
}

.be2-project-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0;
}

.be2-project-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--be2-heading);
    margin: 0;
    line-height: 1.2;
}

.be2-project-page-rule {
    border: 0;
    border-top: 1px solid var(--be2-table-border);
    margin: 0.85rem 0 1.5rem;
}

.be2-project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.be2-btn-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.be2-btn-with-icon .be2-btn-icon {
    display: inline-flex;
    line-height: 0;
}

.be2-btn-with-icon .be2-btn-icon svg {
    width: 1rem;
    height: 1rem;
}

.be2-financial-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

@media (max-width: 767px) {
    .be2-financial-cards {
        grid-template-columns: 1fr;
    }
}

.be2-financial-card {
    background: var(--be2-surface);
    border: 1px solid var(--be2-card-border);
    border-radius: 0;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.35rem 1rem;
    color: var(--be2-text);
}

.be2-financial-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--be2-heading);
    margin: 0 0 1rem;
}

.be2-financial-card-body {
    flex: 1;
}

.be2-financial-card-empty {
    color: #6b7280;
    font-size: 0.9375rem;
    line-height: 1.55;
    margin: 0;
    max-width: 26rem;
}

.be2-financial-card-total {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.85rem;
}

.be2-financial-card-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
    border-top: 1px solid #f3f4f6;
    font-size: 0.875rem;
    color: #374151;
}

.be2-financial-card-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 1rem;
    margin-top: auto;
}

.be2-go-tasks {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--be2-link);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
}

.be2-go-tasks:hover {
    color: #1d4ed8;
    text-decoration: none;
}

.be2-go-tasks-icon {
    display: inline-flex;
    width: 0.875rem;
    height: 0.875rem;
}

.be2-go-tasks-icon svg {
    width: 0.875rem;
    height: 0.875rem;
}

.be2-task-list {
    margin-top: 0.25rem;
}

.be2-task-tree {
    list-style: none;
    margin: 0;
    padding: 0;
}

.be2-task-tree .be2-task-tree {
    margin-left: 1.25rem;
    padding-left: 0.75rem;
    border-left: 2px solid #eef0f2;
}

.be2-task-tree-empty {
    min-height: 8px;
}

.be2-task-tree-empty.is-drop-target,
.be2-task-node.is-drop-into > .be2-task-row {
    background: rgba(42, 125, 225, 0.08);
    box-shadow: inset 0 0 0 1px rgba(42, 125, 225, 0.35);
}

.be2-task-node.is-drop-before > .be2-task-row {
    box-shadow: inset 0 2px 0 0 #2a7de1;
}

.be2-task-node.is-drop-after > .be2-task-row {
    box-shadow: inset 0 -2px 0 0 #2a7de1;
}

.be2-task-dnd-hint {
    margin: 0 0 0.75rem;
    color: var(--be2-text-muted, #6b7280);
    font-size: 0.8125rem;
}

.be2-task-add-tabs {
    border-bottom: 1px solid #dee2e6;
}

.be2-task-delete {
    color: #b91c1c !important;
}

.be2-task-delete:hover {
    color: #7f1d1d !important;
    text-decoration: underline;
}

.be2-task-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid #eef0f2;
}

.be2-task-node--branch > .be2-task-row {
    cursor: pointer;
}

.be2-task-node--branch > .be2-task-row:hover {
    background: rgba(42, 125, 225, 0.04);
}

.be2-task-collapse {
    appearance: none;
    border: 0;
    background: transparent;
    color: #6b7280;
    width: 1.1rem;
    height: 1.1rem;
    padding: 0;
    line-height: 1;
    font-size: 0.7rem;
    flex-shrink: 0;
    cursor: pointer;
}

.be2-task-collapse-spacer {
    display: inline-block;
    width: 1.1rem;
    flex-shrink: 0;
}

.be2-task-node--branch:not(.is-collapsed) > .be2-task-row .be2-task-collapse {
    transform: rotate(90deg);
}

.be2-task-node.is-collapsed > .be2-task-tree {
    display: none;
}

.be2-task-child-count {
    font-size: 0.75rem;
    flex-shrink: 0;
}

.be2-task-child-count::before {
    content: "(";
}

.be2-task-child-count::after {
    content: ")";
}

.be2-task-drag {
    cursor: grab;
    color: #9ca3af;
    user-select: none;
    -webkit-user-select: none;
    flex-shrink: 0;
    padding: 0.15rem 0.2rem;
    touch-action: none;
}

.be2-task-drag:active {
    cursor: grabbing;
}

.be2-task-node.is-dragging {
    opacity: 0.55;
}

.be2-task-node.is-dragging .be2-task-row {
    background: rgba(42, 125, 225, 0.06);
}

.be2-task-path {
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

body:not(.be2-show-task-numbers) .be2-task-path {
    display: none !important;
}

.be2-task-row-actions {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.be2-task-timesheet-badge {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #e0f2fe;
    color: #0369a1;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
}

.be2-task-name {
    color: var(--be2-link);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
}

.be2-task-name:hover {
    text-decoration: underline;
    color: var(--be2-link);
}

.be2-task-schedule {
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.be2-task-add-form {
    margin-top: 0.25rem;
}

.be2-task-add-input {
    width: 100%;
    max-width: 320px;
    border: 0;
    background: transparent;
    color: var(--be2-link);
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.7rem 0;
    outline: none;
}

.be2-task-add-input::placeholder {
    color: var(--be2-link);
    opacity: 1;
}

.be2-project-main .be2-panel {
    border-radius: 0;
    border-color: var(--be2-card-border);
}

.be2-btn-muted {
    color: var(--be2-text-muted);
    border-color: var(--be2-input-border);
    background: var(--be2-input-bg);
}

@media (max-width: 991px) {
    .be2-project-workspace {
        flex-direction: column;
    }
    .be2-project-rail {
        width: 100%;
        position: static;
        top: auto;
        height: auto;
        max-height: none;
        min-height: 0;
    }
    .be2-project-rail--tree,
    .be2-project-rail--workspace,
    .be2-project-rail-scroll {
        max-height: 50vh;
    }
    .be2-project-main {
        min-height: 0;
        padding: 1rem 1.25rem 1.5rem;
    }

    .be2-projects-map-panel {
        width: calc(100% + 2.5rem);
        margin-left: -1.25rem;
        margin-right: -1.25rem;
    }

    .be2-projects-map-wrap {
        height: min(50vh, calc(100vh / 2));
        min-height: 200px;
    }
}

.be2-financial-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.be2-financial-kpis--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 991px) {
    .be2-financial-kpis {
        grid-template-columns: 1fr 1fr;
    }
}

.be2-financial-kpi {
    background: #fff;
    border: 1px solid var(--be2-card-border);
    border-radius: 0.35rem;
    padding: 1rem 1.1rem;
}

.be2-financial-kpi-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 0.35rem;
}

.be2-financial-kpi-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: #222;
    line-height: 1.2;
}

.be2-financial-kpi-caption {
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.25rem;
}

.be2-financial-kpi--gauge .be2-financial-kpi-value {
    font-size: 1rem;
}

.be2-financial-kpi--gauge svg {
    max-width: 160px;
}

.be2-inline-form label {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* Settings forms: 4-column grid (Bootstrap col-md-3 = 1/4). Full main width. */
.be2-settings-form {
    max-width: none;
}

.be2-settings-form .form-row > [class*='col-'] {
    min-width: 0;
}

.be2-settings-form .form-group {
    margin-bottom: 1rem;
}

.be2-settings-form label {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.be2-settings-form .form-control,
.be2-settings-form .custom-select {
    width: 100%;
}

.be2-task-workspace {
    min-width: 0;
}

.be2-task-breadcrumb {
    font-size: 0.875rem;
    margin-bottom: 1rem;
    color: #6b7280;
}

.be2-task-breadcrumb a {
    color: var(--be2-link);
    font-weight: 600;
    text-decoration: none;
}

.be2-task-breadcrumb a:hover {
    text-decoration: underline;
}

.be2-task-breadcrumb-sep {
    margin: 0 0.35rem;
    color: #9ca3af;
}

.be2-task-breadcrumb-current {
    color: #374151;
    font-weight: 600;
}

.be2-task-subnav {
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}

.be2-task-subnav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
}

.be2-task-subnav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.85rem;
    color: #4b5563;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
}

.be2-task-subnav-link:hover {
    color: var(--be2-link);
    text-decoration: none;
}

.be2-task-subnav-link.is-active {
    color: var(--be2-link);
    border-bottom-color: var(--be2-link);
}

.be2-task-subnav-icon {
    width: 0.95rem;
    height: 0.95rem;
    display: inline-flex;
    color: #9ca3af;
}

.be2-task-subnav-link.is-active .be2-task-subnav-icon {
    color: var(--be2-link);
}

.be2-task-subnav-icon svg {
    width: 0.95rem;
    height: 0.95rem;
    display: block;
}

.be2-task-main {
    min-width: 0;
}

.be2-financial-card-list a.be2-link {
    font-weight: 600;
}

.be2-project-rail-count {
    color: #9ca3af;
    font-weight: 400;
}

.be2-project-rail-setup {
    color: #ea580c;
    font-size: 0.75rem;
    font-weight: 600;
}

.be2-project-rail-workflow {
    display: inline-block;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    margin-left: 0.2rem;
    vertical-align: middle;
}

.be2-project-rail-workflow--complete {
    background: #16a34a;
}

.be2-project-rail-workflow--current {
    background: #ea580c;
    box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.25);
}

.be2-project-rail-workflow--attention {
    background: #d1d5db;
}

.be2-workflow-banner {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 0.35rem;
    padding: 0.65rem 0.85rem;
    margin-bottom: 1rem;
}

.be2-workflow-banner-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}

.be2-workflow-banner-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.9rem;
    color: #78350f;
}

.be2-workflow-banner-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.be2-workflow-snooze {
    color: #92400e;
}

.be2-workflow-card {
    background: var(--be2-surface);
    border: 1px solid var(--be2-card-border);
    border-radius: 0.35rem;
    padding: 1rem 1.15rem 1.1rem;
    margin-bottom: 1.25rem;
    color: var(--be2-text);
}

.be2-workflow-card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.be2-workflow-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--be2-heading);
    margin: 0 0 0.2rem;
}

.be2-workflow-card-reason {
    color: var(--be2-text-muted);
    font-size: 0.9rem;
}

.be2-workflow-progress {
    text-align: right;
    line-height: 1.1;
}

.be2-workflow-progress-value {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: #ea580c;
}

.be2-workflow-progress-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--be2-text-muted);
}

.be2-workflow-cta {
    margin-bottom: 0.85rem;
}

.be2-workflow-ready {
    color: #166534;
    font-weight: 600;
    margin-bottom: 0.85rem;
}

.be2-workflow-stepper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.65rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.be2-workflow-step {
    flex: 1 1 8.5rem;
    min-width: 0;
}

.be2-workflow-step-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.45rem;
    border: 1px solid var(--be2-card-border);
    border-radius: 0.35rem;
    text-decoration: none;
    color: var(--be2-text);
    font-size: 0.78rem;
    background: var(--be2-surface-muted);
}

.be2-workflow-step--complete .be2-workflow-step-link {
    border-color: rgba(34, 197, 94, 0.45);
    background: rgba(34, 197, 94, 0.12);
}

.be2-workflow-step--current .be2-workflow-step-link {
    border-color: rgba(249, 115, 22, 0.55);
    background: rgba(249, 115, 22, 0.12);
    font-weight: 600;
}

.be2-workflow-step-marker {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #d1d5db;
    flex-shrink: 0;
}

.be2-workflow-step--complete .be2-workflow-step-marker {
    background: #16a34a;
}

.be2-workflow-step--current .be2-workflow-step-marker {
    background: #ea580c;
}

.be2-workflow-step-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.be2-workflow-welcome {
    margin-bottom: 1rem;
}

.be2-workflow-focus-highlight {
    outline: 2px solid #fb923c;
    outline-offset: 3px;
    transition: outline-color 0.2s ease;
}

.be2-project-overview-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    align-items: stretch;
}

.be2-project-overview-top .be2-project-stats,
.be2-project-overview-top .be2-project-overview-map-card {
    margin-bottom: 0;
}

.be2-project-overview-map-card {
    background: var(--be2-surface);
    border: 1px solid var(--be2-card-border);
    padding: 1rem 1.15rem 1.15rem;
    display: flex;
    flex-direction: column;
    min-height: 0;
    color: var(--be2-text);
}

.be2-project-overview-map {
    flex: 1;
    min-height: 280px;
    border: 1px solid var(--be2-card-border);
    border-radius: 0.35rem;
    overflow: hidden;
    background: #b8d4e8;
}

.be2-project-overview-map.leaflet-container {
    font-family: inherit;
    height: 280px;
}

.be2-project-overview-map--empty {
    min-height: 200px;
    background: var(--be2-surface-muted);
    border-style: dashed;
}

.be2-project-overview-map-note {
    color: var(--be2-text-muted);
    font-size: 0.8rem;
    margin: 0 0 0.65rem;
}

.be2-project-overview-map-empty {
    color: var(--be2-text-muted);
    font-size: 0.875rem;
    margin: 0.75rem 0 0;
}

.be2-project-stats {
    background: var(--be2-surface);
    border: 1px solid var(--be2-card-border);
    padding: 1rem 1.15rem 1.15rem;
    margin-bottom: 1.25rem;
    color: var(--be2-text);
}

.be2-project-stats-edit {
    background: var(--be2-surface);
    border: 1px solid var(--be2-card-border);
    padding: 1rem 1.15rem 1.15rem;
    margin-bottom: 1.25rem;
    color: var(--be2-text);
}

.be2-project-stats-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.be2-project-stats-title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--be2-text-muted);
    margin: 0;
}

.be2-project-stats-edit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid var(--be2-card-border);
    border-radius: 0.35rem;
    background: var(--be2-surface-muted);
    color: var(--be2-link);
    cursor: pointer;
    transition: background 120ms ease, border-color 120ms ease;
}

.be2-project-stats-edit-btn:hover {
    background: var(--be2-table-hover);
    border-color: var(--be2-link);
}

.be2-project-stats-edit-btn svg {
    width: 1rem;
    height: 1rem;
}

.be2-project-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
    gap: 0.85rem 1.25rem;
}

@media (max-width: 960px) {
    .be2-project-overview-top {
        grid-template-columns: 1fr;
    }
}

.be2-project-stat dt {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--be2-text-muted);
    margin-bottom: 0.2rem;
}

.be2-project-stat dd {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--be2-heading);
    margin: 0;
    line-height: 1.4;
    word-break: break-word;
}

.be2-project-stat--full {
    grid-column: 1 / -1;
}

.be2-project-schedule-date {
    max-width: 11rem;
    font-weight: 400;
}

.be2-project-schedule-date--invalid,
.be2-project-schedule-end-wrap--invalid .be2-project-schedule-date--end {
    border-color: var(--be2-danger, #ef4444);
    background: color-mix(in srgb, var(--be2-danger, #ef4444) 8%, var(--be2-surface, #fff));
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--be2-danger, #ef4444) 35%, transparent);
}

.be2-project-schedule-end-wrap--invalid dt label {
    color: var(--be2-danger, #ef4444);
}

.be2-project-schedule-hint {
    font-weight: 400;
    line-height: 1.4;
}

.be2-project-stats-form-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.be2-overview-graph-panel {
    background: var(--be2-surface);
    border: 1px solid var(--be2-card-border);
    padding: 0.75rem 1rem 1rem;
    position: relative;
    color: var(--be2-text);
}

.be2-overview-graph {
    width: 100%;
    height: min(68vh, 560px);
    min-height: 400px;
    background: var(--be2-surface);
    border: 1px solid var(--be2-card-border);
    overflow: hidden;
    touch-action: none;
}

.be2-overview-detail {
    position: absolute;
    width: min(280px, calc(100% - 2rem));
    background: var(--be2-surface);
    border: 1px solid var(--be2-card-border);
    box-shadow: var(--be2-shadow);
    padding: 0.85rem 1rem;
    pointer-events: none;
    z-index: 2;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
}

.be2-overview-detail--tr {
    top: 1rem;
    right: 1rem;
}

.be2-overview-detail--tl {
    top: 1rem;
    left: 1rem;
}

.be2-overview-detail--br {
    right: 1rem;
    bottom: 3.25rem;
}

.be2-overview-detail--bl {
    left: 1rem;
    bottom: 3.25rem;
}

.be2-overview-detail.is-hidden {
    display: none;
}

.be2-overview-detail-heading {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ef7b2e;
    margin-bottom: 0.35rem;
}

.be2-overview-detail-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--be2-heading);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.be2-overview-detail-subtext {
    font-size: 0.875rem;
    color: var(--be2-text-muted);
    line-height: 1.45;
}

.be2-overview-node.is-dimmed {
    opacity: 0.12;
}

.be2-overview-node.is-dimmed .be2-overview-item-label,
.be2-overview-node.is-dimmed .be2-overview-hub-label,
.be2-overview-node.is-dimmed .be2-overview-hub-value,
.be2-overview-node.is-dimmed .be2-overview-project-label {
    opacity: 0.35;
}

.be2-overview-node.is-active .be2-overview-node-dot {
    stroke: #ef7b2e;
    stroke-width: 2.5;
}

.be2-overview-node.is-focused .be2-overview-node-halo {
    stroke: rgba(239, 123, 46, 0.35);
    fill: rgba(239, 123, 46, 0.08);
}

.be2-overview-node.is-focused .be2-overview-node-dot {
    stroke: #ef7b2e;
    stroke-width: 3;
}

.be2-overview-node.is-active .be2-overview-item-label,
.be2-overview-node.is-active .be2-overview-hub-label {
    fill: var(--be2-text);
    font-weight: 600;
}

.be2-overview-item-label {
    pointer-events: none;
    user-select: none;
}

.be2-overview-hub-label,
.be2-overview-hub-value,
.be2-overview-project-label {
    pointer-events: none;
    user-select: none;
}

.be2-overview-legend-hint {
    color: var(--be2-text-muted);
    font-size: 0.75rem;
}

.be2-overview-graph-svg {
    display: block;
}

.be2-overview-graph-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: var(--be2-text-muted);
}

.be2-overview-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.be2-overview-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    display: inline-block;
}

.be2-overview-dot--project { background: #2a7de1; }
.be2-overview-dot--category { background: #ef7b2e; }
.be2-overview-dot--item { background: #4a4a4a; }

/* Entity settings — misc template toolbar */
.be2-misc-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
}

/* Settings → Contacts: A–Z tabs + paged table */
.be2-contacts-panel {
    overflow: hidden;
}

.be2-contacts-letter-strip {
    display: flex;
    gap: 0.2rem;
    padding: 0.65rem 0.75rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid var(--be2-card-border, #e5e7eb);
    background: var(--be2-surface-muted, #f8fafc);
    scrollbar-width: thin;
}

.be2-contacts-letter {
    flex: 0 0 auto;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.45rem;
    border: 1px solid transparent;
    border-radius: 0.3rem;
    background: transparent;
    color: var(--be2-text, #1e293b);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.be2-contacts-letter:hover:not(:disabled) {
    background: #fff;
    border-color: var(--be2-card-border, #e5e7eb);
}

.be2-contacts-letter.is-active {
    background: var(--be2-accent, #2a7de1);
    border-color: var(--be2-accent, #2a7de1);
    color: #fff;
}

.be2-contacts-letter.is-empty,
.be2-contacts-letter:disabled {
    opacity: 0.35;
    cursor: default;
}

.be2-contacts-letter-count {
    margin-left: 0.3rem;
    font-weight: 500;
    opacity: 0.85;
}

.be2-contacts-meta {
    padding: 0.55rem 1rem 0;
    font-size: 0.8rem;
    color: var(--be2-text-muted, #6c757d);
}

.be2-contacts-table-wrap {
    position: relative;
    min-height: 6rem;
}

.be2-contacts-table-wrap.is-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.55);
    pointer-events: none;
}

.be2-contacts-table th,
.be2-contacts-table td {
    vertical-align: middle;
    font-size: 0.875rem;
}

.be2-contacts-name {
    font-weight: 600;
}

.be2-contacts-mobile-sub {
    font-size: 0.75rem;
    margin-top: 0.1rem;
}

.be2-contacts-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
    border-top: 1px solid var(--be2-card-border, #e5e7eb);
}

.be2-contacts-page-tabs {
    display: flex;
    flex: 1 1 auto;
    gap: 0.25rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: center;
    scrollbar-width: thin;
}

.be2-contacts-page-tab {
    flex: 0 0 auto;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.4rem;
    border: 1px solid var(--be2-card-border, #e5e7eb);
    border-radius: 0.3rem;
    background: #fff;
    color: var(--be2-text, #1e293b);
    font-size: 0.8rem;
    cursor: pointer;
}

.be2-contacts-page-tab.is-active {
    background: var(--be2-accent, #2a7de1);
    border-color: var(--be2-accent, #2a7de1);
    color: #fff;
}

@media (max-width: 575.98px) {
    .be2-contacts-search {
        width: 100%;
    }

    .be2-contacts-search .form-control {
        flex: 1 1 auto;
        min-width: 0;
        margin-right: 0.35rem !important;
    }

    .be2-contacts-pager {
        flex-wrap: wrap;
    }

    .be2-contacts-page-tabs {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        padding-top: 0.25rem;
    }
}

.be2-people-rail-person.is-filtered-out {
    display: none;
}

.be2-people-rail-group.is-filtered-out {
    display: none;
}

.be2-people-rail-group:not(.is-open-project) > .be2-project-rail-project-children {
    display: none;
}

.be2-people-rail-folder-row {
    display: flex;
    align-items: stretch;
}

.be2-people-rail-folder-toggle {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
}

.be2-people-rail-folder-toggle:hover {
    color: #6b7280;
}

.be2-people-rail-folder-row .be2-project-rail-folder {
    flex: 1;
    min-width: 0;
}

.be2-clients-kpi-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.be2-clients-kpi-row .be2-card--kpi {
    min-height: 0;
}

.be2-clients-kpi-row .be2-kpi-value {
    font-size: 2rem;
    margin-top: 0.35rem;
}

.be2-clients-charts-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.be2-clients-charts-grid .be2-card--chart {
    min-height: 260px;
    min-width: 0;
}

.be2-clients-chart {
    min-height: 120px;
}

.be2-clients-summary-card {
    margin-bottom: 1rem;
}

.be2-clients-summary-table-wrap {
    max-height: none;
}

.be2-clients-status-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: #6b7280;
}

.be2-clients-status-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

@media (max-width: 1399px) {
    .be2-clients-charts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1199px) {
    .be2-clients-kpi-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .be2-clients-kpi-row,
    .be2-clients-charts-grid {
        grid-template-columns: 1fr;
    }
}

.be2-people-main-row.is-filtered-out {
    display: none;
}

.be2-people-main-no-match.is-hidden {
    display: none;
}

.be2-people-detail-card-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.be2-people-detail-back {
    color: #374151;
    font-size: 0.875rem;
    text-decoration: none;
}

.be2-people-detail-back:hover {
    color: var(--be2-heading);
    text-decoration: none;
}

.be2-people-detail-delete-form {
    margin: 0;
    flex-shrink: 0;
}

.be2-people-detail-delete {
    line-height: 1;
    border: 0;
}

.be2-people-detail-delete:hover,
.be2-people-detail-delete:focus {
    color: #b91c1c !important;
    text-decoration: none;
}

.be2-people-detail-delete-icon {
    display: inline-flex;
    width: 1.125rem;
    height: 1.125rem;
}

.be2-people-detail-delete-icon svg {
    width: 100%;
    height: 100%;
}

/* Legacy horizontal people sub-tabs (settings layout) — kept for reference */
.be2-people-workspace {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.be2-people-subnav {
    width: 11rem;
    flex-shrink: 0;
}

.be2-people-subnav-link {
    display: block;
    padding: 0.45rem 0.75rem;
    border-radius: 0.25rem;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
}

.be2-people-subnav-link:hover {
    background: #f3f4f6;
    color: #111827;
    text-decoration: none;
}

.be2-people-subnav-link.is-active {
    background: #2a7de1;
    color: #fff;
}

.be2-people-workspace-main {
    flex: 1;
    min-width: 0;
}

@media (max-width: 767.98px) {
    .be2-people-workspace {
        flex-direction: column;
    }

    .be2-people-subnav {
        width: 100%;
    }

    .be2-people-subnav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem;
    }
}

.be2-misc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.be2-misc-table .be2-misc-col-select {
    width: 2rem;
}

.be2-misc-table .be2-misc-col-index {
    width: 4.5rem;
    white-space: nowrap;
    vertical-align: middle;
}

.be2-misc-index-cell {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.be2-misc-drag {
    display: inline-block;
    cursor: grab;
    user-select: none;
    color: var(--be2-text-muted, #9ca3af);
    letter-spacing: -0.12em;
    line-height: 1;
}

.be2-misc-table .be2-misc-col-actions {
    width: 4.5rem;
    white-space: nowrap;
}

.be2-misc-row-actions {
    display: flex;
    gap: 0.5rem;
}

.be2-misc-row-actions form {
    margin: 0;
}

.be2-job-checklist-table .be2-job-checklist-col-drag {
    width: 2.5rem;
    color: var(--be2-text-muted, #9ca3af);
    vertical-align: middle;
}

.be2-job-checklist-table .be2-job-checklist-col-active {
    width: 4.5rem;
}

.be2-job-checklist-drag {
    cursor: grab;
    user-select: none;
    font-weight: 700;
    letter-spacing: -0.15em;
}

.be2-job-checklist-row--dragging {
    opacity: 0.65;
}

#be2-job-checklist-sortable tr[draggable="true"] {
    cursor: grab;
}

.be2-workspace-bulk-setting {
    margin-left: 2.75rem;
    max-width: 18rem;
}

.be2-settings-rail-list .be2-settings-rail-subheading {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--be2-rail-muted);
    padding: 0.85rem 0.85rem 0.3rem;
    margin: 0;
    list-style: none;
}

.be2-settings-rail-list .be2-project-rail-heading + .be2-project-rail-link + .be2-settings-rail-subheading,
.be2-settings-rail-list .be2-project-rail-heading + .be2-settings-rail-subheading {
    padding-top: 0.35rem;
}

.be2-settings-workspace-shell .be2-project-rail-link {
    font-size: 0.875rem;
    font-weight: 600;
}

.be2-project-rail--settings {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: 0;
    align-self: stretch;
    min-height: calc(100vh - var(--be2-chrome-top));
    max-height: none;
    height: auto;
}

.be2-project-rail--settings .be2-project-rail-nav {
    flex: 0 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 1.5rem;
}

.be2-project-rail--settings::after {
    content: "";
    flex: 1 1 auto;
    min-height: 0;
}

.be2-settings-section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.be2-settings-section-nav-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--be2-link, #2a7de1);
    text-decoration: none;
}

.be2-settings-section-nav-link:hover {
    text-decoration: underline;
    color: var(--be2-link-hover, #1d4ed8);
}

/* Scheduling workspace — calendar timeline + left rail */
.be2-scheduling-rail .be2-project-rail-nav {
    padding: 0 0.65rem 0.5rem;
}

.be2-scheduling-rail-worker-btn {
    display: flex;
    align-items: center;
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    padding: 0.35rem 0.5rem;
    border-radius: 0.25rem;
    color: #374151;
    font-size: 0.8125rem;
}

.be2-scheduling-rail-worker-btn:hover {
    background: #e5e7eb;
    color: #111827;
}

.be2-scheduling-rail-worker-btn.is-active {
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 600;
}

.be2-scheduling-rail-worker.is-hidden {
    display: none;
}

.be2-scheduling-calendar-panel {
    padding: 0;
    overflow: hidden;
}

.be2-scheduling-calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    background: #fafafa;
}

.be2-scheduling-calendar-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.be2-scheduling-calendar-title {
    margin: 0;
    flex: 1;
    text-align: center;
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}

.be2-scheduling-calendar {
    padding: 0.75rem 1rem 1rem;
}

.be2-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 1px;
    margin-bottom: 0.35rem;
}

.be2-cal-weekday {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
    text-align: center;
    padding: 0.25rem 0;
}

.be2-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 1px;
    background: #e5e7eb;
    border: 1px solid #e5e7eb;
    border-radius: 0.35rem;
    overflow: hidden;
}

.be2-cal-day {
    min-height: 6.5rem;
    background: #fff;
    padding: 0.35rem 0.4rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.be2-cal-day--outside {
    background: #f9fafb;
}

.be2-cal-day--outside .be2-cal-day-num {
    color: #9ca3af;
}

.be2-cal-day--today {
    background: #f0f7ff;
}

.be2-cal-day--today .be2-cal-day-num {
    background: var(--be2-link);
    color: #fff;
    border-radius: 999px;
    width: 1.5rem;
    height: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.be2-cal-day-num {
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    line-height: 1.2;
}

.be2-cal-day-events {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
    min-height: 0;
}

.be2-cal-event {
    font-size: 0.6875rem;
    line-height: 1.25;
    padding: 0.15rem 0.35rem;
    border-radius: 0.2rem;
    border-left: 3px solid transparent;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.be2-cal-event--work {
    background: #eef2ff;
    color: #1e40af;
    border-left-color: #3b82f6;
}

.be2-cal-event--meeting {
    background: #ecfdf5;
    color: #047857;
    border-left-color: #10b981;
}

.be2-cal-event-time {
    font-weight: 600;
    margin-right: 0.25rem;
}

.be2-cal-event-more {
    font-size: 0.6875rem;
    color: #6b7280;
    padding-left: 0.15rem;
}

.be2-scheduling-agenda-row.is-hidden {
    display: none;
}

#be2-cal-empty,
#be2-agenda-no-match {
    padding: 1rem;
}

.is-hidden {
    display: none !important;
}

@media (max-width: 991px) {
    .be2-scheduling-calendar-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .be2-cal-day {
        min-height: 4.5rem;
    }

    .be2-cal-event-title {
        display: none;
    }
}

/* Project estimates list */
.be2-estimate-list-row {
    cursor: pointer;
}

/* Estimate editor */
.be2-estimate-shell {
    overflow: hidden;
    border: 1px solid var(--be2-card-border, #e5e7eb);
}

.be2-estimate-meta {
    padding: 0.75rem 1rem;
}

.be2-estimate-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    background: #4a7fb5;
    padding: 0;
    margin: 0;
    border-bottom: 0;
    overflow-x: auto;
}

.be2-estimate-tab {
    appearance: none;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.65rem 1.1rem;
    cursor: pointer;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
    flex: 0 0 auto;
}

.be2-estimate-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.be2-estimate-tab.is-active {
    background: var(--be2-workspace-bg, #fff);
    color: var(--be2-heading, #111827);
}

.be2-estimate-tab-panels {
    background: var(--be2-workspace-bg, #fff);
    min-height: 280px;
}

.be2-estimate-tab-panel {
    padding: 0;
}

.be2-estimate-info-panel {
    padding: 1rem 1.25rem 1.25rem;
}

.be2-estimate-export-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.be2-estimate-export-layout {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 0;
    min-height: 70vh;
    align-items: stretch;
    background: #f3f5f8;
}

.be2-estimate-export-settings {
    overflow: auto;
    max-height: min(78vh, 920px);
    padding: 0.85rem;
    border-right: 1px solid #d9e0ea;
    background: #eef1f5;
}

.be2-export-card {
    background: #fff;
    border: 1px solid #d9e0ea;
    border-radius: 4px;
    padding: 0.85rem 0.9rem 0.75rem;
    margin-bottom: 0.75rem;
}

.be2-export-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.65rem;
}

.be2-export-fieldset {
    margin-bottom: 0.85rem;
}

.be2-export-fieldset-label {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.35rem;
}

.be2-export-radios {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.9rem;
}

.be2-export-radio,
.be2-export-check {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    font-size: 0.875rem;
    font-weight: 400;
    cursor: pointer;
}

.be2-export-check {
    display: flex;
    margin-bottom: 0.35rem;
}

.be2-export-default-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem 0.75rem;
    margin-top: 0.75rem;
    padding-top: 0.65rem;
    border-top: 1px solid #e8edf3;
}

.be2-export-textarea {
    min-height: 7rem;
    font-family: inherit;
}

.be2-estimate-export-preview-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #dfe6ef;
}

.be2-estimate-export-preview-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.9rem;
    background: #fff;
    border-bottom: 1px solid #d9e0ea;
}

.be2-estimate-export-preview-title {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
}

.be2-estimate-export-live {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    background: #1f9d55;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.be2-estimate-export-preview-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.be2-estimate-export-preview-scroll {
    overflow: auto;
    max-height: min(78vh, 920px);
    padding: 1rem;
}

.be2-estimate-export-preview-sheet {
    max-width: 760px;
    margin: 0 auto;
    padding: 1.35rem 1.5rem 1.6rem;
    box-shadow: 0 8px 24px rgba(20, 40, 70, 0.12);
}

.be2-estimate-export-preview-sheet .be2-estimate-quote-company {
    color: #1e4f8c;
}

.be2-estimate-export-preview-sheet .be2-estimate-quote-row--heading {
    font-weight: 700;
}

.be2-estimate-quote-block {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    margin: 0.15rem 0;
    padding: 0.12rem 0.2rem 0.12rem 0;
    border-radius: 3px;
}

.be2-estimate-quote-block.is-task-block {
    cursor: grab;
}

.be2-estimate-quote-block.is-quote-dragging {
    opacity: 0.45;
    cursor: grabbing;
}

.be2-estimate-quote-block.is-quote-drop-before {
    box-shadow: inset 0 2px 0 0 #1e4f8c;
}

.be2-estimate-quote-block.is-quote-drop-after {
    box-shadow: inset 0 -2px 0 0 #1e4f8c;
}

.be2-estimate-quote-block-handle {
    flex: 0 0 auto;
    color: #9aa8b8;
    font-size: 0.8rem;
    line-height: 1.2;
    padding-top: 0.15rem;
    user-select: none;
}

.be2-estimate-quote-block-rows {
    flex: 1 1 auto;
    min-width: 0;
}

.be2-estimate-quote-block .be2-estimate-quote-row--heading {
    margin-top: 0;
}

.be2-estimate-export-preview-sheet .be2-estimate-quote-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid #d7dee8;
}

.be2-estimate-export-preview-sheet .be2-estimate-print-logo {
    display: block;
    max-height: 48px;
    max-width: 180px;
    object-fit: contain;
    margin-bottom: 0.35rem;
}

.be2-estimate-export-preview-sheet .be2-estimate-quote-date {
    color: #516074;
    white-space: nowrap;
    font-size: 0.875rem;
}

.be2-estimate-export-preview-sheet .be2-estimate-quote-intro p,
.be2-estimate-export-preview-sheet .be2-estimate-quote-notes p {
    margin: 0 0 0.15rem;
}

.be2-estimate-export-preview-sheet .be2-estimate-quote-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.12rem 0;
    font-size: 0.875rem;
}

.be2-estimate-export-preview-sheet .be2-estimate-quote-row--line {
    padding-left: 0.75rem;
}

.be2-estimate-export-preview-sheet .be2-estimate-quote-row-amount {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.be2-estimate-export-preview-sheet .be2-estimate-quote-row--subtotal {
    margin-top: 0.65rem;
    padding-top: 0.45rem;
    border-top: 1px solid #1a2330;
    border-bottom: 1px solid #1a2330;
    font-weight: 600;
}

.be2-estimate-export-preview-sheet .be2-estimate-quote-row--grand {
    margin-top: 0.3rem;
    font-size: 1rem;
    font-weight: 700;
}

.be2-estimate-export-preview-sheet .be2-estimate-quote-notes {
    margin-top: 1rem;
    color: #516074;
}

.be2-estimate-export-preview-sheet .be2-estimate-quote-extra {
    color: #6b7280;
    font-weight: 400;
    font-size: 0.85em;
}

@media (max-width: 991.98px) {
    .be2-estimate-export-layout {
        grid-template-columns: 1fr;
    }

    .be2-estimate-export-settings {
        max-height: none;
        border-right: 0;
        border-bottom: 1px solid #d9e0ea;
    }

    .be2-estimate-export-preview-scroll {
        max-height: none;
    }
}

.be2-estimate-apply-template-search-wrap {
    margin-bottom: 0.5rem;
}

.be2-estimate-apply-template-list {
    max-height: min(52vh, 22rem);
    overflow: auto;
    border: 1px solid var(--be2-card-border, #e5e7eb);
    border-radius: 4px;
}

.be2-estimate-apply-template-list .be2-estimate-apply-template-pick {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.35rem 0.65rem;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    font-size: 0.875rem;
    line-height: 1.25;
}

.be2-estimate-apply-template-list .be2-estimate-apply-template-pick:first-child {
    border-top: 0;
}

.be2-estimate-apply-template-list .be2-estimate-apply-template-pick:last-child {
    border-bottom: 0;
}

.be2-estimate-apply-template-pick-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

.be2-estimate-apply-template-pick-meta {
    flex: 0 0 auto;
    color: var(--be2-text-muted, #6b7280);
    font-size: 0.75rem;
    white-space: nowrap;
}

.be2-estimate-total-display {
    font-size: 1.25rem;
    font-variant-numeric: tabular-nums;
}

.be2-estimate-panel-actions {
    padding: 0.65rem 1rem 0;
}

.be2-estimate-summary-table .be2-task-path {
    margin-right: 0.35rem;
}

.be2-estimate-task-drag-cell {
    width: 28px;
    vertical-align: middle;
    padding-left: calc(0.35rem + (var(--be2-task-depth, 0) * 1.35rem)) !important;
    padding-right: 0.15rem !important;
    position: relative;
}

.be2-estimate-task-name-cell {
    position: relative;
}

#be2-estimate-tasks-body tr.is-task-nested .be2-estimate-task-drag-cell::before {
    content: '';
    position: absolute;
    left: calc(0.35rem + ((var(--be2-task-depth, 1) - 1) * 1.35rem) + 0.55rem);
    top: 0;
    bottom: 50%;
    width: 0;
    border-left: 2px solid #eef0f2;
}

#be2-estimate-tasks-body tr.is-task-nested .be2-estimate-task-drag-cell::after {
    content: '';
    position: absolute;
    left: calc(0.35rem + ((var(--be2-task-depth, 1) - 1) * 1.35rem) + 0.55rem);
    top: 50%;
    width: 0.55rem;
    border-top: 2px solid #eef0f2;
}

#be2-estimate-tasks-body tr.is-dragging td {
    opacity: 0.55;
    background: rgba(42, 125, 225, 0.06);
}

#be2-estimate-tasks-body tr.is-drop-before td {
    box-shadow: inset 0 2px 0 #2a7de1;
}

#be2-estimate-tasks-body tr.is-drop-after td {
    box-shadow: inset 0 -2px 0 #2a7de1;
}

#be2-estimate-tasks-body tr.is-drop-into td {
    background: color-mix(in srgb, #4a7fb5 20%, var(--be2-workspace-bg, #fff));
}

.be2-estimate-panel-footer {
    padding: 0.35rem 1rem 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.be2-estimate-table-wrap {
    padding: 0 0 0;
    overflow-x: auto;
}

.be2-estimate-section {
    margin: 0;
}

.be2-estimate-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--be2-card-border, #eef0f2);
}

.be2-estimate-section-drag,
.be2-estimate-line-drag {
    cursor: grab;
    color: var(--be2-text-muted, #9ca3af);
    user-select: none;
    -webkit-user-select: none;
    font-size: 0.875rem;
    line-height: 1;
    -webkit-user-drag: element;
}

.be2-estimate-line-drag:active {
    cursor: grabbing;
}

.be2-estimate-line-drag-grip {
    display: inline-block;
    cursor: grab;
    padding: 0.35rem 0.2rem;
    -webkit-user-drag: element;
}

.be2-estimate-line-drag-grip:active {
    cursor: grabbing;
}

.be2-estimate-lines-table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border-top: 0;
    background: #3d7eae;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.12);
    vertical-align: middle;
    white-space: nowrap;
}

.be2-estimate-summary-table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    background: var(--be2-surface-muted, #f8fafc);
    border-top: 0;
}

.be2-estimate-summary-table {
    margin-bottom: 0;
}

.be2-estimate-summary-table td,
.be2-estimate-summary-table th {
    padding: 0.65rem 1rem;
}

.be2-estimate-line td {
    vertical-align: middle;
}

.be2-estimate-lines-footer .be2-estimate-section-total-row td {
    background: var(--be2-surface-muted, #f8fafc);
    border-top: 2px solid var(--be2-card-border, #e5e7eb);
    color: var(--be2-heading, #111827);
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.be2-estimate-section-total-label {
    color: var(--be2-heading, #111827);
}

.be2-estimate-section-footer-total {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--be2-heading, #111827);
}

.be2-estimate-grand-total {
    position: sticky;
    bottom: 0;
    background: var(--be2-workspace-bg, #fff);
    border-top: 2px solid var(--be2-card-border, #e5e7eb);
    color: var(--be2-heading, #111827);
}

.be2-estimate-footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--be2-card-border, #e5e7eb);
    background: var(--be2-surface-muted, #f8fafc);
}

.be2-estimate-footer-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.be2-estimate-template-hint {
    margin-left: 0.25rem;
}

.be2-estimate-footer-totals {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 1rem;
    margin-left: auto;
}

.be2-estimate-footer-subtotal,
.be2-estimate-footer-total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.be2-estimate-footer-subtotal strong {
    font-size: 1rem;
    font-weight: 600;
    color: var(--be2-text-muted, #4b5563);
}

.be2-estimate-footer-total strong {
    font-size: 1.15rem;
}

.be2-estimate-toolbar {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--be2-page-bg, #f3f4f6);
    padding: 0.5rem 0;
}

.be2-favourite-badge {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #fef3c7;
    color: #92400e;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
}

.be2-catalogue-results {
    max-height: 360px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
}

.be2-estimate-line-catalogue td {
    background: #f8fafc;
}

.be2-estimate-tree {
    --be2-estimate-indent: 1.15rem;
    /* Section tab replaces the depth-0 Materials/Labour root row; shift visual indent. */
    --be2-estimate-depth-shift: 1;
    table-layout: fixed;
    width: 100%;
}

/* Task/Item stays a fixed width so Qty → Amount never shift when extra cols appear. Leftover goes to the fill col. */
.be2-estimate-tree col.be2-estimate-col-task,
.be2-estimate-tree th.be2-estimate-col-task {
    width: 400px;
}

.be2-estimate-tree col.be2-estimate-col-fill {
    width: auto;
}

.be2-estimate-tree .be2-estimate-desc-wrap {
    min-width: 10rem;
    flex: 1 1 10rem;
}

.be2-estimate-tree .be2-estimate-calc {
    min-width: 0;
}

/* Labour/subbie columns stay in the DOM; collapse off their tab so shared cols (Qty → Amount) keep the same offset. */
.be2-estimate-editor:not(.is-labour-cols) .be2-estimate-labour-col,
.be2-estimate-tree:not(.is-labour-cols) .be2-estimate-labour-col {
    visibility: collapse;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden;
}

.be2-estimate-labour-col .form-control-sm {
    min-width: 0;
    width: 100%;
}

.be2-estimate-editor:not(.is-subbie-cols) .be2-estimate-subbie-col,
.be2-estimate-tree:not(.is-subbie-cols) .be2-estimate-subbie-col {
    visibility: collapse;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden;
}

.be2-estimate-subbie-col .form-control-sm {
    min-width: 0;
    width: 100%;
}

.be2-estimate-sums-margin-global {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.be2-estimate-sums-margin-global .form-control-sm {
    width: 4.5rem;
}

.be2-estimate-sums-matrix .form-control-sm {
    max-width: 5.5rem;
    margin-left: auto;
}

.be2-estimate-sums-contingency {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.be2-estimate-sums-contingency .form-control-sm {
    width: 6.5rem;
    max-width: 6.5rem;
    margin-left: 0;
}

.be2-estimate-sums-matrix tr.be2-estimate-sums-divider td {
    border-top: 2px solid var(--be2-card-border, #e5e7eb);
}

.be2-estimate-sums-matrix tbody tr:hover td {
    background: color-mix(in srgb, #4a7fb5 20%, var(--be2-workspace-bg, #fff));
}

.be2-estimate-gst-table tbody tr:hover td {
    background: color-mix(in srgb, #4a7fb5 20%, var(--be2-workspace-bg, #fff));
}

.be2-estimate-house-area-card {
    max-width: 40rem;
    padding: 1rem 1.15rem;
}

.be2-estimate-house-area-card .form-group {
    margin-bottom: 0;
}

.be2-estimate-tree .be2-estimate-row-group td {
    background: color-mix(in srgb, #4a7fb5 14%, var(--be2-workspace-bg, #fff));
}

.be2-estimate-tree .be2-estimate-row-group:hover td {
    background: color-mix(in srgb, #4a7fb5 20%, var(--be2-workspace-bg, #fff));
}

.be2-estimate-tree .be2-estimate-row-group.is-add-target td {
    background: color-mix(in srgb, #2563eb 22%, var(--be2-workspace-bg, #fff));
}

.be2-estimate-tree .be2-estimate-tree-desc {
    position: relative;
    overflow: visible;
}

.be2-estimate-tree .be2-estimate-desc-inner {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding-left: calc(0.25rem + (max(0, var(--be2-estimate-depth, 0) - var(--be2-estimate-depth-shift, 0)) * var(--be2-estimate-indent)));
    min-width: 0;
}

.be2-estimate-collapse,
.be2-estimate-collapse-spacer {
    flex: 0 0 1.1rem;
    width: 1.1rem;
    height: 1.1rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--be2-text-muted, #6b7280);
    line-height: 1;
    font-size: 0.85rem;
}

.be2-estimate-collapse {
    cursor: pointer;
}

.be2-estimate-desc-wrap {
    position: relative;
    flex: 1 1 auto;
    min-width: 8rem;
}

.be2-estimate-row-group .be2-estimate-description {
    font-weight: 600;
}

.be2-estimate-work-type {
    flex: 0 0 9rem;
    max-width: 9rem;
    font-size: 0.75rem;
    border-radius: 999px;
    background: #e8eef3;
    color: #334155;
}

.be2-estimate-work-type.has-value {
    background: #dbeafe;
    color: #1e3a8a;
    font-weight: 600;
}

.be2-estimate-qty-required {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
}

.be2-estimate-qty-required-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--be2-text-muted, #6b7280);
    line-height: 1;
}

.be2-estimate-stepper {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.be2-estimate-stepper .be2-estimate-header-qty {
    text-align: center;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.be2-estimate-stepper-btn {
    flex: 0 0 1.35rem;
    width: 1.35rem;
    height: 1.6rem;
    border: 1px solid var(--be2-card-border, #d1d5db);
    background: #fff;
    border-radius: 3px;
    line-height: 1;
    padding: 0;
    color: var(--be2-heading, #111827);
    cursor: pointer;
}

.be2-estimate-stepper-btn:hover {
    background: #f3f4f6;
}

.be2-estimate-zero,
input.be2-estimate-zero {
    background: #fecaca !important;
    color: #7f1d1d;
}

.be2-estimate-calc {
    background: color-mix(in srgb, var(--be2-heading, #111827) 6%, var(--be2-workspace-bg, #fff)) !important;
    color: var(--be2-heading, #111827);
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    pointer-events: none;
    min-width: 5.5rem;
}

.be2-estimate-calc.be2-estimate-zero {
    background: #fecaca !important;
}

.be2-estimate-line-remove-cell {
    width: 28px;
    text-align: center;
    vertical-align: middle;
}

.be2-estimate-tpl-th,
.be2-estimate-tpl-cell {
    width: 0;
    max-width: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    vertical-align: middle;
    text-align: center;
}

.be2-estimate-tpl-check {
    display: none;
    margin: 0;
    vertical-align: middle;
}

.be2-estimate-editor.is-template-mode .be2-estimate-tpl-th,
.be2-estimate-editor.is-template-mode .be2-estimate-tpl-cell {
    width: 28px;
    max-width: 28px;
    padding: 0.3rem 0.2rem;
    border-width: 1px;
    overflow: visible;
}

.be2-estimate-editor.is-template-mode .be2-estimate-tpl-check {
    display: inline-block;
}

.be2-estimate-delete-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    padding: 0;
    border: 1px solid #f0b4b4;
    background: #fff;
    color: #b91c1c;
    border-radius: 3px;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.be2-estimate-delete-line:hover {
    background: #fee2e2;
    border-color: #ef4444;
}

.be2-estimate-delete-footer {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
}

.be2-estimate-delete-footer .btn {
    white-space: nowrap;
}

/* Section / Item / Template on group-row hover (no interstitial + rows). */
/* Overlay so heading titles stay visible; Work type keeps a fixed slot. */
.be2-estimate-group-add {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.75rem;
    z-index: 2;
    padding: 0.1rem 0.35rem;
    background: color-mix(in srgb, #4a7fb5 14%, #fff);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.be2-estimate-row-group:hover .be2-estimate-group-add,
.be2-estimate-row-group:focus-within .be2-estimate-group-add {
    opacity: 1;
    pointer-events: auto;
}

.be2-estimate-group-add .btn-link {
    font-size: 0.75rem;
    line-height: 1.2;
    color: var(--be2-link, #2563eb);
}

.be2-estimate-add-row {
    display: none;
}

.be2-estimate-row-actions {
    white-space: nowrap;
}

.be2-estimate-row-actions .btn-link {
    margin-right: 0.4rem;
}

.be2-estimate-tree-row.is-hidden-collapsed,
.be2-estimate-tree-row.is-tab-hidden,
.be2-estimate-tree-row.be2-estimate-section-root {
    display: none;
}

.be2-estimate-tree-row.is-dragging td,
.be2-estimate-tree-row.is-dragging-block td {
    opacity: 0.45;
}

.be2-estimate-table-wrap.table-responsive {
    overflow: visible;
}

.be2-estimate-live-search {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 20;
    background: #fff;
    border: 1px solid var(--be2-card-border, #d1d5db);
    border-radius: 4px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
    max-height: 240px;
    overflow-y: auto;
}

.be2-estimate-live-search--float {
    position: fixed;
    right: auto;
    top: auto;
    z-index: 1080;
}

.be2-estimate-live-empty {
    margin: 0;
    padding: 0.5rem 0.7rem;
    font-size: 0.8125rem;
    color: var(--be2-text-muted, #6b7280);
}

.be2-estimate-live-search-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.be2-estimate-live-pick {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 0.45rem 0.65rem;
    font-size: 0.8125rem;
    cursor: pointer;
}

.be2-estimate-live-pick:hover,
.be2-estimate-live-pick.is-active {
    background: #eff6ff;
}

.be2-estimate-work-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: #dbeafe;
    color: #1e3a8a;
    white-space: nowrap;
}

/* ——— Font style picker (settings) ——— */
.be2-font-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
    gap: 0.75rem;
}

.be2-font-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.be2-font-accordion-toggle {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.65rem;
    border: 1px solid var(--be2-card-border, #d8dde3);
    border-radius: 0.35rem;
    background: var(--be2-surface, #fff);
    color: var(--be2-text, #1e293b);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
}

.be2-font-accordion-toggle:hover {
    border-color: color-mix(in srgb, var(--be2-link, #2a7de1) 35%, var(--be2-card-border, #d8dde3));
}

.be2-font-accordion-chevron {
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.15s ease;
    margin-top: -0.15rem;
}

.be2-font-accordion.is-open .be2-font-accordion-chevron {
    transform: rotate(-135deg);
    margin-top: 0.15rem;
}

.be2-font-selected-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.85rem 0.9rem;
    border: 1px solid var(--be2-link, #2a7de1);
    border-radius: 0.45rem;
    box-shadow: 0 0 0 1px var(--be2-link, #2a7de1);
    background: var(--be2-surface, #fff);
    max-width: 22rem;
}

.be2-font-accordion.is-open .be2-font-selected-card {
    display: none;
}

.be2-font-picker-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0;
    padding: 0.85rem 0.9rem;
    border: 1px solid var(--be2-card-border, #d8dde3);
    border-radius: 0.45rem;
    background: var(--be2-surface, #fff);
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.be2-font-picker-card:hover {
    border-color: color-mix(in srgb, var(--be2-link) 35%, var(--be2-card-border, #d8dde3));
}

.be2-font-picker-card--active,
.be2-font-picker-card:has(.be2-font-picker-radio:checked) {
    border-color: var(--be2-link);
    box-shadow: 0 0 0 1px var(--be2-link);
}

.be2-font-picker-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.be2-font-picker-sample {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--be2-heading, #111827);
    line-height: 1.25;
}

.be2-font-picker-preview {
    font-size: 0.8125rem;
    color: var(--be2-text, #1e293b);
    line-height: 1.4;
}

.be2-font-picker-desc {
    font-size: 0.6875rem;
    color: var(--be2-text-muted, #64748b);
    line-height: 1.35;
}

/* ——— Theme branding swatches (settings) ——— */
.be2-theme-swatch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.be2-theme-swatch-card {
    position: relative;
    display: block;
    border: 2px solid #d8dde3;
    border-radius: 0.5rem;
    padding: 0.75rem;
    cursor: pointer;
    background: #ffffff;
    color: #1e293b;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    user-select: none;
}

.be2-theme-swatch-title {
    display: block;
    font-size: 0.95rem;
    color: #1e293b;
}

.be2-theme-swatch-desc {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.15rem;
    line-height: 1.35;
}

.be2-theme-swatch-radio {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    margin: 0;
    cursor: pointer;
    z-index: 2;
}

.be2-theme-swatch-card:has(.be2-theme-swatch-radio:checked),
.be2-theme-swatch-card--active {
    border-color: var(--be2-primary);
    box-shadow: 0 0 0 3px var(--be2-ts-day-active-bg);
}

.be2-theme-swatch-card:hover {
    border-color: var(--be2-primary);
}

.be2-theme-swatch-preview {
    height: 3rem;
    border-radius: 0.35rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-end;
    padding: 0.35rem;
}

.be2-theme-swatch-dots {
    display: flex;
    gap: 0.25rem;
}

.be2-theme-swatch-dots span {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.be2-brand-logo {
    height: var(--be2-brand-logo-height, 48px);
    width: auto;
    max-width: var(--be2-brand-logo-max-width, 220px);
    object-fit: contain;
    flex-shrink: 0;
}

/* Shared branding 4-column rhythm (25% / 25% / 25% / 25%) */
.be2-branding-logo-grid,
.be2-branding-nav-grid {
    --be2-branding-gap: 0.85rem;
}

.be2-branding-logo-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    width: 100%;
}

.be2-branding-logo-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    min-width: 0;
}

.be2-branding-logo-block {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.be2-branding-logo-block--company,
.be2-branding-logo-block--site,
.be2-branding-logo-block--invoice,
.be2-branding-nav-block {
    border: 1px solid var(--be2-card-border, #e5e7eb);
    border-radius: 0.4rem;
    background: var(--be2-surface-muted, #f8fafc);
    padding: 1rem;
    box-sizing: border-box;
}

.be2-branding-logo-block--company > h3,
.be2-branding-logo-block--site > h3,
.be2-branding-logo-block--invoice > h3,
.be2-branding-nav-block > h3 {
    margin-top: 0;
}

.be2-branding-logo-block--site > .form-check,
.be2-branding-logo-block--invoice > .form-check,
.be2-branding-nav-block--company > .form-check {
    margin-bottom: 0;
}

.be2-branding-logo-block--site > .be2-branding-logo-custom:not(.d-none),
.be2-branding-logo-block--invoice > .be2-branding-logo-custom:not(.d-none) {
    margin-top: 0.75rem;
}

.be2-branding-logo-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1rem;
}

.be2-branding-logo-preview-wrap {
    flex: 0 0 auto;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--be2-border, #dee2e6);
    border-radius: 0.35rem;
    background: #fff;
    padding: 0.5rem;
}

.be2-branding-logo-preview {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.be2-branding-logo-controls {
    flex: 1 1 10rem;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.be2-branding-logo-controls .form-group {
    margin-bottom: 0;
    width: 100%;
}

.be2-branding-nav-block-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--be2-card-border, #e5e7eb);
}

.be2-branding-nav-logo-height-row {
    gap: 0.75rem;
}

.be2-branding-nav-logo-height-row .be2-branding-logo-height-range {
    max-width: 280px;
    flex: 1 1 180px;
}

.be2-branding-nav-height-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.be2-branding-nav-height-option {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    cursor: pointer;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .be2-branding-logo-grid,
    .be2-branding-nav-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: var(--be2-branding-gap);
        align-items: stretch;
        width: 100%;
    }

    .be2-branding-logo-block--company,
    .be2-branding-nav-block--primary {
        grid-column: span 1;
        width: 100%;
    }

    .be2-branding-logo-side,
    .be2-branding-nav-side {
        grid-column: span 1;
        width: 100%;
        gap: var(--be2-branding-gap);
        align-self: stretch;
    }

    .be2-branding-logo-block--site,
    .be2-branding-logo-block--invoice {
        width: 100%;
    }

    /* Collapsed: site + invoice hug content; space-between fills the column */
    .be2-branding-logo-grid:not(.is-site-expanded):not(.is-invoice-expanded) .be2-branding-logo-side {
        justify-content: space-between;
    }

    .be2-branding-nav-side {
        justify-content: space-between;
    }

    .be2-branding-logo-grid:not(.is-site-expanded):not(.is-invoice-expanded) .be2-branding-logo-block--site,
    .be2-branding-logo-grid:not(.is-site-expanded):not(.is-invoice-expanded) .be2-branding-logo-block--invoice,
    .be2-branding-nav-block--height,
    .be2-branding-nav-block--company {
        flex: 0 0 auto;
        min-height: 0;
    }

    /* Expanded: each custom logo card also takes 25% */
    .be2-branding-logo-grid.is-site-expanded .be2-branding-logo-side,
    .be2-branding-logo-grid.is-invoice-expanded .be2-branding-logo-side {
        display: contents;
    }

    .be2-branding-logo-grid.is-site-expanded .be2-branding-logo-block--site,
    .be2-branding-logo-grid.is-site-expanded .be2-branding-logo-block--invoice,
    .be2-branding-logo-grid.is-invoice-expanded .be2-branding-logo-block--site,
    .be2-branding-logo-grid.is-invoice-expanded .be2-branding-logo-block--invoice {
        grid-column: span 1;
        width: 100%;
    }

    .be2-branding-logo-height-range {
        max-width: 100% !important;
    }
}

@media (max-width: 767.98px) {
    .be2-branding-logo-block + .be2-branding-logo-block,
    .be2-branding-logo-side {
        width: 100%;
    }

    .be2-branding-logo-block--site,
    .be2-branding-logo-block--invoice {
        border-top: 1px solid var(--be2-border, #e5e7eb);
        border-radius: 0;
        background: transparent;
        border-left: 0;
        border-right: 0;
        border-bottom: 0;
    }

    .be2-branding-logo-controls {
        flex: 1 1 220px;
        max-width: none;
    }
}

/* ——— Weekly timesheet (mobile-first) ——— */
.be2-main--timesheet-week {
    padding: 0;
    background: var(--be2-page-bg);
}

.be2-ts-app {
    max-width: 28rem;
    margin: 0 auto;
    padding: 0 0 2rem;
    min-height: calc(100vh - 3.5rem);
}

.be2-incoming-main .be2-ts-app {
    min-height: auto;
}

.be2-ts-header {
    background: var(--be2-ts-header-gradient);
    color: var(--be2-text-inverse);
    padding: 1rem 1rem 1.25rem;
    border-radius: 0 0 1rem 1rem;
    box-shadow: var(--be2-shadow);
}

.be2-ts-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
}

.be2-ts-header-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

.be2-ts-worker-select {
    max-width: 55%;
    font-size: 0.75rem;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    border: none;
}

.be2-ts-header-title {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin: 0;
}

.be2-ts-header-week {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0.15rem 0 0.75rem;
    letter-spacing: 0.04em;
}

.be2-ts-week-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.be2-ts-week-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.be2-ts-week-range {
    font-size: 0.8rem;
    opacity: 0.95;
}

.be2-ts-week-strip-wrap {
    overflow-x: auto;
    padding: 0.75rem 0.5rem;
    -webkit-overflow-scrolling: touch;
}

.be2-ts-week-strip {
    display: flex;
    gap: 0.35rem;
    min-width: min-content;
    align-items: stretch;
}

.be2-ts-week-divider {
    flex: 0 0 auto;
    width: 1px;
    align-self: stretch;
    margin: 0 0.15rem;
    background: var(--be2-card-border, #e5e7eb);
}

.be2-ts-week-btn.is-disabled,
.be2-ts-week-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.be2-ts-day {
    flex: 0 0 auto;
    width: 3.1rem;
    padding: 0.4rem 0.25rem;
    border: 2px solid transparent;
    border-radius: 0.5rem;
    background: var(--be2-surface);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    text-align: center;
    cursor: pointer;
    color: var(--be2-text);
}

.be2-ts-day--active {
    border-color: var(--be2-ts-day-active-border);
    background: var(--be2-ts-day-active-bg);
}

.be2-ts-day-name {
    display: block;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--be2-text-muted);
}

.be2-ts-day-num {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.be2-ts-day-hours {
    display: block;
    font-size: 0.58rem;
    font-weight: 700;
    color: var(--be2-primary);
    margin-top: 0.1rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.be2-ts-day--active .be2-ts-day-hours {
    color: var(--be2-ts-day-active-border);
}

.be2-ts-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    margin-top: 0.2rem;
}

.be2-ts-status--complete { background: var(--be2-ts-status-complete); }
.be2-ts-status--pending { background: var(--be2-ts-status-pending); }
.be2-ts-status--attention { background: var(--be2-ts-status-attention); }
.be2-ts-status--missing { background: var(--be2-ts-status-missing); }

.be2-ts-card {
    background: var(--be2-surface);
    border-radius: 0.75rem;
    box-shadow: var(--be2-shadow);
    margin: 0 0.75rem 0.75rem;
    padding: 1rem;
    border: 1px solid var(--be2-card-border);
}

.be2-ts-empty {
    margin: 1rem 0.75rem;
}

.be2-ts-day-title {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    margin-bottom: 1rem;
    color: var(--be2-text);
}

.be2-ts-input {
    border-radius: 0.35rem;
    border-color: var(--be2-card-border);
    background: var(--be2-surface-muted);
}

.be2-ts-time-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.be2-ts-breaks {
    margin: 0.75rem 0;
    padding: 0.75rem;
    background: var(--be2-surface-muted);
    border-radius: 0.5rem;
}

.be2-ts-break-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.be2-ts-break-row:last-child {
    margin-bottom: 0;
}

.be2-ts-break-label {
    flex: 1;
    margin: 0;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
}

.be2-ts-break-hours {
    width: 4rem;
    text-align: center;
}

.be2-ts-break-unit {
    font-size: 0.8rem;
    color: var(--be2-text-muted);
}

.be2-ts-travel {
    margin: 0.75rem 0;
    font-size: 0.85rem;
}

.be2-ts-travel-grid {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.be2-ts-travel-grid label {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.75rem;
    color: var(--be2-text-muted);
}

.be2-ts-subheading {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}

.be2-ts-tasks-list {
    margin-bottom: 0.75rem;
}

.be2-ts-task-pill {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.5rem;
    background: var(--be2-surface-muted);
    border-radius: 2rem;
    margin-bottom: 0.35rem;
    font-size: 0.8rem;
}

.be2-ts-task-pill-label {
    flex: 1;
    font-weight: 600;
}

.be2-ts-task-pill-dur {
    color: var(--be2-text-muted);
    font-variant-numeric: tabular-nums;
}

.be2-ts-task-pill-time {
    font-weight: 400;
    color: var(--be2-text-muted);
    font-size: 0.72rem;
}

.be2-ts-task-pill-edit,
.be2-ts-task-pill-del {
    border: none;
    background: transparent;
    color: var(--be2-text-muted);
    cursor: pointer;
    padding: 0 0.25rem;
    font-size: 1rem;
    line-height: 1;
}

.be2-ts-btn-save-task {
    background: var(--be2-secondary);
    color: #fff;
    border: none;
}

.be2-ts-btn-add-task {
    margin: 0 0.75rem 0.75rem;
    background: var(--be2-secondary);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.03em;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem;
}

.be2-ts-footer {
    margin: 0 0.75rem;
    padding-bottom: 1rem;
}

.be2-ts-progress-wrap {
    margin-bottom: 0.75rem;
}

.be2-ts-progress-label {
    font-size: 0.8rem;
    color: var(--be2-text-muted);
    display: block;
    margin-bottom: 0.35rem;
}

.be2-ts-progress-bar {
    height: 0.35rem;
    background: var(--be2-card-border);
    border-radius: 1rem;
    overflow: hidden;
}

.be2-ts-progress-fill {
    height: 100%;
    background: var(--be2-primary);
    width: 0;
    transition: width 0.25s ease;
}

.be2-ts-btn-submit {
    background: var(--be2-ts-header-gradient);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.05em;
    border: none;
    border-radius: 0.5rem;
    padding: 0.85rem;
    text-transform: uppercase;
}

.be2-ts-view-mobile {
    display: block;
}

.be2-ts-view-desktop {
    display: none;
}

.be2-ts-desktop-layout {
    display: grid;
    grid-template-columns: minmax(14rem, 22rem) 1fr;
    gap: 1rem;
    margin: 0 0.75rem 0.75rem;
    align-items: start;
}

.be2-ts-desktop-sidebar {
    margin: 0;
    position: sticky;
    top: 1rem;
}

.be2-ts-desktop-main {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
}

.be2-ts-desktop-table-wrap {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.be2-ts-desktop-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--be2-card-border);
}

.be2-ts-desktop-table-wrap .table-responsive {
    padding: 0 0.5rem 0.75rem;
}

.be2-ts-desktop-table thead th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--be2-text-muted);
    border-top: none;
    white-space: nowrap;
}

.be2-ts-desktop-table td {
    vertical-align: middle;
    font-size: 0.85rem;
}

.be2-ts-col-time,
.be2-ts-col-hours {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.be2-ts-desktop-form-card {
    margin: 0;
}

.be2-ts-desktop-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.be2-ts-desktop-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.be2-ts-overlap-warning {
    margin: 0.5rem 0 0;
}

@media (min-width: 992px) {
    .be2-ts-view-mobile {
        display: none;
    }

    .be2-ts-view-desktop {
        display: block;
    }

    .be2-ts-app {
        max-width: none;
        padding: 0 1rem 2rem;
    }

    .be2-ts-week-strip {
        justify-content: center;
        flex-wrap: wrap;
    }

    .be2-ts-day {
        width: 4.5rem;
        padding: 0.5rem 0.35rem;
    }

    .be2-ts-day-name {
        font-size: 0.65rem;
    }

    .be2-ts-day-hours {
        font-size: 0.62rem;
    }

    .be2-ts-footer {
        max-width: 48rem;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 991.98px) {
    .be2-ts-desktop-layout {
        grid-template-columns: 1fr;
    }
}

/* ——— Timesheets admin list & edit modal ——— */
.be2-ts-admin-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.be2-ts-admin-day {
    background: var(--be2-surface);
    border: 1px solid var(--be2-card-border);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--be2-shadow);
}

.be2-ts-admin-day-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: var(--be2-surface-muted);
    border-bottom: 1px solid var(--be2-card-border);
}

.be2-ts-admin-day-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: var(--be2-text);
}

.be2-ts-admin-day-total {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--be2-primary);
    font-variant-numeric: tabular-nums;
}

.be2-ts-admin-worker-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--be2-card-border);
}

.be2-ts-admin-worker:last-child .be2-ts-admin-worker-row {
    border-bottom: none;
}

.be2-ts-admin-check {
    margin: 0;
    flex: 0 0 auto;
}

.be2-ts-admin-worker-toggle {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border: none;
    background: transparent;
    padding: 0;
    text-align: left;
    cursor: pointer;
    color: var(--be2-text);
    min-width: 0;
}

.be2-ts-admin-worker-name {
    font-weight: 600;
    font-size: 0.92rem;
}

.be2-ts-admin-worker-hours {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: var(--be2-text-muted);
    font-size: 0.88rem;
}

.be2-ts-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    border-radius: 1rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.be2-ts-status-pill--pending {
    background: rgba(148, 163, 184, 0.2);
    color: #64748b;
}

.be2-ts-status-pill--accepted {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
}

.be2-ts-status-pill--rejected {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

.be2-ts-admin-worker-detail {
    padding: 0.5rem 1rem 0.85rem 2.5rem;
    background: var(--be2-surface-muted);
    border-bottom: 1px solid var(--be2-card-border);
}

.be2-ts-admin-project {
    margin-bottom: 0.65rem;
}

.be2-ts-admin-project:last-child {
    margin-bottom: 0;
}

.be2-ts-admin-project-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.be2-ts-admin-entry-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.be2-ts-admin-entry-list li {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.82rem;
    padding: 0.15rem 0;
    color: var(--be2-text-muted);
}

.be2-ts-admin-entry-task {
    color: var(--be2-text);
    font-weight: 500;
}

.be2-ts-admin-entry-meta {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.be2-ts-admin-empty {
    padding: 2rem;
    text-align: center;
}

.be2-ts-edit-modal .modal-body {
    padding-top: 0.5rem;
}

.be2-ts-edit-meta {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--be2-card-border);
}

.be2-ts-edit-project {
    border: 1px solid var(--be2-card-border);
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    background: var(--be2-surface-muted);
}

.be2-ts-edit-project-head {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.be2-ts-edit-entry {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    margin-bottom: 0.35rem;
}

.be2-ts-edit-entry .be2-ts-edit-task {
    flex: 1 1 12rem;
    min-width: 8rem;
}

.be2-ts-edit-entry .be2-ts-edit-duration {
    flex: 0 0 5rem;
}

.be2-ts-edit-entry .be2-ts-edit-note {
    flex: 1 1 8rem;
    min-width: 6rem;
}

.be2-ts-edit-footer-actions {
    display: flex;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .be2-ts-app {
        padding-top: 1rem;
    }
}

/* ——— Themed workspace content (tables, forms, bootstrap) ——— */
.be2-main .table {
    color: var(--be2-text);
}

.be2-main .table thead th {
    border-bottom-color: var(--be2-table-border);
    border-top-color: var(--be2-table-border);
    color: var(--be2-text-muted);
    background: var(--be2-surface-muted);
}

.be2-main .table td,
.be2-main .table th {
    border-top-color: var(--be2-table-border);
}

.be2-main .table-hover tbody tr:hover {
    color: var(--be2-text);
    background-color: var(--be2-table-hover);
}

.be2-main .table a {
    color: var(--be2-link);
}

.be2-main .table a:hover {
    color: var(--be2-link);
    filter: brightness(1.1);
}

.be2-main .form-control,
.be2-main .custom-select {
    background-color: var(--be2-input-bg);
    border-color: var(--be2-input-border);
    color: var(--be2-input-text);
}

.be2-main .form-control:focus,
.be2-main .custom-select:focus {
    background-color: var(--be2-input-bg);
    color: var(--be2-input-text);
    border-color: var(--be2-link);
}

.be2-main .form-control:disabled,
.be2-main .form-control[readonly] {
    background-color: var(--be2-surface-muted);
    color: var(--be2-text-muted);
}

.be2-main .text-muted {
    color: var(--be2-text-muted) !important;
}

.be2-main h1,
.be2-main h2,
.be2-main h3,
.be2-main h4,
.be2-main h5,
.be2-main h6,
.be2-main .h1,
.be2-main .h2,
.be2-main .h3,
.be2-main .h4,
.be2-main .h5,
.be2-main .h6 {
    color: var(--be2-heading);
}

.be2-main label {
    color: var(--be2-text);
}

.be2-main hr {
    border-top-color: var(--be2-table-border);
}

.be2-main .dropdown-menu {
    background-color: var(--be2-surface);
    border-color: var(--be2-card-border);
}

.be2-main .dropdown-item {
    color: var(--be2-text);
}

.be2-main .dropdown-item:hover,
.be2-main .dropdown-item:focus {
    background-color: var(--be2-surface-muted);
    color: var(--be2-text);
}

.be2-main .dropdown-header {
    color: var(--be2-text-muted);
}

.be2-topnav .dropdown-menu {
    background-color: var(--be2-surface);
    border-color: var(--be2-card-border);
}

.be2-topnav .dropdown-item {
    color: var(--be2-text);
}

.be2-topnav .dropdown-item:hover,
.be2-topnav .dropdown-item:focus {
    background-color: var(--be2-surface-muted);
    color: var(--be2-text);
}

.be2-topnav .dropdown-header {
    color: var(--be2-text-muted);
}

.be2-main .btn-outline-secondary {
    color: var(--be2-text-muted);
    border-color: var(--be2-input-border);
}

.be2-main .btn-outline-secondary:hover {
    background-color: var(--be2-surface-muted);
    color: var(--be2-text);
    border-color: var(--be2-input-border);
}

.be2-main .alert-warning {
    background-color: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.35);
    color: var(--be2-text);
}

.be2-main .modal-content {
    background-color: var(--be2-surface);
    color: var(--be2-text);
    border-color: var(--be2-card-border);
}

.be2-main .modal-header,
.be2-main .modal-footer {
    border-color: var(--be2-table-border);
}

.be2-main .modal-title {
    color: var(--be2-heading);
}

.be2-main .close {
    color: var(--be2-text);
    text-shadow: none;
    opacity: 0.7;
}

.be2-project-rail .form-control,
.be2-project-rail select {
    background-color: var(--be2-input-bg);
    border-color: var(--be2-input-border);
    color: var(--be2-input-text);
}

.be2-rail-filter-select,
.be2-rail-filter-select option {
    background-color: var(--be2-input-bg);
    color: var(--be2-input-text);
    border-color: var(--be2-input-border);
}

.be2-perf-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    background: #1a1d21;
    color: #e8eaed;
    border-top: 1px solid #343a40;
    font-size: 0.75rem;
    line-height: 1.4;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
}

.be2-perf-bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 1rem;
    padding: 0.45rem 1rem;
    max-width: 100%;
}

.be2-perf-bar-title {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #f0ad4e;
    margin-right: 0.25rem;
}

.be2-perf-bar-item strong {
    font-weight: 600;
    color: #adb5bd;
    margin-right: 0.2rem;
}

.be2-perf-bar-page {
    margin-left: auto;
    color: #868e96;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

body.be2-has-perf-bar {
    padding-bottom: 2.5rem;
}

/* Feedback modal (global, account menu) */
.be2-feedback-modal .modal-dialog {
    max-width: min(52rem, calc(100vw - 1.5rem));
}

.be2-feedback-modal .modal-content {
    background-color: var(--be2-surface, #fff);
    color: var(--be2-text, #212529);
    border-color: var(--be2-card-border, rgba(0, 0, 0, 0.125));
}

.be2-feedback-modal .modal-header,
.be2-feedback-modal .modal-footer {
    border-color: var(--be2-table-border, rgba(0, 0, 0, 0.08));
}

.be2-feedback-modal .modal-title {
    color: var(--be2-heading, inherit);
}

.be2-feedback-context-card {
    background: var(--be2-surface-raised, rgba(0, 0, 0, 0.03));
    border: 1px solid var(--be2-card-border, rgba(0, 0, 0, 0.1));
    border-radius: 0.5rem;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
}

.be2-feedback-context-card__lead {
    margin: 0 0 0.45rem;
    font-size: 0.8125rem;
    line-height: 1.35;
    color: var(--be2-heading, inherit);
}

.be2-feedback-context-card__meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: var(--be2-muted, #6c757d);
}

.be2-feedback-context-card__meta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
}

.be2-feedback-context-card__meta-url {
    word-break: break-all;
    line-height: 1.35;
}

.be2-feedback-context-card__meta-url a {
    color: var(--be2-muted, #6c757d);
    text-decoration: none;
}

.be2-feedback-context-card__meta-url a:hover {
    color: var(--be2-text, inherit);
    text-decoration: underline;
}

.be2-feedback-context-card__meta-label {
    font-weight: 600;
    color: var(--be2-text, inherit);
    opacity: 0.85;
}

.be2-feedback-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--be2-heading, inherit);
}

.be2-feedback-sentiment {
    border: 0;
    padding: 0;
    margin: 0 0 1.25rem;
}

.be2-feedback-sentiment-options {
    display: flex;
    gap: 0.75rem;
}

.be2-feedback-sentiment-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.75rem 0.5rem;
    margin: 0;
    border: 2px solid var(--be2-input-border, #ced4da);
    border-radius: 0.5rem;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.be2-feedback-sentiment-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.be2-feedback-sentiment-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.be2-feedback-sentiment-text {
    font-size: 0.75rem;
    font-weight: 600;
}

.be2-feedback-sentiment-option--happy {
    color: #16a34a;
}

.be2-feedback-sentiment-option--neutral {
    color: #ca8a04;
}

.be2-feedback-sentiment-option--angry {
    color: #dc2626;
}

.be2-feedback-sentiment-option:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.be2-feedback-sentiment-option--happy:has(input:checked),
.be2-feedback-sentiment-option--happy.is-selected {
    border-color: #16a34a;
    background-color: rgba(22, 163, 74, 0.08);
    box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.25);
}

.be2-feedback-sentiment-option--neutral:has(input:checked),
.be2-feedback-sentiment-option--neutral.is-selected {
    border-color: #ca8a04;
    background-color: rgba(202, 138, 4, 0.08);
    box-shadow: 0 0 0 1px rgba(202, 138, 4, 0.25);
}

.be2-feedback-sentiment-option--angry:has(input:checked),
.be2-feedback-sentiment-option--angry.is-selected {
    border-color: #dc2626;
    background-color: rgba(220, 38, 38, 0.08);
    box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.25);
}

.be2-feedback-screenshot-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.be2-feedback-screenshot-capture-wrap {
    position: relative;
}

.be2-feedback-capture-menu {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    z-index: 1060;
    min-width: 10.5rem;
    padding: 0.25rem 0;
    border: 1px solid var(--be2-input-border, #ced4da);
    border-radius: 0.375rem;
    background: #fff;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.12);
}

.be2-feedback-capture-menu-item {
    display: block;
    width: 100%;
    padding: 0.4rem 0.75rem;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 0.875rem;
    text-align: left;
    cursor: pointer;
}

.be2-feedback-capture-menu-item:hover,
.be2-feedback-capture-menu-item:focus {
    background: rgba(0, 0, 0, 0.05);
    outline: none;
}

.be2-screenshot-region-overlay {
    position: fixed;
    inset: 0;
    z-index: 20000;
    cursor: crosshair;
    touch-action: none;
}

.be2-screenshot-region-selection {
    position: absolute;
    border: 2px solid #2563eb;
    background: rgba(37, 99, 235, 0.12);
    box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.35);
    pointer-events: none;
}

.be2-screenshot-region-hint {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    transform: translateX(-50%);
    max-width: calc(100% - 2rem);
    padding: 0.5rem 0.875rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.88);
    color: #fff;
    font-size: 0.875rem;
    pointer-events: none;
    z-index: 1;
}

body.be2-screenshot-region-active {
    user-select: none;
}

.be2-feedback-upload-label {
    cursor: pointer;
    padding-left: 0;
    padding-right: 0;
}

body.be2-feedback-capturing .modal-backdrop {
    display: none !important;
}

.be2-feedback-screenshot-preview {
    margin-top: 0.75rem;
    border: 1px solid var(--be2-input-border, #ced4da);
    border-radius: 0.375rem;
    overflow: hidden;
    max-height: 160px;
}

.be2-feedback-screenshot-preview img {
    display: block;
    width: 100%;
    max-height: 160px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.04);
}

/* Notifications panel (account menu) */
.be2-notifications-account {
    min-width: min(20rem, calc(100vw - 2rem));
}

.be2-profile-menu {
    min-width: 16rem;
    max-width: min(22rem, calc(100vw - 1rem));
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.be2-profile-debug-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    cursor: default;
}

.be2-profile-debug-toggle:hover,
.be2-profile-debug-toggle:focus {
    background-color: inherit;
}

.be2-profile-debug-toggle__label {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
}

.be2-profile-debug-toggle__switch {
    margin: 0;
    padding-left: 2.25rem;
    min-height: 1.25rem;
}

.be2-profile-debug-toggle__switch .custom-control-label::before {
    top: 0.1rem;
}

.be2-profile-debug-toggle__switch .custom-control-label::after {
    top: calc(0.1rem + 2px);
}

.be2-profile-demo-toggle .be2-profile-debug-toggle__switch {
    pointer-events: none;
}

.be2-notifications-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--be2-table-border, rgba(0, 0, 0, 0.08));
}

.be2-notifications-menu__title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--be2-heading, inherit);
}

.be2-notifications-mark-all {
    padding: 0;
    font-size: 0.75rem;
    white-space: nowrap;
}

.be2-notifications-menu__list {
    max-height: 22rem;
    overflow-y: auto;
}

.be2-notifications-empty {
    margin: 0;
    padding: 1.25rem 1rem;
    color: var(--be2-muted, #6c757d);
    font-size: 0.875rem;
    text-align: center;
}

.be2-notification-item {
    display: flex;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--be2-table-border, rgba(0, 0, 0, 0.06));
}

.be2-notification-item:last-child {
    border-bottom: 0;
}

.be2-notification-item.is-unread {
    background: rgba(59, 130, 246, 0.06);
}

.be2-notification-item--warning.is-unread {
    background: rgba(245, 158, 11, 0.08);
}

.be2-notification-item--success.is-unread {
    background: rgba(22, 163, 74, 0.08);
}

.be2-notification-item__main {
    flex: 1;
    min-width: 0;
}

.be2-notification-item__title {
    margin: 0 0 0.25rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--be2-heading, inherit);
}

.be2-notification-item__body {
    margin: 0 0 0.35rem;
    font-size: 0.8125rem;
    color: var(--be2-text, inherit);
    white-space: pre-wrap;
}

.be2-notification-item__link {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.be2-notification-item__time {
    display: block;
    font-size: 0.6875rem;
    color: var(--be2-muted, #6c757d);
}

.be2-notification-item__dismiss {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: var(--be2-muted, #6c757d);
    font-size: 1.1rem;
    line-height: 1;
    padding: 0;
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

.be2-notification-item__dismiss:hover {
    color: var(--be2-text, inherit);
}

/* Feedback admin (settings) */
.be2-feedback-admin-table td {
    vertical-align: middle;
}

.be2-feedback-admin-row {
    cursor: pointer;
}

.be2-feedback-admin-row:focus {
    outline: none;
}

.be2-feedback-admin-row:focus-visible {
    box-shadow: inset 0 0 0 2px var(--be2-link, #2563eb);
}

.be2-feedback-admin-row--active {
    background: color-mix(in srgb, var(--be2-link, #2563eb) 8%, transparent);
}

.be2-feedback-sentiment-pill {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
}

.be2-feedback-sentiment-pill--happy {
    color: #166534;
    background: rgba(22, 163, 74, 0.12);
}

.be2-feedback-sentiment-pill--neutral {
    color: #a16207;
    background: rgba(202, 138, 4, 0.12);
}

.be2-feedback-sentiment-pill--angry {
    color: #b91c1c;
    background: rgba(220, 38, 38, 0.12);
}

.be2-feedback-detail-dl dt {
    font-size: 0.8125rem;
    color: var(--be2-muted, #6c757d);
}

.be2-feedback-detail-message {
    white-space: pre-wrap;
}

.be2-feedback-detail-screenshot {
    display: block;
    max-width: 100%;
    max-height: 280px;
    border: 1px solid var(--be2-card-border, rgba(0, 0, 0, 0.125));
    border-radius: 0.35rem;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.04);
}

.be2-feedback-action-panel {
    padding-top: 0.25rem;
}

.be2-feedback-action-form textarea {
    font-size: 0.9375rem;
}

.be2-feedback-action-buttons {
    gap: 0.25rem;
}

.be2-feedback-context-list li + li {
    margin-top: 0.25rem;
}

.be2-notifications-menu__toolbar {
    display: flex;
    justify-content: flex-end;
    padding: 0.35rem 1rem 0;
}

.be2-profile-alert-dot {
    position: absolute;
    top: -0.1rem;
    right: -0.1rem;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: #dc2626;
    box-shadow: 0 0 0 2px var(--be2-nav-bg, #1a1d21);
    pointer-events: none;
}

.be2-notifications-page-panel .be2-notifications-account {
    min-width: 0;
}

/* Account menu unread badge on username / avatar */
.be2-profile-nav {
    position: relative;
}

.be2-profile-toggle {
    position: relative;
    padding: 0.5rem 0.65rem !important;
}

.be2-profile-avatar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.be2-profile-name {
    position: relative;
    display: inline-block;
    padding-right: 0.15rem;
}

.be2-nav-unread-badge {
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.28rem;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1.1rem;
    text-align: center;
    box-shadow: 0 0 0 2px rgba(26, 29, 33, 0.35);
}

.be2-profile-name-badge {
    position: absolute;
    top: -0.45rem;
    right: -0.7rem;
}

.be2-profile-avatar-badge {
    position: absolute;
    top: -0.3rem;
    right: -0.35rem;
}

.be2-dropdown-item--changelog,
.be2-dropdown-item--notifications {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.be2-dropdown-item__unread {
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.25rem;
    text-align: center;
}

/* Changelog page */
.be2-changelog-page__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.be2-changelog-page__actions {
    gap: 0.5rem;
}

.be2-changelog-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.be2-changelog-entry__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.be2-changelog-entry__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.15rem 0.75rem;
    flex-shrink: 0;
}

.be2-changelog-entry__actions .btn-link {
    padding-left: 0;
    padding-right: 0;
}

.be2-changelog-entry--draft {
    border-left: 3px solid #94a3b8;
}

.be2-changelog-entry--editing {
    box-shadow: 0 0 0 2px rgba(42, 125, 225, 0.28);
}

.be2-changelog-entry__badge {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.be2-changelog-entry--unread {
    border-left: 3px solid var(--be2-accent, #f97316);
}

.be2-changelog-entry__summary {
    margin-bottom: 0.75rem;
}

.be2-changelog-entry__bullets {
    margin: 0;
    padding-left: 1.25rem;
}

.be2-changelog-entry__bullets li + li {
    margin-top: 0.35rem;
}

.be2-changelog-entry__blurb {
    margin-bottom: 0.75rem;
}

.be2-changelog-entry__blurb:last-of-type {
    margin-bottom: 1rem;
}

.be2-changelog-entry__figure {
    margin: 0;
}

.be2-changelog-entry__screenshot {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    border: 1px solid var(--be2-border, #dee2e6);
    border-radius: 0.35rem;
    background: #fff;
}

.be2-changelog-screenshot-size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.be2-changelog-screenshot-size-option {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    font-size: 0.875rem;
    cursor: pointer;
}

.be2-changelog-admin-edit #be2-changelog-edit-save[hidden] {
    display: none !important;
}

.be2-changelog-edit-meta > [class*="col-"] {
    margin-bottom: 0.75rem;
}

.be2-changelog-edit-published {
    min-height: calc(1.5rem + 0.5rem + 2px);
    display: flex;
    align-items: center;
    padding-top: 0.15rem;
}

.be2-changelog-admin-table td {
    vertical-align: middle;
}

.be2-changelog-admin-screenshot__img {
    display: block;
    max-width: 100%;
    max-height: 240px;
    width: auto;
    height: auto;
    border: 1px solid var(--be2-border, #dee2e6);
    border-radius: 0.35rem;
}

.be2-changelog-compose-modal .modal-dialog {
    max-width: 720px;
}

.be2-scope-of-works--print .be2-panel,
.be2-price-list-table td,
.be2-price-list-table th {
    vertical-align: middle;
}

.be2-price-list-sort {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    cursor: pointer;
    white-space: nowrap;
}

.be2-price-list-sort:hover,
.be2-price-list-sort:focus {
    text-decoration: underline;
    outline: none;
}

.be2-price-list-sort-ind {
    display: inline-block;
    min-width: 0.75rem;
    font-size: 0.7em;
    opacity: 0.85;
}

.be2-price-list-row-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.be2-price-list-row--disabled td {
    color: var(--be2-text-muted, #6c757d);
}

.be2-price-list-disabled-badge {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.05rem 0.35rem;
    border: 1px solid var(--be2-border, #dee2e6);
    border-radius: 0.2rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    vertical-align: middle;
    color: var(--be2-text-muted, #6c757d);
}

.be2-price-list-more-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem;
    border-top: 1px solid var(--be2-card-border, #e5e7eb);
}

#be2-price-list-table-wrap.is-loading {
    opacity: 0.65;
    pointer-events: none;
}

#be2-price-list-sentinel {
    width: 1px;
    height: 1px;
}

@media print {
    .be2-topnav,
    .be2-project-sidebar,
    .be2-project-page-header,
    .be2-project-page-rule,
    .be2-project-breadcrumb {
        display: none !important;
    }
    .be2-scope-of-works {
        border: none;
        box-shadow: none;
    }
}

.be2-user-types-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.be2-user-types-items {
    margin: 0;
}

.be2-user-types-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.55rem 0.65rem;
    border-radius: 4px;
    color: inherit;
    text-decoration: none;
}

.be2-user-types-item:hover {
    background: #f3f4f6;
    text-decoration: none;
}

.be2-user-types-item.is-active {
    background: #e8f1fb;
}

.be2-user-types-item-name {
    font-weight: 600;
}

.be2-user-types-item-meta {
    font-size: 0.75rem;
    color: #6b7280;
    white-space: nowrap;
}

.be2-user-types-perms {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1.25rem;
    margin-bottom: 1rem;
}

.be2-user-types-perm-group {
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 0.65rem 0.75rem;
}

.be2-user-types-perm-parent,
.be2-user-types-perm-children label {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.be2-user-types-perm-children {
    margin-left: 1.25rem;
}

.be2-user-types-perm-children label {
    font-weight: 400;
}

.be2-scheduling-overview-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.be2-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
}

.be2-photo-card {
    margin: 0;
}

.be2-photo-thumb {
    display: block;
    background: #f3f4f6;
    border-radius: 0.25rem;
    overflow: hidden;
    aspect-ratio: 1;
}

.be2-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.be2-photo-card figcaption {
    font-size: 0.8rem;
    margin-top: 0.35rem;
}

@media (max-width: 767.98px) {
    .be2-user-types-layout,
    .be2-user-types-perms {
        grid-template-columns: 1fr;
    }
}

