

/* ═══════════════════════════════════════════
   SIDEBAR — link stile e hover
   ═══════════════════════════════════════════ */

.sidebar-link {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #212529;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
    border-radius: 6px;
}

    .sidebar-link:hover {
        background-color: #f0f4ff;
        color: #0d6efd;
        padding-left: 18px !important;
    }

    .sidebar-link.active,
    .sidebar-link:active {
        background-color: #e8efff;
        color: #0d6efd;
        font-weight: 600;
    }

/* Label sezione (COMMERCIALE, PROGETTAZIONE, ecc.) */
#sidebar .text-muted {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #adb5bd !important;
}

/* Separatore sezioni */
#sidebar hr {
    border-color: #e9ecef;
    opacity: 1;
}

/* Scrollbar sottile */
#sidebar::-webkit-scrollbar {
    width: 4px;
}

#sidebar::-webkit-scrollbar-track {
    background: transparent;
}

#sidebar::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 4px;
}

    #sidebar::-webkit-scrollbar-thumb:hover {
        background: #adb5bd;
    }


/* MEnu Building Project*/
.section-btn {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #6c757d;
    padding: 8px 12px;
    margin-bottom: -1px;
    cursor: pointer;
    white-space: nowrap;
}

    .section-btn:hover {
        color: #212529;
    }

    .section-btn.active {
        color: #212529;
        border-bottom: 2px solid #212529;
        font-weight: 500;
    }

.section-pane {
    display: none;
}

    .section-pane.active {
        display: block;
    }

/* Loghi */
.logo-brand {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    width: 50px;
    transition: width 0.4s ease;
}

    .logo-brand:hover {
        width: 250px;
    }

.logo-icon {
    height: 50px;
    min-width: 50px;
    position: absolute;
    transition: opacity 0.2s ease;
}

.logo-full {
    height: 50px;
    opacity: 0;
    transition: opacity 0.3s ease 0.2s;
}

.logo-brand:hover .logo-icon {
    opacity: 0;
}

.logo-brand:hover .logo-full {
    opacity: 1;
}

.table-hover > tbody > tr:hover td,
.table-hover > tbody > tr:hover th {
    border-bottom: 1px solid var(--bs-primary);
    
}

html {
    font-size: 12px;
}



.btn-fixed {
    min-width: 220px; /* scegli tu la larghezza */
}


.z-1 {
    z-index: 100;
}

@font-face {
    font-family: 'Elms Sans';
    src: url('/fonts/ElmsSans-VariableFont_wght.ttf') format('truetype'), url('/fonts/ElmsSans/ElmsSans-Regular.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
}

title {
    background-color: var(--bs-light);
    color: var(--bs-secondary);
}

/* =========================
   DARK MODE � GLOBAL OVERRIDE
   ========================= */

html.dark-mode,
html.dark-mode body {
    /* background-color: #121212;*/
    background-color: #2F3234;
    color: #e0e0e0;
}

    /* Navbar, aside, footer */
    html.dark-mode .navbar,
    html.dark-mode .aside,
    html.dark-mode nav,
    html.dark-mode footer {
        background-color: #2F3234;
       /* background-color: #1a1a1a !important;*/
    }

    /* Bootstrap utility killer */
    html.dark-mode .bg-light {
        background-color: #2F3234 !important;
    }


    html.dark-mode .bg-white {
        background-color: #000 !important;
    }
    html.dark-mode .text-secondary,
    html.dark-mode .text-black{
        color: #fff !important;
    }

    /* Card */
    html.dark-mode .card {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }

    /* Dropdown */
    html.dark-mode .dropdown-menu {
        background-color: #1f1f1f;
        
        border-color: #333;
    }

    /* Tabelle */
    html.dark-mode .table {
        color: #e0e0e0;
    }

    html.dark-mode .table th,
    html.dark-mode .table td {
        background-color: #2c2c2c;
        border-color: #2c2c2c;
    }
  
    html.dark-mode .table tr:hover {
        color: white;
    }

    /* Link */
    html.dark-mode a {
        color: #9ecbff;
    }

    /* Icone Bootstrap */
    html.dark-mode .bi {
        color: inherit;
    }


    /* =========================
   DARK MODE � FORM CONTROL
   ========================= */

    html.dark-mode input,
    html.dark-mode select,
    html.dark-mode textarea,
    html.dark-mode .form-control {
        background-color: #1e1e1e !important; /* sfondo scuro */
        color: #6c757d !important; /* testo chiaro */
        border-color: #444 !important; /* bordo scuro */
    }

        html.dark-mode input::placeholder,
        html.dark-mode textarea::placeholder {
            color: #6c757d !important; /* placeholder meno acceso */
        }

    html.dark-mode select {
        color: #e0e0e0 !important; /* testo select */
    }

    html.dark-mode .form-check-input {
        background-color: #1e1e1e !important;
        border-color: #444 !important;
    }


title > * {
    background-color: red !important;
    padding: 10px;
}


@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.nav-link:hover {
    color: blue !important;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}


.kpi-card i {
    width: 40px;
    text-align: center;
}

.gantt-container {
    min-height: 360px;
}

.toolbar .form-switch {
    padding-left: 2.5rem;
}
/* �CUSTOMIZE� verticale a destra */
.customize-pill {
    position: fixed;
    right: 12px;
    top: 45%;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    z-index: 1030;
}




.shadow-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .shadow-hover:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
    }

