
html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html, body {
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    background: #ffffff;
    color: #0b0b0b;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 8px rgba(15, 23, 42, 0.08);
}

.app-header__branding {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.app-header__product {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.05rem;
    color: #0b0b0b;
}

.app-header__tagline {
    font-size: 0.85rem;
    color: #6b7280;
}

.app-header__login-link {
    color: #111827;
    font-weight: 600;
    text-decoration: none;
}

.app-header__fullwidth-toggle {
    border: 1px solid #d1d5db;
    background: #f9fafb;
    color: #111827;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.app-header__fullwidth-toggle:hover {
    background: #f3f4f6;
    border-color: #cbd5e1;
}

.account-toolbar {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f3f4f6;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    position: relative;
}

.account-toolbar__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #111827;
    color: #f9fafb;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.account-toolbar__user {
    display: flex;
    flex-direction: column;
    font-size: 0.8rem;
    line-height: 1.2;
    min-width: 0;
}

.account-toolbar__name {
    font-weight: 600;
}

.account-toolbar__role {
    color: #6b7280;
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
}

.account-toolbar__trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    text-align: left;
}

.account-toolbar__dropdown {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    min-width: 180px;
    border-radius: 0.75rem;
    background: #ffffff;
    color: #111827;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 28px rgba(15, 23, 42, 0.12);
}

.account-toolbar__dropdown li {
    padding: 0;
}

.account-toolbar__dropdown button {
    width: 100%;
    background: transparent;
    border: none;
    color: inherit;
    text-align: left;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.account-toolbar__dropdown button:hover {
    background: #f3f4f6;
}

.account-toolbar__dropdown-row {
    width: 100%;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-sizing: border-box;
}

.account-toolbar__dropdown .border-top {
    border-top: 1px solid #e5e7eb;
    margin-top: 0.35rem;
    padding-top: 0.35rem;
}

.account-toolbar__icons {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 1rem;
    color: #6b7280;
}

.account-toolbar__layout-toggle {
    padding: 0;
}

.account-toolbar__layout-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
}

.account-toolbar__layout-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #111827;
}

