:root {
    --app-sidebar-width: 260px;
    --app-topbar-height: 64px;
    --app-space-1: 0.5rem;
    --app-space-2: 1rem;
    --app-space-3: 1.5rem;
    --app-space-4: 2rem;
    --app-space-6: 3rem;
    --app-card-radius: 0.75rem;
    --app-compact-card-header-height: 4rem;
    --app-compact-card-body-height: 12.75rem;
    --app-compact-card-footer-height: 2.5rem;
}

/* Client portal */
.app-portal-auth-body {
    min-height: 100vh;
    font-family: "Eventavera Roboto", var(--bs-font-sans-serif);
    background: linear-gradient(145deg, #eef5ff 0%, #f7f9fc 48%, #eef2f6 100%);
}

.app-portal-auth-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.25rem;
}

.app-portal-auth-brand img,
.app-portal-brand img {
    width: auto;
    object-fit: contain;
}

.app-portal-auth-brand img {
    height: 2rem;
}

.app-portal-auth-card {
    width: min(100%, 27rem);
    padding: 1.35rem;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: .75rem;
    box-shadow: 0 1rem 3rem rgba(28, 45, 75, .09);
}

.app-portal-body {
    min-height: 100vh;
    font-family: "Eventavera Roboto", var(--bs-font-sans-serif);
    background: #f5f7fa;
}

.app-portal-topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: var(--bs-body-bg);
    border-bottom: 1px solid var(--bs-border-color);
}

.app-portal-brand img {
    height: 1.65rem;
}

.app-portal-nav {
    display: flex;
    align-items: center;
    gap: .2rem;
    overflow-x: auto;
}

.app-portal-nav a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .38rem .55rem;
    color: var(--bs-secondary-color);
    text-decoration: none;
    white-space: nowrap;
    border-radius: .35rem;
    font-size: .875rem;
}

.app-portal-nav a:hover,
.app-portal-nav a.active {
    color: var(--bs-primary);
    background: var(--bs-primary-bg-subtle);
}

.app-portal-content {
    padding-top: 1rem;
    padding-bottom: 2rem;
}

.app-portal-stat .card-body {
    position: relative;
    min-height: 5.5rem;
    padding: .8rem;
}

.app-portal-stat strong {
    display: block;
    margin-top: .15rem;
    font-size: 1.35rem;
    line-height: 1.2;
}

.app-portal-stat .app-portal-stat-money {
    font-size: 1.05rem;
}

.app-portal-stat i {
    position: absolute;
    top: .8rem;
    right: .8rem;
    font-size: 1rem;
}

@media (max-width: 991.98px) {
    .app-portal-topbar .container-xl {
        flex-wrap: wrap;
    }

    .app-portal-nav {
        order: 3;
        width: 100%;
        padding-top: .15rem;
        border-top: 1px solid var(--bs-border-color-translucent);
    }
}

.app-body {
    overflow: hidden;
    font-family: "Eventavera Roboto", var(--bs-font-sans-serif);
    background: var(--bs-tertiary-bg);
}

.app-shell {
    min-height: 100vh;
}

.app-sidebar {
    --bs-offcanvas-width: var(--app-sidebar-width);
    display: flex;
    flex-direction: column;
    width: var(--app-sidebar-width);
    overflow: hidden;
    background: var(--bs-body-bg);
    border-right: var(--bs-border-width) solid var(--bs-border-color);
}

.app-sidebar > .app-sidebar-header {
    display: flex;
    min-height: var(--app-topbar-height);
    padding: var(--app-space-1) var(--app-space-2);
    border-bottom: var(--bs-border-width) solid var(--bs-border-color);
}

.app-sidebar > .app-sidebar-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--bs-border-color) transparent;
}

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: var(--app-space-1);
    color: var(--bs-body-color);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.1;
    text-decoration: none;
}

.app-brand:hover {
    color: var(--bs-primary);
}

.app-brand-logo {
    display: block;
    max-width: calc(var(--app-sidebar-width) - 4.5rem);
    width: auto;
    height: 2rem;
    object-fit: contain;
}

.app-icon-box {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--app-card-radius);
}

.app-navigation {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.app-menu-label {
    display: block;
    margin-bottom: var(--app-space-1);
    padding-inline: var(--app-space-1);
    color: var(--bs-secondary-color);
    font-size: 0.75rem;
    font-weight: 600;
}

.app-menu-link {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 2.5rem;
    padding: var(--app-space-1);
    gap: var(--app-space-1);
    color: var(--bs-secondary-color);
    background: transparent;
    border: 0;
    border-radius: var(--bs-border-radius);
    font-size: 0.875rem;
    text-align: left;
    text-decoration: none;
}

.app-menu-link:hover,
.app-menu-link:focus-visible {
    color: var(--bs-body-color);
    background: var(--bs-tertiary-bg);
}

.app-menu-link.active {
    color: var(--bs-primary);
    background: var(--bs-primary-bg-subtle);
    font-weight: 500;
}

.app-menu-link > .bi:first-child {
    width: var(--app-space-2);
    font-size: 1rem;
    text-align: center;
}

.app-menu-chevron {
    margin-left: auto;
    font-size: 0.75rem;
    transition: transform 160ms ease-in-out;
}

.app-menu-link[aria-expanded="true"] .app-menu-chevron {
    transform: rotate(180deg);
}

.app-submenu {
    display: flex;
    flex-direction: column;
    margin: 0.125rem 0 var(--app-space-1) var(--app-space-2);
    padding-left: var(--app-space-2);
    border-left: var(--bs-border-width) solid var(--bs-border-color);
}

.app-submenu-link {
    display: flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.375rem var(--app-space-1);
    gap: 0.5rem;
    color: var(--bs-secondary-color);
    border-radius: var(--bs-border-radius-sm);
    font-size: 0.8125rem;
    text-decoration: none;
}

.app-submenu-link > .bi {
    width: 0.875rem;
    flex: 0 0 0.875rem;
    font-size: 0.75rem;
    text-align: center;
}

.app-planned-dot {
    width: 0.375rem;
    height: 0.375rem;
    flex: 0 0 0.375rem;
    border: 1px solid var(--bs-secondary-color);
    border-radius: 50%;
    opacity: 0.65;
}

.app-roadmap-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    color: var(--bs-primary);
    background: var(--bs-primary-bg-subtle);
    border-radius: var(--bs-border-radius-sm);
    font-size: 0.875rem;
}

.app-related-task-row {
    display: flex;
    align-items: center;
    min-height: 3.25rem;
    gap: 0.75rem;
}

.app-task-progress {
    height: 0.1875rem;
}

.app-checklist-row {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    padding-block: 0.375rem;
}

.app-checklist-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    padding: 0;
    color: var(--bs-primary);
    background: var(--bs-body-bg);
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: 0.3rem;
    font-size: 0.6875rem;
}

.app-checklist-toggle.completed {
    color: var(--bs-white);
    background: var(--bs-success);
    border-color: var(--bs-success);
}

.app-checklist-title[readonly] {
    padding-inline: 0;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.app-checklist-editor-list {
    display: grid;
    gap: .375rem;
}

.app-checklist-editor-row {
    display: grid;
    grid-template-columns: 1.75rem minmax(0, 1fr) auto;
    align-items: center;
    gap: .5rem;
}

.app-checklist-editor-order {
    color: var(--bs-secondary-color);
    text-align: center;
    font-size: .75rem;
    font-weight: 600;
}

.app-checklist-editor-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 4.5rem;
    gap: .5rem;
    color: var(--bs-secondary-color);
    border: 1px dashed var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    font-size: .8125rem;
}

@media (max-width: 575.98px) {
    .app-checklist-editor-row {
        grid-template-columns: 1.5rem minmax(0, 1fr);
    }

    .app-checklist-editor-row .app-row-actions {
        grid-column: 2;
        justify-content: flex-end;
    }
}

.app-submenu-link:hover,
.app-submenu-link:focus-visible,
.app-submenu-link.active {
    color: var(--bs-primary);
    background: var(--bs-primary-bg-subtle);
}

.app-sidebar-shortcuts {
    border-top: var(--bs-border-width) solid var(--bs-border-color);
}

.app-shortcut-button {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 2rem;
    padding: 0.25rem var(--app-space-1);
    gap: var(--app-space-1);
    color: var(--bs-secondary-color);
    background: transparent;
    border: 0;
    border-radius: var(--bs-border-radius);
    font-size: 0.8125rem;
    text-align: left;
    text-decoration: none;
}

