:root { --main-blue: #1e3a8a; }
.edit-animate { transition: all 0.2s ease; cursor: pointer; }
.edit-animate:hover { background-color: #f8fafc; transform: scale(1.01); }
.tab-btn { white-space: nowrap; transition: all 0.3s; cursor: pointer; user-select: none; border: 1px solid #e2e8f0; padding: 8px 18px; border-radius: 9999px; background: white; color: #475569; font-weight: 900; box-shadow: 0 1px 2px rgb(15 23 42 / 0.05); }
.tab-btn.active { background-color: var(--main-blue) !important; color: white !important; box-shadow: 0 6px 16px -8px rgb(30 58 138 / 0.8); }
.tab-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -10px rgb(15 23 42 / 0.15); }
.tab-btn.drag-enabled { cursor: grab; }
.tab-btn.drag-enabled:active { cursor: grabbing; }
.tab-dragging { opacity: 0.6; background: #cbd5e1 !important; border: 2px dashed var(--main-blue) !important; }
.scrollbar-hide::-webkit-scrollbar { display: none; }
.bg-navy { background-color: #1e3a8a; }
.text-navy { color: #1e3a8a; }

.eng-num {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    font-weight: 800 !important;
    direction: ltr !important;
    text-align: center !important;
}

.modal-animate {
    animation: fadeInZoom 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes fadeInZoom {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
/* 🖨️ الكتلة الموحدة والذكية لطباعة التقارير والمخزون بدون تعارض */
@media print {
    body * { 
        visibility: hidden !important; 
    }
    .print-area, .print-area *, #adminReportModal, #adminReportModal * { 
        visibility: visible !important; 
    }
    .print-area, #adminReportModal { 
        position: absolute !important; 
        left: 0 !important; 
        top: 0 !important; 
        width: 100% !important; 
        height: auto !important; 
        overflow: visible !important;
        background: white !important;
    }
    .no-print, button, select, input, .tab-btn, header { 
        display: none !important; 
    }
    .overflow-auto, .overflow-y-auto, .custom-scrollbar {
        overflow: visible !important;
        max-height: none !important;
        height: auto !important;
    }
    table { 
        width: 100% !important; 
        border-collapse: collapse !important; 
    }
    th, td { 
        border: 1px solid #cbd5e1 !important; 
        padding: 8px !important; 
        text-align: center !important;
    }
}

@media screen {
/* Light mode only: same off-white tokens as the Operations page (page #e8e5df, cards #f1efe9, borders #d3cfc6, table head #e2dfd8). Dark mode and unit status colours are untouched. */
html:not(.dark):not(.ow) body{background-color:#e8e5df !important;color:#25303b !important}
html:not(.dark):not(.ow) #tableViewContainer,html:not(.dark):not(.ow) header,html:not(.dark):not(.ow) .bg-white{background-color:#f1efe9 !important;border-color:#d3cfc6 !important}
html:not(.dark):not(.ow) .bg-slate-50,html:not(.dark):not(.ow) .bg-slate-100,html:not(.dark):not(.ow) .bg-\[\#f8fafc\],html:not(.dark):not(.ow) .bg-\[\#f3f4f6\],html:not(.dark):not(.ow) .bg-\[\#eef2f6\]{background-color:#e8e5df !important}
html:not(.dark):not(.ow) table thead,html:not(.dark):not(.ow) table thead tr,html:not(.dark):not(.ow) table th{background-color:#e2dfd8 !important;border-bottom-color:#d3cfc6 !important}
html:not(.dark):not(.ow) .erp-filter-btn,html:not(.dark):not(.ow) .tab-btn:not(.active),html:not(.dark):not(.ow) #buildingTabs .tab-btn:not(.active){background-color:#e8e5df !important;border-color:#cfcbc2 !important}
html:not(.dark):not(.ow) .erp-filter-btn:hover,html:not(.dark):not(.ow) .tab-btn:not(.active):hover,html:not(.dark):not(.ow) #buildingTabs .tab-btn:not(.active):hover{background-color:#e2dfd8 !important}
html:not(.dark):not(.ow) #propertiesList tr.erp-unit-row:nth-child(odd){background-color:#f1efe9 !important}
html:not(.dark):not(.ow) #propertiesList tr.erp-unit-row:nth-child(even){background-color:#e8e5df !important}
html:not(.dark):not(.ow) input,html:not(.dark):not(.ow) select,html:not(.dark):not(.ow) textarea{background-color:#faf9f6}
html:not(.dark):not(.ow) #tableViewContainer thead th{background-color:#e2dfd8 !important;border-bottom-color:#d3cfc6 !important}
}

@media screen {
/* Unified look (Nov 25): accent, buttons, headers and modals follow the Operations/Finance tokens. Visual only. Light mode; dark mode, print and unit status colours untouched. */
html:not(.dark):not(.ow){--main-blue:#4f6f8f}
html:not(.dark):not(.ow) .bg-navy{background-color:#4f6f8f !important;color:#fff}
html:not(.dark):not(.ow) .text-navy{color:#3d5a78 !important}
html:not(.dark):not(.ow) .tab-btn.active{border-color:#3d5a78 !important;box-shadow:none !important}
html:not(.dark):not(.ow) .tab-btn,html:not(.dark):not(.ow) .erp-filter-btn{border-radius:12px !important;font-family:inherit}
html:not(.dark):not(.ow) button.bg-blue-600,html:not(.dark):not(.ow) button.bg-indigo-600,html:not(.dark):not(.ow) button.bg-blue-700,html:not(.dark):not(.ow) button.bg-indigo-700,html:not(.dark):not(.ow) button.bg-blue-900,html:not(.dark):not(.ow) button.bg-indigo-900,html:not(.dark):not(.ow) button.bg-blue-500,html:not(.dark):not(.ow) button.bg-indigo-500{background-color:#4f6f8f !important;border-color:#3d5a78 !important;color:#fff !important}
html:not(.dark):not(.ow) button.bg-blue-600:hover,html:not(.dark):not(.ow) button.bg-indigo-600:hover,html:not(.dark):not(.ow) button.bg-blue-700:hover,html:not(.dark):not(.ow) button.bg-indigo-700:hover{background-color:#3d5a78 !important}
html:not(.dark):not(.ow) button.bg-slate-800,html:not(.dark):not(.ow) button.bg-slate-900,html:not(.dark):not(.ow) button.bg-black{background-color:#3d5a78 !important;border-color:#2f4860 !important;color:#fff !important}
html:not(.dark):not(.ow) button.bg-slate-800:hover,html:not(.dark):not(.ow) button.bg-slate-900:hover{background-color:#2f4860 !important}
html:not(.dark):not(.ow) button.bg-red-600,html:not(.dark):not(.ow) button.bg-red-500,html:not(.dark):not(.ow) button.bg-red-700{background-color:#a14a3f !important;border-color:#8a3d33 !important;color:#fff !important}
html:not(.dark):not(.ow) button.bg-emerald-600,html:not(.dark):not(.ow) button.bg-green-600,html:not(.dark):not(.ow) button.bg-emerald-500{background-color:#3f7a55 !important;border-color:#336646 !important;color:#fff !important}
html:not(.dark):not(.ow) button.bg-red-50,html:not(.dark):not(.ow) button.bg-red-100{background-color:#f3e4e0 !important;border-color:#e3c9c3 !important;color:#8a3d33 !important}
html:not(.dark):not(.ow) button.bg-blue-50,html:not(.dark):not(.ow) button.bg-indigo-50,html:not(.dark):not(.ow) button.bg-blue-100,html:not(.dark):not(.ow) button.bg-indigo-100{background-color:#e2e9f0 !important;border-color:#c9d5e0 !important;color:#3d5a78 !important}
html:not(.dark):not(.ow) button.bg-white,html:not(.dark):not(.ow) button.bg-slate-100,html:not(.dark):not(.ow) button.bg-slate-200{background-color:#e8e5df !important;border-color:#cfcbc2 !important;color:#25303b !important}
html:not(.dark):not(.ow) .rounded-xl,html:not(.dark):not(.ow) .rounded-2xl,html:not(.dark):not(.ow) .rounded-3xl{border-radius:14px}
html:not(.dark):not(.ow) .border-slate-200,html:not(.dark):not(.ow) .border-slate-300,html:not(.dark):not(.ow) .border-slate-100{border-color:#d3cfc6 !important}
html:not(.dark):not(.ow) aside.bg-white,html:not(.dark):not(.ow) #adminSidebar .bg-slate-50{background-color:#e8e5df !important}
html:not(.dark):not(.ow) #adminSidebar .bg-slate-100{background-color:#e2dfd8 !important}
html:not(.dark):not(.ow) #adminSidebar .admin-tab-btn:not(.bg-navy){color:#53606a !important}
html:not(.dark):not(.ow) #adminSidebar .bg-slate-800{background-color:#3d5a78 !important}
html:not(.dark):not(.ow) #adminSidebar .text-blue-600,html:not(.dark):not(.ow) #adminSidebar .text-indigo-700,html:not(.dark):not(.ow) #adminSidebar .text-indigo-900,html:not(.dark):not(.ow) #adminSidebar .text-blue-700,html:not(.dark):not(.ow) #adminSidebar .text-blue-800{color:#3d5a78 !important}
html:not(.dark):not(.ow) input,html:not(.dark):not(.ow) select,html:not(.dark):not(.ow) textarea{border-color:#a9a79f;border-radius:10px}
html:not(.dark):not(.ow) input:focus,html:not(.dark):not(.ow) select:focus,html:not(.dark):not(.ow) textarea:focus{outline:2px solid #4f6f8f;outline-offset:-1px;border-color:#4f6f8f}
html:not(.dark):not(.ow) button.bg-purple-600,html:not(.dark):not(.ow) button.bg-purple-700,html:not(.dark):not(.ow) button.bg-purple-500{background-color:#4f6f8f !important;border-color:#3d5a78 !important;color:#fff !important}
html:not(.dark):not(.ow) .bg-\[\#111827\],html:not(.dark):not(.ow) .bg-\[\#0f172a\],html:not(.dark):not(.ow) .bg-\[\#0b1120\],html:not(.dark):not(.ow) .bg-indigo-950,html:not(.dark):not(.ow) .bg-blue-950,html:not(.dark):not(.ow) .bg-purple-950,html:not(.dark):not(.ow) .bg-blue-900,html:not(.dark):not(.ow) .bg-indigo-900{background-color:#3d5a78 !important;border-color:#2f4860 !important;color:#fff}
html:not(.dark):not(.ow) button.bg-\[\#0f172a\]:hover,html:not(.dark):not(.ow) button.bg-\[\#111827\]:hover{background-color:#2f4860 !important}
html:not(.dark):not(.ow) .bg-purple-50,html:not(.dark):not(.ow) .bg-purple-100{background-color:#e2e9f0 !important}
html:not(.dark):not(.ow) #buildingTabs .tab-btn.active,html:not(.dark):not(.ow) .erp-filter-btn.erp-filter-btn-active,html:not(.dark):not(.ow) .erp-filter-btn-active{background-color:#4f6f8f !important;color:#fff !important;border-color:#3d5a78 !important;box-shadow:none !important}
}
