/* Drawer */
.drawer-overlay {
    display: block;
    visibility: hidden;
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-overlay.active {
    visibility: visible;
    opacity: 1;
}

/* בסיס משותף — נשאר מעוגן שמאל (מגירות הוצאה/פירוט תקציב). #drawer בלבד
   מעוגן ימין (ראה הבלוק הממוקד של #drawer). */
.drawer {
    position: fixed;
    left: 0;
    right: auto;
    top: 0;
    bottom: 0;
    width: 600px;
    max-width: 90vw;
    background: white;
    transform: translateX(-100%);
    transition: transform 0.2s ease-in-out;
    z-index: 1000;
    overflow-y: auto;
}

/* הצל רק כשהמגירה פתוחה — אחרת הוא "דולף" אל המסך כשהיא מוסתרת */
.drawer.active {
    transform: translateX(0);
    box-shadow: 2px 0 20px rgba(15, 23, 42, 0.18);
}

/* פעמון ההתראות הגלובלי (fixed, z-index גבוה) לא אמור לרחף מעל מגירה פתוחה */
body:has(.drawer.active) .notifications-bell { display: none; }

/* שלד טעינה למגירה — מוצג מיד בפתיחה עד שהנתונים חוזרים מהרשת */
@keyframes dzSkelShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.dz-skel {
    background: linear-gradient(90deg, #eef1f6 25%, #f6f8fb 37%, #eef1f6 63%);
    background-size: 200% 100%;
    animation: dzSkelShimmer 1.3s ease-in-out infinite;
    border-radius: 6px;
}
.dz-skel-line { height: 14px; }
.dz-skel-block { width: 100%; height: 100px; border-radius: 10px; }
.dz-skel-body { padding: 4px 0; }
@media (prefers-reduced-motion: reduce) {
    .dz-skel { animation-duration: .001s !important; }
    .drawer, .drawer-overlay { transition-duration: .001s !important; }
}

.drawer-header {
    padding: 24px;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.drawer-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}

.drawer-close {
    position: absolute;
    left: 24px;
    top: 24px;
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
}

.drawer-content {
    padding: 24px;
}

.drawer-tabs {
    display: flex;
    position: relative;
    border-bottom: 2px solid #f1f5f9;
    margin-bottom: 24px;
}

.drawer-tab {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    color: #64748b;
    font-weight: 600;
    font-size: 14px;
}

.drawer-tab.active {
    color: #5a67d8;
    /* הקו התחתון עבר לאינדיקטור נע (.drawer-tab-indicator) */
    border-bottom-color: transparent;
}

.drawer-tab-content.active {
    animation: omFadeUp .28s ease both;
}

.drawer-tab-content {
    display: none;
}

.drawer-tab-content.active {
    display: block;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.info-box {
    padding: 14px;
    background: #f3f4f6;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.conversation-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    margin-top: 20px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.conversation-header {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.conversation-thread {
    max-height: 240px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 4px;
}

.conversation-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
}

.conversation-title {
    font-weight: 600;
    font-size: 13px;
    color: #1f2937;
    margin-bottom: 6px;
}

.conversation-details {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
}

.conversation-meta {
    font-size: 11px;
    color: #5a6779;
    margin-top: 8px;
}


.info-box-main {
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* כרטיס סיכום בדראוור */
.request-summary-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

/* כותרת מוסד */
.request-summary-header {
    margin-bottom: 12px;
}

.request-summary-main-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.request-summary-title {
    font-size: 19px;
    font-weight: 800;
    color: #0f172a;
}

.request-summary-subtitle {
    font-size: 13px;
    color: #6b7280;
}

/* סרגל סטטוס + תאריך */
.request-top-bar {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.request-top-bar .status-badge {
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 999px;
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.45);
}

.date-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eff6ff;
    font-size: 12px;
    color: #1f2933;
}

/* תגיות מידע */
.request-summary-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 20px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.summary-tag {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    transition: transform 0.15s, box-shadow 0.15s;
}

.summary-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.summary-tag-urgent {
    background: #fee2e2;
    color: #b91c1c;
}

.summary-tag-high {
    background: #fef3c7;
    color: #92400e;
}

.summary-tag-normal {
    background: #e0f2fe;
    color: #075985;
}

.summary-tag-info {
    background: #eef2ff;
    color: #0f172a;
}

/* כרטיסי מידע למגיש וסכום - אותו גודל */
.request-meta-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.request-meta-box {
    flex: 1;
    min-width: 220px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 14px;
}

/* כותרות אזור */
.section-title {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    margin: 4px 0 10px;
}

/* תיאור */
.description-box {
    margin-top: 8px;
    padding: 14px 16px;
    background: #f3f4f6;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
    line-height: 1.9;
    color: #374151;
}

/* קופסת סה"כ */
.info-box-total {
    background: #ecfdf5;
    border: 2px solid #86efac;
}

/* טקסטי מידע */
.info-muted {
    font-size: 11px;
    color: #5a6779;
}

.info-label {
    font-size: 12px;
    color: #64748b;
}

.info-value {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-top: 4px;
    line-height: 1.6;
}

/* שמירת התמיכה למקומות אחרים בקוד שלך */
.description-text {
    font-size: 14px;
    line-height: 1.8;
    font-weight: 400;
    color: #374151;
}

.info-box.description-box {
    background: #f3f4f6 !important;
    border: 1px solid #e5e7eb;
}


