@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter.ttf');
}

:root {
    --clr-primary: var(--bs-blue);
    --clr-primary-10: #e6f0ff;

    --clr-success-10: #e9f7f1;
    --clr-success-20: #d3efe3;
    --clr-success-30: #bde7d5;
    --clr-success: #23ae73;
    --clr-success-110: #209d68;
    --clr-success-120: #1c8b5c;
    --clr-success-130: #197a51;

    --clr-light: #eaeef2;

    --font-primary: 'Inter', sans-serif;

    --bs-body-font-size: .875rem; 
    --bs-border-radius: 0;
    --bs-border-radius-sm: 0;

    --bs-secondary-color: #676f7e;
    --bs-app-border-clr: #ccc;

    --clr-offerte: var(--bs-green);
    --clr-inmeten: var(--bs-purple);
    --clr-werkvoorbereiding: var(--bs-blue);
    --clr-werkplaats-montage: var(--bs-pink);
    --clr-opleveren: var(--bs-yellow);

    --transition-duration: .15s;
    --transition-timing-function: ease-in-out;
}

body { background-color: var(--clr-light); font-family: var(--font-primary); }

.media-grid-container.dragover {
    border: 2px dashed var(--clr-primary);
    background-color: var(--clr-primary-10);
}

.upload-item {
    list-style: none;
}

.upload-area {
    padding: 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-duration) var(--transition-timing-function);
    background-color: transparent;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.upload-area:hover {
    background-color: var(--clr-primary-10);
}

.upload-area i {
    font-size: 1.5rem;
    color: var(--bs-secondary-color);
}

.upload-area span {
    font-size: 0.9rem;
    color: var(--bs-secondary-color);
}

.dropzone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-duration) var(--transition-timing-function);
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.dropzone:hover {
    border-color: var(--clr-primary);
    background-color: var(--clr-primary-10);
}

.dropzone.dragover {
    border-color: var(--clr-primary);
    background-color: var(--clr-primary-10);
}

/*** ---------- Header ---------- ***/
header { z-index: 100; }
header .header__top { padding-block: 12px; }
header .header__top .container { display: flex; justify-content: space-between; align-items: center; }  
header .site-logo { width: 125px; margin-right: 20px; }
header .header__main { background-color: #fff; }

/*** ---------- User Card ---------- ***/
.user-card { display: flex; align-items: center; gap: 0.5rem; }
.user-card img { object-fit: cover; border: 2px solid var(--bs-border-color); }
.user-card .text-sm { font-size: 0.875rem; line-height: 1.2; }
.user-card .text-xs { font-size: 0.75rem; line-height: 1.2; }

/*** ---------- Navbar ---------- ***/
.navbar .nav-item.dropdown { display: grid; grid-template-columns: 1fr auto; }
.navbar .nav-item .dropdown-toggle { cursor: pointer; display: grid; place-items: center; min-width: 40px; height: 100%; }
.navbar .nav-item .dropdown-toggle::after { display: none; }
.navbar .nav-item.dropdown .dropdown-menu { grid-column: span 2; padding: 8px; border-top-left-radius: 0; border-top-right-radius: 0; border: none; }
.navbar .nav-item.dropdown .dropdown-item { border-radius: var(--bs-border-radius); }

@media(max-width: 991.98px) {
    
}

@media(min-width: 992px) {
    .navbar { --bs-navbar-padding-y: 0; }
    .navbar .nav-item .nav-link { --bs-nav-link-padding-y: 1rem; }
    .navbar .nav-item .dropdown-menu .nav-link { --bs-nav-link-padding-y: .5rem; }
    .navbar .nav-item .dropdown-toggle { justify-content: start; min-width: 0; padding-right: .5rem; }
    .navbar .nav-item.dropdown .dropdown-menu { margin-top: 0px; top: 100%; }
    .navbar .nav-item.dropdown .dropdown-menu { display: block; opacity: 0; pointer-events: none; transition: opacity var(--transition-duration) var(--transition-timing-function); }
    .navbar .nav-item.dropdown:hover .dropdown-menu { opacity: 1; pointer-events: all; }
}

/*** ---------- Toolbar ---------- ***/
.toolbar .container, .toolbar .container-fluid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; }

