/* ERP Oficina 1.1 — componentes dinâmicos complementares */

.v11-notifications {
    position: fixed;
    top: 76px;
    right: 22px;
    z-index: 4600;
    width: min(390px, calc(100vw - 28px));
    max-height: min(610px, calc(100vh - 100px));
    overflow: hidden;
    border: 1px solid var(--v3-border, rgba(148,163,184,.16));
    border-radius: 18px;
    background: color-mix(in srgb, var(--v3-card, #0e1a2b) 97%, transparent);
    box-shadow: 0 28px 90px rgba(0,0,0,.36);
    backdrop-filter: blur(18px) saturate(1.05);
    -webkit-backdrop-filter: blur(18px) saturate(1.05);
    animation: v11CommandIn .18s cubic-bezier(.2,.75,.25,1) both;
}

.v11-notifications-head {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 14px;
    border-bottom: 1px solid var(--v3-border, rgba(148,163,184,.14));
}

.v11-notifications-head strong,
.v11-notifications-head span {
    display: block;
}

.v11-notifications-head strong {
    color: var(--v3-text, #f7f9fd);
    font-size: 12px;
}

.v11-notifications-head span {
    margin-top: 3px;
    color: var(--v3-muted, #8190a5);
    font-size: 9.5px;
}

.v11-notifications-head button {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--v3-border, rgba(148,163,184,.14));
    border-radius: 10px;
    background: var(--v3-card-2, #111f31);
    color: var(--v3-muted, #8190a5);
    cursor: pointer;
    font-size: 17px;
}

.v11-notifications-list {
    max-height: 500px;
    overflow: auto;
    padding: 8px;
}

.v11-notification-item {
    width: 100%;
    display: grid;
    grid-template-columns: 9px minmax(0,1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 11px 10px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: transparent;
    color: var(--v3-text, #f7f9fd);
    text-align: left;
    cursor: pointer;
}

.v11-notification-item:hover {
    border-color: rgba(59,130,246,.18);
    background: rgba(59,130,246,.06);
}

.v11-notification-item strong,
.v11-notification-item small {
    display: block;
}

.v11-notification-item strong {
    font-size: 10.5px;
}

.v11-notification-item small {
    margin-top: 3px;
    color: var(--v3-muted, #8190a5);
    font-size: 9px;
}

.v11-notification-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4b91ff;
    box-shadow: 0 0 0 4px rgba(75,145,255,.10);
}

.v11-notification-item.red .v11-notification-dot {
    background: #ff626c;
    box-shadow: 0 0 0 4px rgba(255,98,108,.10);
}

.v11-notification-item.amber .v11-notification-dot {
    background: #f3a81f;
    box-shadow: 0 0 0 4px rgba(243,168,31,.11);
}

@media (max-width: 900px) {
    .v11-notifications {
        top: 70px;
        right: 10px;
    }

    .v11-mobile-nav {
        bottom: max(10px, env(safe-area-inset-bottom));
    }

    .v11-fab-wrap {
        bottom: calc(82px + env(safe-area-inset-bottom));
    }
}
