﻿/* ===== בסיס ===== */
body {
    margin: 0;
    font-family: system-ui, Arial;
    background: #F4F6F9;
    direction: rtl;
}

.page {
    padding: 20px;
    min-height: calc(100vh - 70px);
}

.page-wide {
    max-width: 1400px;
    margin: 0 auto;
}

/* ===== כרטיס ===== */
.card {
    background: #fff;
    border: 1px solid #E6ECF1;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.text-muted {
    color: #78909C;
}

/* ===== Header ===== */
.case-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.case-title h2 {
    color: #263238;
    font-weight: 800;
}

/* ===== כפתורים ===== */
.btn {
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 700;
    text-decoration: none;
}

.btn-primary {
    background: #1976D2;
    color: #fff;
}

    .btn-primary:hover {
        background: ffffff;
    }

/* ===== עטיפת טבלה ===== */
.table-wrap {
    overflow-x: auto;
}

/* ===== טבלת תיקים ===== */
.cases-table-wide {
    width: 100%;
    min-width: 1050px;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0 12px;
}

    /* 🔹 כותרות הטבלה – אפור עדין + מודגש */
    .cases-table-wide thead th {
        text-align: right;
        font-size: 16px;
        font-weight: 900;
        color: #263238;
        background: #F1F3F5; /* ⬅️ האפור העדין */
        padding: 16px 20px;
        white-space: nowrap;
        border-bottom: 2px solid #DADFE5; /* קו הפרדה נקי */
    }

        /* עיגול פינות לשורת כותרת */
        .cases-table-wide thead th:first-child {
            border-top-right-radius: 10px;
        }

        .cases-table-wide thead th:last-child {
            border-top-left-radius: 10px;
        }

    /* שורות */
    .cases-table-wide tbody tr {
        background: #fff;
        box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    }

    /* תאי נתונים */
    .cases-table-wide tbody td {
        padding: 16px 20px;
        font-size: 14px;
        line-height: 1.7;
        vertical-align: middle;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* חלוקת רוחב עמודות */
    .cases-table-wide .col-id {
        width: 10%;
    }

    .cases-table-wide .col-title {
        width: 26%;
    }

    .cases-table-wide .col-client {
        width: 22%;
    }

    .cases-table-wide .col-type {
        width: 12%;
    }

    .cases-table-wide .col-date {
        width: 14%;
    }

    .cases-table-wide .col-docs {
        width: 8%;
        text-align: center;
    }

    .cases-table-wide .col-enter {
        width: 8%;
        text-align: center;
    }

/* כפתור כניסה */
.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #D9E2EC;
    background: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .icon-btn:hover {
        background: #E3F2FD;
    }

/* רספונסיב */
@media (max-width: 1100px) {
    .page-wide {
        max-width: 100%;
        margin: 0;
    }
    .navbar-logo {
        height: 100%;
        max-height: 56px; /* מתאים לגובה navbar */
        width: auto;
        object-fit: contain;
        background-color: transparent; /* ביטול רקע */
    }

}
