:root {
    --app-border: #d9e0ea;
    --app-surface: #ffffff;
    --app-text: #1f2a37;
    --app-primary: #1f67c6;
    --app-primary-soft: rgba(31, 103, 198, 0.12);
    --app-nav-shadow: 0 18px 48px -28px rgba(15, 33, 58, 0.48);
    --app-nav-panel-border: rgba(106, 123, 144, 0.16);
    --app-nav-hover: rgba(38, 83, 132, 0.08);
    --app-nav-active: linear-gradient(180deg, rgba(31, 103, 198, 0.12) 0%, rgba(31, 103, 198, 0.18) 100%);
    --app-topbar-bg: rgba(255, 255, 255, 0.88);
}

html,
body {
    min-height: 100%;
}

.app-main {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: calc(100vh - 7rem);
}

.page-body {
    flex: 1 1 auto;
}

.app-footer {
    margin-top: auto;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    border-bottom: 1px solid var(--app-border);
    background: var(--app-topbar-bg);
    backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 12px 34px -28px rgba(10, 27, 48, 0.42);
    overflow: visible;
}

.app-topbar-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-height: 4.25rem;
    overflow: visible;
}

.app-topbar-start,
.app-topbar-actions {
    flex: 0 0 auto;
}

.app-mobile-menu-shell {
    display: none;
}

.app-topbar-mobile-toggle {
    display: none !important;
}

.app-topbar-center {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
    overflow: visible;
}

.app-topbar-brand {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.35rem 0.2rem;
}

.app-topbar-brand img,
.app-mobile-menu-brand-row .navbar-brand-image {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.app-topbar-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.8rem;
    height: 2.8rem;
    padding: 0;
    border: 0;
    border-radius: 0.9rem;
    color: #30455d;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: inset 0 0 0 1px rgba(86, 109, 132, 0.12);
    transition: background-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.app-topbar-menu-toggle:hover,
.app-topbar-menu-toggle:focus-visible {
    color: #173d64;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: inset 0 0 0 1px rgba(31, 103, 198, 0.14), 0 10px 24px -20px rgba(18, 42, 71, 0.45);
}

.app-topbar-menu-toggle .icon {
    width: 1.2rem;
    height: 1.2rem;
    stroke: currentColor;
}

.app-topbar-nav {
    width: 100%;
    justify-content: center;
    overflow: visible;
}

.app-top-menu {
    gap: 0.35rem;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.app-top-menu .nav-item {
    flex: 0 0 auto;
}

.app-nav-split-control {
    display: flex;
    align-items: center;
}

.app-nav-split-control .app-top-link {
    flex: 0 0 auto;
}

.app-top-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border-radius: 999px;
    color: #30455d;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.55rem 0.82rem;
    line-height: 1;
    transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.app-top-link:hover,
.app-top-link:focus-visible {
    color: #223a53;
    background: var(--app-nav-hover);
    box-shadow: inset 0 0 0 1px rgba(80, 109, 140, 0.08);
}

.app-top-link.active,
.show > .app-top-link {
    color: #173d64;
    background: var(--app-nav-active);
    box-shadow: inset 0 0 0 1px rgba(31, 103, 198, 0.08);
}

.app-top-menu .dropdown-menu {
    min-width: 15rem;
    max-width: min(30rem, 92vw);
    margin-top: 0.7rem;
    border: 1px solid var(--app-nav-panel-border);
    border-radius: 1rem;
    box-shadow: var(--app-nav-shadow);
}

.app-topbar-actions {
    margin-left: auto;
    min-width: 0;
    overflow: visible;
    gap: 0.45rem !important;
}

.app-topbar-actions .nav-item {
    display: flex;
    align-items: center;
}

.app-viewport-dropdown {
    max-height: calc(100vh - 5.5rem);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.app-top-menu-wide {
    min-width: min(42rem, calc(100vw - 3rem));
}

.app-menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 1.1rem;
    height: 1.1rem;
}

.app-menu-icon .icon {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

.app-nav-trigger.dropdown-toggle::after,
.app-language-toggle.dropdown-toggle::after {
    margin-left: 0.25rem;
    opacity: 0.6;
}

.app-nav-menu,
.app-topbar-panel {
    padding: 0.45rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px) saturate(130%);
}

.app-nav-menu-grid {
    gap: 0.15rem;
}

.app-topbar .dropdown-menu.app-nav-menu,
.app-topbar .dropdown-menu.app-topbar-panel {
    display: none;
}

.app-topbar .dropdown-menu.show.app-nav-menu {
    display: block;
}

.app-topbar .dropdown-menu.show.app-nav-menu-grid {
    display: grid;
}

.app-topbar .dropdown-menu.show.app-topbar-panel {
    display: block;
}

.app-management-menu {
    min-width: 19rem;
    max-width: min(22rem, calc(100vw - 2rem));
    max-height: calc(100vh - 5.5rem);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1060;
}

.app-topbar .dropdown-menu-end.app-management-menu {
    right: auto;
    left: 0;
}

.app-management-accordion {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.app-management-group {
    position: relative;
    min-width: 0;
}

.app-management-category {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
}

.app-management-category-current {
    color: #173d64;
    background: rgba(31, 103, 198, 0.08);
    font-weight: 700;
}

.app-management-category.active,
.app-management-group.is-open > .app-management-category,
.app-management-category:hover,
.app-management-category:focus-visible {
    color: #173d64;
    background: var(--app-nav-active);
}

.app-management-caret {
    margin-left: auto;
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.45;
    transition: transform 0.18s ease;
}

.app-management-group.is-open > .app-management-category .app-management-caret {
    transform: rotate(-135deg);
}

.app-management-panel {
    display: none;
    flex-direction: column;
    gap: 0.2rem;
    margin: 0.18rem 0 0.35rem 1.7rem;
    overflow-x: hidden;
    padding: 0.2rem 0 0.2rem 0.55rem;
    border-left: 1px dashed rgba(118, 134, 151, 0.32);
}

.js-admin-submenu {
    display: none;
}

.js-admin-menu-group.is-open > .js-admin-submenu,
.app-management-group.is-open > .app-management-panel {
    display: flex;
}

.app-management-panel-title {
    display: none;
    align-items: center;
    min-height: 0;
    padding: 0;
    margin: 0;
    font-size: 0.74rem;
    font-weight: 700;
    color: #6d7f93;
}

.app-nav-menu-header,
.app-topbar-panel-header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 0.8rem 0.8rem;
    margin: -0.1rem -0.1rem 0.35rem;
    border-bottom: 1px solid rgba(106, 123, 144, 0.14);
    background: linear-gradient(180deg, rgba(28, 94, 169, 0.08) 0%, rgba(28, 94, 169, 0.02) 100%);
    border-radius: 0.8rem 0.8rem 0 0;
    color: #223a53;
    font-weight: 700;
}

.app-topbar-panel-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    padding-bottom: 0.7rem;
}

.app-topbar-panel-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #223a53;
}

.app-topbar-panel-subtitle {
    font-size: 0.71rem;
    color: #6d7f93;
}

.app-nav-group-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.7rem 0.35rem;
    margin: 0;
    font-size: 0.69rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #71839a;
}

.app-menu-link,
.app-topbar-menu-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 2.7rem;
    padding: 0.7rem 0.8rem;
    border-radius: 0.8rem;
    color: #2f455c;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.app-menu-link:hover,
.app-menu-link:focus-visible,
.app-topbar-menu-link:hover,
.app-topbar-menu-link:focus-visible {
    color: #20384f;
    background: var(--app-nav-hover);
}

.app-menu-link.active,
.app-topbar-menu-link.active {
    color: #173d64;
    background: var(--app-nav-active);
    font-weight: 700;
}

.app-topbar-action-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.8rem;
    padding: 0.55rem 0.78rem !important;
    border-radius: 999px;
    color: #30455d;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: inset 0 0 0 1px rgba(86, 109, 132, 0.12);
    transition: background-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.app-topbar-action-link:hover,
.app-topbar-action-link:focus-visible,
.show > .app-topbar-action-link {
    color: #173d64;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: inset 0 0 0 1px rgba(31, 103, 198, 0.14), 0 10px 24px -20px rgba(18, 42, 71, 0.45);
}

.app-language-toggle {
    min-width: 3.2rem;
}

.app-theme-toggle-form {
    display: flex;
    margin: 0;
}

.app-theme-toggle {
    min-width: 2.8rem;
    padding-inline: 0.7rem !important;
}

.app-theme-toggle .icon {
    width: 1.15rem;
    height: 1.15rem;
    stroke: currentColor;
}

.app-user-menu-toggle {
    min-height: 3rem;
    padding: 0.45rem 0.55rem 0.45rem 0.6rem !important;
}

.app-user-menu-meta {
    line-height: 1.1;
}

.app-topbar-caret {
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.55;
    margin-left: 0.15rem;
}

.app-user-menu-panel,
.app-language-menu {
    min-width: 16rem;
}

.app-mobile-menu {
    width: min(22rem, 92vw);
    position: fixed;
    top: 0;
    bottom: 0;
    height: 100dvh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(106, 123, 144, 0.16);
    background:
        radial-gradient(circle at top left, rgba(31, 103, 198, 0.16), transparent 38%),
        linear-gradient(180deg, rgba(246, 249, 253, 0.98) 0%, rgba(255, 255, 255, 0.98) 28%, rgba(247, 249, 252, 0.98) 100%);
    box-shadow: 24px 0 48px -24px rgba(11, 30, 51, 0.45);
}

.app-mobile-menu .offcanvas-header {
    flex: 0 0 auto;
    padding: 1rem 1rem 0.75rem;
    border-bottom: 1px solid rgba(106, 123, 144, 0.12);
}

.app-mobile-menu .offcanvas-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: auto;
    width: 100%;
    overflow: hidden;
}

.app-mobile-menu-scroll {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    overflow-y: scroll;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 64px;
}

.app-mobile-menu-hero {
    width: 100%;
}

.app-mobile-menu-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.app-mobile-menu-brand-row .navbar-brand {
    flex: 1 1 auto;
    min-width: 0;
}

.app-mobile-menu-user-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.9rem;
    padding: 0.9rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: inset 0 0 0 1px rgba(31, 103, 198, 0.08);
}

.app-mobile-profile-toggle {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
}

.app-mobile-profile-toggle:hover,
.app-mobile-profile-toggle:focus-visible {
    color: inherit;
    background: transparent;
    box-shadow: none;
}

.app-mobile-menu-user-meta {
    min-width: 0;
}

.app-mobile-menu-user-name {
    font-weight: 700;
    color: #21384f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-mobile-menu-user-subtitle {
    margin-top: 0.15rem;
    font-size: 0.72rem;
    color: #6f7f91;
}

.app-mobile-profile-caret {
    margin-left: auto;
    width: 0.65rem;
    height: 0.65rem;
    opacity: 0.65;
    flex: 0 0 auto;
}

.app-mobile-profile-toggle[aria-expanded="true"] .app-mobile-profile-caret,
.app-mobile-language-toggle[aria-expanded="true"] .nav-link-caret {
    transform: rotate(225deg);
}

.app-mobile-nav {
    display: block;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
}

.app-mobile-nav-scroll {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    padding: 0.9rem 0.9rem 1rem;
}

.app-mobile-menu-utility {
    padding: 0 0.9rem 0.35rem;
    display: block;
}

.app-mobile-menu-utility > .collapse {
    display: block;
}

.app-mobile-menu-utility > .collapse:not(.show) {
    display: none;
}

.app-mobile-menu-utility > .collapse.show {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.app-mobile-menu-section {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.app-mobile-menu-section-card {
    padding: 0.8rem;
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: inset 0 0 0 1px rgba(106, 123, 144, 0.1);
}

.app-mobile-menu-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6f7f91;
}

.app-mobile-language-card {
    margin-top: 0.55rem;
}

.app-mobile-menu-action-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.app-mobile-language-form {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.app-mobile-language-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    width: 100%;
    min-height: 3rem;
    padding: 0.72rem 0.85rem;
    border-radius: 0.95rem;
    border: 1px solid rgba(106, 123, 144, 0.14);
    background: rgba(255, 255, 255, 0.74);
    color: #30455d;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    text-align: left;
}

.app-mobile-language-toggle:hover,
.app-mobile-language-toggle:focus-visible {
    color: #20384f;
    background: rgba(31, 103, 198, 0.08);
    border-color: rgba(31, 103, 198, 0.16);
}

.app-mobile-language-current {
    display: inline-flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.app-mobile-language-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6f7f91;
}

.app-mobile-language-value {
    font-size: 0.92rem;
    font-weight: 600;
    color: #30455d;
}

.app-mobile-language-toggle + .collapse {
    margin-top: 0.55rem;
}

.app-mobile-language-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    width: 100%;
    min-height: 3rem;
    padding: 0.72rem 0.85rem;
    border-radius: 0.95rem;
    border: 1px solid rgba(106, 123, 144, 0.14);
    background: rgba(255, 255, 255, 0.74);
    color: #30455d;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    font-size: 0.88rem;
    font-weight: 600;
    text-align: left;
}

.app-mobile-language-button:hover,
.app-mobile-language-button:focus-visible,
.app-mobile-language-button.active {
    color: #173d64;
    background: rgba(31, 103, 198, 0.1);
    border-color: rgba(31, 103, 198, 0.18);
}

.app-mobile-language-main {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.app-mobile-language-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 999px;
    background: rgba(31, 103, 198, 0.1);
    color: transparent;
    font-size: 0.8rem;
    line-height: 1;
    flex: 0 0 auto;
}

.app-mobile-language-button.active .app-mobile-language-check {
    color: #173d64;
}

.app-mobile-utility-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 2.7rem;
    padding: 0.65rem 0.8rem;
    border-radius: 0.95rem;
    color: #2f455c;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: inset 0 0 0 1px rgba(106, 123, 144, 0.1);
    transition: background-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.app-mobile-utility-link:hover,
.app-mobile-utility-link:focus-visible {
    color: #20384f;
    text-decoration: none;
    background: rgba(31, 103, 198, 0.08);
    box-shadow: inset 0 0 0 1px rgba(31, 103, 198, 0.14), 0 12px 24px -22px rgba(18, 42, 71, 0.38);
    transform: translateY(-1px);
}

.app-mobile-utility-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    flex: 0 0 auto;
}

