
/*--------------------------------------------------------------------------------------------------------------------
 *     Mobile:
 *-------------------------------------------------------------------------------------------------------------------*/

.mobile-card-container {
    margin: 1rem;
    height: 17rem;
    width: 25rem;
}

.top-header {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    height: 5rem !important;
}

.app-download {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.2);
}

.immo-off-container > div {
    height: 100%;
    align-content: center;
}

@media screen and (max-width: 767px) {

    .immo-off-container {
        height: fit-content !important;
    }

    .immo-off-container > div {
        height: auto !important;
    }

    .vin-form-container {
        width: 100% !important;
    }

    .justify-center-mobile {
        justify-content: center;
    }

    .ui-card-container {
        width: 100%;
        text-align: center;
    }

    .toolbar div:nth-child(2) > div {
        display: none !important;
    }

    .content-container {
        padding: 0;
    }
}


/*-------------------------------------------------------------------------------------------------------------------- */

@media (min-width: 1024px) {
    fluent-button.bigger {
/*        height: 100%;*/
    }

    fluent-button.bigger::part(control) {
        height: 50px;
        padding-left: 24px;
        padding-right: 24px;
        font-size: 20px;
    }

    fluent-accordion-item.bigger {
        border-radius: 4px;
    }

        fluent-accordion-item.bigger::part(heading) {
            height: 50px;
            padding-left: 16px;
            padding-right: 16px;
            font-size: 26px;
            background-color: var(--colorNeutralBackground3Pressed);
        }

    fluent-button.bigger svg {
        width: 22px !important;
    }
}

fluent-accordion.coding-groups,
fluent-accordion.coding-groups fluent-accordion-item {
    background: transparent !important;
    border: none !important;
}