.app-shortcut-button:hover,
.app-shortcut-button:focus-visible {
    color: var(--bs-primary);
    background: var(--bs-primary-bg-subtle);
}

.app-shortcut-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    color: var(--bs-primary);
    background: var(--bs-primary-bg-subtle);
    border-radius: var(--bs-border-radius-sm);
}

.app-avatar {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    color: var(--bs-primary-text-emphasis);
    background: var(--bs-primary-bg-subtle);
    border: var(--bs-border-width) solid var(--bs-body-bg);
    border-radius: 50%;
    font-size: 0.6875rem;
    font-weight: 600;
}

.app-avatar-sm {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.625rem;
}

.app-avatar-group {
    display: flex;
    padding-left: 0.375rem;
}

.app-avatar-group .app-avatar {
    margin-left: -0.375rem;
}

.app-main {
    min-width: 0;
}

.app-topbar {
    z-index: 1020;
    min-height: var(--app-topbar-height);
    border-bottom: var(--bs-border-width) solid var(--bs-border-color);
}

.app-global-search {
    position: relative;
    flex: 1 1 30rem;
    max-width: 30rem;
}

.app-global-search > .bi {
    position: absolute;
    top: 50%;
    left: var(--app-space-2);
    z-index: 2;
    color: var(--bs-secondary-color);
    transform: translateY(-50%);
}

.app-global-search > .form-control {
    padding-inline: 2.5rem 4rem;
    background: var(--bs-tertiary-bg);
    border-color: transparent;
}

.app-global-search > .form-control:focus {
    background: var(--bs-body-bg);
    border-color: var(--bs-primary-border-subtle);
    box-shadow: 0 0 0 0.2rem var(--bs-primary-bg-subtle);
}

.app-search-shortcut {
    position: absolute;
    top: 50%;
    right: var(--app-space-1);
    align-items: center;
    min-height: 1.5rem;
    padding-inline: 0.375rem;
    color: var(--bs-secondary-color);
    background: var(--bs-body-bg);
    border: var(--bs-border-width) solid var(--bs-border-color);
    transform: translateY(-50%);
}

.app-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    color: var(--bs-secondary-color);
    border-color: var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    font-size: 0.875rem;
}

.app-icon-button:hover,
.app-icon-button:focus-visible,
.app-icon-button.show {
    color: var(--bs-body-color);
    background: var(--bs-tertiary-bg);
    border-color: var(--bs-border-color);
}

.app-quick-action-button {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.25rem 0.625rem;
    gap: 0.375rem;
    border-radius: var(--bs-border-radius);
    font-size: 0.8125rem;
    font-weight: 500;
}

.app-notification-dot {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    width: 0.5rem;
    height: 0.5rem;
    background: var(--bs-danger);
    border: 0.125rem solid var(--bs-body-bg);
    border-radius: 50%;
}

.app-account-button {
    display: flex;
    align-items: center;
    padding: 0.25rem;
    gap: var(--app-space-1);
    border: 0;
}

.app-account-button:hover,
.app-account-button:focus-visible,
.app-account-button.show {
    background: var(--bs-tertiary-bg);
}

.app-account-role {
    color: var(--bs-secondary-color);
    font-size: 0.6875rem;
    line-height: 1.2;
}

.app-topbar-menu {
    min-width: 12.5rem;
    padding: 0.375rem;
    border-color: var(--bs-border-color-translucent);
    border-radius: calc(var(--bs-border-radius) + 0.125rem);
    box-shadow: 0 0.5rem 1.5rem rgba(var(--bs-body-color-rgb), 0.08);
}

.app-topbar-menu .dropdown-header {
    padding: 0.375rem 0.5rem 0.25rem;
    color: var(--bs-secondary-color);
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.25;
}

.app-topbar-menu .dropdown-item {
    display: flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.375rem 0.5rem;
    gap: 0.5rem;
    border-radius: var(--bs-border-radius-sm);
    color: var(--bs-secondary-color);
    font-size: 0.8125rem;
    line-height: 1.25;
}

.app-topbar-menu .dropdown-item > .bi {
    width: 1rem;
    color: var(--bs-secondary-color);
    font-size: 0.875rem;
    text-align: center;
}

.app-topbar-menu .dropdown-item:hover,
.app-topbar-menu .dropdown-item:focus {
    color: var(--bs-primary-text-emphasis);
    background: var(--bs-primary-bg-subtle);
}

.app-topbar-menu .dropdown-item:hover > .bi,
.app-topbar-menu .dropdown-item:focus > .bi {
    color: var(--bs-primary);
}

.app-topbar-menu .dropdown-divider {
    margin: 0.375rem 0;
}

.app-account-menu {
    min-width: 11.5rem;
}

.app-account-menu .dropdown-item.text-danger:hover,
.app-account-menu .dropdown-item.text-danger:focus {
    color: var(--bs-danger) !important;
    background: var(--bs-danger-bg-subtle);
}

.app-account-menu .dropdown-item.text-danger:hover > .bi,
.app-account-menu .dropdown-item.text-danger:focus > .bi {
    color: var(--bs-danger);
}

.app-notification-menu {
    width: min(20rem, calc(100vw - var(--app-space-2)));
    overflow: hidden;
}

.app-notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 0.75rem;
    border-bottom: var(--bs-border-width) solid var(--bs-border-color-translucent);
}

.app-notification-header h2 {
    font-size: 0.8125rem;
    font-weight: 600;
}

.app-notification-header .badge {
    padding: 0.25rem 0.5rem;
    color: var(--bs-primary-text-emphasis);
    background: var(--bs-primary-bg-subtle);
    font-size: 0.6875rem;
    font-weight: 600;
}

.app-notification-item {
    padding: 0.625rem 0.75rem;
    color: var(--bs-secondary-color);
    border-color: var(--bs-border-color-translucent);
    font-size: 0.8125rem;
    line-height: 1.35;
}

.app-notification-item:hover,
.app-notification-item:focus {
    color: var(--bs-body-color);
    background: var(--bs-tertiary-bg);
}

.app-notification-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: var(--bs-border-radius-sm);
    font-size: 0.8125rem;
}

.app-notification-icon-warning {
    color: var(--bs-warning-text-emphasis);
    background: var(--bs-warning-bg-subtle);
}

.app-notification-icon-success {
    color: var(--bs-success-text-emphasis);
    background: var(--bs-success-bg-subtle);
}

.app-notification-icon-info {
    color: var(--bs-info-text-emphasis);
    background: var(--bs-info-bg-subtle);
}

.app-notification-icon-danger {
    color: var(--bs-danger-text-emphasis);
    background: var(--bs-danger-bg-subtle);
}

.app-notification-icon-secondary {
    color: var(--bs-secondary-color);
    background: var(--bs-tertiary-bg);
}

.app-notification-footer {
    padding: 0.375rem;
    border-top: var(--bs-border-width) solid var(--bs-border-color-translucent);
    text-align: center;
}

.app-notification-footer .btn {
    color: var(--bs-secondary-color);
    font-size: 0.75rem;
}

.app-content {
    height: calc(100vh - var(--app-topbar-height));
    padding: var(--app-space-3);
    overflow-y: auto;
}

.app-page-header {
    max-width: 100%;
    padding-bottom: 0.625rem;
    border-bottom: var(--bs-border-width) solid var(--bs-border-color-translucent);
}

.app-page-header h1 {
    font-size: 1.125rem;
}

.app-breadcrumbs {
    margin-bottom: 0.5rem;
}

.app-page-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.625rem;
}

.app-page-description {
    padding-left: 0.625rem;
    border-left: var(--bs-border-width) solid var(--bs-border-color);
}

.app-breadcrumbs .breadcrumb {
    --bs-breadcrumb-divider: '';
    align-items: center;
    font-size: 0.75rem;
    line-height: 1.25;
}

