﻿@font-face {
    font-family: 'Poppins';
    src: url('/pwa/font/Poppins-Bold.eot');
    src: url('/pwa/font/Poppins-Bold.eot?#iefix') format('embedded-opentype'), url('/pwa/font/Poppins-Bold.woff2') format('woff2'), url('/pwa/font/Poppins-Bold.woff') format('woff'), url('/pwa/font/Poppins-Bold.ttf') format('truetype'), url('/pwa/font/Poppins-Bold.svg#Poppins-Bold') format('svg');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('/pwa/font/Poppins-SemiBold.eot');
    src: url('/pwa/font/Poppins-SemiBold.eot?#iefix') format('embedded-opentype'), url('/pwa/font/Poppins-SemiBold.woff2') format('woff2'), url('/pwa/font/Poppins-SemiBold.woff') format('woff'), url('/pwa/font/Poppins-SemiBold.ttf') format('truetype'), url('/pwa/font/Poppins-SemiBold.svg#Poppins-SemiBold') format('svg');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('/pwa/font/Poppins-Regular.eot');
    src: url('/pwa/font/Poppins-Regular.eot?#iefix') format('embedded-opentype'), url('/pwa/font/Poppins-Regular.woff2') format('woff2'), url('/pwa/font/Poppins-Regular.woff') format('woff'), url('/pwa/font/Poppins-Regular.ttf') format('truetype'), url('/pwa/font/Poppins-Regular.svg#Poppins-Regular') format('svg');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

:root {
    --background-primary: 220,227,233;
    --primary-ui: 44, 62, 80;
    --secondary-ui: 106, 114, 129;
    --terciary-ui: 106, 114, 129, 0.25;
    --font-family: 'Poppins';
    --font-regular: 300;
    --font-semi: 600;
    --font-bold: 800;
    --primary-alert: 232,43,43;
    --primary-hover: 255, 255, 255, 0.25;
    --shadow-ui: 0 0 24px 0 rgba(0,0,0,0.25);
    --modal-background: 44, 62, 80, 0.75;
    --primary-success: 19, 179, 105;
    --gift-red: #b0182b; /* warm Christmas red */
}

/* helpers */

#instalApp {
    display: none;
}

.radius {
    border-radius: 10px;
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.primary-text {
    color: #fff;
    text-decoration: none;
    font-weight: var(--font-regular);
}

.alert-text {
    color: rgb(var(--primary-alert));
    text-decoration: none;
    font-weight: var(--font-regular);
    font-weight: var(--font-semi);
}

.button {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 16px;
    background-color: rgb(var(--secondary-ui));
    border-radius: 10px;
}

.transparent {
    background-color: transparent;
}

.selected, .action {
    background-color: rgb(var(--primary-alert)) !important;
}

.button:hover:not(.no-hover) {
    background-color: rgba(var(--primary-hover));
}

.subcategory-selected {
    background-color: rgb(var(--secondary-ui)) !important;
    color: #fff;
}


.animated {
    transition: 0.3s ease-in-out all;
}

.animated-modal {
    transition: 1s ease-in-out transform;
}

.hidden {
    transform: translateY(-100%);
}

.visible {
    transform: translateY(0);
}

.text-bold {
    font-weight: var(--font-bold);
}

.settings-icon {
    color: #fff;
}

.no-background {
    background: none !important;
}

/* generic */

* {
    box-sizing: border-box;
    cursor: default;
    margin: 0;
    padding: 0;
}

html {
    font-size: 15px;
    scroll-behavior: smooth;
}

/* base */

h1, h2, h3 {
    font-size: 2rem;
    font-weight: var(--font-bold);
    position: relative;
}

h2, h3 {
    font-size: 1.25rem;
}

h3 {
    font-weight: var(--font-regular);
    font-size: 0.85rem;
}

h4 {
    padding: 16px 0;
}

input, select {
    height: inherit;
    border: none;
    font-family: var(--font-family);
    padding: 0 16px;
    font-size: 1.0rem;
    border-radius: 10px;
}

    input:focus, textarea:focus {
        outline: none;
    }

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    max-width: 100%;
}

.center {
    text-align: center;
}

textarea {
    height: inherit;
    border: none;
    font-family: var(--font-family);
    padding: 16px;
    font-size: 1.0rem;
    width: 100%;
}