/*** ---------- Dropdown ---------- ***/
.dropdown-menu { --bs-dropdown-link-active-color: var(--bs-dropdown-link-active-color); --bs-dropdown-link-active-bg: var(--bs-dropdown-link-hover-bg); }
.dropdown-item { transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out, opacity .15s ease-in-out; }


/*** ---------- Buttons / Links ---------- ***/
.btn { --bs-btn-padding-x: 1.25rem; --bs-btn-border-radius: var(--bs-border-radius); font-weight: 500; display: inline-flex; justify-content: center; align-items: center; column-gap: 10px; min-height: 43px; transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out, opacity .15s ease-in-out; }
.btn.btn-sm { min-height: 38px; --bs-btn-padding-x: 1rem; }
.btn.btn-lg { --bs-btn-padding-y: 0.5rem; --bs-btn-padding-x: 1.75rem; --bs-btn-font-size: 1rem; min-height: 50px; }

.btn.btn-square { --bs-btn-padding-x: 0; min-width: 43px; }
.btn.btn-sm.btn-square { min-width: 38px; } 
.btn.btn-lg.btn-square { min-width: 50px; } 
.btn.btn-link { --bs-btn-padding-x: 0; text-decoration: none; }

.btn.btn-success { --bs-btn-bg: var(--clr-success); --bs-btn-border-color: var(--clr-success); --bs-btn-hover-bg: var(--clr-success-110); --bs-btn-hover-border-color: var(--clr-success-110); }

.btn.btn-primary { border: none; }