.app-breadcrumbs .breadcrumb-item,
.app-breadcrumbs .breadcrumb-item > a,
.app-breadcrumb-current {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.app-breadcrumbs .breadcrumb-item + .breadcrumb-item {
    padding-left: 0.375rem;
}

.app-breadcrumb-separator {
    margin-right: 0.375rem;
    color: var(--bs-tertiary-color);
    font-size: 0.625rem;
}

.app-breadcrumbs a {
    color: var(--bs-secondary-color);
    text-decoration: none;
}

.app-breadcrumbs a:hover,
.app-breadcrumbs a:focus {
    color: var(--bs-primary);
}

.app-status-alert {
    display: flex;
    align-items: center;
    min-height: 2.25rem;
    padding: 0.375rem 0.625rem;
    gap: 0.5rem;
    overflow: hidden;
    border-width: 1px;
    font-size: 0.8125rem;
    line-height: 1.25;
}

.app-status-alert > .bi {
    flex: 0 0 auto;
    font-size: 14px;
}

.app-status-alert-copy {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.app-status-alert-copy > strong {
    margin-right: 0.25rem;
}

.app-status-alert-close {
    flex: 0 0 1.25rem;
    width: 1.25rem;
    height: 1.25rem;
    padding: 0;
    background-size: 0.5rem;
    opacity: 0.45;
}

.app-status-alert-close:hover,
.app-status-alert-close:focus {
    opacity: 0.7;
}

.app-card {
    overflow: hidden;
    border: var(--bs-border-width) solid var(--bs-border-color-translucent);
    border-radius: var(--app-card-radius);
    box-shadow: 0 0.125rem 0.75rem rgba(var(--bs-body-color-rgb), 0.04);
}

.app-card-header {
    padding: var(--app-space-2);
    background: transparent;
    border-bottom: var(--bs-border-width) solid var(--bs-border-color-translucent);
}

.app-card-footer {
    padding: var(--app-space-1) var(--app-space-2);
    background: transparent;
    border-top: var(--bs-border-width) solid var(--bs-border-color-translucent);
}

.app-compact-card {
    height: calc(
        var(--app-compact-card-header-height)
        + var(--app-compact-card-body-height)
        + var(--app-compact-card-footer-height)
        + 2px
    );
}

.app-compact-card-no-footer {
    height: calc(
        var(--app-compact-card-header-height)
        + var(--app-compact-card-body-height)
        + 2px
    );
}

.app-compact-card > .app-card-header {
    display: flex;
    flex: 0 0 var(--app-compact-card-header-height);
    align-items: center;
    padding-block: var(--app-space-1);
}

.app-compact-card > .app-compact-card-body {
    flex: 0 0 var(--app-compact-card-body-height);
    min-height: 0;
}

.app-compact-card > .app-card-footer {
    display: flex;
    flex: 0 0 var(--app-compact-card-footer-height);
    align-items: center;
    justify-content: center;
    padding-block: 0.25rem;
}

.app-icon-action,
.app-table-action {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border-radius: var(--bs-border-radius);
    font-size: 15px;
    color: var(--bs-secondary-color);
    background: var(--bs-body-bg);
    border-color: rgba(var(--bs-secondary-rgb), 0.28);
    box-shadow: none;
}

.app-icon-action:hover,
.app-icon-action:focus-visible,
.app-table-action:hover,
.app-table-action:focus-visible {
    color: var(--bs-primary);
    background: var(--bs-primary-bg-subtle);
    border-color: var(--bs-primary-border-subtle);
}

.app-metric-card {
    height: 4.75rem !important;
}

.app-metric-body {
    padding: 0.625rem 0.75rem;
}

.app-metric-value {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1;
}

.app-metric-card .app-icon-box {
    width: 2.25rem;
    height: 2.25rem;
    color: var(--bs-body-bg);
    font-size: 15px;
}

.app-table > thead > tr > th {
    padding: 0.75rem var(--app-space-2);
    color: var(--bs-secondary-color);
    background: var(--bs-tertiary-bg);
    border-bottom-width: var(--bs-border-width);
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.app-table > tbody > tr > td {
    padding: 0.75rem var(--app-space-2);
}

.app-event-table-wrap {
    width: 100%;
    overflow: hidden;
}

.app-event-table {
    width: 100%;
    table-layout: fixed;
}

.app-event-table > thead > tr {
    height: 2.25rem;
}

.app-event-table > tbody > tr {
    height: 3.5rem;
}

.app-event-table > thead > tr > th,
.app-event-table > tbody > tr > td {
    padding-block: 0.375rem;
}

.app-event-table > tbody > tr > td {
    font-size: 0.8125rem;
    line-height: 1.25;
}

.app-event-table .app-event-time {
    width: 10%;
}

.app-event-table .app-event-name {
    width: 26%;
}

.app-event-table .app-event-location {
    width: 26%;
}

.app-event-table .app-event-team {
    width: 14%;
}

.app-event-table .app-event-status {
    width: 18%;
}

.app-event-table .app-event-actions {
    width: 6%;
    padding-right: 0.75rem;
    padding-left: 0.25rem;
}

.app-event-name-cell,
.app-event-location-cell {
    overflow-wrap: anywhere;
}

.app-status-badge,
.app-priority-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.app-status-badge {
    width: 7rem;
}

.app-priority-badge {
    width: 4.5rem;
}

.app-task-item {
    height: calc(var(--app-compact-card-body-height) / 4);
    padding: 0.375rem var(--app-space-2);
    overflow: hidden;
    cursor: pointer;
    font-size: 0.8125rem;
    line-height: 1.25;
}

.app-task-item:hover {
    background: var(--bs-tertiary-bg);
}

.app-progress {
    height: 0.375rem;
}

.app-operation-list {
    overflow: hidden;
}

.app-operation-item {
    display: grid;
    grid-template-columns: 2rem minmax(8rem, 12rem) minmax(3rem, 1fr) 3rem 2rem;
    align-items: center;
    height: calc(var(--app-compact-card-body-height) / 3);
    padding: 0.5rem var(--app-space-2);
    gap: 0.75rem;
    font-size: 0.8125rem;
    line-height: 1.25;
}

.app-list-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border: 1px solid;
    border-radius: var(--bs-border-radius-sm);
    font-size: 13px;
}

.app-list-icon-primary {
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), 0.06);
    border-color: rgba(var(--bs-primary-rgb), 0.18);
}

.app-list-icon-success {
    color: var(--bs-success);
    background: rgba(var(--bs-success-rgb), 0.06);
    border-color: rgba(var(--bs-success-rgb), 0.18);
}

.app-list-icon-warning {
    color: var(--bs-warning-text-emphasis);
    background: rgba(var(--bs-warning-rgb), 0.08);
    border-color: rgba(var(--bs-warning-rgb), 0.24);
}

.app-list-icon-info {
    color: var(--bs-info-text-emphasis);
    background: rgba(var(--bs-info-rgb), 0.06);
    border-color: rgba(var(--bs-info-rgb), 0.2);
}

.app-list-icon-secondary {
    color: var(--bs-secondary-color);
    background: rgba(var(--bs-secondary-rgb), 0.04);
    border-color: rgba(var(--bs-secondary-rgb), 0.18);
}

.app-list-icon-danger {
    color: var(--bs-danger);
    background: rgba(var(--bs-danger-rgb), 0.06);
    border-color: rgba(var(--bs-danger-rgb), 0.18);
}

.app-operation-copy {
    display: block;
}