.app-mobile-utility-icon .icon {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

.app-mobile-utility-link.is-danger {
    color: #b43b3b;
}

.app-mobile-utility-link.is-danger:hover,
.app-mobile-utility-link.is-danger:focus-visible {
    color: #942f2f;
    background: rgba(214, 57, 57, 0.08);
    box-shadow: inset 0 0 0 1px rgba(214, 57, 57, 0.14), 0 12px 24px -22px rgba(145, 41, 41, 0.28);
}

.app-mobile-nav .navbar-nav {
    gap: 0.4rem;
}

.app-mobile-nav .app-root-link,
.app-mobile-nav .app-sub-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.app-mobile-nav .app-root-link {
    min-height: 3rem;
    border-radius: 0.95rem;
    color: #31485f;
    font-weight: 600;
    padding: 0.7rem 0.85rem;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: inset 0 0 0 1px rgba(106, 123, 144, 0.08);
}

.app-mobile-nav .app-root-link.active {
    color: #173d64;
    background: var(--app-nav-active);
    box-shadow: inset 0 0 0 1px rgba(31, 103, 198, 0.12);
}

.app-mobile-nav-group .collapse.show + *,
.app-mobile-nav .app-root-link[aria-expanded="true"] {
    color: #173d64;
}

.app-mobile-nav .app-subnav {
    margin: 0.5rem 0 0.85rem;
    padding: 0.3rem 0.25rem 0.25rem 0.9rem;
    border-left: 1px dashed rgba(118, 134, 151, 0.28);
}

.app-mobile-nav .app-subnav.app-subnav-nested {
    margin: 0.35rem 0 0.55rem;
    padding-left: 0.95rem;
}

.app-mobile-nav .app-sub-link {
    min-height: 2.6rem;
    padding: 0.55rem 0.7rem;
    border-radius: 0.8rem;
    color: #5f7083;
}

.app-mobile-nav .app-sub-link.active {
    color: #184c80;
    background: rgba(31, 103, 198, 0.11);
    font-weight: 700;
}

.app-mobile-nav .app-sub-link.disabled {
    opacity: 0.65;
}

.app-mobile-nav .nav-link-caret {
    margin-left: auto;
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.55;
    transition: transform 0.18s ease;
}

.app-mobile-nav .app-root-link[aria-expanded="true"] .nav-link-caret {
    transform: rotate(-135deg);
}

.app-section-title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.72rem 0.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #7a8797;
}

.lang-flag {
    display: inline-block;
    width: 20px;
    height: 14px;
    border-radius: 3px;
    background-size: cover;
    background-position: center;
    vertical-align: -2px;
    box-shadow: inset 0 0 0 1px rgba(98, 105, 118, 0.25);
}

.dropdown-menu .lang-flag {
    width: 18px;
    height: 13px;
}

.app-notification-dropdown .nav-link {
    min-height: 2rem;
}

.app-notification-badge {
    position: absolute;
    top: -0.25rem;
    right: -0.2rem;
    min-width: 1.15rem;
    height: 1.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    line-height: 1;
    border-radius: 999px;
}

.app-notification-menu {
    width: min(26rem, 94vw);
    max-height: min(32rem, calc(100dvh - 5.5rem));
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden !important;
    padding: 0.45rem;
    border-radius: 0.85rem;
}

.app-topbar .dropdown-menu.show.app-notification-menu {
    display: flex;
}

.app-notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.8rem 0.85rem;
    border-bottom: 1px solid rgba(98, 105, 118, 0.14);
    background: linear-gradient(180deg, rgba(6, 111, 209, 0.06) 0%, rgba(6, 111, 209, 0.01) 100%);
    border-radius: 0.8rem 0.8rem 0 0;
}

.app-notification-header-main {
    min-width: 0;
}

.app-notification-header-title {
    font-size: 0.83rem;
    font-weight: 700;
    color: #22364c;
}

.app-notification-header-subtitle {
    margin-top: 0.1rem;
    font-size: 0.72rem;
    color: #6f7f91;
}

.app-notification-mark-all {
    flex: 0 0 auto;
}

.app-notification-list {
    flex: 1 1 auto;
    min-height: 0;
    max-height: var(--app-notification-list-max-height, min(24rem, calc(100dvh - 11rem)));
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.5rem 0.2rem 0.2rem;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.app-notification-empty {
    margin: 0.4rem;
    border-radius: 0.7rem;
    text-align: center;
    background: rgba(98, 105, 118, 0.06);
}

.app-notification-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    border-radius: 0.7rem;
    margin-bottom: 0.4rem;
    padding: 0.58rem 0.62rem 0.56rem;
    border: 1px solid rgba(98, 105, 118, 0.14);
    background: #fff;
}

.app-notification-item.is-unread {
    border-color: rgba(6, 111, 209, 0.3);
    background: rgba(6, 111, 209, 0.07);
}

.app-notification-item.is-read {
    opacity: 0.9;
}

.app-notification-item-link {
    min-width: 0;
    flex: 1;
    color: inherit;
    text-decoration: none;
}

.app-notification-item-link:hover {
    color: inherit;
    text-decoration: none;
}

.app-notification-item-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #2a3e55;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-notification-item-message {
    margin-top: 0.14rem;
    font-size: 0.73rem;
    line-height: 1.32;
    color: #4f6074;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.app-notification-item-time {
    margin-top: 0.26rem;
    font-size: 0.67rem;
    color: #7c8796;
}

.app-notification-delete {
    flex: 0 0 auto;
    margin-top: 0.1rem;
    color: #d63939;
}

.app-notification-delete:hover {
    background: rgba(214, 57, 57, 0.12);
}

.app-notification-footer {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.55rem 0.2rem;
    margin-top: 0.2rem;
    border-top: 1px solid rgba(98, 105, 118, 0.14);
}

.app-notification-footer-link {
    padding-inline: 0.25rem;
    font-weight: 600;
    text-decoration: none;
}

.app-notification-page-list {
    display: flex;
    flex-direction: column;
}

.app-notification-page-item {
    padding: 1rem 1.25rem;
    border-left: 0;
    border-right: 0;
}

.app-notification-page-item.is-unread {
    background: rgba(6, 111, 209, 0.05);
}

.app-notification-page-item.is-read {
    background: transparent;
}

.app-notification-page-message {
    line-height: 1.45;
}

body[data-bs-theme="dark"] .app-notification-menu,
body[data-app-theme="dark"] .app-notification-menu {
    background: linear-gradient(180deg, rgba(19, 29, 44, 0.99) 0%, rgba(16, 24, 37, 0.99) 100%);
    border-color: rgba(112, 136, 164, 0.22);
    color: #e6edf7;
}

body[data-bs-theme="dark"] .app-notification-header,
body[data-app-theme="dark"] .app-notification-header {
    background: linear-gradient(180deg, rgba(31, 45, 66, 0.95) 0%, rgba(22, 33, 49, 0.98) 100%);
    border-bottom-color: rgba(112, 136, 164, 0.22);
}

body[data-bs-theme="dark"] .app-notification-header-title,
body[data-bs-theme="dark"] .app-notification-item-title,
body[data-app-theme="dark"] .app-notification-header-title,
body[data-app-theme="dark"] .app-notification-item-title {
    color: #e6edf7;
}

body[data-bs-theme="dark"] .app-notification-header-subtitle,
body[data-bs-theme="dark"] .app-notification-item-message,
body[data-bs-theme="dark"] .app-notification-item-time,
body[data-bs-theme="dark"] .app-notification-empty,
body[data-bs-theme="dark"] [data-notification-activation-status],
body[data-app-theme="dark"] .app-notification-header-subtitle,
body[data-app-theme="dark"] .app-notification-item-message,
body[data-app-theme="dark"] .app-notification-item-time,
body[data-app-theme="dark"] .app-notification-empty,
body[data-app-theme="dark"] [data-notification-activation-status] {
    color: #8ea0b7 !important;
}

body[data-bs-theme="dark"] .app-notification-empty,
body[data-app-theme="dark"] .app-notification-empty {
    background: rgba(24, 35, 52, 0.78);
    border: 1px solid rgba(112, 136, 164, 0.18);
}

body[data-bs-theme="dark"] .app-notification-item,
body[data-app-theme="dark"] .app-notification-item {
    background: rgba(23, 34, 50, 0.96);
    border-color: rgba(112, 136, 164, 0.2);
    color: #e6edf7;
}

body[data-bs-theme="dark"] .app-notification-item:hover,
body[data-bs-theme="dark"] .app-notification-item:focus-within,
body[data-app-theme="dark"] .app-notification-item:hover,
body[data-app-theme="dark"] .app-notification-item:focus-within {
    background: rgba(28, 42, 62, 0.98);
}

body[data-bs-theme="dark"] .app-notification-item.is-unread,
body[data-app-theme="dark"] .app-notification-item.is-unread {
    background: linear-gradient(180deg, rgba(26, 45, 70, 0.95) 0%, rgba(23, 36, 55, 0.98) 100%);
    border-color: rgba(96, 149, 214, 0.34);
}

body[data-bs-theme="dark"] .app-notification-item-link,
body[data-bs-theme="dark"] .app-notification-item-link:hover,
body[data-app-theme="dark"] .app-notification-item-link,
body[data-app-theme="dark"] .app-notification-item-link:hover {
    color: inherit;
}

body[data-bs-theme="dark"] .app-notification-delete,
body[data-app-theme="dark"] .app-notification-delete {
    color: #f29b9b;
}

body[data-bs-theme="dark"] .app-notification-delete:hover,
body[data-app-theme="dark"] .app-notification-delete:hover {
    background: rgba(214, 57, 57, 0.18);
}

body[data-bs-theme="dark"] .app-notification-footer,
body[data-app-theme="dark"] .app-notification-footer {
    border-top-color: rgba(112, 136, 164, 0.22);
}

body[data-bs-theme="dark"] .app-notification-page-item,
body[data-app-theme="dark"] .app-notification-page-item {
    background: rgba(15, 24, 37, 0.96);
    border-color: rgba(112, 136, 164, 0.22);
}

body[data-bs-theme="dark"] .app-notification-page-item.is-unread,
body[data-app-theme="dark"] .app-notification-page-item.is-unread {
    background: linear-gradient(180deg, rgba(26, 45, 70, 0.92) 0%, rgba(21, 33, 49, 0.98) 100%);
}

