/* עמודת "קבצים" במסך הנהלת החשבונות (accounting-row-files.js), הרשימה הצפה
   של קובצי שורה (accounting-row-files-menu.js) ופס ההורדה המרוכזת.
   הגוונים מהקיימים בלבד: הכפתור כמו כפתור התזכורת שבתא המסמך, הפס כמו פס
   התזכורות, והרשימה כמו התפריט "עוד" של החשבוניות הנכנסות. */

.acc-files-select-col { width: 34px; }
.acc-files-cell { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.acc-files-none { color: #64748b; }
.acc-files-check { width: 16px; height: 16px; margin: 0; margin-inline-end: 2px; accent-color: var(--color-primary); cursor: pointer; flex-shrink: 0; }

.acc-file-btn {
    min-width: 28px; height: 28px; box-sizing: border-box; padding: 0;
    display: inline-flex; align-items: center; justify-content: center; gap: 3px;
    border: 1px solid #e2e8f0; border-radius: 7px; background: #fff; color: #475569;
    cursor: pointer; text-decoration: none; flex-shrink: 0; font: inherit;
}
.acc-file-btn:hover { background: #f1f5f9; }
.acc-file-btn:focus-visible, .acc-files-link:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
/* בתוך רשימת הקבצים: אותם אייקונים נקיים כמו בשורה, בלי מסגרת. */
.acc-files-menu .acc-file-btn { border: 0; background: transparent; color: #64748b; width: 32px; height: 32px; }
.acc-files-menu .acc-file-btn:hover { background: #eef2f7; color: #1e293b; }
.acc-files-menu .acc-file-btn svg { width: 18px; height: 18px; stroke-width: 1.6; }

/* הפס: הבחירה, או ההתקדמות בזמן הורדה. המצב מתחלף ב-hidden, וזה הכלל היחיד
   שמסתיר כאן, כדי ש-display של .btn לא יגבר עליו. */
/* בצבע הבחירה, הכחול הראשי (DESIGN.md), לפי עיצוב 1a. על הרקע הכהה הטקסט
   לבן, והמשני לבן שקוף, ולכן אין כאן גוון חדש. */
.acc-files-bar {
    min-height: 52px; box-sizing: border-box; padding: 10px 20px; align-items: center; gap: 12px; flex-wrap: wrap;
    background: var(--color-primary); color: #fff; font-size: 15px;
}
.acc-files-bar [hidden] { display: none !important; }
.acc-files-bar-part { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.acc-files-bar-sum { color: rgba(255, 255, 255, .8); font-variant-numeric: tabular-nums; }
.acc-files-link { background: none; border: none; padding: 0; font: inherit; font-size: 14px; color: rgba(255, 255, 255, .85); cursor: pointer; text-decoration: underline; }
.acc-files-link:hover { color: #fff; }
.acc-files-actions { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.acc-files-act {
    display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 14px; white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, .6); border-radius: 8px; background: transparent; color: #fff;
    font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.acc-files-act:hover:not(:disabled) { background: rgba(255, 255, 255, .12); }
.acc-files-act:disabled { opacity: .55; cursor: not-allowed; }
.acc-files-act--primary { background: #fff; border-color: #fff; color: var(--color-primary); font-weight: 700; }
.acc-files-act--primary:hover:not(:disabled) { background: #eef2f7; }
.acc-files-bar .acc-files-link:focus-visible, .acc-files-act:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* הרשימה הצפה, ב-body */
.acc-files-menu {
    position: fixed; z-index: 1000; box-sizing: border-box; padding: 6px;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    max-height: calc(100vh - 16px); overflow: auto;
}
.acc-files-menu[hidden] { display: none; }
.acc-files-menu-row { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 6px; }
.acc-files-menu-row:hover { background: #f8fafc; }
.acc-files-menu-name {
    display: block; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 13px; color: #334155;
}
.acc-files-menu-actions { display: inline-flex; gap: 4px; flex-shrink: 0; }

/* טלפון: מטרת מגע של 44 (DESIGN.md, נגישות). */
@media (max-width: 768px) {
    .acc-file-btn { min-width: 44px; height: 44px; }
    .acc-files-check { width: 22px; height: 22px; }
    .acc-files-act { min-height: 44px; }
    /* בטלפון הפס נשבר לשורות, והנקודה המפרידה נשארה תלויה בסוף שורה. */
    .acc-files-sep { display: none; }
}