.app-operation-value {
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.app-timeline {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.app-timeline-item {
    display: flex;
    flex: 0 0 calc(var(--app-compact-card-body-height) / 4);
    align-items: center;
    min-height: 0;
    padding: 0.375rem var(--app-space-2);
    gap: 0.75rem;
    border-bottom: var(--bs-border-width) solid var(--bs-border-color-translucent);
    line-height: 1.25;
}

.app-timeline-item:last-child {
    border-bottom: 0;
}

.app-timeline-item .fw-medium,
.app-timeline-item .text-body-secondary:not(time) {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.app-form-body {
    padding: var(--app-space-2);
}

.app-form-section {
    margin-bottom: var(--app-space-2);
    padding-bottom: var(--app-space-2);
    border-bottom: var(--bs-border-width) solid var(--bs-border-color-translucent);
}

.app-form-section-title {
    margin-bottom: 0.625rem;
    color: var(--bs-secondary-color);
    font-size: 0.75rem;
    font-weight: 600;
}

.app-form-body .form-label,
.app-filter-card .form-label {
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.app-form-body .form-control,
.app-form-body .form-select,
.app-filter-card .form-control,
.app-filter-card .form-select {
    font-size: 0.8125rem;
}

.app-form-body .form-text,
.app-form-body .valid-feedback,
.app-form-body .invalid-feedback {
    margin-top: 0.25rem;
    font-size: 0.6875rem;
}

.app-form-body .form-check-label {
    font-size: 0.8125rem;
}

.app-form-actions {
    display: flex;
    align-items: center;
    min-height: 3rem;
    padding: 0.5rem var(--app-space-2);
    gap: 0.5rem;
    background: transparent;
}

.ts-wrapper {
    min-height: 2rem;
}

.ts-wrapper .ts-control {
    min-height: 2rem;
    padding: 0.25rem 0.5rem;
    border-color: var(--bs-border-color);
    border-radius: var(--bs-border-radius-sm);
    padding-left: 1.75rem;
    background-color: var(--bs-body-bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16'%3E%3Ccircle cx='6.5' cy='6.5' r='4.5' fill='none' stroke='%236c757d' stroke-width='1.25'/%3E%3Cpath d='m10 10 3.5 3.5' fill='none' stroke='%236c757d' stroke-linecap='round' stroke-width='1.25'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 0.5rem center;
    font-size: 0.8125rem;
    line-height: 1.5;
    box-shadow: none;
}

.ts-wrapper.focus .ts-control {
    border-color: var(--bs-primary-border-subtle);
    box-shadow: 0 0 0 0.2rem var(--bs-primary-bg-subtle);
}

.ts-wrapper.multi .ts-control > div {
    margin: 0 0.25rem 0 0;
    padding: 0.125rem 0.375rem;
    border-radius: var(--bs-border-radius-sm);
    background: var(--bs-primary-bg-subtle);
    color: var(--bs-primary-text-emphasis);
}

.ts-dropdown {
    border-color: var(--bs-border-color-translucent);
    border-radius: var(--bs-border-radius);
    font-size: 0.8125rem;
    box-shadow: 0 0.5rem 1.5rem rgba(var(--bs-body-color-rgb), 0.08);
}

.ts-dropdown .active {
    color: var(--bs-primary-text-emphasis);
    background: var(--bs-primary-bg-subtle);
}

.app-dropzone {
    position: relative;
    min-height: 6rem;
    border: var(--bs-border-width) dashed var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    background: var(--bs-tertiary-bg);
    transition: border-color 150ms ease, background-color 150ms ease;
}

.app-dropzone:hover,
.app-dropzone.is-dragging {
    border-color: var(--bs-primary);
    background: var(--bs-primary-bg-subtle);
}

.app-dropzone-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.app-dropzone-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 6rem;
    padding: 0.75rem;
    gap: 0.25rem;
    cursor: pointer;
    font-size: 0.75rem;
    text-align: center;
}

.app-dropzone-icon {
    color: var(--bs-primary);
    font-size: 1.25rem;
}

.app-upload-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    margin-top: 0.5rem;
    gap: 0.5rem;
}

.app-upload-preview:empty {
    display: none;
}

.app-upload-item {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 3rem;
    padding: 0.375rem 0.5rem;
    gap: 0.5rem;
    border: var(--bs-border-width) solid var(--bs-border-color-translucent);
    border-radius: var(--bs-border-radius-sm);
}

.app-upload-visual {
    display: inline-flex;
    flex: 0 0 2.25rem;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    overflow: hidden;
    color: var(--bs-primary);
    background: var(--bs-primary-bg-subtle);
    border-radius: var(--bs-border-radius-sm);
    font-size: 1rem;
}

.app-upload-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-upload-copy,
.app-upload-name,
.app-upload-meta {
    display: block;
    min-width: 0;
}

.app-upload-copy {
    overflow: hidden;
}

.app-upload-name,
.app-upload-meta {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.app-upload-name {
    font-size: 0.75rem;
    font-weight: 500;
}

.app-upload-meta {
    color: var(--bs-secondary-color);
    font-size: 0.6875rem;
}

.app-upload-remove {
    display: inline-flex;
    flex: 0 0 1.75rem;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    color: var(--bs-secondary-color);
    border: 0;
    font-size: 12px;
}

.app-upload-remove:hover,
.app-upload-remove:focus-visible {
    color: var(--bs-danger);
    background: var(--bs-danger-bg-subtle);
}

.app-table-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-height: 3.25rem;
    padding-block: 0.5rem;
    gap: 0.5rem;
}

.app-inline-filters {
    display: flex;
    flex-wrap: wrap;
    flex: 1 1 42rem;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.app-inline-filters > .app-filter-search {
    flex: 2 1 15rem;
    min-width: 12rem;
}

.app-inline-filters > :is(.form-select, .form-control, .input-group, .ts-wrapper) {
    width: auto;
    min-width: 9rem;
    flex: 1 1 10rem;
}

.app-inline-filters > :is(.btn, .app-icon-action) {
    flex: 0 0 auto;
    white-space: nowrap;
}

.app-table-toolbar > .text-body-secondary {
    flex: 0 0 auto;
    white-space: nowrap;
}

.app-filter-search {
    position: relative;
}

.app-filter-search > .bi {
    position: absolute;
    top: 50%;
    left: 0.625rem;
    z-index: 3;
    color: var(--bs-secondary-color);
    font-size: 0.75rem;
    transform: translateY(-50%);
}

.app-filter-search > .form-control {
    padding-left: 1.875rem;
}

.app-data-table-wrap {
    width: 100%;
    overflow: hidden;
}

.app-data-table {
    width: 100%;
    table-layout: fixed;
}

.app-data-table > thead > tr {
    height: 2.25rem;
}

.app-data-table > tbody > tr {
    height: 3.25rem;
}

.app-data-table > tbody > tr > td {
    padding-block: 0.375rem;
    overflow: hidden;
    font-size: 0.75rem;
    line-height: 1.25;
}

.app-data-select {
    width: 4%;
}

.app-data-event {
    width: 30%;
}

.app-data-date {
    width: 16%;
}

.app-data-owner {
    width: 16%;
}

.app-data-value {
    width: 12%;
}

.app-data-status {
    width: 14%;
}

.app-data-actions {
    width: 8%;
}

.app-sort-button {
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    font: inherit;
}

.app-sort-button > .bi {
    margin-left: 0.25rem;
    font-size: 0.625rem;
}

.app-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
}

.app-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 2.75rem;
    padding: 0.375rem var(--app-space-2);
    background: transparent;
}

.app-table-footer .page-link {
    min-width: 1.75rem;
    padding: 0.25rem 0.375rem;
    text-align: center;
}

.app-filter-card > .card-body {
    padding: 0.5rem var(--app-space-2);
}

.app-list-filters {
    display: grid;
    grid-template-columns: minmax(14rem, 2fr) repeat(3, minmax(8rem, 1fr)) auto;
    align-items: end;
    gap: 0.5rem;
}

.app-filter-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.app-result-item {
    display: grid;
    grid-template-columns: 1.75rem minmax(12rem, 1fr) minmax(9rem, 0.55fr) 8rem 4.5rem 4.25rem;
    align-items: center;
    min-height: 4rem;
    padding: 0.5rem var(--app-space-2);
    gap: 0.75rem;
    font-size: 0.75rem;
}

.app-result-title {
    margin-bottom: 0.125rem;
    font-size: 0.8125rem;
    font-weight: 500;
}

.app-result-description {
    font-size: 0.75rem;
}

.app-result-owner {
    align-items: center;
    min-width: 0;
    gap: 0.5rem;
}

.app-result-due {
    font-variant-numeric: tabular-nums;
}

.app-date-picker,
.app-time-picker {
    cursor: pointer;
}

.app-date-picker > .form-control,
.app-date-picker > .input-group-text,
.app-time-picker > .form-control,
.app-time-picker > .input-group-text {
    cursor: pointer;
}

.app-date-picker > .input-group-text,
.app-time-picker > .input-group-text {
    color: var(--bs-secondary-color);
    background: var(--bs-body-bg);
}

.app-date-picker:hover > .form-control,
.app-date-picker:hover > .input-group-text,
.app-time-picker:hover > .form-control,
.app-time-picker:hover > .input-group-text {
    border-color: var(--bs-primary-border-subtle);
}

.flatpickr-calendar {
    overflow: hidden;
    width: 19.5rem;
    max-width: calc(100vw - 1rem);
    border: var(--bs-border-width) solid var(--bs-border-color-translucent);
    border-radius: var(--bs-border-radius);
    font-family: "Eventavera Roboto", var(--bs-font-sans-serif);
    font-size: 0.8125rem;
    box-shadow: 0 0.75rem 2rem rgba(var(--bs-body-color-rgb), 0.12);
}

.flatpickr-calendar.hasTime.noCalendar {
    width: 12rem;
}

.flatpickr-calendar:not(.hasTime.noCalendar) .flatpickr-innerContainer,
.flatpickr-calendar:not(.hasTime.noCalendar) .flatpickr-rContainer,
.flatpickr-calendar:not(.hasTime.noCalendar) .flatpickr-weekdays,
.flatpickr-calendar:not(.hasTime.noCalendar) .flatpickr-days,
.flatpickr-calendar:not(.hasTime.noCalendar) .dayContainer {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.flatpickr-months {
    height: 2.75rem;
    background: var(--bs-body-bg);
    border-bottom: var(--bs-border-width) solid var(--bs-border-color-translucent);
}

.flatpickr-months .flatpickr-month {
    flex: 1 1 auto;
    height: 2.75rem;
    color: var(--bs-body-color);
}

.flatpickr-current-month {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.75rem;
    padding-top: 0;
    font-size: 0.875rem;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
    height: 2rem;
    padding: 0.25rem;
    color: var(--bs-body-color);
    border-radius: var(--bs-border-radius-sm);
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 500;
}

.flatpickr-current-month .flatpickr-monthDropdown-months:hover,
.flatpickr-current-month input.cur-year:hover,
.flatpickr-current-month input.cur-year:focus {
    background: var(--bs-tertiary-bg);
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    display: flex;
    align-items: center;
    height: 2.75rem;
    padding: 0.75rem;
    color: var(--bs-secondary-color);
    fill: currentColor;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
    color: var(--bs-primary);
}

.flatpickr-weekdays {
    height: 2rem;
    padding-inline: 0.375rem;
    background: var(--bs-tertiary-bg);
}

span.flatpickr-weekday {
    color: var(--bs-secondary-color);
    font-size: 0.6875rem;
    font-weight: 500;
}

.flatpickr-innerContainer {
    padding: 0;
}

.flatpickr-days {
    padding: 0.25rem 0.375rem 0.375rem;
}

.flatpickr-day {
    flex-basis: calc(100% / 7);
    width: calc(100% / 7);
    max-width: calc(100% / 7);
    height: 2.125rem;
    border-radius: var(--bs-border-radius-sm);
    color: var(--bs-body-color);
    font-size: 0.75rem;
    line-height: 2.125rem;
}

.flatpickr-day:hover,
.flatpickr-day:focus {
    background: var(--bs-primary-bg-subtle);
    border-color: var(--bs-primary-bg-subtle);
}

.flatpickr-day.today {
    color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.flatpickr-day.today:hover,
.flatpickr-day.today:focus,
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    color: var(--bs-white);
    background: var(--bs-primary);
    border-color: var(--bs-primary);
}

.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay,
.flatpickr-day.flatpickr-disabled {
    color: var(--bs-tertiary-color);
}

.flatpickr-time {
    height: 2.75rem;
    border-top: 0;
}

.flatpickr-time input,
.flatpickr-time .flatpickr-am-pm {
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
}

.flatpickr-time input:hover,
.flatpickr-time .flatpickr-am-pm:hover,
.flatpickr-time input:focus {
    background: var(--bs-primary-bg-subtle);
}

.app-demo-list {
    height: calc(100% - var(--app-compact-card-header-height));
}

.app-demo-item {
    display: grid;
    grid-template-columns: 1.75rem minmax(0, 1fr) auto;
    align-items: center;
    min-height: 4rem;
    padding: 0.5rem var(--app-space-2);
    gap: 0.75rem;
}

.app-auth-body {
    min-height: 100vh;
    overflow-y: auto;
    font-family: "Eventavera Roboto", var(--bs-font-sans-serif);
    background: var(--bs-tertiary-bg);
}

.app-auth-shell {
    display: grid;
    grid-template-columns: minmax(22rem, 42%) minmax(0, 58%);
    min-height: 100vh;
}

.app-auth-brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    overflow: hidden;
    padding: var(--app-space-4);
    color: #0b2454;
    background:
        radial-gradient(circle at 85% 18%, rgba(13, 110, 253, 0.13), transparent 34%),
        radial-gradient(circle at 15% 80%, rgba(13, 202, 240, 0.12), transparent 32%),
        #eef5ff;
    border-right: var(--bs-border-width) solid #d6e4f8;
}

.app-auth-brand-panel::after {
    position: absolute;
    right: -7rem;
    bottom: 10%;
    width: 18rem;
    height: 18rem;
    border: 2.5rem solid rgba(13, 110, 253, 0.05);
    border-radius: 50%;
    content: "";
}

.app-auth-brand,
.app-auth-mobile-brand {
    position: relative;
    z-index: 1;
    display: inline-flex;
    width: fit-content;
}

.app-auth-brand img,
.app-auth-mobile-brand img {
    width: auto;
    height: 2rem;
    object-fit: contain;
}

.app-auth-brand-copy {
    position: relative;
    z-index: 1;
    max-width: 29rem;
}

.app-auth-eyebrow {
    display: block;
    margin-bottom: var(--app-space-2);
    color: var(--bs-primary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.app-auth-brand-copy h1 {
    max-width: 25rem;
    margin-bottom: var(--app-space-2);
    font-size: clamp(2rem, 3.2vw, 3rem);
    font-weight: 600;
    line-height: 1.08;
}

.app-auth-brand-copy > p {
    max-width: 27rem;
    margin-bottom: var(--app-space-3);
    color: #49617f;
    font-size: 1rem;
}

.app-auth-benefits {
    display: grid;
    margin: 0;
    padding: 0;
    gap: var(--app-space-2);
    list-style: none;
}

.app-auth-benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.app-auth-benefits .bi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    color: var(--bs-primary);
    background: rgba(13, 110, 253, 0.1);
    border: 1px solid rgba(13, 110, 253, 0.16);
    border-radius: var(--bs-border-radius);
    font-size: 0.875rem;
}

.app-auth-brand-panel > small {
    position: relative;
    z-index: 1;
    color: #6c7f98;
    font-size: 0.75rem;
}

.app-auth-form-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 100vh;
    padding: var(--app-space-3);
    background: var(--bs-tertiary-bg);
}

.app-auth-card {
    width: 100%;
    max-width: 27rem;
    padding: var(--app-space-3);
    background: var(--bs-body-bg);
    border: var(--bs-border-width) solid var(--bs-border-color-translucent);
    border-radius: var(--app-card-radius);
    box-shadow: 0 0.75rem 2rem rgba(var(--bs-body-color-rgb), 0.06);
}

.app-auth-card-wide {
    max-width: 40rem;
}

.app-auth-card-header {
    display: flex;
    align-items: center;
    margin-bottom: var(--app-space-3);
    gap: 0.75rem;
}

.app-auth-card-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    color: var(--bs-primary);
    background: var(--bs-primary-bg-subtle);
    border: var(--bs-border-width) solid var(--bs-primary-border-subtle);
    border-radius: var(--bs-border-radius);
    font-size: 1rem;
}

.app-auth-card-header h1 {
    margin: 0 0 0.125rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.app-auth-card-header p {
    margin: 0;
    color: var(--bs-secondary-color);
    font-size: 0.8125rem;
}

.app-auth-form {
    display: grid;
    gap: var(--app-space-2);
}

.app-auth-form .form-label {
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.app-auth-form .form-text,
.app-auth-form .invalid-feedback {
    margin-top: 0.25rem;
    font-size: 0.6875rem;
}

.app-auth-form .input-group-text {
    min-width: 2.25rem;
    justify-content: center;
    color: var(--bs-secondary-color);
    background: var(--bs-body-bg);
}

.app-password-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    padding-inline: 0;
}

.app-password-toggle .bi {
    font-size: 0.8125rem;
}

.app-auth-inline-link {
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    text-decoration: none;
}

.app-auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.25rem;
    gap: var(--app-space-1);
    font-weight: 500;
    text-decoration: none;
}

.app-auth-submit .bi {
    font-size: 0.8125rem;
}

.app-auth-terms {
    min-height: 1.25rem;
    margin-top: -0.25rem;
    font-size: 0.75rem;
}

.app-auth-alert {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    min-height: 2.75rem;
    margin-bottom: var(--app-space-2);
    padding: var(--app-space-1) 0.75rem;
    gap: var(--app-space-1);
    border-radius: var(--bs-border-radius);
    font-size: 0.75rem;
}

.app-auth-alert:not(.alert-dismissible) {
    grid-template-columns: auto minmax(0, 1fr);
}

.app-auth-alert .btn-close {
    padding: 0.625rem;
    font-size: 0.625rem;
}

.app-auth-card-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--app-space-3);
    padding-top: var(--app-space-2);
    gap: var(--app-space-1);
    border-top: var(--bs-border-width) solid var(--bs-border-color-translucent);
    color: var(--bs-secondary-color);
    font-size: 0.75rem;
}