.app-user-avatar-placeholder {
    background-image: radial-gradient(circle at 30% 20%, #68a7e5 0%, #2f6fab 55%, #204b76 100%);
    color: #f8fbff;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.app-mobile-menu-open {
    overflow: hidden;
}

.offcanvas-backdrop {
    background-color: rgba(15, 28, 44, 0.48);
    backdrop-filter: blur(4px);
}

.offcanvas-backdrop.show {
    opacity: 1;
}

.app-auth-body {
    min-height: 100vh;
}

.app-login-shell {
    width: min(100%, 30rem);
    margin: auto;
    padding-top: clamp(1.25rem, 5vh, 3rem);
    padding-bottom: clamp(1.25rem, 4vh, 2.5rem);
}

.app-login-brand-wrap {
    margin-bottom: clamp(0.75rem, 2.5vh, 1.5rem);
}

.app-login-brand {
    height: clamp(5rem, 15vh, 8.5rem);
    width: auto;
    max-width: min(100%, 22rem);
    max-height: 8.5rem;
    object-fit: contain;
}

.app-login-brand-lg {
    height: auto;
    max-height: min(16rem, 28vh);
    max-width: min(100%, 24rem);
}

.app-login-language {
    margin-bottom: 0.75rem;
}

.app-login-card {
    width: 100%;
}

.app-login-footer {
    margin-top: 1rem;
}

body[data-bs-theme="dark"],
body[data-app-theme="dark"] {
    --app-border: rgba(120, 146, 176, 0.18);
    --app-surface: #0f1724;
    --app-text: #e6edf7;
    --app-nav-panel-border: rgba(124, 147, 176, 0.22);
    --app-nav-hover: rgba(102, 162, 255, 0.14);
    --app-nav-active: linear-gradient(180deg, rgba(61, 121, 214, 0.22) 0%, rgba(61, 121, 214, 0.3) 100%);
    --app-topbar-bg: linear-gradient(180deg, rgba(12, 19, 31, 0.96) 0%, rgba(17, 27, 41, 0.94) 100%);
}

body[data-bs-theme="dark"] .app-topbar,
body[data-app-theme="dark"] .app-topbar {
    border-bottom-color: rgba(109, 132, 160, 0.22);
    background: var(--app-topbar-bg);
    box-shadow: 0 16px 38px -26px rgba(0, 0, 0, 0.72);
}

body[data-bs-theme="dark"] .app-topbar-row,
body[data-app-theme="dark"] .app-topbar-row,
body[data-bs-theme="dark"] .app-topbar-start,
body[data-app-theme="dark"] .app-topbar-start,
body[data-bs-theme="dark"] .app-topbar-center,
body[data-app-theme="dark"] .app-topbar-center,
body[data-bs-theme="dark"] .app-topbar-actions,
body[data-app-theme="dark"] .app-topbar-actions {
    background: transparent;
}

body[data-bs-theme="dark"] .app-topbar-brand,
body[data-app-theme="dark"] .app-topbar-brand,
body[data-bs-theme="dark"] .app-topbar .navbar-brand,
body[data-app-theme="dark"] .app-topbar .navbar-brand {
    background: transparent;
    box-shadow: none;
}

body[data-bs-theme="dark"] .app-top-link,
body[data-app-theme="dark"] .app-top-link {
    color: #dce6f5;
}

body[data-bs-theme="dark"] .app-top-link:hover,
body[data-bs-theme="dark"] .app-top-link:focus-visible,
body[data-app-theme="dark"] .app-top-link:hover,
body[data-app-theme="dark"] .app-top-link:focus-visible {
    color: #f5f9ff;
    box-shadow: inset 0 0 0 1px rgba(122, 166, 233, 0.16);
}

body[data-bs-theme="dark"] .app-top-link.active,
body[data-bs-theme="dark"] .show > .app-top-link,
body[data-app-theme="dark"] .app-top-link.active,
body[data-app-theme="dark"] .show > .app-top-link {
    color: #f5f9ff;
    box-shadow: inset 0 0 0 1px rgba(112, 162, 236, 0.18);
}

body[data-bs-theme="dark"] .app-topbar-action-link,
body[data-app-theme="dark"] .app-topbar-action-link {
    color: #dce6f5;
    background: rgba(25, 38, 57, 0.78);
    box-shadow: inset 0 0 0 1px rgba(108, 131, 160, 0.24);
}

body[data-bs-theme="dark"] .app-topbar-menu-toggle,
body[data-app-theme="dark"] .app-topbar-menu-toggle {
    color: #dce6f5;
    background: rgba(25, 38, 57, 0.78);
    box-shadow: inset 0 0 0 1px rgba(108, 131, 160, 0.24);
}

body[data-bs-theme="dark"] .app-topbar-action-link:hover,
body[data-bs-theme="dark"] .app-topbar-action-link:focus-visible,
body[data-bs-theme="dark"] .show > .app-topbar-action-link,
body[data-app-theme="dark"] .app-topbar-action-link:hover,
body[data-app-theme="dark"] .app-topbar-action-link:focus-visible,
body[data-app-theme="dark"] .show > .app-topbar-action-link {
    color: #f5f9ff;
    background: rgba(31, 49, 72, 0.96);
    box-shadow: inset 0 0 0 1px rgba(121, 166, 236, 0.24), 0 12px 28px -20px rgba(0, 0, 0, 0.8);
}

body[data-bs-theme="dark"] .app-topbar-menu-toggle:hover,
body[data-bs-theme="dark"] .app-topbar-menu-toggle:focus-visible,
body[data-app-theme="dark"] .app-topbar-menu-toggle:hover,
body[data-app-theme="dark"] .app-topbar-menu-toggle:focus-visible {
    color: #f5f9ff;
    background: rgba(31, 49, 72, 0.96);
    box-shadow: inset 0 0 0 1px rgba(121, 166, 236, 0.24), 0 12px 28px -20px rgba(0, 0, 0, 0.8);
}

body[data-bs-theme="dark"] .app-topbar .dropdown-menu,
body[data-bs-theme="dark"] .app-nav-menu,
body[data-bs-theme="dark"] .app-topbar-panel,
body[data-app-theme="dark"] .app-topbar .dropdown-menu,
body[data-app-theme="dark"] .app-nav-menu,
body[data-app-theme="dark"] .app-topbar-panel {
    background: rgba(15, 24, 37, 0.98);
    border-color: rgba(102, 126, 155, 0.24);
    box-shadow: 0 20px 44px -26px rgba(0, 0, 0, 0.85);
}

body[data-bs-theme="dark"] .app-topbar-panel-header,
body[data-bs-theme="dark"] .app-nav-menu-header,
body[data-app-theme="dark"] .app-topbar-panel-header,
body[data-app-theme="dark"] .app-nav-menu-header {
    border-bottom-color: rgba(102, 126, 155, 0.22);
    background: linear-gradient(180deg, rgba(61, 121, 214, 0.12) 0%, rgba(61, 121, 214, 0.03) 100%);
    color: #eef4ff;
}

body[data-bs-theme="dark"] .app-topbar-panel-title,
body[data-bs-theme="dark"] .app-nav-group-title,
body[data-app-theme="dark"] .app-topbar-panel-title,
body[data-app-theme="dark"] .app-nav-group-title {
    color: #eef4ff;
}

body[data-bs-theme="dark"] .app-topbar-panel-subtitle,
body[data-bs-theme="dark"] .app-menu-link,
body[data-bs-theme="dark"] .app-topbar-menu-link,
body[data-app-theme="dark"] .app-topbar-panel-subtitle,
body[data-app-theme="dark"] .app-menu-link,
body[data-app-theme="dark"] .app-topbar-menu-link {
    color: #c8d5e7;
}

body[data-bs-theme="dark"] .app-menu-link:hover,
body[data-bs-theme="dark"] .app-menu-link:focus-visible,
body[data-bs-theme="dark"] .app-topbar-menu-link:hover,
body[data-bs-theme="dark"] .app-topbar-menu-link:focus-visible,
body[data-app-theme="dark"] .app-menu-link:hover,
body[data-app-theme="dark"] .app-menu-link:focus-visible,
body[data-app-theme="dark"] .app-topbar-menu-link:hover,
body[data-app-theme="dark"] .app-topbar-menu-link:focus-visible {
    color: #f5f9ff;
}

body[data-bs-theme="dark"] .app-page-header,
body[data-bs-theme="dark"] .page-header,
body[data-app-theme="dark"] .app-page-header,
body[data-app-theme="dark"] .page-header {
    background: transparent;
    border-bottom-color: transparent;
}

body[data-bs-theme="dark"] .app-mobile-menu,
body[data-app-theme="dark"] .app-mobile-menu {
    border-right-color: rgba(109, 132, 160, 0.2);
    background:
        radial-gradient(circle at top left, rgba(61, 121, 214, 0.2), transparent 38%),
        linear-gradient(180deg, rgba(12, 19, 31, 0.98) 0%, rgba(16, 26, 39, 0.98) 42%, rgba(18, 31, 48, 0.98) 100%);
    box-shadow: 24px 0 48px -24px rgba(0, 0, 0, 0.72);
}

body[data-bs-theme="dark"] .app-mobile-menu .offcanvas-header,
body[data-app-theme="dark"] .app-mobile-menu .offcanvas-header {
    border-bottom-color: rgba(109, 132, 160, 0.2);
}

body[data-bs-theme="dark"] .app-mobile-menu-user-card,
body[data-app-theme="dark"] .app-mobile-menu-user-card {
    background: rgba(25, 38, 57, 0.82);
    box-shadow: inset 0 0 0 1px rgba(108, 131, 160, 0.24);
}

body[data-bs-theme="dark"] .app-mobile-menu-section-card,
body[data-app-theme="dark"] .app-mobile-menu-section-card {
    background: rgba(25, 38, 57, 0.72);
    box-shadow: inset 0 0 0 1px rgba(108, 131, 160, 0.2);
}

body[data-bs-theme="dark"] .app-mobile-profile-toggle,
body[data-app-theme="dark"] .app-mobile-profile-toggle {
    color: #eef4ff;
}

body[data-bs-theme="dark"] .app-mobile-menu-user-name,
body[data-app-theme="dark"] .app-mobile-menu-user-name {
    color: #eef4ff;
}

body[data-bs-theme="dark"] .app-mobile-menu-user-subtitle,
body[data-app-theme="dark"] .app-mobile-menu-user-subtitle {
    color: #b4c2d6;
}

body[data-bs-theme="dark"] .app-mobile-menu-section-title,
body[data-app-theme="dark"] .app-mobile-menu-section-title {
    color: rgba(209, 219, 231, 0.68);
}

body[data-bs-theme="dark"] .app-mobile-menu-utility,
body[data-app-theme="dark"] .app-mobile-menu-utility {
    border-top-color: transparent;
}

body[data-bs-theme="dark"] .app-mobile-language-button,
body[data-bs-theme="dark"] .app-mobile-language-toggle,
body[data-app-theme="dark"] .app-mobile-language-button {
    border-color: rgba(148, 163, 184, 0.14);
    background: rgba(30, 41, 59, 0.72);
    color: rgba(241, 245, 249, 0.9);
}

body[data-app-theme="dark"] .app-mobile-language-toggle {
    border-color: rgba(148, 163, 184, 0.14);
    background: rgba(30, 41, 59, 0.72);
    color: rgba(241, 245, 249, 0.9);
}

body[data-bs-theme="dark"] .app-mobile-language-button:hover,
body[data-bs-theme="dark"] .app-mobile-language-button:focus-visible,
body[data-bs-theme="dark"] .app-mobile-language-button.active,
body[data-bs-theme="dark"] .app-mobile-language-toggle:hover,
body[data-bs-theme="dark"] .app-mobile-language-toggle:focus-visible,
body[data-app-theme="dark"] .app-mobile-language-button:hover,
body[data-app-theme="dark"] .app-mobile-language-button:focus-visible,
body[data-app-theme="dark"] .app-mobile-language-button.active,
body[data-app-theme="dark"] .app-mobile-language-toggle:hover,
body[data-app-theme="dark"] .app-mobile-language-toggle:focus-visible {
    background: rgba(31, 103, 198, 0.2);
    border-color: rgba(96, 165, 250, 0.28);
}

body[data-bs-theme="dark"] .app-mobile-language-label,
body[data-app-theme="dark"] .app-mobile-language-label {
    color: rgba(209, 219, 231, 0.68);
}

body[data-bs-theme="dark"] .app-mobile-language-value,
body[data-app-theme="dark"] .app-mobile-language-value {
    color: rgba(241, 245, 249, 0.9);
}

body[data-bs-theme="dark"] .app-mobile-language-check,
body[data-app-theme="dark"] .app-mobile-language-check {
    background: rgba(96, 165, 250, 0.16);
}

body[data-bs-theme="dark"] .app-mobile-language-button.active .app-mobile-language-check,
body[data-app-theme="dark"] .app-mobile-language-button.active .app-mobile-language-check {
    color: #bfdbfe;
}

body[data-bs-theme="dark"] .app-mobile-utility-link,
body[data-app-theme="dark"] .app-mobile-utility-link {
    color: #d8e2ef;
    background: rgba(30, 41, 59, 0.76);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.14);
}

body[data-bs-theme="dark"] .app-mobile-utility-link:hover,
body[data-bs-theme="dark"] .app-mobile-utility-link:focus-visible,
body[data-app-theme="dark"] .app-mobile-utility-link:hover,
body[data-app-theme="dark"] .app-mobile-utility-link:focus-visible {
    color: #eff5ff;
    background: rgba(31, 103, 198, 0.18);
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.2), 0 14px 28px -24px rgba(3, 8, 20, 0.78);
}

body[data-bs-theme="dark"] .app-mobile-utility-link.is-danger,
body[data-app-theme="dark"] .app-mobile-utility-link.is-danger {
    color: #f1b3b3;
}

body[data-bs-theme="dark"] .app-mobile-utility-link.is-danger:hover,
body[data-bs-theme="dark"] .app-mobile-utility-link.is-danger:focus-visible,
body[data-app-theme="dark"] .app-mobile-utility-link.is-danger:hover,
body[data-app-theme="dark"] .app-mobile-utility-link.is-danger:focus-visible {
    color: #ffd3d3;
    background: rgba(214, 57, 57, 0.16);
    box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.18), 0 14px 28px -24px rgba(3, 8, 20, 0.78);
}

body[data-bs-theme="dark"] .app-mobile-menu .app-root-link,
body[data-app-theme="dark"] .app-mobile-menu .app-root-link {
    color: #d7e3f4;
    background: rgba(24, 37, 56, 0.72);
    box-shadow: inset 0 0 0 1px rgba(104, 127, 155, 0.22);
}

body[data-bs-theme="dark"] .app-mobile-menu .app-root-link:hover,
body[data-bs-theme="dark"] .app-mobile-menu .app-root-link:focus-visible,
body[data-app-theme="dark"] .app-mobile-menu .app-root-link:hover,
body[data-app-theme="dark"] .app-mobile-menu .app-root-link:focus-visible {
    color: #f5f9ff;
    background: rgba(33, 51, 76, 0.88);
    box-shadow: inset 0 0 0 1px rgba(117, 162, 233, 0.22);
}

body[data-bs-theme="dark"] .app-mobile-menu .app-root-link.active,
body[data-bs-theme="dark"] .app-mobile-menu .app-root-link[aria-expanded="true"],
body[data-app-theme="dark"] .app-mobile-menu .app-root-link.active,
body[data-app-theme="dark"] .app-mobile-menu .app-root-link[aria-expanded="true"] {
    color: #f5f9ff;
    background: linear-gradient(180deg, rgba(42, 73, 118, 0.94) 0%, rgba(31, 57, 95, 0.96) 100%);
    box-shadow: inset 0 0 0 1px rgba(127, 176, 244, 0.24), 0 10px 22px -18px rgba(0, 0, 0, 0.68);
}

body[data-bs-theme="dark"] .app-mobile-menu .app-subnav,
body[data-app-theme="dark"] .app-mobile-menu .app-subnav {
    border-left-color: rgba(104, 127, 155, 0.26);
}

body[data-bs-theme="dark"] .app-mobile-menu .app-sub-link,
body[data-app-theme="dark"] .app-mobile-menu .app-sub-link {
    color: #c2d1e4;
    background: rgba(18, 30, 46, 0.38);
}

body[data-bs-theme="dark"] .app-mobile-menu .app-sub-link:hover,
body[data-bs-theme="dark"] .app-mobile-menu .app-sub-link:focus-visible,
body[data-app-theme="dark"] .app-mobile-menu .app-sub-link:hover,
body[data-app-theme="dark"] .app-mobile-menu .app-sub-link:focus-visible {
    color: #f5f9ff;
    background: rgba(32, 50, 74, 0.72);
}

body[data-bs-theme="dark"] .app-mobile-menu .app-sub-link.active,
body[data-app-theme="dark"] .app-mobile-menu .app-sub-link.active {
    color: #f5f9ff;
    background: linear-gradient(180deg, rgba(52, 84, 132, 0.84) 0%, rgba(37, 63, 104, 0.88) 100%);
    box-shadow: inset 0 0 0 1px rgba(121, 166, 236, 0.22);
}

body[data-bs-theme="dark"] .app-mobile-menu .app-root-link .app-menu-icon,
body[data-bs-theme="dark"] .app-mobile-menu .app-sub-link .app-menu-icon,
body[data-bs-theme="dark"] .app-mobile-menu .nav-link-caret,
body[data-app-theme="dark"] .app-mobile-menu .app-root-link .app-menu-icon,
body[data-app-theme="dark"] .app-mobile-menu .app-sub-link .app-menu-icon,
body[data-app-theme="dark"] .app-mobile-menu .nav-link-caret {
    color: currentColor;
    opacity: 0.92;
}

body[data-bs-theme="dark"] .app-auth-body,
body[data-app-theme="dark"] .app-auth-body {
    background:
        radial-gradient(circle at top center, rgba(61, 121, 214, 0.16), transparent 34%),
        linear-gradient(180deg, #0b1320 0%, #101a29 46%, #162335 100%);
}

body[data-bs-theme="dark"] .app-login-brand,
body[data-bs-theme="dark"] .app-login-brand-lg,
body[data-app-theme="dark"] .app-login-brand,
body[data-app-theme="dark"] .app-login-brand-lg {
    max-width: min(100%, 24.5rem);
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.42));
}

body[data-bs-theme="dark"] .app-login-footer,
body[data-app-theme="dark"] .app-login-footer {
    color: #c0cede !important;
}

body[data-bs-theme="dark"],
body[data-app-theme="dark"] {
    --app-content-surface: #121c2b;
    --app-content-surface-strong: #182436;
    --app-content-surface-soft: #0f1724;
    --app-content-surface-muted: #1a2638;
    --app-content-border: rgba(112, 136, 164, 0.22);
    --app-content-border-strong: rgba(130, 156, 188, 0.28);
    --app-content-text: #e6edf7;
    --app-content-text-soft: #b3c0d2;
    --app-content-text-muted: #8ea0b7;
    --app-content-hover: rgba(55, 92, 141, 0.28);
    --app-content-active: linear-gradient(180deg, rgba(49, 83, 130, 0.94) 0%, rgba(31, 58, 96, 0.96) 100%);
    --app-content-shadow: 0 16px 36px -28px rgba(0, 0, 0, 0.78);
}

body[data-bs-theme="dark"] .company-settings-page,
body[data-app-theme="dark"] .company-settings-page,
body[data-bs-theme="dark"] .customer-detail-screen,
body[data-app-theme="dark"] .customer-detail-screen,
body[data-bs-theme="dark"] .contract-list-screen,
body[data-app-theme="dark"] .contract-list-screen,
body[data-bs-theme="dark"] .contract-detail-screen,
body[data-app-theme="dark"] .contract-detail-screen,
body[data-bs-theme="dark"] .approval-detail-page,
body[data-app-theme="dark"] .approval-detail-page,
body[data-bs-theme="dark"] #chat-page,
body[data-app-theme="dark"] #chat-page {
    color: var(--app-content-text);
}

body[data-bs-theme="dark"] .company-settings-toolbar,
body[data-bs-theme="dark"] .company-settings-tabs-wrap,
body[data-bs-theme="dark"] .company-settings-card,
body[data-bs-theme="dark"] .company-settings-info-panel,
body[data-bs-theme="dark"] .company-settings-placeholder,
body[data-bs-theme="dark"] .customer-detail-screen .card,
body[data-bs-theme="dark"] .contract-list-screen .card,
body[data-bs-theme="dark"] .contract-detail-screen .card,
body[data-bs-theme="dark"] .approval-detail-page .approval-card,
body[data-bs-theme="dark"] #chat-page .card,
body[data-app-theme="dark"] .company-settings-toolbar,
body[data-app-theme="dark"] .company-settings-tabs-wrap,
body[data-app-theme="dark"] .company-settings-card,
body[data-app-theme="dark"] .company-settings-info-panel,
body[data-app-theme="dark"] .company-settings-placeholder,
body[data-app-theme="dark"] .customer-detail-screen .card,
body[data-app-theme="dark"] .contract-list-screen .card,
body[data-app-theme="dark"] .contract-detail-screen .card,
body[data-app-theme="dark"] .approval-detail-page .approval-card,
body[data-app-theme="dark"] #chat-page .card {
    background: linear-gradient(180deg, rgba(19, 29, 44, 0.98) 0%, rgba(16, 24, 37, 0.98) 100%);
    border-color: var(--app-content-border);
    box-shadow: var(--app-content-shadow);
    color: var(--app-content-text);
}

