﻿﻿html, body {
    margin: 0;
    display: flex;
    flex-direction: column;
}

    body.modal-open {
        padding-right: 0 !important;
    }

main {
    flex: 1 0 auto; /* allows it to grow and fill space */
    margin-bottom: 60px;
}

footer {
    flex-shrink: 0; /* prevent it from shrinking */
}

.pointer {
    cursor: pointer;
}

#editor {
    height: 150px;
}

.z-max {
    z-index: 9999;
}

.autofill-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 180px;
    z-index: 1000;
    border: 1px solid #ccc;
    background-color: #fff;
    white-space: nowrap;
    overflow-y: auto;
    display: inline-block;
}

.autofill-item {
    padding: 5px 10px;
    margin: 2px 0;
    border: 1px solid transparent;
    color: #CCC;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

    .autofill-item:hover {
        background-color: #CCC;
        color: white;
        border-color: #CCC;
        cursor: pointer;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    }

.btn-image {
    display: inline-flex;
    flex-shrink: 0;
    white-space: nowrap;
    align-items: center;
}

    .btn-image img {
        max-height: 32px;
        min-width: 40px;
    }

    .btn-image span + img {
        padding-left: 10px;
    }

    .btn-image img + span {
        padding-left: 10px;
    }

.progress-bar {
    transition: width .6s ease;
}
/* Aufgaben section paragraphs */
section.card:has(.fa-list-check.text-warning) small.text-body-secondary p {
    margin-bottom: 0 !important;
}

/* Notizen section paragraphs */
section.card:has(.fa-note-sticky.text-info) small.text-body-secondary p {
    margin-bottom: 0 !important;
}

.task-card {
    transition: box-shadow .15s ease, transform .15s ease;
}

    .task-card:hover {
        transform: translateY(-1px);
        box-shadow: 0 .35rem .8rem rgba(0,0,0,.06);
    }

.pin-toggle .fa-thumbtack.rotate-95 {
    transform: rotate(95deg);
}

.pin-toggle .fa-thumbtack {
    transition: transform .2s ease, opacity .2s ease;
}

.pin-toggle:hover .fa-thumbtack {
    opacity: 1;
    transform: rotate(95deg);
}

.meta > li {
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
}

/* Clamp long descriptions to keep cards tidy */
.task-card .desc {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.doc-drop.dragging {
    border-color: var(--bs-primary);
    background: rgba(13,110,253,.06);
}

.bg-hypo-dark {
    background: #030F0F;
}

.bg-hypo-darkgreen {
    background: #042222;
}

.bg-hypo-lightgreen {
    background: #03624C;
}

.bg-hypo-green {
    background: #2EC196;
}

.bg-hypo-stronggreen {
    background: #00DF82;
}

.text-hypo {
    color: #00DF82 !important;
}

.text-hypo-dark {
    color: #030F0F !important;
}

html.sidebar-light:not(.dark) ul.nav-main li a {
    color: #030F0F !important;
}

.link-hypo-primary {
    color: #030F0F !important;
    text-decoration: underline !important;
}

.tm-box {
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
}

.card-home-1 {
    max-height: 350px !important;
    overflow-y: auto;
}

.card-home {
    max-height: 450px;
    overflow-y: auto;
}

.tm-icon-photo {
    position: absolute;
    top: 50%;
    left: 140px;
    width: 55px;
    margin-top: -28px;
    margin-left: -28px;
    z-index: 2;
}

.second-modal {
    z-index: 1160 !important;
}

    .second-modal + .modal-backdrop {
        z-index: 1150 !important;
    }
/* tune these to your layout */
:root {
    --navbar-h: 64px; /* fallback */
    --safe-area-top: env(safe-area-inset-top, 0px);
    --sidebar-w: 300px; /* expanded sidebar width */
    --sidebar-w-collapsed: 73px; /* collapsed sidebar width */
}

/* base look */
#customerHeaderWrap {
    z-index: 1000;
}

/* Desktop: sidebar expanded */
@media (min-width: 768px) {
    html.fixed #customerHeaderWrap {
        top: var(--navbar-h);
        left: var(--sidebar-w);
        width: calc(100% - var(--sidebar-w));
    }
    /* Sidebar collapsed */
    html.fixed.sidebar-left-collapsed #customerHeaderWrap {
        left: var(--sidebar-w-collapsed);
        width: calc(100% - var(--sidebar-w-collapsed));
    }
}

/* Mobile: header spans full width under navbar */
@media (max-width: 767.98px) {
    #customerHeaderWrap {
        top: var(--navbar-h);
        left: 0;
        width: 100%;
    }
}

@media (max-width: 987px) {
    .tm-icon-photo {
        left: 20px !important;
    }
}

.tm-box p {
    margin-bottom: 0 !important
}

.tasknotification p {
    margin-bottom: 0 !important
}

.my-nav li {
    transition: background-color .15s ease;
}

    .my-nav li:hover {
        background-color: #EAEAEA;
        cursor: pointer;
    }