.app-auth-card-footer a {
    font-weight: 500;
    text-decoration: none;
}

.app-auth-debug-link {
    padding: var(--app-space-1);
    color: var(--bs-secondary-color);
    background: var(--bs-tertiary-bg);
    border: var(--bs-border-width) dashed var(--bs-border-color);
    border-radius: var(--bs-border-radius-sm);
    font-size: 0.6875rem;
    overflow-wrap: anywhere;
}

.app-auth-debug-link a {
    font-weight: 500;
}

@media (max-width: 991.98px) {
    .app-auth-shell {
        display: block;
    }

    .app-auth-brand-panel {
        display: none;
    }

    .app-auth-form-panel {
        justify-content: flex-start;
        padding-top: var(--app-space-4);
    }

    .app-auth-mobile-brand {
        margin-bottom: var(--app-space-3);
    }
}

@media (max-width: 575.98px) {
    .app-auth-form-panel {
        padding: var(--app-space-2);
    }

    .app-auth-card {
        padding: var(--app-space-2);
        box-shadow: none;
    }

    .app-auth-card-footer {
        flex-wrap: wrap;
    }
}

.app-demo-copy,
.app-demo-copy > strong,
.app-demo-copy > span {
    display: block;
    min-width: 0;
}

.app-demo-copy > strong {
    margin-bottom: 0.125rem;
    font-size: 0.8125rem;
}