body[data-bs-theme="dark"] .company-settings-tabs,
body[data-bs-theme="dark"] .company-settings-toolbar,
body[data-bs-theme="dark"] .company-settings-card-header,
body[data-bs-theme="dark"] .customer-detail-summary-card .card-header,
body[data-bs-theme="dark"] .customer-detail-card .card-header,
body[data-bs-theme="dark"] .contract-list-screen .card-header,
body[data-bs-theme="dark"] .contract-detail-screen .card-header,
body[data-bs-theme="dark"] .approval-detail-page .approval-card .card-header,
body[data-bs-theme="dark"] #chat-page .card-header,
body[data-app-theme="dark"] .company-settings-tabs,
body[data-app-theme="dark"] .company-settings-toolbar,
body[data-app-theme="dark"] .company-settings-card-header,
body[data-app-theme="dark"] .customer-detail-summary-card .card-header,
body[data-app-theme="dark"] .customer-detail-card .card-header,
body[data-app-theme="dark"] .contract-list-screen .card-header,
body[data-app-theme="dark"] .contract-detail-screen .card-header,
body[data-app-theme="dark"] .approval-detail-page .approval-card .card-header,
body[data-app-theme="dark"] #chat-page .card-header {
    background: linear-gradient(180deg, rgba(31, 45, 66, 0.95) 0%, rgba(22, 33, 49, 0.98) 100%);
    border-bottom-color: var(--app-content-border);
    color: var(--app-content-text);
}

body[data-bs-theme="dark"] .contract-detail-screen .card-footer,
body[data-bs-theme="dark"] .approval-detail-page .approval-card .card-footer,
body[data-bs-theme="dark"] #chat-page .card-footer,
body[data-app-theme="dark"] .contract-detail-screen .card-footer,
body[data-app-theme="dark"] .approval-detail-page .approval-card .card-footer,
body[data-app-theme="dark"] #chat-page .card-footer {
    background: linear-gradient(180deg, rgba(18, 27, 41, 0.98) 0%, rgba(15, 24, 36, 0.98) 100%);
    border-top-color: var(--app-content-border);
    color: var(--app-content-text-soft);
}

body[data-bs-theme="dark"] .company-settings-tabs .nav-link,
body[data-app-theme="dark"] .company-settings-tabs .nav-link {
    color: var(--app-content-text-soft);
}

body[data-bs-theme="dark"] .company-settings-tabs .nav-link.active,
body[data-app-theme="dark"] .company-settings-tabs .nav-link.active {
    color: #f4f8ff;
    background: rgba(17, 26, 39, 0.96);
    border-color: var(--app-content-border);
    box-shadow: 0 -1px 0 rgba(114, 162, 234, 0.16);
}

body[data-bs-theme="dark"] .company-settings-content,
body[data-app-theme="dark"] .company-settings-content {
    border-top-color: var(--app-content-border);
    background: rgba(14, 22, 33, 0.66);
}

body[data-bs-theme="dark"] .company-settings-card-subtitle,
body[data-bs-theme="dark"] .company-settings-info-label,
body[data-bs-theme="dark"] .company-settings-card .form-hint,
body[data-bs-theme="dark"] .customer-detail-label,
body[data-bs-theme="dark"] .customer-detail-dl dt,
body[data-bs-theme="dark"] .contract-detail-label,
body[data-bs-theme="dark"] .contract-list-screen .text-secondary,
body[data-bs-theme="dark"] .contract-detail-screen .text-secondary,
body[data-bs-theme="dark"] .approval-detail-page .text-secondary,
body[data-bs-theme="dark"] #chat-page .text-secondary,
body[data-bs-theme="dark"] .chat-widget-root .text-secondary,
body[data-app-theme="dark"] .company-settings-card-subtitle,
body[data-app-theme="dark"] .company-settings-info-label,
body[data-app-theme="dark"] .company-settings-card .form-hint,
body[data-app-theme="dark"] .customer-detail-label,
body[data-app-theme="dark"] .customer-detail-dl dt,
body[data-app-theme="dark"] .contract-detail-label,
body[data-app-theme="dark"] .contract-list-screen .text-secondary,
body[data-app-theme="dark"] .contract-detail-screen .text-secondary,
body[data-app-theme="dark"] .approval-detail-page .text-secondary,
body[data-app-theme="dark"] #chat-page .text-secondary,
body[data-app-theme="dark"] .chat-widget-root .text-secondary {
    color: var(--app-content-text-muted) !important;
}

body[data-bs-theme="dark"] .company-settings-input-readonly,
body[data-bs-theme="dark"] .company-settings-field-grid .form-control,
body[data-bs-theme="dark"] .company-settings-field-grid .form-select,
body[data-bs-theme="dark"] .company-settings-log,
body[data-bs-theme="dark"] .contract-list-screen .form-control,
body[data-bs-theme="dark"] .contract-list-screen .form-select,
body[data-bs-theme="dark"] .contract-detail-screen .form-control,
body[data-bs-theme="dark"] .contract-detail-screen .form-select,
body[data-bs-theme="dark"] .approval-detail-page input.form-control,
body[data-bs-theme="dark"] .approval-detail-page textarea.form-control,
body[data-bs-theme="dark"] .approval-detail-page select.form-select,
body[data-bs-theme="dark"] #chat-page .form-control,
body[data-bs-theme="dark"] .chat-widget-root .form-control,
body[data-app-theme="dark"] .company-settings-input-readonly,
body[data-app-theme="dark"] .company-settings-field-grid .form-control,
body[data-app-theme="dark"] .company-settings-field-grid .form-select,
body[data-app-theme="dark"] .company-settings-log,
body[data-app-theme="dark"] .contract-list-screen .form-control,
body[data-app-theme="dark"] .contract-list-screen .form-select,
body[data-app-theme="dark"] .contract-detail-screen .form-control,
body[data-app-theme="dark"] .contract-detail-screen .form-select,
body[data-app-theme="dark"] .approval-detail-page input.form-control,
body[data-app-theme="dark"] .approval-detail-page textarea.form-control,
body[data-app-theme="dark"] .approval-detail-page select.form-select,
body[data-app-theme="dark"] #chat-page .form-control,
body[data-app-theme="dark"] .chat-widget-root .form-control {
    background: rgba(17, 26, 39, 0.96);
    border-color: var(--app-content-border);
    color: var(--app-content-text);
}

body[data-bs-theme="dark"] .approval-detail-page input.form-control[readonly],
body[data-bs-theme="dark"] .approval-detail-page textarea.form-control[readonly],
body[data-bs-theme="dark"] .approval-detail-page .form-control:disabled,
body[data-bs-theme="dark"] .approval-detail-page .form-select:disabled,
body[data-app-theme="dark"] .approval-detail-page input.form-control[readonly],
body[data-app-theme="dark"] .approval-detail-page textarea.form-control[readonly],
body[data-app-theme="dark"] .approval-detail-page .form-control:disabled,
body[data-app-theme="dark"] .approval-detail-page .form-select:disabled {
    background: rgba(24, 35, 52, 0.94);
    color: var(--app-content-text-soft);
    border-color: var(--app-content-border);
}

body[data-bs-theme="dark"] .contract-detail-screen .input-group-text,
body[data-app-theme="dark"] .contract-detail-screen .input-group-text {
    background: rgba(24, 35, 52, 0.96);
    border-color: var(--app-content-border);
    color: var(--app-content-text-soft);
}

body[data-bs-theme="dark"] .company-settings-info-panel,
body[data-bs-theme="dark"] .company-settings-placeholder,
body[data-bs-theme="dark"] .company-settings-critical,
body[data-app-theme="dark"] .company-settings-info-panel,
body[data-app-theme="dark"] .company-settings-placeholder,
body[data-app-theme="dark"] .company-settings-critical {
    background: linear-gradient(180deg, rgba(25, 37, 55, 0.96) 0%, rgba(18, 27, 41, 0.98) 100%);
    border-color: var(--app-content-border);
    box-shadow: none;
}

body[data-bs-theme="dark"] .customer-detail-value,
body[data-bs-theme="dark"] .customer-detail-dl dd,
body[data-bs-theme="dark"] .contract-detail-value,
body[data-bs-theme="dark"] .company-settings-info-value,
body[data-app-theme="dark"] .customer-detail-value,
body[data-app-theme="dark"] .customer-detail-dl dd,
body[data-app-theme="dark"] .contract-detail-value,
body[data-app-theme="dark"] .company-settings-info-value {
    color: var(--app-content-text);
}

body[data-bs-theme="dark"] .contract-detail-sement-card .contract-detail-sement-panel,
body[data-app-theme="dark"] .contract-detail-sement-card .contract-detail-sement-panel {
    background: rgba(15, 24, 36, 0.98);
    border-color: var(--app-content-border);
}

body[data-bs-theme="dark"] .contract-detail-sement-card .contract-detail-sement-table thead th,
body[data-bs-theme="dark"] .contract-premium-screen .contract-sement-matrix-table thead th,
body[data-app-theme="dark"] .contract-detail-sement-card .contract-detail-sement-table thead th,
body[data-app-theme="dark"] .contract-premium-screen .contract-sement-matrix-table thead th {
    background: rgba(24, 35, 53, 0.98);
    border-bottom-color: var(--app-content-border-strong);
    color: var(--app-content-text-soft);
    box-shadow: inset 0 -1px 0 var(--app-content-border);
}

body[data-bs-theme="dark"] .contract-list-screen .table,
body[data-bs-theme="dark"] .contract-detail-screen .table,
body[data-bs-theme="dark"] .customer-detail-screen .table,
body[data-bs-theme="dark"] .approval-detail-page .table,
body[data-bs-theme="dark"] #chat-page .table,
body[data-app-theme="dark"] .contract-list-screen .table,
body[data-app-theme="dark"] .contract-detail-screen .table,
body[data-app-theme="dark"] .customer-detail-screen .table,
body[data-app-theme="dark"] .approval-detail-page .table,
body[data-app-theme="dark"] #chat-page .table {
    --tblr-table-bg: transparent;
    --tblr-table-color: var(--app-content-text);
    --tblr-table-border-color: var(--app-content-border);
    color: var(--app-content-text);
}

body[data-bs-theme="dark"] .contract-list-screen .table thead th,
body[data-bs-theme="dark"] .contract-detail-screen .table thead th,
body[data-bs-theme="dark"] .customer-detail-screen .table thead th,
body[data-bs-theme="dark"] .approval-detail-page .table thead th,
body[data-app-theme="dark"] .contract-list-screen .table thead th,
body[data-app-theme="dark"] .contract-detail-screen .table thead th,
body[data-app-theme="dark"] .customer-detail-screen .table thead th,
body[data-app-theme="dark"] .approval-detail-page .table thead th {
    background: rgba(26, 38, 57, 0.9);
    color: var(--app-content-text-soft);
    border-bottom-color: var(--app-content-border);
}

body[data-bs-theme="dark"] .contract-list-screen .table tbody td,
body[data-bs-theme="dark"] .contract-detail-screen .table tbody td,
body[data-bs-theme="dark"] .customer-detail-screen .table tbody td,
body[data-bs-theme="dark"] .approval-detail-page .table tbody td,
body[data-app-theme="dark"] .contract-list-screen .table tbody td,
body[data-app-theme="dark"] .contract-detail-screen .table tbody td,
body[data-app-theme="dark"] .customer-detail-screen .table tbody td,
body[data-app-theme="dark"] .approval-detail-page .table tbody td {
    color: var(--app-content-text);
    border-color: var(--app-content-border);
}

body[data-bs-theme="dark"] .contract-list-tree-table .contract-lineage-head > td,
body[data-app-theme="dark"] .contract-list-tree-table .contract-lineage-head > td {
    background: rgba(18, 29, 44, 0.94);
}

body[data-bs-theme="dark"] .contract-list-tree-table .contract-lineage-child > td,
body[data-app-theme="dark"] .contract-list-tree-table .contract-lineage-child > td {
    background: rgba(24, 36, 54, 0.88);
}

body[data-bs-theme="dark"] .contract-list-tree-table .contract-lineage-child-number::before,
body[data-app-theme="dark"] .contract-list-tree-table .contract-lineage-child-number::before {
    background: rgba(133, 154, 181, 0.26);
}

body[data-bs-theme="dark"] .contract-list-tree-table .contract-action-menu .dropdown-menu,
body[data-app-theme="dark"] .contract-list-tree-table .contract-action-menu .dropdown-menu {
    background: rgba(15, 24, 37, 0.98);
    border-color: var(--app-content-border);
    box-shadow: 0 18px 38px -24px rgba(0, 0, 0, 0.82);
}

body[data-bs-theme="dark"] .contract-list-tree-table .contract-action-menu .dropdown-item,
body[data-app-theme="dark"] .contract-list-tree-table .contract-action-menu .dropdown-item {
    color: var(--app-content-text-soft);
}

body[data-bs-theme="dark"] .contract-list-tree-table .contract-action-menu .dropdown-item:hover,
body[data-bs-theme="dark"] .contract-list-tree-table .contract-action-menu .dropdown-item:focus-visible,
body[data-app-theme="dark"] .contract-list-tree-table .contract-action-menu .dropdown-item:hover,
body[data-app-theme="dark"] .contract-list-tree-table .contract-action-menu .dropdown-item:focus-visible {
    color: #f5f9ff;
    background: rgba(45, 69, 101, 0.78);
}

body[data-bs-theme="dark"] .contract-premium-screen,
body[data-app-theme="dark"] .contract-premium-screen {
    color: var(--app-content-text);
}

body[data-bs-theme="dark"] .contract-premium-screen .card,
body[data-app-theme="dark"] .contract-premium-screen .card {
    background: linear-gradient(180deg, rgba(19, 29, 44, 0.98) 0%, rgba(16, 24, 37, 0.98) 100%);
    border-color: var(--app-content-border);
    box-shadow: var(--app-content-shadow);
    color: var(--app-content-text);
}

body[data-bs-theme="dark"] .contract-premium-screen .card-header,
body[data-bs-theme="dark"] .contract-premium-screen .contract-premium-header .card-header,
body[data-bs-theme="dark"] .contract-premium-screen .contract-form-card .card-header,
body[data-app-theme="dark"] .contract-premium-screen .card-header,
body[data-app-theme="dark"] .contract-premium-screen .contract-premium-header .card-header,
body[data-app-theme="dark"] .contract-premium-screen .contract-form-card .card-header {
    background: linear-gradient(180deg, rgba(31, 45, 66, 0.95) 0%, rgba(22, 33, 49, 0.98) 100%);
    border-bottom-color: var(--app-content-border);
    color: var(--app-content-text);
}