.clear {
    display: none !important;
}

::-webkit-scrollbar {
    width: 3px;
}

::-webkit-scrollbar-thumb {
    background-color: rgb(var(--primary-ui));
}

.unpaid {
    background-color: rgb(var(--primary-alert));
    width: 10px;
    position: absolute;
    left: -32px;
    top: 0;
    bottom: 0;
}

.active {
    display: flex !important;
}

.category-edit, .sub-edit, .newInvoice, #addCategory, #editProjectTitle, .node-edit, .addProjectNode, .project-delete-btn {
    opacity: 0;
    pointer-events: none;
}

/* edit mode ON */
body.edit-mode .category-edit, body.edit-mode .sub-edit, body.edit-mode .newInvoice, body.edit-mode #addCategory, body.edit-mode #editProjectTitle, body.edit-mode .node-edit,
body.edit-mode .addProjectNode, body.edit-mode .project-delete-btn {
    opacity: 1;
    pointer-events: auto;
}

/* layout */

.availableData {
    /* position: fixed; 
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;*/
    /* background-color: rgb(106 114 129 / 86%); 
    padding: 16px;*/
    opacity: 0;
    pointer-events: none;
    align-items: flex-start;
    justify-content: center;
    /* z-index: 1000; */
    flex-direction: column;
    flex-basis: 100%;
    padding: 0 10vh;
}

    .availableData.active {
        opacity: 1;
        pointer-events: all;
    }

body {
    font-family: var(--font-family);
    background-image: linear-gradient( to bottom, rgba(118, 149, 175, 1) 0%, rgba(118, 149, 175, 0.25) 20%, rgba(118, 149, 175, 0.0) 60%), url(/pwa/css/images/billie.v3.background.app.jpg);
    background-position: center bottom;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.login-logo {
    width: 100%;
    aspect-ratio: 1 / 1;
}

    .login-logo img {
        width: 100%;
    }

#loginPanel {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding-right: 40vw;
    padding-left: 40vw;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
    background-image: url(/pwa/css/images/billie.v3.background.jpg);
    background-size: cover;
    background-attachment: fixed;
    background-position: bottom center;
    padding-top: 35vh;
    padding-bottom: 35vh;
}

#logo {
    position: fixed;
    z-index: 4;
    width: 7vw;
    height: 7vw;
    top: -32px;
    left: 64px;
}

    #logo img {
        width: 100%;
    }

#header {
    display: block;
    position: fixed;
    min-height: 10vh;
    max-height: 10vh;
    min-width: 100%;
    z-index: 3;
    max-width: 100%;
    background-image: linear-gradient( to bottom, rgba(118, 149, 175, 1) 0%, rgba(118, 149, 175, 0.25) 20%, rgba(118, 149, 175, 0.0) 60%), url(/pwa/css/images/billie.v3.background.app.jpg);
    background-size: cover;
    background-position: center bottom;
    background-attachment: fixed;
    isolation: isolate;
    padding-top: 16px;
}

.header-primary, .header-secondary {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    height: 5vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 24px;
    z-index: 2;
}

.header-secondary {
    height: 4vh;
    z-index: 1;
    margin-top: 1vh;
}

.header-nav, .header-primary-mode {
    display: flex;
    position: absolute;
    height: inherit;
    gap: 8px;
}

.header-mode {
    display: block;
}

.header-primary-mode {
    left: 35vw;
}

.header-year {
    display: block;
}

.header-primary-year {
    left: 15vw;
    font-weight: var(--font-bold);
}

.category-header {
    display: grid;
    align-items: center;
    justify-content: flex-start;
    padding: 16px;
    grid-template-columns: 6fr 1fr 1fr 1fr;
    position: sticky;
    top: -16px;
    z-index: 3;
    background-image: linear-gradient( to bottom, rgba(118, 149, 175, 1) 0%, rgba(118, 149, 175, 0.25) 20%, rgba(118, 149, 175, 0.0) 60%), url(/pwa/css/images/billie.v3.background.app.jpg);
    background-size: cover;
    background-position: center bottom;
    background-attachment: fixed;
    isolation: isolate;
}

.category-value-item {
    font-size: 0.75rem;
    display: block;
    padding-bottom: 3px;
    margin-bottom: 3px;
    border-bottom: 1px solid #000;
}

