.usine-alert-trigger {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 39px;
    height: 39px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 11px;
    background: rgba(255,255,255,.09);
    color: #f5fafc;
    font-size: 1.05rem;
    transition: background .16s, border-color .16s;
    flex: 0 0 auto;
}
.usine-alert-trigger:hover,.usine-alert-trigger:focus-visible {
    color: #fff;
    background: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.56);
    outline-offset: 3px;
}
.usine-alert-count {
    position: absolute;
    top: -6px;
    right: -7px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 19px;
    height: 19px;
    padding: 0 4px;
    background: #f97316;
    border: 2px solid #144458;
    border-radius: 20px;
    color: #fff;
    font-size: .65rem;
    font-weight: 800;
    line-height: 1;
}
.usine-alert-trigger-mobile { margin-left: auto; margin-right: .65rem; }
.usine-alerts-modal .modal-content {
    border-radius: 17px;
    border: 1px solid #dce7ee;
    box-shadow: 0 20px 65px rgba(12,43,57,.2);
    overflow: hidden;
}
.usine-alerts-modal-header { padding: 1.2rem 1.4rem; border-color: #eaf0f5; }
.usine-alerts-modal-body { background: #fafcfe; padding: 1.15rem 1.4rem; }
.usine-alerts-icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #e3f6f5;
    color: #087e8c;
    border-radius: 12px;
}
.usine-alerts-permission {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    background: #eff8fa;
    border: 1px solid #d2eaf0;
    border-radius: 12px;
    color: #174251;
}
.usine-alerts-permission p { color: #607987; }
.usine-alerts-enable {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    flex: 0 0 auto;
    min-height: 39px;
    border-radius: 9px;
    border: 1px solid #0b788b;
    background: #0e7490;
    color: white;
    font-weight: 700;
    font-size: .85rem;
}
.usine-alerts-enable:hover:not(:disabled) { color: white; background: #155e75; }
.usine-alerts-enable:disabled { opacity: .6; cursor: default; }
.usine-alerts-disable {
    flex: 0 0 auto;
    min-height: 39px;
    border-radius: 9px;
    color: #9f1239;
    background: #fff;
    border: 1px solid #fbcbd3;
    font-size: .8rem;
    font-weight: 700;
}
.usine-alerts-disable:hover { background: #fff1f2; color: #881337; }
.usine-alerts-card {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    margin: 0 0 .7rem;
    padding: .9rem;
    border-radius: 12px;
    border: 1px solid #e2eaf0;
    background: #fff;
    color: #1e3443;
    box-shadow: 0 3px 10px rgba(20,52,76,.035);
    text-decoration: none;
}
.usine-alerts-card:hover { border-color: #8ccdd3; background: #f6fbfd; color: #163847; }
.usine-alerts-card img,.usine-alerts-placeholder {
    width: 70px;
    height: 70px;
    flex: 0 0 70px;
    border-radius: 10px;
    border: 1px solid #edf1f5;
    background: #f3f7fa;
    object-fit: contain;
}
.usine-alerts-placeholder { display: flex; align-items: center; justify-content: center; color: #7395a1; font-size: 1.5rem; }
.usine-alerts-card-content { min-width: 0; flex: 1; }
.usine-alerts-card-title { font-size: .91rem; font-weight: 750; line-height: 1.35; }
.usine-alerts-card-detail { margin: .25rem 0; font-size: .85rem; color: #475569; }
.usine-alerts-card-meta { color: #788998; font-size: .75rem; }
.usine-alerts-qty { display: inline-block; margin-top: .25rem; padding: .23rem .55rem; border-radius: 7px; background: #e2f7ef; color: #146c48; font-size: .77rem; font-weight: 750; }
.usine-alerts-empty { padding: 1.8rem 1rem; text-align: center; color: #64748b; font-size: .9rem; }
@media (max-width: 575px) {
    .usine-alerts-modal .modal-dialog { margin: .5rem; }
    .usine-alerts-modal-header { padding: .95rem 1rem; }
    .usine-alerts-modal-body { padding: .85rem; }
    .usine-alerts-permission { align-items: stretch; flex-direction: column; }
    .usine-alerts-card { gap: .7rem; }
    .usine-alerts-card img,.usine-alerts-placeholder { width: 58px; height: 58px; flex-basis: 58px; }
}