body[data-bs-theme="dark"] .contract-premium-screen .card-footer,
body[data-app-theme="dark"] .contract-premium-screen .card-footer {
    background: linear-gradient(180deg, rgba(18, 27, 41, 0.98) 0%, rgba(15, 24, 36, 0.98) 100%);
    border-top-color: var(--app-content-border);
    color: var(--app-content-text-soft);
}

body[data-bs-theme="dark"] .contract-premium-screen .form-control,
body[data-bs-theme="dark"] .contract-premium-screen .form-select,
body[data-bs-theme="dark"] .contract-premium-screen .input-group-text,
body[data-app-theme="dark"] .contract-premium-screen .form-control,
body[data-app-theme="dark"] .contract-premium-screen .form-select,
body[data-app-theme="dark"] .contract-premium-screen .input-group-text {
    background: rgba(17, 26, 39, 0.96);
    border-color: var(--app-content-border);
    color: var(--app-content-text);
}

body[data-bs-theme="dark"] .contract-premium-screen .form-control[readonly],
body[data-bs-theme="dark"] .contract-premium-screen .form-control:disabled,
body[data-bs-theme="dark"] .contract-premium-screen .form-select:disabled,
body[data-app-theme="dark"] .contract-premium-screen .form-control[readonly],
body[data-app-theme="dark"] .contract-premium-screen .form-control:disabled,
body[data-app-theme="dark"] .contract-premium-screen .form-select:disabled {
    background: rgba(24, 35, 52, 0.94);
    color: var(--app-content-text-soft);
    border-color: var(--app-content-border);
}

body[data-bs-theme="dark"] .contract-premium-screen .form-control-plaintext.border.rounded,
body[data-app-theme="dark"] .contract-premium-screen .form-control-plaintext.border.rounded {
    background: rgba(24, 35, 52, 0.94) !important;
    border-color: var(--app-content-border) !important;
    color: var(--app-content-text);
}

body[data-bs-theme="dark"] .contract-premium-screen .contract-people-divider,
body[data-app-theme="dark"] .contract-premium-screen .contract-people-divider {
    border-top-color: var(--app-content-border);
}

body[data-bs-theme="dark"] .contract-premium-screen .contract-people-subtitle,
body[data-bs-theme="dark"] .contract-premium-screen .text-secondary,
body[data-app-theme="dark"] .contract-premium-screen .contract-people-subtitle,
body[data-app-theme="dark"] .contract-premium-screen .text-secondary {
    color: var(--app-content-text-muted) !important;
}

body[data-bs-theme="dark"] .contract-premium-screen .nav-tabs,
body[data-app-theme="dark"] .contract-premium-screen .nav-tabs {
    border-bottom-color: var(--app-content-border);
}

body[data-bs-theme="dark"] .contract-premium-screen .nav-tabs .nav-link,
body[data-app-theme="dark"] .contract-premium-screen .nav-tabs .nav-link {
    color: var(--app-content-text-soft);
}

body[data-bs-theme="dark"] .contract-premium-screen .nav-tabs .nav-link.active,
body[data-bs-theme="dark"] .contract-premium-screen .nav-tabs .nav-link:hover,
body[data-bs-theme="dark"] .contract-premium-screen .nav-tabs .nav-link:focus-visible,
body[data-app-theme="dark"] .contract-premium-screen .nav-tabs .nav-link.active,
body[data-app-theme="dark"] .contract-premium-screen .nav-tabs .nav-link:hover,
body[data-app-theme="dark"] .contract-premium-screen .nav-tabs .nav-link:focus-visible {
    background: rgba(24, 35, 52, 0.96);
    border-color: var(--app-content-border);
    color: #f5f9ff;
}

body[data-bs-theme="dark"] .contract-premium-screen .table,
body[data-app-theme="dark"] .contract-premium-screen .table {
    --tblr-table-bg: transparent;
    --tblr-table-color: var(--app-content-text);
    --tblr-table-border-color: var(--app-content-border);
    color: var(--app-content-text);
}

body[data-bs-theme="dark"] .contract-premium-screen .table thead th,
body[data-app-theme="dark"] .contract-premium-screen .table thead th {
    background: rgba(26, 38, 57, 0.9);
    color: var(--app-content-text-soft);
    border-bottom-color: var(--app-content-border);
}

body[data-bs-theme="dark"] .contract-premium-screen .table tbody td,
body[data-app-theme="dark"] .contract-premium-screen .table tbody td {
    color: var(--app-content-text);
    border-color: var(--app-content-border);
}

body[data-bs-theme="dark"] .contract-premium-screen .contract-sement-table-scroll,
body[data-bs-theme="dark"] .contract-premium-screen .contract-attachments-panel,
body[data-app-theme="dark"] .contract-premium-screen .contract-sement-table-scroll,
body[data-app-theme="dark"] .contract-premium-screen .contract-attachments-panel {
    background: rgba(15, 24, 36, 0.98);
    border-color: var(--app-content-border);
}

body[data-bs-theme="dark"] .approval-detail-page .approval-order-summary-compact__row,
body[data-app-theme="dark"] .approval-detail-page .approval-order-summary-compact__row {
    border-bottom-color: var(--app-content-border);
}

body[data-bs-theme="dark"] .approval-detail-page .modal-content,
body[data-app-theme="dark"] .approval-detail-page .modal-content {
    background: linear-gradient(180deg, rgba(19, 29, 44, 0.98) 0%, rgba(16, 24, 37, 0.98) 100%);
    border-color: var(--app-content-border);
    color: var(--app-content-text);
}

body[data-bs-theme="dark"] #chat-page .chat-thread-list,
body[data-bs-theme="dark"] #chat-page .chat-message-list,
body[data-bs-theme="dark"] #chat-page .chat-user-list,
body[data-bs-theme="dark"] #chat-page .chat-member-list,
body[data-bs-theme="dark"] #chat-page .chat-select-list,
body[data-bs-theme="dark"] #chat-page .chat-main-body,
body[data-bs-theme="dark"] #chat-page .chat-details-panel,
body[data-app-theme="dark"] #chat-page .chat-thread-list,
body[data-app-theme="dark"] #chat-page .chat-message-list,
body[data-app-theme="dark"] #chat-page .chat-user-list,
body[data-app-theme="dark"] #chat-page .chat-member-list,
body[data-app-theme="dark"] #chat-page .chat-select-list,
body[data-app-theme="dark"] #chat-page .chat-main-body,
body[data-app-theme="dark"] #chat-page .chat-details-panel {
    background: rgba(14, 22, 34, 0.98);
}

body[data-bs-theme="dark"] #chat-page .chat-details-panel,
body[data-app-theme="dark"] #chat-page .chat-details-panel {
    border-left-color: var(--app-content-border);
}

body[data-bs-theme="dark"] #chat-page .chat-details-header,
body[data-app-theme="dark"] #chat-page .chat-details-header {
    border-bottom-color: var(--app-content-border);
}

body[data-bs-theme="dark"] #chat-page .chat-thread-item,
body[data-bs-theme="dark"] #chat-page .list-group-item.list-group-item-action,
body[data-app-theme="dark"] #chat-page .chat-thread-item,
body[data-app-theme="dark"] #chat-page .list-group-item.list-group-item-action {
    background: transparent;
    color: var(--app-content-text);
    border-color: var(--app-content-border);
}

body[data-bs-theme="dark"] #chat-page .chat-thread-item:hover,
body[data-bs-theme="dark"] #chat-page .chat-thread-item:focus-visible,
body[data-bs-theme="dark"] #chat-page .list-group-item.list-group-item-action:hover,
body[data-bs-theme="dark"] #chat-page .list-group-item.list-group-item-action:focus-visible,
body[data-app-theme="dark"] #chat-page .chat-thread-item:hover,
body[data-app-theme="dark"] #chat-page .chat-thread-item:focus-visible,
body[data-app-theme="dark"] #chat-page .list-group-item.list-group-item-action:hover,
body[data-app-theme="dark"] #chat-page .list-group-item.list-group-item-action:focus-visible {
    background: var(--app-content-hover);
    color: #f5f9ff;
}

body[data-bs-theme="dark"] #chat-page .chat-thread-item.active,
body[data-app-theme="dark"] #chat-page .chat-thread-item.active {
    background: var(--app-content-active);
    box-shadow: inset 0 0 0 1px rgba(120, 168, 241, 0.2);
    color: #f5f9ff;
}

body[data-bs-theme="dark"] #chat-page .chat-message-bubble,
body[data-app-theme="dark"] #chat-page .chat-message-bubble {
    background: rgba(23, 34, 50, 0.98);
    border-color: var(--app-content-border);
    color: var(--app-content-text);
}

body[data-bs-theme="dark"] #chat-page .chat-message-row.is-mine .chat-message-bubble,
body[data-app-theme="dark"] #chat-page .chat-message-row.is-mine .chat-message-bubble {
    background: linear-gradient(180deg, rgba(39, 67, 108, 0.94) 0%, rgba(27, 48, 81, 0.98) 100%);
    border-color: rgba(120, 168, 241, 0.2);
}

body[data-bs-theme="dark"] #chat-page .chat-message-status,
body[data-bs-theme="dark"] #chat-page .chat-entity-type,
body[data-bs-theme="dark"] #chat-page .chat-entity-subtitle,
body[data-app-theme="dark"] #chat-page .chat-message-status,
body[data-app-theme="dark"] #chat-page .chat-entity-type,
body[data-app-theme="dark"] #chat-page .chat-entity-subtitle {
    color: var(--app-content-text-muted);
}

body[data-bs-theme="dark"] #chat-page .chat-empty-state,
body[data-bs-theme="dark"] #chat-page .chat-loading-state,
body[data-bs-theme="dark"] #chat-page .chat-empty-inline,
body[data-app-theme="dark"] #chat-page .chat-empty-state,
body[data-app-theme="dark"] #chat-page .chat-loading-state,
body[data-app-theme="dark"] #chat-page .chat-empty-inline {
    color: var(--app-content-text-muted);
}

body[data-bs-theme="dark"] .chat-widget-root .chat-widget-panel,
body[data-app-theme="dark"] .chat-widget-root .chat-widget-panel {
    background: linear-gradient(180deg, rgba(19, 29, 44, 0.99) 0%, rgba(15, 24, 37, 0.99) 100%);
    border-color: var(--app-content-border);
    box-shadow: 0 22px 46px -26px rgba(0, 0, 0, 0.86);
}

body[data-bs-theme="dark"] .chat-widget-root .chat-widget-header,
body[data-app-theme="dark"] .chat-widget-root .chat-widget-header {
    background: linear-gradient(180deg, rgba(28, 42, 62, 0.98) 0%, rgba(21, 33, 48, 0.98) 100%);
    border-bottom-color: var(--app-content-border);
}

body[data-bs-theme="dark"] .chat-widget-root .chat-widget-header .card-title,
body[data-bs-theme="dark"] .chat-widget-root .chat-widget-thread-title,
body[data-bs-theme="dark"] .chat-widget-root #chat-widget-thread-title,
body[data-app-theme="dark"] .chat-widget-root .chat-widget-header .card-title,
body[data-app-theme="dark"] .chat-widget-root .chat-widget-thread-title,
body[data-app-theme="dark"] .chat-widget-root #chat-widget-thread-title {
    color: var(--app-content-text);
}

body[data-bs-theme="dark"] .chat-widget-root .chat-widget-body,
body[data-bs-theme="dark"] .chat-widget-root .chat-widget-thread-header,
body[data-bs-theme="dark"] .chat-widget-root .chat-widget-message-list,
body[data-bs-theme="dark"] .chat-widget-root .chat-widget-thread-list,
body[data-app-theme="dark"] .chat-widget-root .chat-widget-body,
body[data-app-theme="dark"] .chat-widget-root .chat-widget-thread-header,
body[data-app-theme="dark"] .chat-widget-root .chat-widget-message-list,
body[data-app-theme="dark"] .chat-widget-root .chat-widget-thread-list {
    background: rgba(14, 22, 34, 0.98);
}

body[data-bs-theme="dark"] .chat-widget-root .chat-widget-divider,
body[data-app-theme="dark"] .chat-widget-root .chat-widget-divider {
    background: var(--app-content-border);
}

body[data-bs-theme="dark"] .chat-widget-root .chat-widget-thread-item,
body[data-app-theme="dark"] .chat-widget-root .chat-widget-thread-item {
    color: var(--app-content-text);
}

body[data-bs-theme="dark"] .chat-widget-root .chat-widget-thread-item:hover,
body[data-bs-theme="dark"] .chat-widget-root .chat-widget-thread-item:focus-visible,
body[data-app-theme="dark"] .chat-widget-root .chat-widget-thread-item:hover,
body[data-app-theme="dark"] .chat-widget-root .chat-widget-thread-item:focus-visible {
    background: var(--app-content-hover);
}

body[data-bs-theme="dark"] .chat-widget-root .chat-widget-thread-item.active,
body[data-app-theme="dark"] .chat-widget-root .chat-widget-thread-item.active {
    background: var(--app-content-active);
    box-shadow: inset 0 0 0 1px rgba(120, 168, 241, 0.2);
}

body[data-bs-theme="dark"] .chat-widget-root .chat-widget-thread-title,
body[data-bs-theme="dark"] .chat-widget-root .chat-widget-message-body,
body[data-bs-theme="dark"] .chat-widget-root .chat-widget-entity-title,
body[data-app-theme="dark"] .chat-widget-root .chat-widget-thread-title,
body[data-app-theme="dark"] .chat-widget-root .chat-widget-message-body,
body[data-app-theme="dark"] .chat-widget-root .chat-widget-entity-title {
    color: var(--app-content-text);
}

body[data-bs-theme="dark"] .chat-widget-root .chat-widget-thread-preview,
body[data-bs-theme="dark"] .chat-widget-root .chat-widget-thread-time,
body[data-bs-theme="dark"] .chat-widget-root .chat-widget-message-meta,
body[data-bs-theme="dark"] .chat-widget-root .chat-widget-message-status,
body[data-bs-theme="dark"] .chat-widget-root .chat-widget-empty,
body[data-bs-theme="dark"] .chat-widget-root .chat-widget-loading,
body[data-bs-theme="dark"] .chat-widget-root .chat-widget-entity-type,
body[data-bs-theme="dark"] .chat-widget-root .chat-widget-entity-subtitle,
body[data-bs-theme="dark"] .chat-widget-root .chat-widget-entity-paste-preview,
body[data-app-theme="dark"] .chat-widget-root .chat-widget-thread-preview,
body[data-app-theme="dark"] .chat-widget-root .chat-widget-thread-time,
body[data-app-theme="dark"] .chat-widget-root .chat-widget-message-meta,
body[data-app-theme="dark"] .chat-widget-root .chat-widget-message-status,
body[data-app-theme="dark"] .chat-widget-root .chat-widget-empty,
body[data-app-theme="dark"] .chat-widget-root .chat-widget-loading,
body[data-app-theme="dark"] .chat-widget-root .chat-widget-entity-type,
body[data-app-theme="dark"] .chat-widget-root .chat-widget-entity-subtitle,
body[data-app-theme="dark"] .chat-widget-root .chat-widget-entity-paste-preview {
    color: var(--app-content-text-muted);
}