.company-dropdown {
    position: absolute;
    background: #fff;
    border: 1px solid #ccc;
    z-index: 1000;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

    .company-dropdown.hidden {
        display: none;
    }

    .company-dropdown .item {
        padding: 8px 12px;
        cursor: pointer;
    }

        .company-dropdown .item:hover {
            background: #f2f2f2;
        }

.invoice-number-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
}

.button.subtle {
    opacity: 0.7;
    font-size: 12px;
}

#customInvoiceNumberRow.hidden {
    display: none;
}

.financesStatisticsHeader {
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: absolute;
    bottom: 16px;
    left: 80px;
    right: 80px;
}


#title {
    position: fixed;
    top: 10vh;
    min-width: 100%;
    max-width: 100%;
    padding: 0 80px;
    /* padding-top: 7vh; */
    min-height: 20vh;
    max-height: 20vh;
    display: block;
    align-items: center;
    justify-content: space-between;
    z-index: 2;
}

#financesTotals h1 {
    font-size: 3rem;
    font-weight: var(--font-semi);
}

.semi {
    align-items: center;
    font-weight: var(--font-semi);
}

#titleFilters {
    display: flex;
    align-items: flex-end;
    /* height: 4vh; */
    /* min-width: 100%; */
    /* max-width: 100%; */
    gap: 16px;
    position: absolute;
    bottom: 16px;
    right: 80px;
    flex-direction: column;
}

#titleFiltersButtons {
    height: inherit;
    gap: 8px;
}

    #titleFiltersButtons .button {
        margin-right: 5px;
    }

.upload {
    position: fixed;
    z-index: 100;
    top: 7vh;
    left: 15vw;
    font-weight: var(--font-bold);
    padding: 8px 16px;
    transform-origin: top left;
    transition: 0.3s ease-in-out all;
}

    .upload:hover {
        box-shadow: var(--shadow-ui);
        transform: scale(1.05);
    }

/*#userMenu {
    position: fixed;
    z-index: 10;
    top: 7vh;
    left: 37vw;
    display: flex;
    height: 4vh;
    align-items: center;
    gap: 16px;
}*/


/*#modal-content {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transform: scale(1.2);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    backdrop-filter: blur(50px);
    z-index: 200;
}

    #modal-content.visible {
        opacity: 1;
        transform: scale(1);
        pointer-events: all;
    }*/

.modal-window {
    position: fixed;
    top: 5vh;
    bottom: 5vh;
    left: 12vw;
    right: 12vw;
    padding: 32px;
    display: grid;
    grid-template-rows: 1fr 82% 5vh;
}

.close-modal {
    position: absolute;
    top: 0;
    right: 0;
    padding: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-header {
    max-width: 80%;
    padding-bottom: 16px;
}

.modal-footer {
    display: flex;
    height: inherit;
    gap: 8px;
}

.billie-whisper {
    letter-spacing: 1px;
    font-size: 1rem;
    display: block;
}

.loggedUserName {
    font-size: 0.85rem;
    display: block;
    position: fixed;
    bottom: 8px;
    left: 8px;
    /* right: 3vw; */
    /* backdrop-filter: blur(100px); */
    padding: 16px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background-color: rgba(var(--secondary-ui));
    gap: 16px;
}

.billie-chat {
    margin-top: 8px;
    max-width: 300px;
}

.billie-chat-log {
    display: none;
    margin-top: 8px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    max-height: 350px;
    overflow: auto;
    color: #fff;
    font-size: 0.85rem;
}

.billie-chat-msg {
    margin: 6px 0;
    line-height: 1.25;
}

    .billie-chat-msg.user {
        opacity: 0.95;
    }

    .billie-chat-msg.bot {
        opacity: 0.95;
    }

.billie-chat-input {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

#billieChatText {
    flex: 1;
    padding: 10px 12px;
}

.billie-assistant {
    position: fixed;
    bottom: 16px;
    left: 16px;
    z-index: 9999;
    font-family: inherit;
    pointer-events: all;
}

    .billie-assistant.collapsed {
        pointer-events: none;
    }

.assistant-bubble {
    position: fixed;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(var(--primary-ui)), rgba(var(--secondary-ui)));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    bottom: 16px;
    left: 16px;
    z-index: 100;
}

    .assistant-bubble:hover {
        transform: scale(1.05);
    }