.card {
    border: none;
    border-radius: 15px;
}

.display-1 {
    font-size: 4rem;
}


#tooltip-content img {
    border-radius: 8px;
    transition: transform 0.2s ease-in-out;
    cursor: pointer;
}

    #tooltip-content img:hover {
        transform: scale(1.15);
    }

.tooltip-inner {
    padding: 8px !important;
    background-color: #fff !important;
    border: 1px solid #ddd;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
}



.progress-bar-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.progress-bar {
    font-weight: bold;
    font-size: 12px;
}

.progress-bar-striped {
    background-image: linear-gradient( 45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent );
    background-size: 1rem 1rem;
}

.progress-bar-animated {
    animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
    0% {
        background-position: 1rem 0;
    }

    100% {
        background-position: 0 0;
    }
}




.echart-radar-customized-chart-example {
    width: 100%;
    min-height: 250px;
}

#popover-content {
    padding: 10px;
}

/* Stile link app */
.app-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 12px;
    transition: all 0.2s ease-in-out;
}

.app-link img {
        border-radius: 8px;
        transition: transform 0.2s ease-in-out;
        margin-bottom: 5px;
    }

   

    .app-link:hover p {
        color: #0d6efd; /* colore primario Bootstrap */
    }

/* Popover personalizzato */
.popover {
    border-radius: 12px !important;
    border: 1px solid #ddd !important;
    box-shadow: 0px 6px 18px rgba(0, 0, 0, 0.15) !important;
    max-width: 240px !important;
}

.popover-header {
    background-color: #f8f9fa;
    font-weight: 600;
    text-align: center;
}

/* partner card view */