.app-demo-copy > span {
    overflow: hidden;
    color: var(--bs-secondary-color);
    font-size: 0.75rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.app-demo-controls {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--app-space-2);
    gap: var(--app-space-2);
}

.app-demo-controls .form-label,
.modal .form-label,
.offcanvas .form-label {
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.app-demo-controls .form-text {
    font-size: 0.6875rem;
}

.app-column-menu {
    min-width: 12rem;
    padding: 0.375rem;
    border-color: var(--bs-border-color-translucent);
    box-shadow: 0 0.5rem 1.5rem rgba(var(--bs-body-color-rgb), 0.08);
}

.app-column-menu .dropdown-header {
    padding: 0.375rem 0.5rem;
    font-size: 0.6875rem;
}

.app-column-menu .dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.375rem 0.5rem;
    gap: 0.5rem;
    border-radius: var(--bs-border-radius-sm);
    font-size: 0.8125rem;
}

.app-column-preview {
    width: 100%;
    table-layout: fixed;
}

.app-column-preview > tbody > tr {
    height: 3.25rem;
}

.app-column-preview > tbody > tr > td {
    overflow: hidden;
    font-size: 0.75rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.modal-content,
.app-example-offcanvas {
    border-color: var(--bs-border-color-translucent);
    box-shadow: 0 1rem 3rem rgba(var(--bs-body-color-rgb), 0.12);
}

.modal-header,
.modal-footer,
.app-example-offcanvas > .offcanvas-header {
    padding: 0.75rem var(--app-space-2);
}

.modal-body {
    padding: var(--app-space-2);
}

.app-confirm-modal {
    padding: var(--app-space-3);
}

.app-confirm-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--bs-danger);
    background: var(--bs-danger-bg-subtle);
    border-radius: 50%;
}

.app-example-offcanvas {
    --bs-offcanvas-width: min(24rem, 100vw);
}

.app-offcanvas-footer {
    display: flex;
    justify-content: flex-end;
    padding: 0.75rem var(--app-space-2);
    gap: 0.5rem;
    border-top: var(--bs-border-width) solid var(--bs-border-color-translucent);
}

.app-toast {
    overflow: hidden;
    border-color: var(--bs-border-color-translucent);
    border-radius: var(--bs-border-radius);
    box-shadow: 0 0.75rem 2rem rgba(var(--bs-body-color-rgb), 0.12);
}

.app-toast .toast-header {
    padding: 0.5rem 0.625rem;
    gap: 0.5rem;
    background: var(--bs-body-bg);
}

.app-toast .toast-header > strong,
.app-toast .toast-body {
    font-size: 0.75rem;
}

.app-toast .app-list-icon {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 11px;
}

.app-calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--app-compact-card-header-height);
    gap: 0.5rem;
}

.app-calendar-weekdays,
.app-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.app-calendar-weekdays {
    min-height: 2rem;
    background: var(--bs-tertiary-bg);
    border-bottom: var(--bs-border-width) solid var(--bs-border-color-translucent);
}

.app-calendar-weekdays > span {
    display: flex;
    align-items: center;
    padding-inline: 0.5rem;
    color: var(--bs-secondary-color);
    font-size: 0.6875rem;
    font-weight: 500;
}

.app-calendar-day {
    min-width: 0;
    min-height: 6.25rem;
    padding: 0.375rem;
    border-right: var(--bs-border-width) solid var(--bs-border-color-translucent);
    border-bottom: var(--bs-border-width) solid var(--bs-border-color-translucent);
    background: var(--bs-body-bg);
}

.app-calendar-day:nth-child(7n) {
    border-right: 0;
}

.app-calendar-day.is-muted {
    background: var(--bs-tertiary-bg);
    opacity: 0.62;
}

.app-calendar-day.is-today {
    box-shadow: inset 0 0 0 1px var(--bs-primary);
}

.app-calendar-day > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.25rem;
    font-size: 0.6875rem;
}

.app-calendar-day.is-today > header > time {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.375rem;
    height: 1.375rem;
    color: var(--bs-white);
    background: var(--bs-primary);
    border-radius: 50%;
}

.app-calendar-day > header > span {
    color: var(--bs-primary);
    font-size: 0.625rem;
}

