/* Shared chrome for the actions/context menus on Products, Pricing, and
   FactoryQuoteSheet (ProductActionsPanel, PricingActionsPanel,
   FactoryActionsPanel). Blue accent by default; add .actions-panel--green
   for the green-accented variant. */

.actions-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
}

.actions-panel {
    position: fixed;
    z-index: 1060;
    display: flex;
    flex-direction: column;
    width: min(320px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    border-radius: 16px;
    border: 1px solid rgba(13, 110, 253, 0.15);
    background: #fff;
    box-shadow: 0 18px 40px rgba(24, 39, 75, 0.18);
    overflow: hidden;
}

.actions-header,
.actions-subheader {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0.8rem;
    border-bottom: 1px solid #eef1f5;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.actions-search-wrap {
    flex-shrink: 0;
    padding: 0.65rem 0.8rem 0;
}

.actions-search {
    font-size: 0.92rem;
}

.actions-list {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    padding: 0.25rem;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.actions-separator {
    flex-shrink: 0;
    height: 1px;
    margin: 0.25rem 0.4rem;
    background: #c7cfd9;
}

.actions-item,
.actions-back {
    border: 0;
    background: transparent;
    text-align: left;
    border-radius: 12px;
}

.actions-item {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.28rem 0.6rem;
    font-size: 0.92rem;
}

.actions-item:hover,
.actions-back:hover {
    background: #eef4ff;
}

.actions-item:disabled {
    opacity: 0.45;
}

.actions-item--danger {
    color: #b42318;
}

.actions-back {
    padding: 0.1rem 0.3rem;
    color: #0d6efd;
}

.actions-hint {
    flex-shrink: 0;
    margin: 0 0.6rem 0.6rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid #dde3ea;
    border-radius: 10px;
    background: #f5f6f8;
    color: #4d5a6d;
    font-size: 0.82rem;
}

.actions-empty {
    padding: 0.15rem 0.8rem 0.6rem;
    color: #6c757d;
    font-size: 0.82rem;
}

.actions-close {
    border: 0;
    background: transparent;
    font-size: 1.35rem;
    line-height: 1;
    color: #546272;
}

.actions-close:hover {
    color: #0f172a;
}

/* Green accent (factory quote sheet). */
.actions-panel--green {
    border-color: rgba(22, 101, 52, 0.16);
}

.actions-panel--green .actions-header,
.actions-panel--green .actions-subheader {
    background: linear-gradient(180deg, #f5fbf7 0%, #ffffff 100%);
}

.actions-panel--green .actions-item:hover,
.actions-panel--green .actions-back:hover {
    background: #edf8f0;
}

.actions-panel--green .actions-back {
    color: #198754;
}