.account-toolbar__layout-options {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.account-toolbar__layout-button {
    width: 36px;
    height: 32px;
    padding: 0;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.account-toolbar__layout-button:hover {
    border-color: #9ca3af;
    background: #f3f4f6;
}

.account-toolbar__layout-button.is-active {
    border-color: #111827;
    background: #111827;
    color: #f9fafb;
}

.account-toolbar__dropdown .account-toolbar__layout-button {
    width: 36px;
    padding: 0;
}

.account-page {
    padding: 2rem;
}

@media (max-width: 768px) {
    .app-header {
        flex-wrap: wrap;
    }

    .account-toolbar {
        width: 100%;
        justify-content: space-between;
    }
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.button-link {
    text-decoration: unset;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 0.625rem;
}

    .title.title-secondary {
        padding-top: 0.313rem;
        padding-bottom: 0;
        color: var(--bs-secondary-color);
    }

.title-header-text {
    font-size: 2.5rem;
    line-height: 3rem;
    font-weight: 600;
    letter-spacing: 0rem;
    padding: 0.3125rem 0;
}

.title-content-text {
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 2.5rem;
    letter-spacing: 0rem;
}

.login-page-main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header stays fixed at top */
.layout.has-sidebar > .layout > header {
    flex-shrink: 0;
}

/* Main element fills remaining space */
.layout.has-sidebar > .layout > main {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    width: 100%;
    min-height: 0;
    position: relative;
}

/* Sidebar toggler - fixed position */
.sidebar-toggler {
    position: fixed;
    right: 20px;
    top: 20px;
    z-index: 100;
    padding: 0.5rem;
    border: 0;
    border-radius: 0.5rem;
    color: #111827;
    background-color: transparent;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.sidebar-toggler:hover {
    background-color: #f3f4f6;
}

.sidebar-toggler:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.layout.has-sidebar > .overlay {
    padding: 0;
    border: 0;
    cursor: pointer;
}

/* Main content - scrollable container */
.main-content {
    width: 100%;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-sizing: border-box;
}

.layout.has-sidebar > .layout > main:not(.login-page-main) > .main-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    align-items: stretch;
    padding: 1.5rem 2rem 2.25rem;
}

.main-content__inner {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    gap: 1.5rem;
}

.user-profile-page > .main-content .main-content__inner {
    max-width: 720px;
}

.main-content__inner--full {
    max-width: none;
}

/* Programs / Projects fills the available layout area. */
main:has(.customer-workspace) > .main-content {
    overflow: hidden !important;
}

.main-content__inner:has(> .customer-workspace) {
    position: relative;
    flex: 1 1 0;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

/* File Manager fills the available layout area. */
main:has(.fm-page) > .main-content {
    overflow: hidden !important;
}

.main-content__inner:has(> .fm-page) {
    position: relative;
    flex: 1 1 0;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

/* Security Administration fills the available layout area. */
main:has(.security-page) > .main-content {
    overflow: hidden !important;
}

.main-content__inner:has(> .security-page) {
    position: relative;
    flex: 1 1 0;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

/* Master BOM fills the available layout area. */
main:has(.master-bom-workspace) > .main-content {
    overflow: hidden !important;
}

.main-content__inner:has(> .master-bom-workspace) {
    position: relative;
    flex: 1 1 0;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

/* Schedule fills the available layout area. */
main:has(.schedule-page) > .main-content {
    overflow: hidden !important;
}

.main-content__inner:has(> .schedule-page) {
    position: relative;
    flex: 1 1 0;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

/* Tasks DevExpress overlays can render outside the scoped component tree. */
.task-edit-popup {
    min-width: 720px;
    max-width: 900px;
}

.task-grid-context-menu,
.task-grid-context-menu * {
    font-size: 14px;
}

/* Footer - stays at bottom of main, doesn't scroll */
.layout.has-sidebar > .layout > main > .footer {
    flex-shrink: 0;
}

/* Login page specific styling */
.login-page-main > .main-content {
    flex: 1;
    justify-content: center;
    align-items: center;
    max-width: none;
    margin: 0 auto;
    padding: 2rem 1.25rem;
    gap: 1.25rem;
    overflow-y: auto;
    overflow-x: hidden;
}

.login-page-main > .main-content .main-content__inner {
    justify-content: center;
    align-items: center;
    max-width: none;
    width: 100%;
}

.block-content {
    width: 31.25rem;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    max-width: 100%;
}




.or {
    display: flex;
    flex-direction: row;
    align-items: center;
}

    .or .or-line {
        border-bottom: 1px solid var(--bs-body-color);
        width: 100%;
        opacity: 0.2;
    }

    .or .or-text {
        padding: 0 0.625rem 0px 0.625rem;
        font-size: 0.75rem;
        line-height: 1.125rem;
        color: var(--bs-body-color);
        opacity: 0.7;
    }

.links-area {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding-top: 0.625rem;
}

.links-container {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
    align-items: center;
}

    .links-container .dot {
        height: 0.3125rem;
        width: 0.3125rem;
        margin: 0 0.1875rem;
        border-radius: 50%;
        background-color: var(--bs-body-color);
        opacity: 0.7;
    }

.manage-layout {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.info-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.15;
    background: var(--bs-primary);
    z-index: -1;
}

.info-message {
    padding: 0.625rem 1rem 0.625rem 1rem;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .info-message.info-panel {
        margin-bottom: 0.625rem;
    }

.manage-content {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.large-input {
    height: 4.3125rem;
    font-size: 1.875rem;
}

.title-content-text-secondary {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.button-group {
    display: flex;
    flex-direction: row;
    gap: 0.625rem;
}

.confirm-button {
    margin-top: 0.3125rem;
}

.display-desktop {
    display: block;
}

.display-mobile {
    display: none;
}

.icon-external-provider {
    width: 1rem;
    height: 1rem;
}

.icon-google {
    background-image: url("/images/account/providers/google-logo.svg")
}

.icon-facebook {
    background-image: url("/images/account/providers/facebook-logo.svg")
}

.icon-microsoft {
    background-image: url("/images/account/providers/microsoft-logo.svg")
}

.icon-twitter {
    background-image: url("/images/account/providers/x-logo.svg")
}

@media (max-width: 768px) {
    .display-desktop {
        display: none;
    }

    .display-mobile {
        display: block;
    }
}
/* MasterDetailTableTreeList: keep the standard arrow over draggable nodes. */
.program-project-tree .dxbl-grid-table > tbody > tr,
.program-project-tree .dxbl-grid-table > tbody > tr > td,
.program-project-tree .dxbl-grid-table > tbody > tr > td *,
.program-project-tree .dxbl-grid-row-drag-anchor-cell {
    cursor: default !important;
}

/* The startup artwork is intentionally edge-to-edge within the application viewport. */
.layout.has-sidebar > .layout > main:has(.landing-page) > .main-content {
    padding: 0;
}

.main-content__inner:has(> .landing-page) {
    width: 100%;
    max-width: none;
}

/* Startup screens use the complete browser width instead of reserving sidebar space. */
.layout.has-sidebar:has(.landing-page) > .sidebar,
.layout.has-sidebar:has(.login-page) > .sidebar,
.layout.has-sidebar:has(.register-page) > .sidebar {
    display: none;
}

.layout.has-sidebar:has(.login-page) .app-header,
.layout.has-sidebar:has(.register-page) .app-header {
    display: none;
}

.layout.has-sidebar:has(.landing-page) > .layout,
.layout.has-sidebar:has(.login-page) > .layout,
.layout.has-sidebar:has(.register-page) > .layout {
    width: 100vw;
    flex-basis: 100vw;
}
