/* tabs.css — ساختار تب مشترک (امور مالی / انبارداری)
   قبلاً این 14 قاعده عیناً در 2 فایل کپی شده بود. */

.tabs {
    display: flex; gap: 8px; flex-wrap: wrap;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
    padding: 6px; margin-bottom: 18px; box-shadow: var(--shadow-sm);
  }

.tab:hover { background: var(--surface-2); }

.tab.active { background: var(--primary); color: #fff; }

.panel { display: none; }

.panel.active { display: block; }

.search-wrap { position: relative; }

.suggestions {
    position: absolute; top: calc(100% + 4px); inset-inline: 0; z-index: 20;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
    box-shadow: 0 12px 28px -14px rgba(43,33,29,0.35);
    max-height: 240px; overflow-y: auto; display: none;
  }

.suggestions.open { display: block; }

.suggestion {
    padding: 10px 14px; cursor: pointer; font-size: 13px;
    display: flex; justify-content: space-between; gap: 10px;
    border-bottom: 1px solid var(--line);
  }

.suggestion:last-child { border-bottom: none; }

.suggestion:hover { background: var(--primary-soft); }

.suggestion .meta { font-family: var(--font-num); font-size: 12px; color: var(--ink-soft); }

.section-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 22px 0 14px; color: var(--ink-soft); font-size: 12px; font-weight: 700;
  }

.section-divider::before, .section-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