/* v5 accordion items default to max-width: fit-content; coding groups must use the full width */
fluent-accordion.coding-groups fluent-accordion-item {
    max-width: none;
}

    fluent-accordion.coding-groups fluent-accordion-item::part(heading),
    fluent-accordion.coding-groups fluent-accordion-item::part(region),
    fluent-accordion.coding-groups fluent-accordion-item::part(button) {
        background: transparent !important;
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

.ui-card-cost-container {
    display: flex;
    height: 40px;
    align-items: center;
}

.svg-container {
    background-color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 100%;
    padding: 7px;
}

.svg-container-bound svg {
    width: 100%;
    height: 100%;
}

.svg-container svg {
    fill: white;
}

.both-gradient {
    --scroll-fade-next: var(--colorNeutralBackground1);
    --scroll-fade-previous: var(--colorNeutralBackground1)
}

/* Scrollbar width */
::-webkit-scrollbar {
    width: 10px;
}

/* Track (background) */
::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

/* Handle (thumb) */
::-webkit-scrollbar-thumb {
    background: #6cAAe9; /* Fluent UI primary color */
    border-radius: 10px;
}

    /* Handle on hover */
    ::-webkit-scrollbar-thumb:hover {
        background: #4a87d1;
    }

* {
    scrollbar-width: thin;
    scrollbar-color: #6cAAe9 #f1f1f1; /* thumb color, track color */
}

.privacy-header {
    padding-bottom: 1rem;
    display: flex;
    justify-content: space-between;
}

    .privacy-header a {
        display: flex;
    }

    .privacy-header h1 {
        margin: 0;
        padding: 0;
    }

.fluent-dialog::part(control):focus-visible {
    outline: none !important;
}

fluent-dialog::part(control):focus {
    outline: none !important;
}

.fluent-dialog-header div:focus {
    outline-style: none !important;
}

.fluent-dialog-header div:focus-visible {
    outline-style: none !important;
}

.fluent-wizard-title {
    padding-top: 4px;
}

.content-container {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 1.2rem 0 1.2rem;
    margin: 0 -1.2rem 0 -1.2rem;
}

.fluent-wizard-content {
    height: 100%;
    min-height: 0;
}

.fluent-wizard-content > div {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.diag-controls {
    display: flex;
    justify-content: space-between;
}

.diag-content {
    padding: 0 1rem;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

img {
    -webkit-user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}


.color-accent {
    color: var(--colorBrandForeground1) !important;
}

.bkg-color-accent {
    background-color: var(--colorBrandBackground);
    color: white;
}

/*--------------------------------------------------------------------------------------------------------------------
 *     Header:
 *-------------------------------------------------------------------------------------------------------------------*/

.header-gutters {
    margin: 20px 0px 20px 0px !important;
    justify-content: center;
}

.header-logo svg {
    width: 150px;
    height: 60px;
}

.subheader {
    display: flex;
    flex: 0 0 auto;
    overflow: hidden;
    margin-bottom: 0.5rem;
    padding-top: 0.5rem;
    align-items: center;
    justify-content: space-between;
}

    .subheader h4 {
        display: flex;
        align-items: center;
        height: 100%;
        margin: 0;
    }

.subheader-button {
    margin: 0;
    padding: 2px 20px 0px 0px;
    color: var(--colorBrandForeground1);
}

    .subheader-button:hover {
        color: var(--colorBrandForeground1);
    }

.pointer:hover {
    cursor: pointer;
}

/*--------------------------------------------------------------------------------------------------------------------
 *     Nav bars:
 *-------------------------------------------------------------------------------------------------------------------*/

/* FluentAppBar renders its items inside <fluent-overflow>, styled through its exposed "items" part */
.app-navbar fluent-overflow::part(items) {
    justify-content: space-between;
}

/*--------------------------------------------------------------------------------------------------------------------
 *     Thumbnail button:
 *-------------------------------------------------------------------------------------------------------------------*/

.thumbnail-button {
    background-color: var(--colorBrandBackground);
    color: var(--colorNeutralForegroundOnBrand);
    display: flex;
    flex-direction: column;
}

.thumbnail-button:hover {
    background-color: var(--colorBrandBackgroundHover);
    color: var(--colorNeutralForegroundOnBrand);
}

/* Inline SVGs leave a baseline gap below them; render as block so the icon takes only its own height */
.thumbnail-button svg {
    display: block;
}

.thumbnail-button img {
    /* filter: invert(100%); */
    padding: 4px;
    width: 100%;
    height: 70%;
    margin: auto;
    object-fit: contain;
}

.node-connection-types .thumbnail-button {
    height: 134px;
    box-sizing: border-box;
    padding: 8px 16px;
}

.node-connection-types .thumbnail-button img {
    flex: 0 0 80px;
    height: 80px;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    object-fit: contain;
}


/*--------------------------------------------------------------------------------------------------------------------
 *     UI Card:
 *-------------------------------------------------------------------------------------------------------------------*/

.l2 {
    background-color: var(--colorNeutralBackground2) !important;
}


.thumbnail {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.box {
    box-shadow: 6px 8px 16px #00000040;
}

.autow {
    display: block;
    flex-grow: 1;
    flex: 1 1 0;
}

.vcentered {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.primary-text {
    margin: 12px 0px 6px 0px;
}

.secondary-text {
    color: var(--colorNeutralStrokeAccessiblePressed) !important;
    /* margin: 12px 0px 6px 0px; */
}

.border-highlight:hover {
    outline: solid 2px var(--colorBrandStroke1);
}


/*--------------------------------------------------------------------------------------------------------------------
 *     FLuent button customizations:
 *-------------------------------------------------------------------------------------------------------------------*/

fluent-button::part(control) {
    font-family: var(--font-normal) !important;
    font-size: large;
    border-radius: 8px;
}

fluent-button[appearance="accent"]::part(control) {
    background-image: none;
    background-color: var(--primary-color);
}

/*fluent-button.bigger::part(control) {
    height: 50px;
    padding-left: 24px;
    padding-right: 24px;
    font-size: 20px;
}*/

/* fluent-button.bigger::part(start) {
    padding-bottom: 4px !important;
} */

/*fluent-button.bigger svg {
    width: 22px !important;
}*/

fluent-button.square::part(control) {
    aspect-ratio: 1;
}

fluent-button.w80::part(control) {
    width: 80px;
}

.badge-promo-code::part(control) {
    padding: 1rem;
}

/* fluent-accordion.bigger::part(heading) {
    height: 50px;
    padding-left: 24px;
    padding-right: 24px;
    font-size: 26px;
} */
/*fluent-accordion-item.bigger {
    border-radius: 4px;
}

    fluent-accordion-item.bigger::part(heading) {
        height: 50px;
        padding-left: 16px;
        padding-right: 16px;
        font-size: 26px;
        background-color: var(--colorNeutralBackground3Pressed);
    }
*/
.autow {
    flex-grow: 1;
    width: auto;
}

.fluent-dialog-header {
    margin-top: -10px;
    padding-bottom: 10px !important;
}

    .fluent-dialog-header #dialog_close {
        margin-top: -4px;
        margin-right: -14px;
    }

/*--------------------------------------------------------------------------------------------------------------------
 *     Overlay:
 *-------------------------------------------------------------------------------------------------------------------*/

.overlay-container {
    position: relative;
}

.overlay {
    position: absolute;
    top: 20%;
    left: 20%;
    z-index: 1;
}

/*--------------------------------------------------------------------------------------------------------------------
 *     Standard styles:
 *-------------------------------------------------------------------------------------------------------------------*/

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-normal);
    font-size: var(--fontSizeBase300);
    line-height: var(--lineHeightBase300);
    font-weight: var(--fontWeightRegular);
    color: var(--colorNeutralForeground1);
    background: var(--colorNeutralBackground1);
    background-image: url('images/bg-v2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100svh;
    overflow: hidden;
    padding-bottom: env(safe-area-inset-bottom);
    padding-top: env(safe-area-inset-top);
}


.transparent {
    background-color: #ffffff00 !important;
}

.tokens-chip-container {
    display: flex;
    gap: 0.3rem;
    align-items: center;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 10px;
}

.toolbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.main {
    min-height: calc(100dvh - 86px);
    color: var(--colorNeutralForeground1) !important;
    align-items: stretch !important;
}

.manage {
    width: 100dvw;
}

.alert {
    border: 1px dashed var(--colorBrandStroke1);
    padding: 5px;
}

code {
    color: #c02d76;
}

/* BMW NBT service history editor */
.nbt-history { display: flex; flex-direction: column; min-height: 0; overflow: hidden; padding: 8px 4px 0; }
.nbt-history-records { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0 4px 20px; scrollbar-gutter: stable; }
.nbt-history-header, .nbt-history-entry-header, .nbt-history-actions,
.nbt-history-section-title, .nbt-history-entry-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.nbt-history-header { margin-bottom: 28px; flex-wrap: wrap; }
.nbt-history-header h2 { margin: 0 0 6px; font-size: 28px; font-weight: 650; }
.nbt-history-header p, .nbt-history-empty p { margin: 0; color: var(--colorNeutralForeground2); }
.nbt-history-section-title { flex: 0 0 auto; justify-content: flex-start; margin-bottom: 14px; gap: 12px; flex-wrap: wrap; }
.nbt-history-section-title h3 { margin: 0; font-size: 18px; font-weight: 600; }
.nbt-history-count, .nbt-history-operation {
    background: var(--colorBrandBackground2, #e7f0fb);
    color: var(--colorBrandForeground2, #315e93);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 600;
}
.nbt-history-entry {
    background: var(--colorNeutralBackground1);
    border: 1px solid var(--colorNeutralStroke2, #dce2e9);
    border-radius: 14px;
    box-shadow: 0 3px 14px rgb(0 0 0 / 5%);
    margin-bottom: 16px;
    padding: 20px 24px;
}
.nbt-history-entry-header { margin-bottom: 20px; }
.nbt-history-entry-title { justify-content: flex-start; gap: 10px; }
.nbt-history-entry h4 { margin: 0; font-size: 16px; font-weight: 600; }
.nbt-history-number {
    display: grid; place-items: center; width: 30px; height: 30px;
    border-radius: 50%; background: var(--colorBrandBackground); color: var(--colorNeutralForegroundOnBrand, #fff);
    font-size: 14px; font-weight: 600;
}
.nbt-history-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.nbt-history-field { min-width: 0; }
.nbt-history-field > * { width: 100%; }
.nbt-history-field fluent-text-input::part(control),
.nbt-history-field fluent-number-input::part(control),
.nbt-history-field fluent-select::part(control) { min-height: 38px; }
.nbt-history-operations { border-top: 1px solid var(--colorNeutralStroke2, #dce2e9); margin-top: 22px; padding-top: 16px; }
.nbt-history-operations-label { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.nbt-history-operation-list { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.nbt-history-muted { color: var(--colorNeutralForeground2); font-size: 14px; }
.nbt-history-actions { margin-left: auto; justify-content: flex-end; flex-wrap: wrap; gap: 12px; }
.nbt-history-write {
    --colorNeutralBackgroundDisabled: var(--colorBrandBackground);
    --colorNeutralForegroundDisabled: var(--colorNeutralForegroundOnBrand, #fff);
    --colorNeutralStrokeDisabled: var(--colorBrandBackground);
}
.nbt-history-write::part(control),
button.nbt-history-write {
    background-color: var(--colorBrandBackground);
    border-color: var(--colorBrandBackground);
    color: var(--colorNeutralForegroundOnBrand, #fff);
}
.nbt-history-empty { padding: 32px; text-align: center; background: var(--colorNeutralBackground1); border-radius: 14px; }
.nbt-history-empty h4 { margin: 0 0 8px; }
@media (max-width: 900px) {
    .nbt-history-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
    .nbt-history-fields { grid-template-columns: 1fr; gap: 16px; }
    .nbt-history-entry { padding: 16px; }
    .nbt-history-header h2 { font-size: 24px; }
}
