@davoodmehraban89 / Factor-easy-2 Mirror · read-only / commits / 7b9e566
Fork 0

سامانه صدور فاکتور و حسابداری

Mirrored from https://github.com/davoodmehraban89/Factor-easy.git

Synced Dec 4, 00:30 UTC

Finalize Phase 1 enterprise shell and responsive navigation

davoodmehraban89 committed Sep 28, 2026 at 17:33 UTC 7b9e566e20fcd80600c7a1070569b40f15454a01
1 file changed +75 -2
index.html
+75 -2
@@ -116,6 +116,77 @@ html,body{background:#fff!important;color:#000!important;margin:0!important;padd
116 .form-row{grid-template-columns:1fr}
117 .whatsapp-support{bottom:84px;left:12px;padding:8px 12px 8px 10px;font-size:11.5px}
118 }
119 +
120 +/* Finora Phase 1 — scalable enterprise shell */
121 +:root{--shell-rail:82px;--shell-panel:238px;--shell-top:72px;--shell-line:#e5eaf1;--shell-soft:#f4f8fc;--shell-accent:#078b9b;--shell-accent-soft:#e9f8fa}
122 +body{background:#f6f9fc}
123 +.app-shell-nav.sidebar{width:var(--shell-rail);border-left:1px solid var(--shell-line);box-shadow:none;background:#fff;z-index:320}
124 +.app-shell-nav .brand-box{height:var(--shell-top);padding:9px 6px;display:flex;flex-direction:column;justify-content:center;gap:2px;text-align:center;border-bottom:1px solid var(--shell-line)}
125 +.app-shell-nav .brand-icon{display:none}
126 +.app-shell-nav .brand-copy h2{font-size:18px;line-height:1.2;color:#10204b;letter-spacing:-.3px}
127 +.app-shell-nav .brand-copy small{font-size:10px;color:#1685d1;font-weight:800}
128 +.module-rail{display:flex;flex:1;flex-direction:column;gap:4px;padding:8px 6px;overflow-y:auto;scrollbar-width:thin}
129 +.module-tab{appearance:none;border:0;background:transparent;color:#334155;border-radius:9px;min-height:55px;padding:6px 3px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;cursor:pointer;font:inherit;transition:.16s ease}
130 +.module-tab span{font-family:Arial,sans-serif;font-size:21px;line-height:1}
131 +.module-tab b{font-size:10.5px;font-weight:650;white-space:nowrap}
132 +.module-tab:hover{background:#f2f7fb;color:#0f6470}
133 +.module-tab.active{background:linear-gradient(145deg,#0795a5,#057b8b);color:#fff;box-shadow:0 5px 14px rgba(7,139,155,.18)}
134 +.app-shell-nav .sidebar-footer{padding:7px 4px;gap:5px;border-top:1px solid var(--shell-line);font-size:9.5px;overflow:hidden}
135 +.shell-logout{border:0;background:transparent;color:#64748b;font:inherit;font-size:10px;cursor:pointer}
136 +.module-panel{position:fixed;top:0;bottom:0;right:var(--shell-rail);width:var(--shell-panel);z-index:310;background:#fff;border-left:1px solid var(--shell-line);transition:transform .2s ease,opacity .2s ease}
137 +.module-panel-head{height:var(--shell-top);display:flex;align-items:center;justify-content:space-between;padding:13px 16px;border-bottom:1px solid var(--shell-line)}
138 +.module-panel-head small{display:block;color:#94a3b8;font-size:10px;margin-bottom:3px}
139 +.module-panel-head h3{font-size:16px;color:#0f172a}
140 +.panel-collapse{width:30px;height:30px;border:1px solid var(--shell-line);border-radius:8px;background:#fff;color:#475569;cursor:pointer;font-size:18px}
141 +.module-panel-links{height:calc(100vh - var(--shell-top));overflow-y:auto;padding:11px}
142 +.module-group{padding:5px 0 11px;border-bottom:1px solid #f0f3f7;margin-bottom:8px}
143 +.module-group:last-child{border-bottom:0}
144 +.module-group-title{font-size:10.5px;color:#94a3b8;font-weight:700;padding:5px 8px 7px}
145 +.module-link{width:100%;border:0;background:transparent;color:#334155;border-radius:8px;min-height:38px;padding:8px 9px;display:flex;align-items:center;gap:9px;text-align:right;font:inherit;font-size:12px;cursor:pointer}
146 +.module-link .mi{width:22px;text-align:center;font-family:Arial,sans-serif;color:#64748b;font-size:15px}
147 +.module-link:hover{background:#f6f9fc;color:#075f6a}
148 +.module-link.active{background:var(--shell-accent-soft);color:#087c8a;font-weight:800;box-shadow:inset -3px 0 #0a9baa}
149 +.module-link.active .mi{color:#078b9b}
150 +.topbar{position:fixed;z-index:300;top:0;right:calc(var(--shell-rail) + var(--shell-panel));left:0;height:var(--shell-top);display:flex;align-items:center;gap:12px;padding:10px 20px;background:rgba(255,255,255,.96);border-bottom:1px solid var(--shell-line);backdrop-filter:blur(12px)}
151 +.topbar-menu{display:none;width:38px;height:38px;border:1px solid var(--shell-line);border-radius:9px;background:#fff;color:#334155;cursor:pointer}
152 +.global-search{position:relative;flex:1;max-width:600px;margin-inline:auto;display:flex;align-items:center;gap:7px;height:40px;padding:0 12px;background:#f8fafc;border:1px solid #dce4ee;border-radius:9px}
153 +.global-search:focus-within{background:#fff;border-color:#8ecbd3;box-shadow:0 0 0 3px rgba(7,139,155,.08)}
154 +.global-search>span{color:#64748b;font-size:18px}
155 +.global-search input{width:100%;border:0;outline:0;background:transparent;font:inherit;color:#0f172a;font-size:12px}
156 +.command-results{display:none;position:absolute;top:46px;right:0;left:0;background:#fff;border:1px solid var(--shell-line);border-radius:10px;padding:6px;box-shadow:0 16px 35px rgba(15,23,42,.13);max-height:330px;overflow:auto}
157 +.command-results.open{display:block}
158 +.command-result{padding:9px 10px;border-radius:7px;cursor:pointer;color:#334155;font-size:12px}
159 +.command-result:hover{background:#f0f8fa;color:#087c8a}
160 +.command-result small{float:left;color:#94a3b8}
161 +.topbar-actions{display:flex;gap:7px;align-items:center}
162 +.topbar-pill{height:38px;border:1px solid #dce4ee;border-radius:9px;background:#fff;color:#334155;padding:0 11px;font:inherit;font-size:11.5px;font-weight:650;cursor:pointer;white-space:nowrap}
163 +.topbar-pill:hover{border-color:#a9cbd0;background:#f7fbfc}
164 +.main-surface{margin-right:calc(var(--shell-rail) + var(--shell-panel));padding:calc(var(--shell-top) + 18px) 22px 90px;max-width:calc(100% - var(--shell-rail) - var(--shell-panel));transition:margin-right .2s ease,max-width .2s ease}
165 +.workspace-context{display:flex;align-items:center;gap:9px;margin:0 0 14px;padding:0 2px;color:#64748b;font-size:11px}
166 +.workspace-context strong{color:#0f172a;font-size:13px}
167 +.workspace-eyebrow{color:#078b9b;font-weight:800}
168 +.shell-panel-collapsed .module-panel{transform:translateX(100%);opacity:0;pointer-events:none}
169 +.shell-panel-collapsed .topbar{right:var(--shell-rail)}
170 +.shell-panel-collapsed .main-surface{margin-right:var(--shell-rail);max-width:calc(100% - var(--shell-rail))}
171 +.grid-kpi .kpi-gradient{background:#fff!important;border:1px solid var(--shell-line)!important;box-shadow:0 2px 7px rgba(15,23,42,.035)!important}
172 +.grid-kpi .kpi-gradient .kpi-lbl{color:#475569!important}
173 +.grid-kpi .kpi-gradient .kpi-val{color:#10204b!important;font-size:19px}
174 +.grid-kpi .kpi-gradient .kpi-icon{background:#f1f7fb!important;color:#087c8a!important}
175 +.card,.kpi-unit{border-color:var(--shell-line);box-shadow:0 2px 7px rgba(15,23,42,.035)}
176 +@media(max-width:1100px){:root{--shell-panel:210px}.topbar{padding-inline:12px}.topbar-pill.fiscal-pill{display:none}}
177 +@media(max-width:820px){
178 + .app-shell-nav,.module-panel{display:none!important}
179 + .topbar,.shell-panel-collapsed .topbar{right:0;height:58px;padding:8px 10px;gap:7px}
180 + .topbar-menu{display:none}
181 + .topbar-actions .topbar-pill{display:none}
182 + .global-search{height:38px;max-width:none}
183 + .main-surface,.shell-panel-collapsed .main-surface{margin-right:0;max-width:100%;padding:72px 12px 92px}
184 + .workspace-context{overflow:hidden;white-space:nowrap}
185 + .mobile-dock{display:flex}
186 + .whatsapp-support{bottom:84px}
187 +}
188 +@media(max-width:520px){.grid-kpi{grid-template-columns:1fr 1fr}.kpi-unit{padding:11px;gap:8px}.grid-kpi .kpi-gradient .kpi-val{font-size:14px}.kpi-icon{width:36px;height:36px}.workspace-context{font-size:10px}}
189 +@media print{.topbar,.module-panel,.app-shell-nav,.workspace-context{display:none!important}.main-surface{margin:0!important;max-width:none!important;padding:0!important}}
190 </style>
191 </head>
192 <body>
@@ -193,6 +264,7 @@ html,body{background:#fff!important;color:#000!important;margin:0!important;padd
264 <div id="command-search-results" class="command-results"></div>
265 </div>
266 <div class="topbar-actions">
267 + <button class="topbar-pill fiscal-pill" id="topbar-fiscal-year" onclick="switchView('view-settings')" title="سال مالی">سال مالی جاری</button>
268 <button class="topbar-pill" id="topbar-company" onclick="switchView('view-settings')" title="شرکت فعال">شرکت فعال</button>
269 <button class="topbar-pill" onclick="startNewInvoice()" title="عملیات سریع">+ عملیات سریع</button>
270 </div>
@@ -203,7 +275,8 @@ html,body{background:#fff!important;color:#000!important;margin:0!important;padd
275 <span>پشتیبانی واتس‌اپ</span>
276 </a>
277
206 -<main class="main-surface">\n<div class="workspace-context no-print"><span class="workspace-eyebrow">فضای کاری</span><strong id="workspace-title">داشبورد</strong><span id="workspace-context-text">نمای یکپارچه عملیات مالی</span></div>
278 +<main class="main-surface">
279 +<div class="workspace-context no-print"><span class="workspace-eyebrow">فضای کاری</span><strong id="workspace-title">داشبورد</strong><span id="workspace-context-text">نمای یکپارچه عملیات مالی</span></div>
280
281
282 <section id="view-dashboard" class="view-pane active">
@@ -747,7 +820,7 @@ html,body{background:#fff!important;color:#000!important;margin:0!important;padd
820 <script src="js/core.js?v=20260928-security-v4"></script>
821 <script src="js/admin.js"></script>
822 <script src="js/sync.js?v=20260928-data-v4"></script>
750 -<script src="js/ui.js?v=20260928-phase1-shell-v2"></script>
823 +<script src="js/ui.js?v=20260928-phase1-shell-final"></script>
824 <script src="js/invoices.js?v=20260928-review-v8"></script>
825 <script src="js/print.js?v=20260928-layout-v4"></script>
826 <script src="js/products.js"></script>