/* ============================================================================
   אזהרת הכפילות של טופס ההוספה, עם שתי הפעולות שלה (החלטת בעלים, 3א ו-4א).

   **קובץ משלה, ולא חלק מכרטיס החשבונית**, כי אותה אזהרה מוצגת גם מתחת
   לשדה מספר החשבונית כשהמספר הוקלד ביד, בלי כרטיס בכלל.
   ============================================================================ */

/* ── אזהרת הכפילות ── */
.exp-dup {
    border-radius: 10px;
    padding: 12px;
    animation: expInvSlideIn .35s ease-out both;
    margin-bottom: 8px;
}

.exp-dup--danger {
    color: #991b1b;
    background: #fee2e2;
    border: 1px solid #fecaca;
}

.exp-dup--warn {
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fde68a;
}

.exp-dup-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.exp-dup-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.exp-dup-text {
    flex: 1;
    min-width: 0;
}

.exp-dup-title {
    font-size: 13px;
    font-weight: 700;
}

.exp-dup-lead {
    font-size: 12px;
    line-height: 1.5;
    margin-top: 2px;
}

.exp-dup-grid {
    margin-top: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    overflow: hidden;
}

/* קו ימני וקו תחתון לכל תא. הקווים שבשולי הטבלה נחתכים בגבול שלה, ולכן
   נשארים רק הקווים שבין התאים, בכל צורה שהטבלה נשברת אליה. */
.exp-dup-cell {
    padding: 8px 10px;
    min-width: 0;
    box-shadow: 1px 0 0 #eef1f6, 0 1px 0 #eef1f6;
}

.exp-dup-cell-label {
    font-size: 10.5px;
    color: #64748b;
}

.exp-dup-cell-value {
    font-size: 12.5px;
    font-weight: 600;
    color: #0f172a;
    /* **הערך כאן הוא מה שמבדיל בין שתי חשבוניות**, ולכן נשבר ולא נחתך. */
    overflow-wrap: anywhere;
    font-variant-numeric: tabular-nums;
}

.exp-dup-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.exp-dup-open,
.exp-dup-continue {
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    border-radius: 7px;
    padding: 8px 13px;
    cursor: pointer;
    white-space: nowrap;
}

.exp-dup-open {
    color: #fff;
    background: currentColor;
    border: none;
}

/* הכפתור הראשי בגוון החומרה. הטקסט לבן מעל רקע `currentColor`, ולכן הצבע
   נקבע על הכפתור עצמו ולא בירושה. */
.exp-dup--danger .exp-dup-open { background: #991b1b; }
.exp-dup--warn .exp-dup-open { background: #92400e; }

.exp-dup-open:hover {
    opacity: .9;
}

.exp-dup-continue {
    color: #334155;
    background: #fff;
    border: 1px solid #d1d5db;
}

.exp-dup-continue:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.exp-dup-resolved {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0;
    font-size: 11.5px;
    color: #5a6779;
}

@media (prefers-reduced-motion: reduce) {
    .exp-dup {
        animation: none;
    }
}