.app-calendar-events {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.app-calendar-event {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 0.1875rem 0.25rem;
    gap: 0.25rem;
    overflow: hidden;
    border: 0;
    border-left: 2px solid;
    border-radius: 0.1875rem;
    font-size: 0.625rem;
    line-height: 1.2;
    text-align: left;
}

.app-calendar-event > time {
    flex: 0 0 auto;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

.app-calendar-event > span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.app-calendar-event-primary { color: var(--bs-primary-text-emphasis); background: var(--bs-primary-bg-subtle); border-color: var(--bs-primary); }
.app-calendar-event-success { color: var(--bs-success-text-emphasis); background: var(--bs-success-bg-subtle); border-color: var(--bs-success); }
.app-calendar-event-warning { color: var(--bs-warning-text-emphasis); background: var(--bs-warning-bg-subtle); border-color: var(--bs-warning); }
.app-calendar-event-info { color: var(--bs-info-text-emphasis); background: var(--bs-info-bg-subtle); border-color: var(--bs-info); }
.app-calendar-event-secondary { color: var(--bs-secondary-color); background: var(--bs-secondary-bg-subtle); border-color: var(--bs-secondary); }
.app-calendar-event-danger { color: var(--bs-danger-text-emphasis); background: var(--bs-danger-bg-subtle); border-color: var(--bs-danger); }

.app-calendar-event {
    text-decoration: none;
}

.app-calendar-event > .bi {
    flex: 0 0 auto;
    font-size: .625rem;
}

.app-calendar-event.has-conflict {
    box-shadow: inset 0 0 0 1px rgba(var(--bs-danger-rgb), .2);
}

.app-calendar-more {
    padding-inline: .25rem;
    color: var(--bs-secondary-color);
    font-size: .625rem;
}

.app-calendar-grid-week > .app-calendar-day {
    min-height: 28rem;
}

.app-calendar-scroll {
    min-width: 0;
}

.app-calendar-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0.75rem;
    gap: 0.5rem;
}

.app-calendar-summary > div {
    padding: 0.5rem;
    background: var(--bs-tertiary-bg);
    border-radius: var(--bs-border-radius-sm);
    text-align: center;
}

.app-calendar-summary span,
.app-calendar-summary strong {
    display: block;
}

.app-calendar-summary span {
    color: var(--bs-secondary-color);
    font-size: 0.625rem;
}

.app-calendar-summary strong {
    margin-top: 0.25rem;
    font-size: 1rem;
}

.app-calendar-agenda {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    min-height: 4rem;
    padding: 0.5rem 0.75rem;
    gap: 0.75rem;
    font-size: 0.6875rem;
}

.app-calendar-agenda > time {
    color: var(--bs-secondary-color);
    font-variant-numeric: tabular-nums;
}

.app-calendar-agenda strong,
.app-calendar-agenda small {
    display: block;
}

.app-calendar-agenda small {
    margin-top: 0.125rem;
    overflow: hidden;
    color: var(--bs-secondary-color);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.app-employee-profile > .card-body {
    padding: var(--app-space-2);
}

.app-employee-heading {
    display: flex;
    align-items: flex-start;
    padding-bottom: var(--app-space-2);
    gap: 0.75rem;
    border-bottom: var(--bs-border-width) solid var(--bs-border-color-translucent);
}

.app-employee-avatar {
    display: inline-flex;
    flex: 0 0 3.25rem;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    color: var(--bs-primary-text-emphasis);
    background: var(--bs-primary-bg-subtle);
    border: var(--bs-border-width) solid var(--bs-primary-border-subtle);
    border-radius: 50%;
    font-weight: 600;
}

.app-detail-list {
    margin: 0;
    padding-block: 0.5rem;
}

.app-detail-list > div {
    display: grid;
    grid-template-columns: 7rem minmax(0, 1fr);
    padding-block: 0.375rem;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.app-detail-list dt {
    color: var(--bs-secondary-color);
    font-weight: 400;
}

.app-detail-list dd {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-detail-list dt > .bi {
    width: 1rem;
    margin-right: 0.25rem;
}

.app-employee-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.app-employee-skills > span {
    padding: 0.25rem 0.5rem;
    color: var(--bs-secondary-color);
    background: var(--bs-tertiary-bg);
    border-radius: var(--bs-border-radius-sm);
    font-size: 0.6875rem;
}

.app-availability {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 0.75rem;
    gap: 0.375rem;
}

.app-availability > div {
    padding: 0.5rem 0.25rem;
    background: var(--bs-tertiary-bg);
    border-radius: var(--bs-border-radius-sm);
    font-size: 0.6875rem;
    text-align: center;
}

.app-availability span,
.app-availability strong {
    display: block;
}

.app-availability strong {
    margin-top: 0.25rem;
}

.app-employee-table {
    width: 100%;
    table-layout: fixed;
}

.app-employee-table > tbody > tr {
    height: 3.5rem;
}

.app-employee-table > tbody > tr > td {
    overflow: hidden;
    font-size: 0.75rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.app-employee-table th:nth-child(1) { width: 12%; }
.app-employee-table th:nth-child(2) { width: 28%; }
.app-employee-table th:nth-child(3) { width: 28%; }
.app-employee-table th:nth-child(4) { width: 24%; }
.app-employee-table th:nth-child(5) { width: 8%; }

.app-employee-activity {
    display: grid;
    grid-template-columns: 1.75rem minmax(0, 1fr);
    align-items: center;
    min-height: 3.5rem;
    padding: 0.5rem var(--app-space-2);
    gap: 0.75rem;
}

.app-employee-activity strong,
.app-employee-activity small {
    display: block;
}

.app-employee-activity strong {
    font-size: 0.75rem;
}

.app-employee-activity small {
    margin-top: 0.125rem;
    color: var(--bs-secondary-color);
    font-size: 0.6875rem;
}

.app-empty-state {
    padding: var(--app-space-4);
    text-align: center;
}

.app-empty-state > .bi {
    color: var(--bs-secondary-color);
    font-size: 2rem;
}

.app-error-card {
    width: min(100%, 45rem);
}

.app-error-code {
    color: var(--bs-primary);
    font-size: var(--app-space-6);
    font-weight: 600;
}

.min-w-0 {
    min-width: 0;
}

.app-kanban { display:grid; grid-template-columns:repeat(7,minmax(12rem,1fr)); gap:.5rem; overflow-x:auto; padding-bottom:.25rem; }
.app-kanban-column { min-height:18rem; border:1px solid var(--bs-border-color); border-radius:var(--bs-border-radius-lg); background:var(--bs-tertiary-bg); transition:border-color .15s ease,background-color .15s ease; }
.app-kanban-column.is-drop-target { border-color:var(--bs-primary); background:rgba(var(--bs-primary-rgb),.06); }
.app-kanban-column > header { display:flex; align-items:center; justify-content:space-between; min-height:2.5rem; padding:.5rem .75rem; border-bottom:1px solid var(--bs-border-color); font-size:.75rem; font-weight:500; }
.app-kanban-list { display:grid; align-content:start; gap:.5rem; min-height:15.5rem; padding:.5rem; }
.app-kanban-card { position:relative; display:flex; gap:.25rem; padding:.5rem; border:1px solid var(--bs-border-color); border-radius:var(--bs-border-radius); background:var(--bs-body-bg); color:var(--bs-body-color); transition:opacity .15s ease,box-shadow .15s ease; }
.app-kanban-card[draggable="true"] { cursor:grab; }
.app-kanban-card.is-dragging { opacity:.4; }
.app-kanban-card.is-updating { opacity:.6; pointer-events:none; }
.app-kanban-card-main { display:grid; flex:1; gap:.2rem; min-width:0; padding-right:1.75rem; }
.app-kanban-card-main > a { overflow:hidden; color:var(--bs-body-color); font-size:.75rem; text-overflow:ellipsis; white-space:nowrap; }
.app-kanban-card-actions { position:absolute; z-index:2; top:.25rem; right:.25rem; }
.app-kanban-card-actions .app-icon-action { width:1.5rem; height:1.5rem; min-height:1.5rem; border:0; }
.app-compact-dropdown { min-width:11rem; padding:.25rem; font-size:.75rem; }
.app-compact-dropdown .dropdown-item { display:flex; align-items:center; gap:.45rem; padding:.35rem .5rem; border-radius:var(--bs-border-radius-sm); }
.app-status-dot { display:inline-block; width:.45rem; height:.45rem; flex:0 0 .45rem; border-radius:50%; }
.app-kanban-card strong { font-size:.75rem; font-weight:500; }
.app-kanban-card small { color:var(--bs-secondary-color); font-size:.6875rem; }

@media (min-width: 992px) {
    .app-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        height: 100vh;
    }

    .app-main {
        margin-left: var(--app-sidebar-width);
    }
}

@media (max-width: 991.98px) {
    .app-content {
        padding: var(--app-space-2);
    }

    .app-list-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-inline-filters > .app-filter-search {
        flex-basis: 100%;
    }

    .app-filter-actions {
        justify-content: flex-end;
    }
}

@media (max-width: 767.98px) {
    .app-calendar-scroll {
        overflow-x: auto;
    }

    .app-calendar-weekdays,
    .app-calendar-grid {
        min-width: 48rem;
    }

    .app-global-search {
        display: none;
    }

    .app-result-item {
        grid-template-columns: 1.75rem minmax(0, 1fr) 7rem 4.5rem 4.25rem;
        gap: 0.5rem;
    }

    .app-data-table .app-row-actions .app-icon-action:last-child {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .app-page-description {
        width: 100%;
        padding-left: 0;
        border-left: 0;
    }

    .app-list-filters {
        grid-template-columns: minmax(0, 1fr);
    }

    .app-filter-actions {
        grid-column: auto;
    }

    .app-inline-filters > :is(.app-filter-search, .form-select, .form-control, .input-group, .ts-wrapper) {
        width: 100%;
        min-width: 0;
        flex-basis: 100%;
    }

    .app-filter-actions {
        justify-content: flex-start;
    }

    .app-upload-preview {
        grid-template-columns: minmax(0, 1fr);
    }

    .app-result-item {
        grid-template-columns: 1.75rem minmax(0, 1fr) 4.5rem 2rem;
    }

    .app-result-due,
    .app-result-item .app-row-actions .app-icon-action:last-child {
        display: none;
    }

    .app-table-footer {
        align-items: flex-start;
        gap: 0.5rem;
    }
}
/* Offer editor */
.app-offer-item{padding:.5rem .75rem;border-bottom:1px solid var(--bs-border-color)}
.app-offer-item-main{display:grid;grid-template-columns:8rem minmax(12rem,1.5fr) minmax(10rem,1fr) 5rem 4.5rem 7rem 5rem 2rem;gap:.375rem;align-items:center}
.app-offer-summary{display:flex;justify-content:flex-end;gap:1rem;padding:.625rem .75rem;background:var(--bs-tertiary-bg);font-size:.875rem}
@media(max-width:1199.98px){.app-offer-item-main{grid-template-columns:repeat(4,minmax(0,1fr))}.app-offer-item-name{grid-column:span 2}}
@media(max-width:575.98px){.app-offer-item-main{grid-template-columns:repeat(2,minmax(0,1fr))}.app-offer-item-name{grid-column:span 1}}

/* Workflow */
.app-workflow-order {
    width: 1.25rem;
    flex: 0 0 1.25rem;
    color: var(--bs-secondary-color);
    font-size: .6875rem;
    text-align: center;
}

.app-workflow-stage-icon,
.app-workflow-timeline-marker {
    display: inline-flex;
    width: 1.75rem;
    height: 1.75rem;
    flex: 0 0 1.75rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: .75rem;
}

.app-workflow-timeline {
    display: grid;
}

.app-workflow-timeline-row {
    position: relative;
    display: flex;
    min-height: 2.75rem;
    align-items: center;
    gap: .625rem;
}

.app-workflow-timeline-row:not(:last-child)::after {
    position: absolute;
    z-index: 0;
    top: 2.25rem;
    bottom: -.5rem;
    left: .855rem;
    width: 1px;
    background: var(--bs-border-color);
    content: '';
}

.app-workflow-timeline-marker {
    z-index: 1;
    border: 1px solid var(--bs-border-color);
}

.app-workflow-timeline-row.pending {
    color: var(--bs-secondary-color);
}
.app-event-map {
    min-height: 280px;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    background: var(--bs-tertiary-bg);
    overflow: hidden;
}

.app-google-place-autocomplete {
    flex: 1 1 auto;
    min-width: 0;
    min-height: calc(1.5em + .5rem + 2px);
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius-sm) 0 0 var(--bs-border-radius-sm);
    background: var(--bs-body-bg);
}

.app-google-place-autocomplete.is-invalid {
    border-color: var(--bs-form-invalid-border-color);
}

.app-event-map-unavailable {
    display: grid;
    place-items: center;
    padding: 1rem;
    color: var(--bs-secondary-color);
    background: var(--bs-tertiary-bg);
    font-size: 0.8125rem;
    text-align: center;
}

.event-site-plan-map {
    width: 100%;
    min-height: 70vh;
    background: var(--bs-tertiary-bg);
}

.app-record-tabs {
    gap: .25rem;
    padding: .25rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    background: var(--bs-body-bg);
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
}

.app-record-tabs .nav-link {
    white-space: nowrap;
    font-size: .8125rem;
}

.event-site-plan-map-wizard {
    min-height: 62vh;
}

.event-site-plan-toolbar .btn.active {
    color: var(--bs-white);
    background: var(--bs-primary);
    border-color: var(--bs-primary);
}

.event-site-plan-toolbar {
    position: relative;
    z-index: 1100;
    overflow: visible;
    background: var(--bs-body-bg);
}

.site-plan-map-card {
    overflow: visible;
}

.event-site-plan-toolbar .ts-dropdown {
    z-index: 1200;
    padding: .35rem;
    border-color: var(--bs-border-color);
    box-shadow: 0 .75rem 1.75rem rgba(15, 23, 42, .18);
}

.event-site-plan-toolbar .ts-dropdown .optgroup + .optgroup {
    margin-top: .35rem;
    padding-top: .35rem;
    border-top: 1px solid var(--bs-border-color);
}

.event-site-plan-toolbar .ts-dropdown .optgroup-header {
    padding: .4rem .55rem .3rem;
    color: var(--bs-primary);
    background: var(--bs-tertiary-bg);
    border-radius: .35rem;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.event-site-plan-toolbar .ts-dropdown .option {
    margin-top: .1rem;
    padding: .45rem .7rem .45rem 1rem;
    border-radius: .35rem;
    color: var(--bs-body-color);
    font-size: .8125rem;
}

.event-site-plan-toolbar .ts-dropdown .option.active {
    color: var(--bs-primary-text-emphasis);
    background: var(--bs-primary-bg-subtle);
}

.event-site-plan-toolbar .ts-control.focus input::placeholder {
    color: transparent;
}

.site-plan-tool-group {
    display: inline-flex;
    flex-direction: column;
    gap: .25rem;
    margin: 0 .75rem .5rem 0;
    vertical-align: top;
}

.site-plan-tool-picker {
    width: min(100%, 34rem);
}

.site-plan-tool-picker .ts-wrapper {
    min-width: 18rem;
}

.site-plan-tool-group-label {
    color: var(--bs-secondary-color);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.site-plan-drawing-panel {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem;
    border: 1px solid rgba(var(--bs-primary-rgb), .35);
    border-radius: var(--bs-border-radius);
    background: rgba(var(--bs-primary-rgb), .06);
}

.site-plan-drawing-instruction {
    flex: 1;
    min-width: 18rem;
    color: var(--bs-secondary-color);
    font-size: .8125rem;
}

.site-plan-user-tooltip {
    border: 2px solid var(--bs-primary);
    font-weight: 700;
    box-shadow: 0 .2rem .5rem rgba(0, 0, 0, .2);
}

.site-plan-user-layer {
    cursor: move;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35));
}

.site-plan-map-moving,
.site-plan-map-moving .leaflet-interactive {
    cursor: move;
}

.site-plan-edit-vertex {
    cursor: grab;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .45));
}

.site-plan-point-icon {
    display: grid;
    place-items: center;
    width: 1.9rem;
    height: 1.9rem;
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    box-shadow: 0 .15rem .4rem rgba(0, 0, 0, .35);
}

.site-plan-osm-selected {
    filter: drop-shadow(0 0 4px rgba(13, 110, 253, .85));
}

@media (max-width: 575.98px) {
    .app-event-map {
        min-height: 230px;
    }

    .site-plan-drawing-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .site-plan-drawing-instruction {
        min-width: 0;
    }
}

/* Kompletowanie i etykiety sprzętu */
.picking-scan-panel { background:linear-gradient(135deg,#0d6efd,#074fc5); color:#fff; border-radius:.85rem; padding:1rem 1.15rem; box-shadow:0 .35rem 1rem rgba(13,110,253,.18); }
.picking-scan-icon { display:grid; place-items:center; width:2.8rem; height:2.8rem; flex:0 0 auto; border-radius:.75rem; background:rgba(255,255,255,.16); font-size:1.35rem; }
.picking-mobile-list { padding:.65rem; background:var(--bs-tertiary-bg); }
.picking-mobile-item { padding:.85rem; margin-bottom:.55rem; background:var(--bs-body-bg); border:1px solid var(--bs-border-color); border-radius:.75rem; transition:.2s ease; }
.picking-mobile-item:last-child { margin-bottom:0; }
.picking-item-state { display:grid; place-items:center; width:2.35rem; height:2.35rem; flex:0 0 auto; border-radius:.65rem; }
[data-picking-item].is-scanned { background:rgba(13,110,253,.08); box-shadow:inset .22rem 0 #0d6efd; }
.picking-mobile-scan { position:fixed; z-index:1025; left:50%; bottom:1rem; transform:translateX(-50%); min-width:13rem; min-height:3.25rem; border-radius:2rem; box-shadow:0 .5rem 1.5rem rgba(13,110,253,.38); display:flex; align-items:center; justify-content:center; gap:.55rem; font-weight:600; }
.picking-camera { position:relative; overflow:hidden; aspect-ratio:1/1; max-height:60vh; background:#10141a; border-radius:1rem; }
.picking-camera video { width:100%; height:100%; object-fit:cover; }
.picking-camera-frame { position:absolute; inset:17%; border:3px solid rgba(255,255,255,.9); border-radius:1rem; box-shadow:0 0 0 999px rgba(0,0,0,.28); pointer-events:none; }
.equipment-qr-preview { display:grid; place-items:center; width:6rem; height:6rem; margin-inline:auto; border-radius:1rem; color:#0d6efd; background:rgba(13,110,253,.08); font-size:3.5rem; }
.equipment-qr-preview img { display:block; width:100%; height:100%; border-radius:.75rem; }

.min-w-0 { min-width:0; }
.event-quick-add-list { display:flex; flex-wrap:wrap; justify-content:center; gap:.4rem; }
.event-quick-add-list form { margin:0; }
.event-quick-add-list .btn { min-height:2.35rem; }
.app-clickable-row { cursor:pointer; }
.app-clickable-row:hover > * { background-color:rgba(13,110,253,.055); }
.app-clickable-row:focus-visible { outline:2px solid var(--bs-primary); outline-offset:-2px; }
.event-role-form { width:8.75rem; margin:0; }
.event-role-select { min-height:1.9rem; border:0; border-radius:1rem; padding:.15rem 2rem .15rem .75rem; background-position:right .65rem center; font-size:.78rem; font-weight:700; line-height:1.25; text-align:center; cursor:pointer; box-shadow:none; }
.event-role-select:focus { box-shadow:0 0 0 .2rem rgba(13,110,253,.18); }
.event-role-select:disabled { opacity:.7; }
[data-warehouse-scope="returns"] .app-data-table-wrap.d-none { display:block !important; }
[data-warehouse-scope="returns"] .picking-mobile-list { display:none !important; }
@media (max-width:575.98px) { .app-content:has(.picking-mobile-scan) { padding-bottom:5.5rem; } .picking-scanner-modal .modal-body { display:flex; flex-direction:column; } .picking-camera { flex:0 1 auto; } }
