@import url('https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');body {
    font-family: 'Work Sans', sans-serif;
}
.red-dot {
  position: relative;
}

.red-dot::after {
  content: var(--posizione, "");
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgb(248 113 113 / var(--tw-bg-opacity, 1));
  border-radius: 100%;
  width: 20px;
  height: 20px;
  transform: translate(-5px, -5px);
}

html,
body {
    height: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: hidden;
    
}
.hover\:bg-green-900:hover {
  --tw-bg-opacity: 1;
  background-color: rgba(6,78,59,var(--tw-bg-opacity));
}
.bg-green-700 {
  --tw-bg-opacity: 1;
  background-color: rgba(4,120,87,var(--tw-bg-opacity));
}
button:hover{
    cursor: pointer;
}
.border{
    border-color: rgba(0, 0, 0, 0.3);
}
#app-shell {
    min-height: calc(100vh - 4rem);
    max-width: 100%;
    overflow-x: hidden;
    
}

#sidebar {
    height: calc(100vh - 4rem);
    transition: width 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, z-index 0s;
}

#sidebar .label {
    transition: opacity 0.15s ease, width 0.25s ease;
}

#sidebar.collapsed .label {
    opacity: 0;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
}

#sidebar.collapsed {
    width: 4.5rem;
}

#main-content {
    min-height: calc(100vh - 4rem);
    transition: margin-left 0.25s ease;
    max-width: 100%;
    overflow-x: hidden;
}
button:disabled,
select:disabled,
input:disabled,
textarea:disabled {
  opacity: 0.8;
  cursor: not-allowed;

}
select:disabled,
input:disabled,
textarea:disabled {
    background-color: #e5e7eb;
}

td {
    border-color: rgba(0, 0, 0, 0.3);
    border: 1px solid black;
}


@media (max-width: 767px) {
    #app-shell {
        min-height: calc(100vh - 4rem);
    }

    #sidebar {
        left: 0;
        right: 0;
        width: 100%;
        height: auto;
        max-height: calc(100vh - 4rem);
        transform: translateY(-110%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        z-index: 40;
    }

    #sidebar.mobile-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    #sidebar.collapsed {
        width: 100%;
    }

    #sidebar.collapsed .label {
        opacity: 1;
        width: auto;
        overflow: visible;
        white-space: normal;
    }
}

@media (min-width: 768px) {
    #sidebar {
        transform: translateY(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    #sidebar.collapsed:not(.hover-expanded) nav span,
    #sidebar.collapsed:not(.hover-expanded) [data-dropdown-icon],
    #sidebar.collapsed:not(.hover-expanded) [data-dropdown-panel] {
        display: none;
    }

    #sidebar.collapsed:not(.hover-expanded) nav > a,
    #sidebar.collapsed:not(.hover-expanded) [data-dropdown-toggle] {
        justify-content: center;
        gap: 0;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    #sidebar.collapsed.hover-expanded {
        width: 18rem;
        z-index: 50;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    }

    #sidebar.collapsed.hover-expanded .label {
        opacity: 1;
        width: auto;
        overflow: visible;
    }
}

.notifications {
    position: fixed;
    top: 4.75rem;
    right: 1rem;
    z-index: 60;
    width: min(420px, calc(100vw - 2rem));
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    pointer-events: none;
}

.notification-item {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 0.5rem;
    border: 1px solid;
    border-radius: 0.75rem;
    padding: 0.75rem 0.875rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    background: #ffffff;
    pointer-events: auto;
    animation: notify-in 0.2s ease;
}

.notification-item.is-info {
    border-color: #60a5fa;
    background: #eff6ff;
    color: #1e3a8a;
}

.notification-item.is-warning {
    border-color: #f59e0b;
    background: #fffbeb;
    color: #92400e;
}

.notification-item.is-error {
    border-color: #f87171;
    background: #fef2f2;
    color: #991b1b;
}

.notification-item button {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 0.875rem;
    line-height: 1;
    opacity: 0.75;
}

.notification-item button:hover {
    opacity: 1;
}

@keyframes notify-in {
    from {
        transform: translateY(-8px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}