/*** ---------- Forms ---------- ***/
.form-control { padding: .65rem 1.25rem; background-color: #fff; min-height: 43px; box-shadow: none!important; }
.form-control:focus { border-color: var(--bs-border-color); }

.form-control.form-control-lg { min-height: 50px; font-size: 16px; border-radius: var(--bs-border-radius); }
.form-control.form-control-sm { padding: .25rem 1rem; min-height: 38px; }
.form-control.form-control-sm + .input-group-text { font-size: 14px; }  

.form-control::-webkit-file-upload-button { padding: .375rem .75rem; margin: -.7rem -1.3rem; -webkit-margin-end: .75rem; margin-inline-end:.75rem; min-height: 50px; }
.form-control::file-selector-button { padding: .375rem .75rem; margin: -.7rem -1.3rem; -webkit-margin-end: .75rem; margin-inline-end:.75rem; min-height: 50px; }

.form-select { padding: .5rem 1.25rem; min-height: 43px; }
.form-select.form-select-sm { padding: .25rem 1rem; min-height: 32px; }  
.form-select.form-select-lg { min-height: 50px; }  

.media-input-group .image-preview { display: flex; place-items: center; width: 150px; height: 150px; border: 2px dashed var(--bs-app-border-clr); margin-bottom: 10px; padding: 10px; }
.media-input-group .image-preview img { width: 100%; height: 100%; object-fit: contain; }

.quantity { display: flex; align-items: center; column-gap: 1px; justify-content: end; min-width: 200px; }
.quantity .input-group { flex-wrap: nowrap; justify-content: end; }

/*** ---------- Media grid ---------- ***/
.media-grid { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.media-grid > li a { color: var(--bs-body-color); }
.media-grid > li .item { display: flex; flex-direction: column; border-radius: var(--bs-border-radius); transition: border-color .15s ease-in-out; }
.media-grid > li .item.selected,
.media-grid > li .item:hover { border-color: var(--clr-primary); }
.media-grid > li .item__header { display: flex; justify-content: space-between; 
    i:not(.bi-x-lg) { font-size: 1.6rem; }
}
.media-grid > li .item__header [data-bs-toggle] { cursor: pointer; }
.media-grid > li .item--folder { text-decoration: none; display: block; position: relative; border: var(--bs-border-width) solid var(--bs-border-color); padding: 12px; }
.media-grid > li .item--media { aspect-ratio: 1/1; position: relative; border: var(--bs-border-width) solid var(--bs-border-color); position: relative;
    .item__header { padding: 12px 12px 0 12px; z-index: 1; }
    img { width: 100%; height: 100%; object-fit: contain; margin-block: auto; }
    > a { padding-top: 50px; position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
    .item__title { background: hsl(0deg 0% 0% / 10%); padding: 8px 12px; font-size: 12px; color: #000000; text-align: center; word-break: break-word; overflow: hidden; text-overflow: ellipsis; margin-top: auto; z-index: 10; }
} 

/*** ---------- Alert ---------- ***/
.alert-success { --bs-alert-color: #fff; --bs-alert-bg: var(--clr-success); --bs-alert-border-color: var(--clr-success); --bs-alert-link-color: #fff; }

/*** ---------- Cards ---------- ***/
.card { --bs-card-bg: #fff; --bs-card-spacer-y: .75rem; --bs-card-spacer-x: .75rem; --bs-card-border-color: var(--bs-border-color); }

.card .card-toolbar { padding: var(--bs-card-spacer-y) var(--bs-card-spacer-x); padding-bottom: 0; }

.card.card-projects { --bs-card-border-width: 1px; --shadow-clr: var(--bs-gray-600); height: 100%; border: none; border-top: .35rem solid var(--shadow-clr); }
.card.card-projects .card-title { font-size: 14px; font-weight: 600; margin: 0; }
.card.card-projects ul { height: 100%; padding: 0; margin: 0; min-height: 150px; list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.card.card-projects ul li.project { position: relative; display: block; min-height: 45px; padding: 12px; background-color: #f5f5f5; border-left: 3px solid var(--shadow-clr); transition-property: color, background-color, border; transition-duration: var(--transition-duration); transition-timing-function: var(--transition-timing-function); 
    &:hover { background-color: #e8e8e8; }
}
.card.card-projects ul li.project.project-hidden { display: none; }
.card.card-projects ul li.project .drag-handle { cursor: pointer; position: absolute; top: 0; right: 0; bottom: 0; display: grid; place-items: center; }
.card.card-projects ul li.project.project-by--sales { border-color: var(--clr-red); }
.card.card-projects ul li.project.project-by--sales::before { content: 'Project door ontwerper'; display: block; position: absolute; left: 12px; top: .1rem; font-size: 10px; opacity: .75; }
.card.card-projects ul li.project .project-title { font-size: 16px; font-weight: 600; margin: 0 0 3px 0; }
.card.card-projects ul li.project .project-description { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 18px; font-weight: 400; opacity: .75; }
.card.card-projects ul li.project .project-customer { font-size: 13px; line-height: 18px; font-weight: 700; }
.card.card-projects ul li.project .create-date { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; line-height: 18px; font-weight: 400; opacity: .5; }
.card.card-projects ul li.project .create-date span { display: inline-flex; align-items: center; column-gap: 5px; }
.card.card-projects ul li.project .create-date span .bi { font-size: 12px; }
.card.card-projects ul li.project .project-actions { display: flex; justify-content: space-between; align-items: center;
    > div { display: flex; align-items: center; column-gap: 5px; }
}
.card.card-projects ul li.project .project-actions a { border: none; background: transparent; font-size: 13px; color: var(--bs-primary); }
.card.card-projects ul li.project.sortable-ghost { opacity: 1; }
.card.card-projects ul li.project .badge { border-top-left-radius: 0; border-top-right-radius: 0; position: absolute; top: 0; right: 0; }

.card.card-projects.is-status-offerte { --shadow-clr: var(--clr-offerte); }
.card.card-projects.is-status-inmeten { --shadow-clr: var(--clr-inmeten); }
.card.card-projects.is-status-werkvoorbereiding { --shadow-clr: var(--clr-werkvoorbereiding); }
.card.card-projects.is-status-werkplaats-montage { --shadow-clr: var(--clr-werkplaats-montage); }
.card.card-projects.is-status-opleveren { --shadow-clr: var(--clr-opleveren); }

/*** ---------- Sortable ---------- ***/
#drag-handle { cursor: grab; }

/*** ---------- Modal ---------- ***/
.modal { --bs-modal-border-radius: var(--bs-border-radius); --bs-modal-inner-border-radius: var(--bs-border-radius); }

.modal--media-libraby .media-grid > li .item__header .dropdown { display: none; }

/*** ---------- Tables ---------- ***/
.table > :not(caption) > * > * { padding: .5rem 1rem; }
table th { font-size: 14px; }
.table tr { vertical-align: middle; }
.table tr.has-value td { background: #e2ffdc; }

.table.table-completion-point { --img-size: 150px;
    .completion-point__controls { display: flex; flex-direction: column; align-items: start; gap: .5rem; }
    .completion-point__info { display: flex; padding: .5rem 1rem; 
        .completion-point__description { display: flex; flex-direction: column; width: 100%; 
            textarea { flex-grow: 1; }
            .completion-point__comment { margin: .5rem 0 0 1rem; }
        }
    }
    .completion-point__image {
        a { display: block; width: var(--img-size); height: var(--img-size); 
            img { width: 100%; height: 100%; }
        } 
        input { display: none; }
        label { width: var(--img-size); height: var(--img-size); display: flex; flex-direction: column; justify-content: center; padding: .25rem; background-color: var(--bs-body-bg); border: var(--bs-border-width) solid var(--bs-border-color); }
    }
}

@media (max-width: 767.98px) { 
    .table.table-completion-point { 
        thead + thead { display: none; }
        .completion-point__controls { flex-direction: row; align-items: stretch; 
            select { max-width: 150px; }
        }
        tbody { display: block;
            .completion-point { display: flex; flex-direction: column; }
        }
    }

    .table.table-orders { display: block;
        thead { display: none; }
        tbody { display: block; 
            tr { display: block; 
                td { display: block;  width: 100%; }

                &.order-item { display: grid; grid-template-columns: 1fr auto auto;
                    td { border: none; }
                    td[data-title]::before { content: attr(data-title); display: inline-block; font-weight: 700; font-size: 12px; }
                    .order-item__description { grid-column: span 3; padding-top: 0; border-bottom: 1px solid var(--bs-border-color); }
                    .order-item__status { order: -1; grid-column: span 3; }
                    .order-item__price, .order-item__quantity { padding-right: 0; }
                }
            }
        }
    }
}

@media (max-width: 575.98px) { 
   .table.table-completion-point { --img-size: 100px; }
}

/*** ---------- Cards ---------- ***/
.quote-line-item.has-value .card,
.material-item.has-value .card { 
    background: #e2ffdc; 
    border-color: #28a745; 
}

@media (max-width: 767.98px) {
    .table-responsive-mobile table,
    .table-responsive-mobile thead,
    .table-responsive-mobile tbody,
    .table-responsive-mobile th,
    .table-responsive-mobile td,
    .table-responsive-mobile tr {
        display: block;
    }
    
    .table-responsive-mobile thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .table-responsive-mobile tbody tr,
    .table-responsive-mobile .table-striped > tbody > tr:nth-of-type(odd),
    .table-responsive-mobile .table-striped > tbody > tr:nth-of-type(even) {
        background: white !important;
        border: 1px solid #ddd;
        border-radius: 0.375rem;
        margin-bottom: 1rem;
        padding: 1rem;
        box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    }
    
    .table-responsive-mobile tbody tr:has(.fs-6),
    .table-responsive-mobile tbody tr .fs-6,
    .table-responsive-mobile tbody td.fs-6,
    .table-responsive-mobile tbody tr td[colspan] {
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        margin: 1.5rem 0 0.5rem 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        font-weight: 600 !important;
        font-size: 1.1rem !important;
    }
    
    .table-responsive-mobile tr.has-value {
        background: #e2ffdc !important;
        border-color: #28a745;
    }
    
    .table-responsive-mobile td {
        border: none;
        position: relative;
        padding: 0.5rem 0;
        text-align: left !important;
        background-color: transparent;
        box-shadow: none;
    }
    
    .table-responsive-mobile td.material-name,
    .table-responsive-mobile td.material-description,
    .table-responsive-mobile td.quote_line-description {
        padding: 0!important;
    }
    
    .table-responsive-mobile .quantity {
        justify-content: flex-start;
        text-align: left;
    }

    .table-responsive-mobile .quantity .input-group {
        justify-content: start;
    }
    
    .table-responsive-mobile td:before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 0.875rem;
        color: #6c757d;
        display: block;
        margin-bottom: 0.25rem;
        text-align: left;
    }
    
    .table-responsive-mobile td[data-label="Opmerking"]:before {
        display: none;
    }
    
    .table-responsive-mobile td[data-label="Opmerking"]:empty {
        display: none;
    }

    .table-responsive-mobile tr.has-value td {
        background: transparent!important;
    }
}

.table .category-title { font-size: 1.125rem; background-color: var(--bs-border-color); }

.table td:has([type="text"], textarea, .quantity) { padding: 0; }
.table td :is([type="text"], textarea, .quantity input) { border: none; background: transparent; }  

.table td.price { text-align: right; }

.projects-overview { --gc: 1; }
.projects-overview .container-fluid { display: grid; grid-template-columns: repeat(var(--gc), minmax(0, 1fr)); gap: 12px; }
.projects-overview.projects-visible-all li.project.project-hidden { display: block!important; background-color: #f7eded; }

@media (min-width: 576px) { 
    .projects-overview { --gc: 2; }
}

@media (min-width: 768px) {
    .projects-overview { --gc: 3; }
}

@media (min-width: 992px) {
    .projects-overview { --gc: 4; }
}

@media (min-width: 1200px) {
    .projects-overview { --gc: 5; }
}

/*** ---------- Body ---------- ***/
.body .container { background-color: #fff; padding-block: 2rem; }

@media (min-width: 992px) {
    .body .container { padding: 2rem; }
}

@media (min-width: 1400px) {
    .body .container { padding: 4rem; }
}

/*** ---------- Dropzone ---------- ***/
#dropzone { border: 2px dashed var(--bs-success); border-radius: var(--bs-border-radius); padding: 40px 20px; text-align: center; cursor: pointer; background: var(--clr-success-10); color: var(--bs-success); transition: background-color 0.3s ease; }
#dropzone p { margin: 0; }
#fileList { max-height: 250px; overflow-y: auto; }

.select2 .select2-selection,
.select2 .select2-selection__rendered {
    min-height: 43px;
}

.select2 .select2-selection {
    padding: .5rem 1rem;
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
}

.select2 .select2-selection .select2-selection__arrow {
    top: 8px;
    right: 8px;
}

.sticky-bar { background-color: var(--clr-light); padding-top: 10px; padding-bottom: 10px; position: sticky; z-index: 10; }
.sticky-bar.sticky-bar--bottom { bottom: 0; }
.sticky-bar .container { display: flex; justify-content: end; }  

.form-navigation {
    position: fixed;
    background: var(--clr-light);
    top: 0;
    left: 0;
    height: 100%;
    font-size: 12px;
    padding: 65px 10px 10px;
    overflow-y: scroll;
    z-index: 50;
    box-shadow: inset -2px 0 0 #ccc;
}

.form-navigation a {
    text-decoration: none;
    color: inherit;
}

.form-navigation a span {
    display: inline-block;
    background: #ffffff;
    width: 15px;
    font-weight: 500;
    border-radius: 3px;
    border-bottom: 1px solid #bcbcbc;
    text-align: center;
}

.form-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.form-navigation ul li {
    position: relative;
    margin-left: 5px;
    padding: 1px 0;
}

.form-navigation ul li.active:after {
    position: absolute;
    content: ' ';
    background: #3a4550;
    width: 2px;
    height: 22px;
    top: 0;
    right: -10px;
}

.form-navigation ul li ul {
    margin-left: 5px;
}

@media (min-width: 992px) and (max-width: 1499.98px) {
    body:has(main.materials, .form-navigation) .container { padding-left: 15rem; }
}

@media (min-width: 1500px) and (max-width: 1699.98px) {
    body:has(main.materials, .form-navigation) .container { padding-left: 5rem; }
}

.tasks-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    max-width: calc(100vw - 20px);
    background: #fff;
    border-left: 1px solid #ccc;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 999;
    display: flex;
    flex-direction: column;
}

@media (max-width: 400px) {
    .tasks-panel {
        width: calc(100vw - 20px);
        right: calc(-100vw + 20px);
    }
    
    .tasks-panel.open {
        right: 10px;
    }
}

.tasks-panel.open {
    right: 0;
}

@media (min-width: 768px) {
    .tasks-panel:hover:not(.open) {
        right: 0;
    }
}

@media (max-width: 767.98px) {
    .tasks-panel:not(.open) {
        right: calc(-100vw + 20px) !important;
    }
}

.tasks-panel-handler {
    position: absolute;
    left: -132.5px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: right center;
    background: #fff;
    color: #333;
    padding: 10px 20px;
    border: 1px solid #ccc;
    border-bottom: none;
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;
}

.tasks-panel-handler span {
    background: #0d6efd;
    display: inline-block;
    width: 20px;
    margin-left: 5px;
    text-align: center;
    color: #fff;
    border-radius: 100px;
}

.tasks-panel-head {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tasks-panel-head strong {
    font-size: 17px;
}

.tasks-panel-head strong span {
    display: inline-block;
    background: #0d6efd;
    color: #fff;
    padding: 0 10px;
    border-radius: 100px;
    margin-left: 10px;
    text-align: center;
    vertical-align: middle;
    font-size: 16px;
}

.tasks-panel-close {
    background: none;
    border: none;
    color: #666;
    font-size: 18px;
    padding: 5px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.tasks-panel-close:hover {
    color: #333;
}

.tasks-panel-list {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.tasks-panel-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tasks-panel-list li {
    position: relative;
    background: #fff;
    margin: 10px 0;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    border-bottom: 1px dotted #d0d0d0;
}

.tasks-panel-list li .task-actions {
    position: absolute;
    top: calc(50% - 5px);
    right: 0;
    transform: translate(0, -50%);
    z-index: 1;
}

.tasks-panel-list li .task-actions a {
    padding: 5px 2px;
}

.tasks-panel-list li .task-delete {
    color: #f74848;
    cursor: pointer;
}

.tasks-panel-list li .task-drag {
    color: #4f4f4f;
    cursor: grab;
}

.tasks-panel-list span {
    margin-left: 8px;
    white-space: pre-wrap;
    max-width: 250px;
}

.task-panel-avatar {
    background: #d63384;
    padding: 5px;
    width: 34px;
    height: 34px;
    color: #fff;
    font-size: 12px;
    line-height: 26px;
    text-align: center;
    border-radius: 100px;
}

.tasks-panel-inner {
    height: calc(100vh - 60px);
    overflow-y: scroll;
}

.tasks-panel-create {
    height: 290px;
    border-bottom: 1px solid #eee;
    padding: 15px;
    box-sizing: border-box;
}

.tasks-panel-create textarea { height: 150px; resize: none; }
.tasks-panel-create select { height: 38px; margin-bottom: 5px; }
.tasks-panel-create .btn { margin-top: 5px; }

.form-navigation-handler {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: var(--bs-primary);
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 998;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.form-navigation-handler:hover {
    background: var(--bs-primary);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.form-navigation-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    display: none;
    z-index: 51;
}

.form-navigation-close:hover {
    color: #333;
}

@media (max-width: 991px) { 
    .form-navigation {
        left: -280px;
        width: 280px;
        transition: left 0.3s ease;
    }
    
    .form-navigation.open {
        left: 0;
    }
    
    .form-navigation-handler {
        display: flex;
    }
    
    .form-navigation-close {
        display: block;
    }
    .form-responsive .form-group {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
    .form-responsive .form-group input,
    .form-responsive .form-group select {
        display: block;
        width: 100%!important;
    }
}