.assistant-panel {
    width: 360px;
    height: 500px;
    background: rgba(var(--secondary-ui));
    /* border-radius: 20px; */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
    padding: 16px;
    justify-content: flex-end;
}

.assistant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #fff;
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
}

.billie-assistant.open .assistant-panel {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.billie-assistant.open .assistant-bubble {
    display: none;
}

.modal-vertical-spacer {
    width: 1px;
    height: inherit;
    background-color: rgb(var(--primary-ui));
}

.modal-properties {
    display: flex;
    gap: 16px;
    flex-direction: column;
    position: relative;
}

.properties-options {
    display: flex;
    height: inherit;
    gap: 8px;
}

.properties-row {
    display: grid;
    grid-template-columns: 2fr 5fr;
    align-items: center;
    height: 4vh;
    gap: 16px;
}

.login-row {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    height: 4vh;
    gap: 16px;
}

#main {
    display: block;
    top: 30vh;
    position: fixed;
    left: 0;
    right: 0;
    overflow-y: auto;
    padding: 16px 64px;
    bottom: 0;
    border-top: 1px solid #000;
}

#itemsList {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.subcategories {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.category-item {
    background-color: #fff;
    padding: 32px;
}

.small {
    padding: 16px 32px;
}

/*.subcategory-item {
    display: flex;
    align-items: center;
    padding-top: 16px;
    border-top: solid 1px rgb(var(--background-primary));
}*/

.subcategory-item {
    display: grid;
    align-items: center;
    padding-top: 16px;
    /*border-top: solid 1px rgb(var(--background-primary));*/
    grid-template-columns: 0.5fr 3fr 0.5fr 1fr 1fr 1fr 1fr;
    position: relative;
    /*top: 84px;*/
    z-index: 1;
}

    .subcategory-item.is-sticky {
        position: sticky;
        top: 163px;
        z-index: 2;
        /*optional polish */
        background: inherit;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        background-color: #fff !important;
    }

.budget {
    grid-template-columns: 0.5fr 3fr 0.5fr 1fr 1fr 1fr 1fr;
}

.real {
    grid-template-columns: 0.5fr 3fr 0.5fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
}

.subcategory-header {
    font-size: 0.85rem;
    border-top: none;
    position: sticky;
    /*top: -16px;*/
    top: 63px;
    background-color: rgb(var(--background-primary));
    z-index: 3;
    background-image: linear-gradient( to bottom, rgba(118, 149, 175, 1) 0%, rgba(118, 149, 175, 0.25) 20%, rgba(118, 149, 175, 0.0) 60%), url(/pwa/css/images/billie.v3.background.app.jpg);
    background-size: cover;
    background-position: center bottom;
    background-attachment: fixed;
    isolation: isolate;
}

.sub-code {
    flex: 0.5;
}

.sub-name {
    flex: 3.0;
}

.sub-amount {
    flex: 0.5;
}

.sub-price {
    flex: 1;
}

.sub-code, .sub-name, .sub-amount, .sub-price, .code-name-group, .budget-group, .realised-group {
    padding: 0 8px;
    position: relative;
}

.group-header .code-name-group {
    flex: 3.5;
}

.group-header .budget-group {
    grid-column: 3 / 6;
    text-align: center;
    background-color: rgb(var(--primary-ui));
}

.group-header .realised-group {
    grid-column: 6 / 8;
    text-align: center;
    background-color: rgb(var(--secondary-ui));
}

.group-header .realised-group-2 {
    grid-column: 6 / 8;
    text-align: center;
    background-color: rgb(var(--secondary-ui));
}

.group-header .payment-group {
    grid-column: 8 / 11;
    text-align: center;
    background-color: rgb(var(--primary-alert));
}

.subcategory-partial-value, .subcategory-partial-paid-value {
    padding-top: 16px;
    font-size: 0.85rem;
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
}

    .subcategory-partial-value label, .subcategory-partial-paid-value label {
        margin-right: 16px;
    }

    .subcategory-partial-value input, .subcategory-partial-paid-value input {
        font-size: 0.85rem;
    }

#resetIntro {
    position: fixed;
    bottom: 0;
    left: 0;
    padding: 16px;
}