body[data-bs-theme="dark"] .chat-widget-root .chat-widget-message-bubble,
body[data-app-theme="dark"] .chat-widget-root .chat-widget-message-bubble {
    background: rgba(23, 34, 50, 0.98);
    border-color: var(--app-content-border);
    color: var(--app-content-text);
}

body[data-bs-theme="dark"] .chat-widget-root .chat-widget-message-row.is-mine .chat-widget-message-bubble,
body[data-app-theme="dark"] .chat-widget-root .chat-widget-message-row.is-mine .chat-widget-message-bubble {
    background: linear-gradient(180deg, rgba(39, 67, 108, 0.94) 0%, rgba(27, 48, 81, 0.98) 100%);
    border-color: rgba(120, 168, 241, 0.2);
}

body[data-bs-theme="dark"] .chat-widget-root #chat-widget-footer,
body[data-app-theme="dark"] .chat-widget-root #chat-widget-footer {
    background: linear-gradient(180deg, rgba(17, 26, 39, 0.99) 0%, rgba(14, 22, 34, 0.99) 100%);
    border-top-color: var(--app-content-border);
}

body[data-bs-theme="dark"] .chat-widget-root .dropdown-menu,
body[data-bs-theme="dark"] #chat-action-confirm-modal .modal-content,
body[data-app-theme="dark"] .chat-widget-root .dropdown-menu,
body[data-app-theme="dark"] #chat-action-confirm-modal .modal-content {
    background: linear-gradient(180deg, rgba(19, 29, 44, 0.99) 0%, rgba(15, 24, 37, 0.99) 100%);
    border-color: var(--app-content-border);
    color: var(--app-content-text);
}

body[data-bs-theme="dark"] .chat-widget-root .dropdown-item,
body[data-app-theme="dark"] .chat-widget-root .dropdown-item {
    color: var(--app-content-text-soft);
}

body[data-bs-theme="dark"] .chat-widget-root .dropdown-item:hover,
body[data-bs-theme="dark"] .chat-widget-root .dropdown-item:focus-visible,
body[data-app-theme="dark"] .chat-widget-root .dropdown-item:hover,
body[data-app-theme="dark"] .chat-widget-root .dropdown-item:focus-visible {
    color: #f5f9ff;
    background: rgba(45, 69, 101, 0.78);
}

