1+ /* 1. GENERAL: Container paddings shrink, stacking, font adapt for mobile */
2+ @media (max-width : 768px ) {
3+ .app-layout {
4+ padding-left : 0 !important ;
5+ padding-right : 0 !important ;
6+ min-width : 0 ;
7+ font-size : 15px ;
8+ }
9+ .app-main {
10+ padding : 6px 0 0 0 !important ;
11+ }
12+ .achievements-container ,
13+ .policies-content ,
14+ .employees-content {
15+ padding : 10px 5px !important ;
16+ }
17+ }
18+
19+ /* 2. SIDEBAR: overlay, hide, and usability tweaks for mobile */
20+ @media (max-width : 991px ) {
21+ .e-sidebar {
22+ width : 80vw !important ;
23+ min-width : 200px !important ;
24+ max-width : 97vw !important ;
25+ left : 0 !important ;
26+ top : 0 !important ;
27+ height : 100vh !important ;
28+ border-radius : 0 !important ;
29+ box-shadow : 0 2px 24px rgba (0 , 0 , 0 , 0.22 );
30+ z-index : 1111 ;
31+ }
32+ .app-sidebar {
33+ min-width : 0 ;
34+ width : 100% !important ;
35+ padding : 0 !important ;
36+ }
37+ .sidebar-brand {
38+ gap : 8px !important ;
39+ font-size : 19px ;
40+ padding : 8px 0 9px 12px !important ;
41+ }
42+ .sidebar-toggle {
43+ margin-left : auto;
44+ }
45+ .nav .flex-column {
46+ gap : 0 ;
47+ padding : 2px 0 ;
48+ }
49+ }
50+
51+ /* 3. TOP NAV: squash items, stack user info, hide create if needed */
52+ @media (max-width : 768px ) {
53+ .topnav-inner {
54+ gap : 3px !important ;
55+ padding : 0 4px !important ;
56+ }
57+ .cluster-right {
58+ gap : 3px !important ;
59+ }
60+ .btn-create-group , .btn-create {
61+ min-width : 70px !important ;
62+ padding : 0 7px ;
63+ font-size : 13px !important ;
64+ }
65+ .topnav-avatar-name {
66+ font-size : 12px ;
67+ margin-left : 4px !important ;
68+ word-break : break-all;
69+ }
70+ }
71+
72+ /* 4. SEARCH: search bar fills width, form controls height shrink */
73+ @media (max-width : 768px ) {
74+ .cluster-center , .search-form {
75+ width : 97vw !important ;
76+ min-width : 0 !important ;
77+ max-width : 99vw !important ;
78+ }
79+ .search-form .search-field {
80+ height : 32px !important ;
81+ font-size : 14px ;
82+ }
83+ }
84+ /* Mobile search field needs full width */
85+ @media (max-width : 530px ) {
86+ .search-form ,
87+ .search-field .input-group {
88+ width : 99vw !important ;
89+ min-width : 0 !important ;
90+ max-width : 100vw !important ;
91+ }
92+ }
93+
94+ /* 5. BUTTONS, CHIPS, and TOOLBARS: stack and compress */
95+ @media (max-width : 640px ) {
96+ .toolbar-right ,
97+ .org-filters__pills ,
98+ .filter-chip-row {
99+ flex-wrap : wrap !important ;
100+ gap : 7px !important ;
101+ row-gap : 6px !important ;
102+ justify-content : flex-start !important ;
103+ }
104+ .toolbar-field , .filter-chip {
105+ font-size : 13px !important ;
106+ padding : 6px 10px !important ;
107+ }
108+ .annc-panel-tabs button {
109+ padding : 8px 4px !important ;
110+ }
111+ }
112+
113+ /* 6. GRIDS/TABLES: Horizontal scroll for overflow columns on mobile */
114+ @media (max-width : 900px ) {
115+ .e-grid , .lb-sections , .policies-grid-wrapper .e-grid {
116+ overflow-x : auto !important ;
117+ min-width : 360px !important ;
118+ width : 100vw !important ;
119+ }
120+ }
121+ /* For actual grid row cells, allow wrapping */
122+ @media (max-width : 640px ) {
123+ .e-grid .e-rowcell , .lb-row , .policy-name-cell {
124+ font-size : 13px !important ;
125+ padding-left : 4px !important ;
126+ padding-right : 4px !important ;
127+ white-space : normal !important ;
128+ }
129+ }
130+ /* Keep action buttons visible in grid on small screens */
131+ @media (max-width : 640px ) {
132+ .policy-dialog , .e-dialog {
133+ max-width : 97vw !important ;
134+ min-width : 0 !important ;
135+ }
136+ }
137+
138+ /* 7. EMPLOYEE PROFILE (tabs, avatar, flexing) */
139+ @media (max-width : 600px ) {
140+ .overview-header {
141+ flex-direction : column !important ;
142+ align-items : flex-start !important ;
143+ gap : 3px !important ;
144+ }
145+ .profile-data-name , .profile-data-mail , .profile-data-designation , .profile-data-supervisor , .profile-data-branch {
146+ font-size : 14px !important ;
147+ }
148+ .profile-image svg {
149+ width : 48px !important ;
150+ height : 48px !important ;
151+ }
152+ }
153+
154+ /* 8. DIALOGS/ANNOUNCEMENTS: Center and fill for mobile */
155+ @media (max-width : 570px ) {
156+ .e-annc-detail-dialog .e-dialog , .policy-dialog .e-dialog {
157+ width : 97vw !important ;
158+ max-width : 97vw !important ;
159+ left : 1vw !important ;
160+ right : 1vw !important ;
161+ min-width : 0 !important ;
162+ border-radius : 11px !important ;
163+ padding-left : 0 !important ;
164+ padding-right : 0 !important ;
165+ }
166+ .annc-dlg-content {
167+ padding-left : 2vw !important ;
168+ padding-right : 2vw !important ;
169+ }
170+ }
171+
172+ /* 9. ANNOUNCEMENTS PANEL: right panel covers full width on tiny screens */
173+ @media (max-width : 480px ) {
174+ .annc-right-panel {
175+ width : 99vw !important ;
176+ min-width : 0 !important ;
177+ left : 0 !important ;
178+ border-radius : 0 !important ;
179+ max-width : 100vw !important ;
180+ font-size : 14px !important ;
181+ }
182+ .annc-panel-header , .annc-panel-tabs , .annc-panel-content {
183+ padding-left : 8px !important ;
184+ padding-right : 8px !important ;
185+ }
186+ }
187+
188+ /* 10. LEADERBOARD/ACHIEVEMENTS: Stacked layout for sections on mobile */
189+ @media (max-width : 640px ) {
190+ .lb-sections {
191+ grid-template-columns : 1fr !important ;
192+ }
193+ .lb-section {
194+ min-width : 0 !important ;
195+ border-radius : 10px !important ;
196+ margin-bottom : 14px !important ;
197+ }
198+ }
199+
200+ /* 11. GENERAL: Shrink font slightly on XS mobile, compress app-body paddings */
201+ @media (max-width : 420px ) {
202+ html , body {
203+ font-size : 13.6px !important ;
204+ }
205+ .app-layout {
206+ padding : 0 0 !important ;
207+ }
208+ }
209+
210+ @media (max-width : 991px ) {
211+ .e-sidebar {
212+ width : 68vw !important ;
213+ font-size : 30px ;
214+ min-width : 160px !important ;
215+ max-width : 88vw !important ;
216+ border-top-right-radius : 20px ;
217+ border-bottom-right-radius : 20px ;
218+ box-shadow : 3px 0 10px rgba (0 , 0 , 0 , 0.34 );
219+ background : # 222b3c ;
220+ }
221+ .nav-icon {
222+ font-size : 30px !important ;
223+ margin-right : 15px ;
224+ }
225+ .sidebar-brand {
226+ font-size : 35px ;
227+ }
228+ .title {
229+ font-size : 35px !important ;
230+ }
231+ .nav .flex-column {
232+ margin-top : 15px ;
233+ }
234+ .sidebar-toggle {
235+ margin-right : 10px !important ;
236+ }
237+ }
0 commit comments