.billie-alert {
    position: fixed;
    inset: 0;
    transform: scale(1.1);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    backdrop-filter: blur(5px);
    background-color: rgba(var(--modal-background));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
}

#archive {
    position: relative;
}

    #archive .archiveDropdown {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 6px;
        min-width: 100%;
    }

    #archive:hover .archiveDropdown {
        display: block;
    }


    #archive .archiveDropdown .yearOption:hover {
        background: rgb(var(--primary-alert)) !important;
    }

.yearOption {
    padding: 8px 16px;
}

/* ============ Billie Gift Overlay ============ */

.billieGiftOverlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    place-items: center;
    padding: 24px;
    font-family: var(--font, 'Poppins', sans-serif);
}

    .billieGiftOverlay.is-open {
        display: grid;
    }

/* Backdrop – soft winter daylight */
.billieGiftBackdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 10%, rgba(255,255,255,0.7), rgba(255,255,255,0.35) 40%, rgba(220,220,220,0.4) 100%), linear-gradient(180deg, #f5f2ec, #eae6de);
    backdrop-filter: blur(4px);
}

/* Card – paper letter */
.billieGiftCard {
    position: relative;
    width: min(900px, 100%);
    display: grid;
    grid-template-columns: 360px 1fr;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(180deg, #fbfaf7, #f1eee7);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 30px 80px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.6);
    color: #2b2b2b;
}

@media (max-width: 900px) {
    .billieGiftCard {
        grid-template-columns: 1fr;
    }
}

/* Left wrapped panel */
.billieGiftWrap {
    position: relative;
    padding: 28px;
    display: grid;
    place-items: center;
    background: repeating-linear-gradient( 45deg, rgba(255,255,255,0.35), rgba(255,255,255,0.35) 6px, rgba(0,0,0,0.02) 6px, rgba(0,0,0,0.02) 12px ), linear-gradient(180deg, #f7f4ee, #ede9df);
}

/* Branding */
.billieGiftBrand {
    text-align: center;
    line-height: 1.1;
}

.billieGiftBrandName {
    font-size: 40px;
    font-weight: 700;
    color: #2a2a2a;
}

.billieGiftBrandTag {
    margin-top: 8px;
    font-size: 12px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #6a6a6a;
}

/* Ribbon */
:root {
    --gift-red: #b0182b;
}

.billieGiftBow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.95;
    animation: billieGiftBreath 3.6s ease-in-out infinite;
}

@keyframes billieGiftBreath {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.015);
    }
}

.billieGiftRibbonVertical,
.billieGiftRibbonHorizontal {
    background-color: var(--gift-red);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14);
}

.billieGiftRibbonVertical {
    position: absolute;
    top: -30px;
    bottom: -30px;
    left: 50%;
    width: 34px;
    transform: translateX(-50%);
}

.billieGiftRibbonHorizontal {
    position: absolute;
    left: -30px;
    right: -30px;
    top: 50%;
    height: 34px;
    transform: translateY(-50%);
}

.billieGiftBowKnot,
.billieGiftBowLoop {
    background-color: var(--gift-red);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14), 0 18px 40px rgba(0,0,0,0.25);
}

.billieGiftBowKnot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 42px;
    height: 34px;
    transform: translate(-50%, -50%);
    border-radius: 10px;
}

.billieGiftBowLoop {
    position: absolute;
    top: 50%;
    width: 88px;
    height: 58px;
    transform: translateY(-50%);
    border-radius: 18px;
}

    .billieGiftBowLoop.left {
        left: calc(50% - 110px);
        transform: translateY(-50%) rotate(-10deg);
    }

    .billieGiftBowLoop.right {
        right: calc(50% - 110px);
        transform: translateY(-50%) rotate(10deg);
    }

/* Text panel */
.billieGiftText {
    padding: 28px;
}

.billieGiftTitle {
    font-size: 18px;
    font-weight: 650;
    margin-bottom: 14px;
    color: #3a3a3a;
}

.billieGiftBody {
    font-size: 14px;
    line-height: 1.55;
    color: #444;
}

/* Actions */
.billieGiftActions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.billieGiftBtn {
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.12);
    font-weight: 600;
    color: #2a2a2a;
}

    .billieGiftBtn.primary {
        background: rgba(176,24,43,0.15);
        border-color: rgba(176,24,43,0.45);
        color: #6b0f1d;
    }