@media (max-width: 575.98px) {
    .app-login-shell {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .app-login-language {
        justify-content: center !important;
    }
}

@media (max-width: 1599.98px) {
    .app-topbar-row {
        gap: 0.9rem;
    }

    .app-topbar-actions {
        gap: 0.25rem !important;
    }

    .app-top-link {
        padding-inline: 0.7rem;
    }

    .app-topbar-actions .app-topbar-action-link {
        padding-inline: 0.55rem !important;
    }

    .app-user-menu-meta {
        display: none !important;
    }

    .app-user-menu-toggle {
        padding-inline: 0.45rem !important;
    }

    .app-management-menu {
        min-width: 17rem;
        max-width: min(17rem, calc(100vw - 2rem));
    }
}

@media (max-width: 1199.98px) {
    .app-topbar-mobile-toggle {
        display: inline-flex !important;
    }

    .app-mobile-menu-shell {
        display: block;
    }

    .app-mobile-menu-shell.show,
    .app-mobile-menu-shell.showing,
    .app-mobile-menu-shell.hiding {
        display: block;
    }

    .app-topbar-nav-desktop {
        display: none;
    }

    .app-topbar-start {
        min-width: 0;
        flex: 1 1 auto;
    }

    .app-topbar-brand {
        min-width: 0;
    }

    .app-topbar-brand img {
        max-width: min(13rem, 100%);
    }
}

@media (max-width: 991.98px) {
    .app-topbar-row {
        min-height: 3.75rem;
        padding-top: 0.4rem;
        padding-bottom: 0.4rem;
        gap: 0.5rem;
    }

    .app-topbar-start {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 0.4rem;
        min-width: 0;
    }

    .app-topbar-start .navbar-toggler {
        margin: 0;
    }

    .app-topbar-actions {
        margin-left: auto;
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: 0.35rem !important;
    }

    .app-topbar-language-desktop,
    .app-topbar-profile-desktop {
        display: none !important;
    }

    .app-topbar-actions .nav-item,
    .app-topbar-actions .nav-link {
        flex: 0 0 auto;
    }

    .app-topbar-brand img {
        height: 19px;
        width: auto;
        display: block;
    }

    .app-topbar-action-link {
        min-height: 2.6rem;
        padding: 0.5rem 0.65rem !important;
    }

    .app-notification-menu,
    .app-user-menu-panel,
    .app-language-menu {
        max-width: min(94vw, 26rem);
    }

    .app-notification-menu {
        width: min(24rem, calc(100vw - 1rem));
    }

    .app-management-menu {
        min-width: 100%;
        max-width: 100%;
    }

    .app-management-group {
        position: static;
    }

    .app-management-panel {
        margin-left: 1.35rem;
    }
}

@media (min-width: 1400px) {
    .app-topbar-center {
        padding-inline: 1rem;
    }

    .app-top-menu {
        gap: 0.45rem;
    }

    .app-top-link {
        padding-inline: 0.95rem;
    }
}

/* Contract form/layout (scoped) */
.contract-form-layout .card-header {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
}

.contract-form-layout .card-title {
    font-size: 0.9rem;
}

.contract-form-layout .contract-form-header-card .card-body {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.contract-form-layout .contract-form-card .card-body {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.contract-form-layout .contract-form-card .row {
    --tblr-gutter-y: 0.55rem;
}

.contract-form-layout .contract-form-card .form-label {
    margin-bottom: 0.25rem;
}

.contract-form-layout .contract-form-top-grid .card {
    margin-bottom: 0.75rem;
}

.contract-form-layout .contract-form-top-grid .input-group .btn {
    white-space: nowrap;
}

.contract-form-layout .contract-attachments-card .card-body {
    padding-top: 0.7rem;
    padding-bottom: 0.75rem;
}

.contract-form-layout .contract-attachments-card .form-hint {
    font-size: 0.72rem;
    color: #6f7f91;
}

.contract-form-layout .contract-attachments-panel {
    background: #fbfdff;
    border-color: #dbe4f0 !important;
}

.contract-form-layout .contract-attachments-panel .table th,
.contract-form-layout .contract-attachments-panel .table td {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

/* KLINKER grid (scoped) */
.contract-form-layout .contract-clinker-table {
    table-layout: fixed;
}

.contract-form-layout .contract-clinker-table .ck-col-stock {
    width: 24%;
}

.contract-form-layout .contract-clinker-table .ck-col-country,
.contract-form-layout .contract-clinker-table .ck-col-city {
    width: 11%;
}

.contract-form-layout .contract-clinker-table .ck-col-delivery {
    width: 9%;
}

.contract-form-layout .contract-clinker-table .ck-col-pallet {
    width: 10%;
}

.contract-form-layout .contract-clinker-table .ck-col-transport {
    width: 11%;
}

.contract-form-layout .contract-clinker-table .ck-col-station {
    width: 13%;
}

.contract-form-layout .contract-clinker-table .ck-col-price {
    width: 10%;
}

.contract-form-layout .contract-clinker-table .ck-col-action {
    width: 3%;
}

.contract-form-layout .contract-clinker-table td,
.contract-form-layout .contract-clinker-table th {
    vertical-align: middle;
}

.contract-form-layout .contract-klinker-picker-btn {
    min-width: 2rem;
    line-height: 1;
}

/* Invalid icon overlap fix (scoped to contract pricing) */
.contract-form-layout .contract-clinker-table .form-control.is-invalid,
.contract-form-layout .contract-clinker-table .form-select.is-invalid {
    background-image: none !important;
    padding-right: 0.75rem !important;
}

.contract-form-layout .contract-clinker-table .input-group .form-control.is-invalid {
    z-index: 1;
}

@media (max-width: 1399.98px) {
    .contract-form-layout .contract-clinker-table .ck-col-stock {
        width: 25%;
    }

    .contract-form-layout .contract-clinker-table .ck-col-country,
    .contract-form-layout .contract-clinker-table .ck-col-city {
        width: 10%;
    }

    .contract-form-layout .contract-clinker-table .ck-col-transport {
        width: 10%;
    }

    .contract-form-layout .contract-clinker-table .ck-col-pallet {
        width: 10%;
    }

    .contract-form-layout .contract-clinker-table .ck-col-station {
        width: 13%;
    }
}

@media (max-width: 1199.98px) {
    .contract-form-layout .contract-clinker-table {
        table-layout: auto;
    }
}

/* Contract detail (scoped) */
.contract-detail-summary .card-body,
.contract-detail-mini-card .card-body,
.contract-detail-submit-card .card-body {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.contract-detail-summary .card-header,
.contract-detail-mini-card .card-header,
.contract-detail-submit-card .card-header {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.contract-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem 0.85rem;
}

.contract-detail-item {
    min-width: 0;
}

.contract-detail-item-wide {
    grid-column: span 2;
}

.contract-detail-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem 0.85rem;
}

.contract-detail-mini-item {
    min-width: 0;
}

.contract-detail-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #71839a;
    margin-bottom: 0.15rem;
}

.contract-detail-value {
    color: #1f2a37;
    line-height: 1.35;
    word-break: break-word;
}

.contract-detail-submit-form .form-label {
    margin-bottom: 0.3rem;
}

.contract-detail-note {
    min-height: 2.4rem;
    resize: vertical;
}

.contract-detail-clinker-table td,
.contract-detail-clinker-table th {
    vertical-align: middle;
}

.contract-detail-sement-card .card-header {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

.contract-detail-sement-card .contract-detail-sement-count {
    font-size: 0.68rem;
    font-weight: 600;
}

.contract-detail-sement-card .contract-detail-sement-toggle {
    white-space: nowrap;
    min-width: 7.2rem;
}

.contract-detail-sement-card .contract-detail-sement-panel {
    max-height: min(56vh, 30rem);
    overflow: auto;
    border: 1px solid #dce4ef;
    border-radius: 0.6rem;
    background: #fff;
}

.contract-detail-sement-card .contract-detail-sement-table {
    margin-bottom: 0;
    table-layout: fixed;
}

.contract-detail-sement-card .contract-detail-sement-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f8fbff;
    border-bottom: 1px solid #d6dfeb;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #6a7b8f;
    white-space: nowrap;
}

.contract-detail-sement-card .contract-detail-sement-table td,
.contract-detail-sement-card .contract-detail-sement-table th {
    vertical-align: middle;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}

.contract-detail-sement-card .contract-detail-sement-table tbody td:nth-child(1),
.contract-detail-sement-card .contract-detail-sement-table tbody td:nth-child(2),
.contract-detail-sement-card .contract-detail-sement-table tbody td:nth-child(3) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contract-detail-sement-card .contract-detail-sement-table tbody td:last-child {
    font-variant-numeric: tabular-nums;
}

@media (max-width: 1399.98px) {
    .contract-detail-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .contract-detail-item-wide {
        grid-column: span 3;
    }
}

@media (max-width: 991.98px) {
    .contract-detail-grid,
    .contract-detail-mini-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contract-detail-item-wide {
        grid-column: span 2;
    }
}

@media (max-width: 575.98px) {
    .contract-detail-grid,
    .contract-detail-mini-grid {
        grid-template-columns: 1fr;
    }

    .contract-detail-item-wide {
        grid-column: span 1;
    }
}

/* Contract premium redesign (scoped) */
.contract-premium-screen .card {
    border-color: #d6dfeb;
    box-shadow: 0 10px 24px -18px rgba(18, 42, 71, 0.45);
}

.contract-premium-screen .contract-premium-header {
    border-top: 3px solid #2e6ec6;
}

.contract-premium-screen .contract-premium-header .card-header,
.contract-premium-screen .contract-form-card .card-header {
    background: linear-gradient(180deg, #f8fbff 0%, #f4f8ff 100%);
    border-bottom-color: #dbe4f0;
}

.contract-premium-screen .contract-form-header-card .card-body {
    padding-top: 0.75rem;
    padding-bottom: 0.8rem;
}

.contract-premium-screen .contract-form-header-card .row {
    --tblr-gutter-y: 0.45rem;
}

.contract-premium-screen .contract-header-grid {
    align-items: stretch;
}

.contract-premium-screen .contract-header-note {
    min-height: 100%;
}

.contract-premium-screen .form-control,
.contract-premium-screen .form-select {
    min-height: calc(1.4285714em + 0.58rem + calc(var(--tblr-border-width) * 2));
}

.contract-premium-screen .contract-form-top-grid {
    align-items: start;
}

.contract-premium-screen .contract-customer-context-card .card-body {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.contract-premium-screen .contract-customer-context-card .contract-customer-grid {
    --tblr-gutter-y: 0.55rem;
}

.contract-premium-screen .contract-customer-context-card .input-group .btn,
.contract-premium-screen .contract-people-card .input-group .btn {
    min-width: 2.6rem;
}

.contract-premium-screen .contract-people-card .card-body {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.contract-premium-screen .contract-people-grid {
    --tblr-gutter-y: 0.55rem;
}

.contract-premium-screen .contract-people-divider {
    margin: 0.75rem 0;
    border-top: 1px solid #dbe3ef;
}

.contract-premium-screen .contract-people-subtitle {
    margin-bottom: 0.45rem;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #66788e;
}

.contract-premium-screen #clinkerSection .card-body,
.contract-premium-screen #sementSection .card-body {
    padding-top: 0.75rem;
}

.contract-premium-screen .contract-sement-toolbar-header {
    border-top: 0;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.contract-premium-screen .contract-sement-matrix-table {
    width: 100%;
    table-layout: fixed;
    margin-bottom: 0;
}

.contract-premium-screen .contract-sement-table-scroll {
    overflow: auto;
    max-height: min(65vh, 38rem);
}

.contract-premium-screen .contract-sement-matrix-table th,
.contract-premium-screen .contract-sement-matrix-table td {
    white-space: normal;
    vertical-align: middle;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.contract-premium-screen .contract-sement-matrix-table thead th {
    font-size: 0.71rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #66788e;
    white-space: normal;
    overflow: hidden;
    vertical-align: top;
    height: 3.1rem;
    position: sticky;
    top: 0;
    z-index: 20;
    background: #fff;
    box-shadow: inset 0 -1px 0 #dbe3ef;
}

.contract-premium-screen .contract-sement-matrix-table .contract-sement-site-col {
    min-width: 14rem;
    max-width: 14rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contract-premium-screen .contract-sement-matrix-table thead .contract-sement-site-col {
    white-space: nowrap;
    z-index: 21;
}

.contract-premium-screen .contract-sement-header-text {
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    line-height: 1.15;
    min-height: calc(1.15em * 2);
    max-height: calc(1.15em * 2);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.contract-premium-screen .contract-sement-search {
    max-width: 22rem;
}

.contract-premium-screen .contract-sement-page-size-input {
    width: 5rem;
}

.contract-premium-screen .contract-sement-matrix-table tbody td .input-group-text {
    min-width: 2.1rem;
    justify-content: center;
}

.contract-premium-screen .contract-sement-matrix-table tbody td .input-group {
    width: 100%;
}

.contract-premium-screen .contract-sement-matrix-table tbody td .form-control {
    min-width: 0;
}

.contract-premium-screen .contract-sement-footer {
    min-height: 3rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.contract-premium-screen .contract-sement-pagination {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.contract-premium-screen .contract-sement-page-btn {
    min-width: 5.5rem;
}

.contract-premium-screen .contract-sement-page-status {
    min-width: 6.8rem;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.contract-premium-screen .contract-sement-page-btn:disabled,
.contract-premium-screen .contract-sement-page-btn.disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.contract-detail-top-row .card {
    border-color: #d6dfeb;
    box-shadow: 0 10px 24px -18px rgba(18, 42, 71, 0.45);
}

.contract-detail-top-row .contract-detail-summary-col {
    min-width: 0;
}

.contract-detail-top-row .contract-detail-submit-col {
    flex: 0 0 21.5rem;
    width: 21.5rem;
    max-width: 21.5rem;
}

.contract-detail-summary .card-header,
.contract-detail-submit-card-top .card-header {
    background: linear-gradient(180deg, #f8fbff 0%, #f4f8ff 100%);
}

.contract-detail-submit-card-top .card-body {
    padding-top: 0.7rem;
    padding-bottom: 0.75rem;
}

.contract-detail-submit-card-top .contract-detail-submit-form {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.contract-detail-submit-card-top .contract-detail-note {
    min-height: 8.2rem;
    resize: vertical;
}

.contract-detail-submit-card-top .btn {
    min-height: 2rem;
}

.contract-detail-label {
    color: #6b7b90;
}

.contract-detail-value {
    font-weight: 500;
}

.contract-number-cell {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

.contract-detail-clinker-table th.text-end,
.contract-detail-clinker-table td.text-end {
    padding-right: 0.8rem;
}

@media (max-width: 1199.98px) {
    .contract-premium-screen .contract-form-top-grid .col-xl-6 {
        width: 100%;
    }

    .contract-premium-screen .contract-sement-pane .card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.45rem;
    }

    .contract-premium-screen .contract-sement-toolbar-header .ms-auto {
        margin-left: 0 !important;
    }

    .contract-detail-top-row .contract-detail-submit-col {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }
}

/* Customer detail redesign (scoped) */
.customer-detail-screen .card {
    border-color: #d6dfeb;
    box-shadow: 0 10px 24px -18px rgba(18, 42, 71, 0.45);
}

.customer-detail-summary-card .card-body,
.customer-detail-card .card-body {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.customer-detail-summary-card .card-header,
.customer-detail-card .card-header {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    background: linear-gradient(180deg, #f8fbff 0%, #f4f8ff 100%);
}

.customer-detail-summary-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.75rem 0.85rem;
}

.customer-detail-summary-item {
    min-width: 0;
}

.customer-detail-summary-item-wide {
    grid-column: span 2;
}

.customer-summary-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 0.75rem 0.85rem;
}

.customer-summary-item {
    min-width: 0;
}

.customer-summary-name {
    min-width: 0;
}

.customer-summary-status-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem 0.75rem;
}

.customer-summary-status-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.customer-detail-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #6b7b90;
    margin-bottom: 0.15rem;
}

.customer-detail-value {
    color: #1f2a37;
    line-height: 1.35;
    word-break: break-word;
}

.customer-detail-dl dt {
    color: #6d7b8d;
    font-weight: 600;
}

.customer-detail-dl dd {
    color: #1f2a37;
    font-weight: 500;
}

.customer-empty {
    padding: 0.25rem 0;
}

@media (max-width: 1399.98px) {
    .customer-detail-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .customer-detail-summary-item-wide {
        grid-column: span 3;
    }
}

@media (max-width: 575.98px) {
    .customer-summary-top,
    .customer-summary-status-strip {
        grid-template-columns: 1fr;
    }

    .customer-detail-summary-grid {
        grid-template-columns: 1fr;
    }

    .customer-detail-summary-item-wide {
        grid-column: span 1;
    }
}

/* Contract list lineage tree */
.contract-list-tree-table .contract-lineage-head > td {
    background: rgba(255, 255, 255, 0.85);
    border-top-width: 2px;
}

.contract-list-tree-table .contract-lineage-head:first-child > td {
    border-top-width: 1px;
}

.contract-list-tree-table .contract-lineage-child > td {
    background: rgba(248, 250, 253, 0.85);
}

.contract-list-tree-table .contract-lineage-child-number {
    position: relative;
    padding-left: 2.4rem !important;
    font-size: .875rem;
}

.contract-list-tree-table .contract-lineage-child-number::before {
    content: "";
    position: absolute;
    left: 1.25rem;
    top: .35rem;
    bottom: .35rem;
    width: 2px;
    background: rgba(108, 117, 125, .35);
    border-radius: 2px;
}

.contract-list-tree-table .contract-lineage-child .badge.bg-secondary-lt,
.contract-list-tree-table .contract-lineage-child .badge.bg-dark-lt {
    border: 1px solid rgba(108, 117, 125, .35);
}

.contract-list-tree-table .contract-lineage-toggle {
    width: 1.6rem;
    height: 1.6rem;
    padding: 0;
}

.contract-list-tree-table .contract-chevron {
    display: inline-block;
    width: .48rem;
    height: .48rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    transition: transform .15s ease;
}

.contract-list-tree-table .contract-lineage-toggle.is-expanded .contract-chevron {
    transform: rotate(45deg);
}

.contract-list-card,
.contract-list-card .table-responsive,
.contract-list-card .card-table {
    overflow: visible;
}

.contract-list-card .table-responsive {
    overflow-x: auto;
    overflow-y: visible !important;
    position: relative;
    z-index: 0;
}

.contract-list-tree-table .contract-actions-col {
    min-width: 11.5rem;
    width: 11.5rem;
}

.contract-list-tree-table .contract-actions-cell {
    white-space: nowrap;
    position: relative;
    z-index: 3;
}

.contract-list-tree-table .contract-actions-cell.contract-menu-open {
    z-index: 1200;
}

.contract-list-tree-table .contract-row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: .5rem;
}

.contract-list-tree-table .contract-action-detail {
    --tblr-btn-padding-x: .65rem;
}

.contract-list-tree-table .contract-menu-trigger {
    width: 2.4rem;
    height: 2.4rem;
    min-width: 2.4rem;
    min-height: 2.4rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .55rem;
    line-height: 1;
}

.contract-list-tree-table .contract-menu-trigger .contract-trigger-icon {
    width: 1.05rem;
    height: 1.05rem;
    display: inline-block;
    stroke: currentColor;
}

.contract-list-tree-table .contract-action-menu {
    position: relative;
    z-index: 4;
}

.contract-list-tree-table .contract-action-menu.is-open {
    z-index: 1210;
}

.contract-list-tree-table .contract-action-menu .dropdown-menu {
    min-width: 15rem;
    right: 0;
    left: auto;
    margin-top: .35rem;
    z-index: 1220;
    box-shadow: 0 0.8rem 1.8rem rgba(13, 28, 54, .18);
    border-radius: .7rem;
    border: 1px solid rgba(31, 42, 55, .08);
    padding: .35rem;
}

.contract-action-dropdown.contract-action-dropdown-portal {
    position: fixed !important;
    inset: auto auto auto auto;
    margin: 0 !important;
    z-index: 2000 !important;
}

.contract-list-tree-table .contract-action-menu .dropdown-item {
    min-height: 2.1rem;
    display: inline-flex;
    align-items: center;
    width: 100%;
    border-radius: .45rem;
    color: #2b3c4f;
}

.contract-list-tree-table .contract-row-actions .contract-menu-item-icon {
    width: 1rem;
    height: 1rem;
    margin-right: .5rem;
    display: inline-block;
    flex: 0 0 auto;
    stroke: currentColor;
    opacity: .95;
}

/* Outbox detail JSON blocks (scoped) */
.outbox-detail-page .outbox-detail-json,
.outbox-detail-page .outbox-detail-json code {
    color: #1f2a37 !important;
    -webkit-text-fill-color: #1f2a37;
    background: #f6f8fb;
    opacity: 1 !important;
    filter: none !important;
    text-shadow: none;
    caret-color: #1f2a37;
}

.outbox-detail-page .outbox-detail-json::selection,
.outbox-detail-page .outbox-detail-json code::selection {
    color: #102032;
    background: rgba(46, 110, 198, 0.18);
}

@media (max-width: 767.98px) {
    .contract-list-tree-table .contract-lineage-child-number {
        padding-left: 1.9rem !important;
    }

    .contract-list-tree-table .contract-lineage-child-number::before {
        left: .95rem;
    }
}

.app-breadcrumb .breadcrumb {
    font-size: .9rem;
    line-height: 1.3rem;
}

.app-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: var(--tblr-secondary);
}

.app-breadcrumb .breadcrumb-item.active {
    color: var(--tblr-body-color);
}

.app-breadcrumb a {
    text-decoration: none;
}

.app-breadcrumb a:hover {
    text-decoration: underline;
}

/* Order transport assignment list detail surface */
.transport-request-detail-cell {
    padding: 1rem !important;
    background: #f7f9fc;
    border-top: 1px solid rgba(31, 42, 55, .14) !important;
    border-bottom: 1px solid rgba(31, 42, 55, .14) !important;
}

.transport-request-detail-mobile {
    padding-top: .25rem;
}

.transport-request-detail {
    padding: .9rem 1rem;
    color: var(--tblr-body-color, #1f2a37);
    background: var(--tblr-bg-surface, #fff);
    border: 1px solid rgba(31, 42, 55, .14);
    border-radius: .55rem;
    box-shadow: 0 .35rem 1rem rgba(31, 42, 55, .06);
}

.transport-request-detail > details:first-child > summary {
    color: #182433;
    font-size: .98rem;
    font-weight: 600;
}

.transport-request-detail details > summary {
    min-height: 2.45rem;
    padding: .55rem .65rem;
    color: #26384b;
    cursor: pointer;
    border-radius: .4rem;
    list-style-position: inside;
}

.transport-request-detail details > summary:hover,
.transport-request-detail details > summary:focus-visible {
    background: rgba(31, 103, 198, .07);
    outline: 0;
}

.transport-request-detail-table {
    color: #26384b;
    table-layout: fixed;
}

.transport-request-detail-table thead th {
    color: #34495e;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .02em;
    background: #eef2f7;
    border-bottom: 1px solid rgba(31, 42, 55, .16);
}

.transport-request-detail-table tbody td {
    color: #26384b;
    vertical-align: top;
    border-bottom: 1px solid rgba(31, 42, 55, .1);
    overflow-wrap: anywhere;
}

.transport-request-detail-table tbody tr:last-child td {
    border-bottom: 0;
}

.transport-request-order-number {
    color: #1b2d40;
    font-weight: 600;
}

.transport-request-stock-code {
    color: #68798b;
    font-size: .76rem;
    line-height: 1.25;
}

.transport-request-quantity {
    color: #182d43 !important;
    font-weight: 600;
}

.transport-request-detail > .row details > summary {
    color: #26384b;
    border: 1px solid rgba(31, 42, 55, .12);
    background: #f7f9fc;
}

tr.transport-request-master-open > td {
    background: rgba(31, 103, 198, .045);
    border-bottom-color: rgba(31, 103, 198, .2);
}

@media (max-width: 767.98px) {
    .order-transport-assignment-editor .card-header > .d-flex.flex-wrap.align-items-end {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center !important;
        width: 100%;
        gap: .375rem !important;
    }

    .order-transport-assignment-editor .order-date-filter-controls {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        width: 100%;
        gap: .375rem !important;
    }

    .order-transport-assignment-editor .order-date-filter-controls > div:first-child {
        flex: 1 1 auto;
        min-width: 0;
    }

    .order-transport-assignment-editor .order-date-filter-controls > div:first-child > label,
    .order-transport-assignment-editor .card-header > .d-flex.flex-wrap.align-items-end > div:first-child > label {
        display: none !important;
    }

    .order-transport-assignment-editor .order-date-filter-controls > div:nth-of-type(2),
    .order-transport-assignment-editor .order-date-filter-controls > span,
    .order-transport-assignment-editor #filter-orders {
        display: none !important;
    }

    .order-transport-assignment-editor .card-header > .d-flex.flex-wrap.align-items-end > .btn-list {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: .25rem !important;
    }

    .order-transport-assignment-editor .card-header > .d-flex.flex-wrap.align-items-end > .btn-list .btn,
    .order-transport-assignment-editor #order-date-from {
        padding-right: .5rem;
        padding-left: .5rem;
        white-space: nowrap;
    }

    .order-transport-assignment-editor .order-transport-mobile-order-header,
    .order-transport-assignment-editor .order-transport-mobile-vehicle-header {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: .5rem;
    }

    .order-transport-assignment-editor .order-transport-mobile-chevron {
        min-width: 2.5rem;
        min-height: 2.5rem;
    }

    .order-transport-assignment-editor .order-transport-mobile-order-title {
        display: flex;
        min-width: 0;
        flex-wrap: wrap;
        gap: .25rem .625rem;
    }

    .order-transport-assignment-editor .order-transport-mobile-order-select {
        min-width: 4.25rem;
    }

    .order-transport-assignment-editor .order-transport-mobile-order-detail {
        margin-top: .75rem;
        padding-top: .75rem;
        border-top: 1px solid var(--tblr-border-color);
    }

    .order-transport-assignment-editor .order-transport-mobile-order-line + .order-transport-mobile-order-line {
        margin-top: .75rem;
        padding-top: .75rem;
        border-top: 1px solid var(--tblr-border-color-translucent, var(--tblr-border-color));
    }

    .order-transport-assignment-editor .order-transport-mobile-order-line .order-transport-mobile-field {
        margin-bottom: .35rem;
    }

    .transport-request-detail {
        padding: .7rem;
        border-radius: .5rem;
    }

    .transport-request-detail-table {
        font-size: .8rem;
    }

    .transport-request-detail-table th,
    .transport-request-detail-table td {
        padding: .55rem .4rem;
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    .transport-request-detail-table .transport-request-quantity {
        white-space: nowrap !important;
    }
}

.command-palette-trigger {
    gap: .55rem;
    padding-inline: .8rem;
    border-radius: 999px;
}

.command-palette-trigger-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.command-palette-trigger-label {
    font-weight: 600;
    line-height: 1;
}

.command-palette-trigger-shortcut {
    padding: .2rem .42rem;
    border-radius: 999px;
    font-size: .72rem;
    line-height: 1;
    color: var(--tblr-secondary);
    background: rgba(108, 117, 125, .12);
}

.command-palette-modal {
    --tblr-modal-bg: transparent;
}

.command-palette-dialog {
    max-width: min(42rem, calc(100vw - 2rem));
    margin-inline: auto;
}

.command-palette-panel {
    border: 1px solid rgba(106, 123, 144, 0.18);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(20px) saturate(140%);
    box-shadow: 0 32px 80px -36px rgba(13, 29, 52, .55);
    overflow: hidden;
}

.command-palette-header {
    align-items: flex-start;
    padding: 1.1rem 1.2rem .5rem;
    border-bottom: 0;
}

.command-palette-header-copy {
    min-width: 0;
}

.command-palette-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.command-palette-subtitle {
    margin-top: .25rem;
    font-size: .8rem;
    color: var(--tblr-secondary);
}

.command-palette-search-wrap {
    padding: 0 1.2rem .8rem;
}

.command-palette-input {
    min-height: 3rem;
    border-radius: 1rem;
    border-color: rgba(106, 123, 144, 0.24);
    padding-inline: 1rem;
    font-size: .95rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2);
}

.command-palette-input:focus {
    border-color: rgba(31, 103, 198, .45);
    box-shadow: 0 0 0 .18rem rgba(31, 103, 198, .12);
}

.command-palette-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 1.2rem 1.2rem;
    max-height: min(70vh, 38rem);
    overflow-y: auto;
}

.command-palette-group {
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.command-palette-group[hidden],
.command-palette-empty[hidden] {
    display: none !important;
}

.command-palette-item-meta {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.command-palette-item-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .16rem .45rem;
    border-radius: 999px;
    background: rgba(31, 103, 198, .10);
    color: var(--tblr-primary);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.command-palette-group-title {
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--tblr-secondary);
}

.command-palette-list {
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.command-palette-item {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: .2rem;
    padding: .78rem .9rem;
    border: 1px solid rgba(106, 123, 144, 0.16);
    border-radius: .95rem;
    background: rgba(255, 255, 255, .92);
    color: var(--tblr-body-color);
    text-align: left;
    transition: border-color .18s ease, background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.command-palette-item:hover,
.command-palette-item:focus-visible,
.command-palette-item.is-selected {
    border-color: rgba(31, 103, 198, .28);
    background: rgba(31, 103, 198, .08);
    box-shadow: 0 14px 30px -24px rgba(31, 103, 198, .45);
    transform: translateY(-1px);
    outline: 0;
}

.command-palette-item.is-disabled,
.command-palette-item:disabled {
    opacity: .68;
    cursor: default;
    box-shadow: none;
    transform: none;
}

.command-palette-item-title {
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.3;
}

.command-palette-item-subtitle {
    font-size: .78rem;
    line-height: 1.35;
    color: var(--tblr-secondary);
}

.command-palette-empty {
    padding: 1rem;
    border: 1px dashed rgba(106, 123, 144, 0.26);
    border-radius: 1rem;
    text-align: center;
    color: var(--tblr-secondary);
    background: rgba(108, 117, 125, .05);
}

body[data-bs-theme="dark"] .command-palette-trigger-shortcut,
body[data-app-theme="dark"] .command-palette-trigger-shortcut {
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .75);
}

body[data-bs-theme="dark"] .command-palette-panel,
body[data-app-theme="dark"] .command-palette-panel {
    border-color: rgba(148, 163, 184, .16);
    background: rgba(15, 23, 42, .92);
    box-shadow: 0 36px 90px -44px rgba(3, 8, 20, .85);
}

body[data-bs-theme="dark"] .command-palette-item,
body[data-app-theme="dark"] .command-palette-item {
    border-color: rgba(148, 163, 184, .14);
    background: rgba(30, 41, 59, .76);
}

body[data-bs-theme="dark"] .command-palette-item:hover,
body[data-bs-theme="dark"] .command-palette-item:focus-visible,
body[data-bs-theme="dark"] .command-palette-item.is-selected,
body[data-app-theme="dark"] .command-palette-item:hover,
body[data-app-theme="dark"] .command-palette-item:focus-visible,
body[data-app-theme="dark"] .command-palette-item.is-selected {
    background: rgba(31, 103, 198, .18);
    border-color: rgba(96, 165, 250, .32);
}

body[data-bs-theme="dark"] .command-palette-item-badge,
body[data-app-theme="dark"] .command-palette-item-badge {
    background: rgba(96, 165, 250, .16);
    color: rgba(191, 219, 254, .98);
}

body[data-bs-theme="dark"] .command-palette-empty,
body[data-app-theme="dark"] .command-palette-empty {
    border-color: rgba(148, 163, 184, .22);
    background: rgba(30, 41, 59, .55);
}

@media (max-width: 991.98px) {
    .command-palette-trigger {
        padding-inline: .72rem;
    }

    .command-palette-trigger-shortcut {
        display: none !important;
    }
}

@media (max-width: 767.98px) {
    .command-palette-dialog {
        max-width: 100%;
        margin: 0;
    }

    .command-palette-panel {
        border-radius: 1.1rem 1.1rem 0 0;
    }
}

@media (max-width: 575.98px) {
    .command-palette-trigger {
        width: 2.75rem;
        height: 2.75rem;
        justify-content: center;
        padding: 0;
    }

    .command-palette-trigger-label {
        display: none;
    }

    .command-palette-header,
    .command-palette-search-wrap,
    .command-palette-body {
        padding-inline: 1rem;
    }

    .command-palette-body {
        max-height: none;
        padding-bottom: 1rem;
    }

    .app-mobile-language-form {
        grid-template-columns: 1fr;
    }
}

.app-mobile-menu.offcanvas {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    display: flex !important;
    flex-direction: column !important;
}

.app-mobile-menu.offcanvas .offcanvas-header {
    flex: 0 0 auto !important;
}

.app-mobile-menu.offcanvas .offcanvas-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
}

.app-mobile-menu.offcanvas .app-mobile-menu-scroll {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    padding-bottom: 64px !important;
}

.app-mobile-menu.offcanvas .app-mobile-nav,
.app-mobile-menu.offcanvas .app-mobile-nav-scroll {
    width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
}
.order-transport-autocomplete-overlay {
    position: fixed;
    z-index: 1090;
    min-width: 10rem;
    max-width: min(34rem, calc(100vw - 1rem));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--tblr-bg-surface, var(--tblr-body-bg));
    border: 1px solid var(--tblr-border-color);
    border-radius: var(--tblr-border-radius);
    box-shadow: var(--tblr-box-shadow-lg);
}

.order-transport-assignment-editor .order-transport-mobile-list {
    display: none;
}

.order-transport-assignment-editor .order-transport-vehicle-editor-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.order-transport-assignment-editor .order-transport-vehicle-editor-table th,
.order-transport-assignment-editor .order-transport-vehicle-editor-table td {
    min-width: 0;
    white-space: normal;
    vertical-align: top;
}

.order-transport-assignment-editor .order-transport-vehicle-editor-table th:nth-child(1),
.order-transport-assignment-editor .order-transport-vehicle-editor-table td:nth-child(1) { width: 5%; }

.order-transport-assignment-editor .order-transport-vehicle-editor-table th:nth-child(2),
.order-transport-assignment-editor .order-transport-vehicle-editor-table td:nth-child(2) { width: 14%; }

.order-transport-assignment-editor .order-transport-vehicle-editor-table th:nth-child(3),
.order-transport-assignment-editor .order-transport-vehicle-editor-table td:nth-child(3) { width: 28%; }

.order-transport-assignment-editor .order-transport-vehicle-editor-table th:nth-child(4),
.order-transport-assignment-editor .order-transport-vehicle-editor-table td:nth-child(4) { width: 29%; }

.order-transport-assignment-editor .order-transport-vehicle-editor-table th:nth-child(5),
.order-transport-assignment-editor .order-transport-vehicle-editor-table td:nth-child(5) { width: 24%; }

.order-transport-assignment-editor .order-transport-carrier-editor-table {
    width: 100%;
    table-layout: fixed;
}

.order-transport-assignment-editor .order-transport-carrier-editor-table th,
.order-transport-assignment-editor .order-transport-carrier-editor-table td {
    min-width: 0;
    white-space: normal;
}

.order-transport-assignment-editor .order-transport-carrier-editor-table th:nth-child(1),
.order-transport-assignment-editor .order-transport-carrier-editor-table td:nth-child(1) { width: 10%; }

.order-transport-assignment-editor .order-transport-carrier-editor-table th:nth-child(2),
.order-transport-assignment-editor .order-transport-carrier-editor-table td:nth-child(2) { width: 12%; }

.order-transport-assignment-editor .order-transport-carrier-editor-table th:nth-child(3),
.order-transport-assignment-editor .order-transport-carrier-editor-table td:nth-child(3) { width: 20%; }

.order-transport-assignment-editor .order-transport-carrier-editor-table th:nth-child(4),
.order-transport-assignment-editor .order-transport-carrier-editor-table td:nth-child(4) { width: 43%; }

.order-transport-assignment-editor .order-transport-carrier-editor-table th:nth-child(5),
.order-transport-assignment-editor .order-transport-carrier-editor-table td:nth-child(5) { width: 15%; }

.order-transport-assignment-editor .order-transport-vehicle-editor-table .input-group {
    min-width: 0;
}

@media (max-width: 767.98px) {
    .order-transport-assignment-editor .order-transport-desktop-table {
        display: none !important;
    }

    .order-transport-assignment-editor .order-transport-mobile-list:not(.d-none) {
        display: grid;
        gap: .75rem;
        min-width: 0;
    }

    .order-transport-assignment-editor .order-transport-mobile-card {
        min-width: 0;
        padding: .875rem;
        overflow-wrap: anywhere;
        background: var(--tblr-bg-surface, var(--tblr-body-bg));
        border: 1px solid var(--tblr-border-color);
        border-radius: var(--tblr-border-radius);
    }

    .order-transport-assignment-editor .order-transport-mobile-card.is-selected,
    .order-transport-assignment-editor .order-transport-mobile-card.is-primary {
        border-color: var(--tblr-primary);
        box-shadow: inset 3px 0 0 var(--tblr-primary);
    }

    .order-transport-assignment-editor .order-transport-mobile-card.is-disabled {
        opacity: .7;
    }

    .order-transport-assignment-editor .order-transport-mobile-vehicle.is-master {
        border-left: 3px solid var(--tblr-blue);
    }

    .order-transport-assignment-editor .order-transport-mobile-vehicle.is-manual {
        border-left: 3px solid var(--tblr-secondary);
    }

    .order-transport-assignment-editor .order-transport-mobile-fields {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .625rem .75rem;
        margin-top: .75rem;
    }

    .order-transport-assignment-editor .order-transport-mobile-field {
        min-width: 0;
    }
}

@media (max-width: 449.98px) {
    .order-transport-assignment-editor .order-transport-mobile-fields {
        grid-template-columns: minmax(0, 1fr);
    }
}

.order-transport-autocomplete-option {
    display: block;
    width: 100%;
    padding: .5rem .75rem;
    color: inherit;
    text-align: left;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--tblr-border-color-translucent);
}

.order-transport-autocomplete-option:last-child {
    border-bottom: 0;
}

.order-transport-autocomplete-option:hover,
.order-transport-autocomplete-option:focus,
.order-transport-autocomplete-option.is-active {
    color: inherit;
    background: var(--tblr-tertiary-bg);
    outline: 0;
}

.order-transport-autocomplete-state {
    padding: .625rem .75rem;
    color: var(--tblr-secondary-color);
}
 .pwa-install-prompt {
    position: fixed;
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    left: 1rem;
    z-index: 1040;
    max-width: 42rem;
    margin: 0 auto;
    padding: 0.85rem 1rem;
    color: var(--tblr-body-color);
    background: var(--tblr-bg-surface, #fff);
    border: 1px solid var(--tblr-border-color, rgba(98, 105, 118, 0.2));
    border-radius: 0.75rem;
    box-shadow: 0 0.75rem 2rem rgba(31, 43, 58, 0.2);
}

.pwa-install-prompt-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.pwa-install-prompt-copy {
    min-width: 0;
}

.pwa-install-prompt-title {
    font-weight: 600;
}

.pwa-install-prompt-description {
    margin-top: 0.2rem;
    color: var(--tblr-secondary, #667382);
    font-size: 0.875rem;
}

.pwa-install-prompt-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.4rem;
}

@media (max-width: 575.98px) {
    .pwa-install-prompt {
        bottom: calc(0.65rem + env(safe-area-inset-bottom));
        padding: 0.8rem;
    }

    .pwa-install-prompt-content {
        align-items: stretch;
        flex-direction: column;
        gap: 0.7rem;
    }

    .pwa-install-prompt-actions {
        justify-content: flex-end;
    }
}

body[data-bs-theme="dark"] .pwa-install-prompt,
body[data-app-theme="dark"] .pwa-install-prompt {
    box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.35);
}
.procurement-material-picker-results {
    min-width: 0;
}

@media (max-width: 768px) {
    .procurement-material-picker-form > div {
        width: 100%;
    }

    .procurement-material-picker-form > div:first-child {
        flex: 0 0 100%;
    }

    .procurement-material-picker-form > div:last-child {
        flex: 0 0 100%;
    }

    .procurement-material-picker-form button,
    .procurement-material-picker-form input {
        min-height: 44px;
    }

    .procurement-material-picker-results {
        overflow: visible;
    }

    .procurement-material-picker-results table,
    .procurement-material-picker-results tbody {
        display: block;
        width: 100%;
    }

    .procurement-material-picker-results thead {
        display: none;
    }

    .procurement-material-picker-results tr {
        display: grid;
        gap: .5rem;
        padding: .75rem;
        border-bottom: 1px solid var(--tblr-border-color, #d9e1e7);
    }

    .procurement-material-picker-results tr:last-child {
        border-bottom: 0;
    }

    .procurement-material-picker-results td {
        display: block;
        min-width: 0;
        padding: 0;
        border: 0;
        overflow-wrap: anywhere;
    }

    .procurement-material-picker-results td::before {
        display: block;
        margin-bottom: .15rem;
        color: var(--tblr-secondary, #667382);
        font-size: .75rem;
        font-weight: 600;
        content: attr(data-label);
    }

    .procurement-material-picker-results td[data-label="İşlem"] {
        text-align: left !important;
    }

    .procurement-material-picker-results [data-procurement-material-picker-select] {
        width: 100%;
        min-height: 44px;
    }
}

/* Order-level selection with canonical line-level remaining quantities. */
.order-transport-assignment-editor .order-transport-stock-summary { min-width: 14rem; max-width: 24rem; }
.order-transport-assignment-editor .order-transport-stock-list { min-width: 0; }
.order-transport-assignment-editor .order-transport-stock-line { padding: .4rem 0; }
.order-transport-assignment-editor .order-transport-stock-line + .order-transport-stock-line { border-top: 1px solid var(--tblr-border-color); }
.order-transport-assignment-editor .order-transport-stock-description {
    font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; overflow-wrap: anywhere; line-height: 1.35;
}
.order-transport-assignment-editor .order-transport-stock-code { overflow-wrap: anywhere; }
.order-transport-assignment-editor .order-transport-open-quantity { color: #176b39; font-weight: 700; font-variant-numeric: tabular-nums; }
[data-bs-theme="dark"] .order-transport-assignment-editor .order-transport-open-quantity { color: #75d99a; }
.order-transport-assignment-editor .order-transport-stock-list summary { cursor: pointer; padding: .35rem 0; }