.partner-card {
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

    .partner-card:hover {
        transform: translateY(-12px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
        border: 1px solid #0d6efd;
    }

.card-logo {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    padding: 10px;
}

    .card-logo img {
        max-height: 100%;
        max-width: 100%;
        object-fit: contain;
    }

.partner-type {
    position: absolute;
    top: 15px;
    right: 15px;

    color: white;
    padding: 5px 5px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.referente-item {
  
    border-radius: 8px;
    
    margin-bottom: 10px;
}


.referente-item-op {
    background-color: #fff;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
}

.btn-add-referente {
    width: 100%;
    margin-top: 10px;
}



.search-container {
    max-width: 500px;
    margin: 0 auto 30px;
}

.filter-buttons {
    margin-bottom: 20px;
}

.filter-btn {
    margin-right: 8px;
    margin-bottom: 8px;
    border: none;
}

.filter-btn.active, .filter-btn:hover {
    color: var(--bs-primary) !important;
}

.empty-logo {
    color: #6c757d;
    font-size: 40px;
}

.card-footer {
    background-color: rgba(0, 0, 0, 0.03);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.add-partner-section {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.section-title {
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #007bff;
}

.logo-preview {
    width: 100px;
    height: 100px;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    cursor: pointer;
    overflow: hidden;
}

    .logo-preview img {
        max-width: 100%;
        max-height: 100%;
        display: none;
    }

.form-label {
    font-weight: 500;
}

.required-field::after {
    content: " *";
    color: red;
}



/* gestione impianti -- project */

timeline {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline li {
    padding: 10px 0;
    border-left: 2px solid #4e73df;
    margin-left: 10px;
    padding-left: 15px;
    position: relative;
}

    .timeline li::before {
        content: '';
        position: absolute;
        top: 12px;
        left: -7px;
        width: 10px;
        height: 10px;
        background-color: #4e73df;
        border-radius: 50%;
    }


// gantt - project
.gantt-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9e padding: 1rem 0;
}

.gantt-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.gantt-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.gantt-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background-color: white;
}

    .gantt-table th,
    .gantt-table td {
        padding: 0.75rem;
        text-align: left;
        border-bottom: 1px solid #e9e
    }

    .gantt-table th {
        background-color: #f8f9fa;
        font-weight: 500;
        vertical-align: middle;
    }

.gantt-row {
    cursor: pointer;
}

    .gantt-row:hover {
        background-color: #f1f3f5;
    }

.gantt-task-bar {
    height: 24px;
    background-color: #a2d9ff;
    border-radius: 4px;
    display: inline-block;
    text-align: center;
    line-height: 24px;
    color: #000;
    font-size: 0.8rem;
    padding: 0 0.5rem;
    margin-top: 0.5rem;
    position: relative;
    z-index: 1;
}

.gantt-arrow {
    position: absolute;
    top: 12px;
    left: 0;
    width: 0;
    height: 0;
    border-left: 10px solid transp border-right: 10px solid trans border-bottom: 10px solid #cc transform: rotate(90deg);
    z-index: 0;
}

.gantt-arrow-start {
    left: -10px;
}

.gantt-arrow-end {
    right: -10px;
}

.assignee-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.25rem;
    background-color: #ccc;
}

.assignee-count {
    background-color: #4285f5;
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.25rem;
}

.project-name {
    font-weight: 600;
}

.task-name {
    font-weight: 500;
}

.toggle-icon {
    cursor: pointer;
    font-size: 1rem;
    margin-right: 0.5rem;
}

.chat-demo {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    box-shadow: 0 4px 12px rgba(0 display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1000;
}

.chat-status {
    width: 10px;
    height: 10px;
    background-color: #4CAF50;
    border-radius: 50%;
}

.customize-button {
    position: fixed;
    top: 150px;
    right: 10px;
    width: 60px;
    height: 60px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, z-index: 100;
}

.footer {
    background-color: #f8f9fa;
    padding: 0.75rem;
    border-top: 1px solid #e9ecef font-size: 0.9rem;
    color: #6c757d;
}

.month-column {
    min-width: 100px;
    text-align: center;
}

.ongoing {
    background: #cce5ff;
    color: #004085;
    border-color: #b8daff;
}

.progress {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

.standby {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeeba;
}

.done {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.critical {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}


/* MENU aside */


aside .nav-link {
    color: #6c757d;
    transition: all 0.2s ease;
}

    aside .nav-link:hover {
        background-color: #f8f9fa;
        color: #0d6efd;
    }

    aside .nav-link.active {
        background-color: #0d6efd;
        color: white;
    }

aside h6 {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}



/* Building*/
.equal-box > div {
    flex: 1; /* stessa larghezza */
    min-width: 250px; /* opzionale se vuoi una base */
    height: 100%; /* si allinea con lo stretch */
    display: flex;
    flex-direction: column;
}

.equal-box {
    align-items: stretch !important; /* forza la stessa altezza */
    gap: 20px; /* opzionale, estetica */
}

.referente-item-op {
    flex: 1; /* riempie lo spazio e uniforma l�altezza interna */
}