/* Unwrap */
.billieGiftOverlay.is-unwrapped .billieGiftBow {
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 420ms ease, transform 420ms ease;
}

/* modal windows */

.billie-modal-layer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transform: scale(1.2);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    backdrop-filter: blur(150px);
}

    .billie-modal-layer.visible {
        opacity: 1;
        transform: scale(1);
        pointer-events: all;
    }

        /*.billie-modal-layer::before {
        content: "";
        position: absolute;
        inset: 0;
        backdrop-filter: blur(6px);
        background: rgba(0,0,0,.25);
    }*/

        /* modal window inside */
        /*.billie-modal-layer > .modal-window {
        position: relative;
        margin: auto;
        transform: translateY(20px) scale(.98);
        transition: transform .25s ease;
    }*/

        .billie-modal-layer.visible > .modal-window {
            transform: translateY(0) scale(1);
        }

#modal-content {
    z-index: 1000;
}

#second-modal-content {
    z-index: 1100;
}

#third-modal-content {
    z-index: 1200;
}

#fourth-modal-content {
    z-index: 1300;
}

.invoiceSubcategoriesHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-right: 16px;
}

.subcategory-hidden {
    display: none !important;
}

.app-menu {
    position: fixed;
    inset: 0; /* top right bottom left = 0 */
    backdrop-filter: blur(150px);
    padding: 20vh 10vh;
    z-index: 100;
    display: flex;
    gap: 5vw;
    /* CLOSED STATE */
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
    visibility: hidden;
    transition: opacity .45s ease, transform .45s ease, visibility 0s linear .45s;
    justify-content: center;
    flex-wrap: wrap;
}

    /* OPEN STATE */
    .app-menu.is-open {
        opacity: 1;
        transform: scale(1);
        pointer-events: auto;
        visibility: visible;
        transition: opacity .45s ease, transform .45s ease;
    }

/* SECTION */
.menu-section {
}

/* SECTION TITLE */
.menu-section-title {
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 8px 16px;
    color: rgba(var(--primary-ui));
}

/* ITEMS */
.menu-item {
    padding: 8px 16px;
    cursor: pointer;
    transition: background 0.75s ease-in-out;
    display: block;
    text-decoration: none;
    color: #fff;
}

    .menu-item:hover {
        background: rgba(var(--primary-hover));
    }

.appMenuHeader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    /* padding: 5%; */
    max-height: 10vh;
}

    .appMenuHeader img {
        height: 15vh;
    }

#closeAppMenu {
    position: fixed;
    right: 24px;
    top: 24px;
}

.appMenuFooter {
    position: fixed;
    font-size: 0.85rem;
    left: 0;
    right: 0;
    bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#tenantSelect {
    display: flex;
    gap: 16px;
}

.tenant-option {
    border-radius: 10px;
    background-color: #fff;
    padding: 8px 16px;
}

.assistant-bubble.glow {
    box-shadow: 0 0 25px rgba(76,175,80,0.8);
}

#invoiceProperties {
    display: flex;
    flex-direction: column;
    gap: 16px;
    /*height: 56vh;
    overflow: scroll;*/
}

/* ========== Standard Desktop ========== */
@media (max-width: 1600px) {

    html {
        font-size: 12px;
    }

    #logo {
        width: 9vw;
        height: 9vw;
    }

    .header-primary-mode {
        left: 28vw;
    }

    .button {
        padding: 8px 10px;
    }

    #header {
        padding-top: 8px;
    }

    .financesStatisticsHeader {
        gap: 20px;
    }

    .entries-number {
        height: 20px;
        width: 20px;
        right: 5%;
    }

    .subcategory-header {
        top: 54px;
    }

    .real {
        grid-template-columns: 0.75fr 3fr 0.5fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    }

    .project-icon {
        height: 20px;
        width: 20px;
        left: -8%;
    }

    #invoiceProperties {
        display: flex;
        flex-direction: column;
        gap: 16px;
        height: 56vh;
        overflow: scroll;
    }

    .properties-row {
        margin-right: 16px;
    }

    .modal-main {
        gap: 0 !important;
    }

    #invoiceSubcategories {
        padding-left: 16px;
    }

    .subcategory-modal-item {
        display: flex;
        height: 4vh;
        align-items: center;
    }
}
