luci-app-olsr: handle empty result for non-status tables
[oweals/luci.git] / themes / luci-theme-material / htdocs / luci-static / material / cascade.css
1 /**
2  *      Material is a clean HTML5 theme for LuCI. It is based on luci-theme-bootstrap and MUI
3  *
4  *      luci-theme-material
5  *              Copyright 2015 Lutty Yang <lutty@wcan.in>
6  *
7  *      Have a bug? Please create an issue here on GitHub!
8  *              https://github.com/LuttyYang/luci-theme-material/issues
9  *
10  *      luci-theme-bootstrap:
11  *              Copyright 2008 Steven Barth <steven@midlink.org>
12  *              Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
13  *              Copyright 2012 David Menting <david@nut-bolt.nl>
14  *
15  *      MUI:
16  *              https://github.com/muicss/mui
17  *
18  *      Menu and loading spinner icons from IcoMoon:
19  *              https://icomoon.io
20  *
21  *      Pure CSS ripple effect:
22  *              https://github.com/mladenplavsic/css-ripple-effect
23  *
24  *      Licensed to the public under the Apache License 2.0
25  */
26
27 /*
28  *      Include custom css
29  */
30 @import url("custom.css");
31
32 .table {
33         position: relative;
34         display: table;
35 }
36
37 .tr {
38         display: table-row;
39 }
40 .thead {
41         display: table-header-group;
42 }
43
44 .tbody {
45         display: table-row-group;
46 }
47
48 .tfoot {
49         display: table-footer-group;
50 }
51
52 .td,
53 .th {
54         line-height: normal;
55         display: table-cell;
56         padding: .5em;
57         text-align: center;
58         vertical-align: middle;
59 }
60
61 .th {
62         font-weight: bold;
63 }
64
65 .tr.placeholder {
66         height: 4em;
67 }
68
69 .tr.placeholder > .td {
70         line-height: 3;
71         position: absolute;
72         right: 0;
73         bottom: 0;
74         left: 0;
75         text-align: center !important;
76         background: inherit;
77 }
78
79 .td[width="33%"] {
80         padding: 1.1em;
81 }
82
83 .table[width="33%"],
84 .th[width="33%"],
85 .td[width="33%"] {
86         width: 33%;
87 }
88
89 .table[width="100%"],
90 .th[width="100%"],
91 .td[width="100%"] {
92         width: 100%;
93 }
94
95 .col-1 {
96         flex: 1 1 30px !important;
97 }
98
99 .col-2 {
100         flex: 2 2 60px !important;
101 }
102
103 .col-3 {
104         flex: 3 3 90px !important;
105 }
106
107 .col-4 {
108         flex: 4 4 120px !important;
109 }
110
111 .col-5 {
112         flex: 5 5 150px !important;
113 }
114
115 .col-6 {
116         flex: 6 6 180px !important;
117 }
118
119 .col-7 {
120         flex: 7 7 210px !important;
121 }
122
123 .col-8 {
124         flex: 8 8 240px !important;
125 }
126
127 .col-9 {
128         flex: 9 9 270px !important;
129 }
130
131 .col-10 {
132         flex: 10 10 300px !important;
133 }
134
135 * {
136         box-sizing: border-box;
137         margin: 0;
138         padding: 0;
139 }
140
141 .h1,
142 .h2,
143 .h3,
144 .h4,
145 .h5,
146 .h6,
147 h1,
148 h2,
149 h3,
150 h4,
151 h5,
152 h6 {
153         font-family: inherit;
154         font-weight: normal;
155         line-height: 1.1 !important;
156         color: inherit;
157 }
158
159 html {
160         overflow-y: hidden;
161         -webkit-text-size-adjust: 100%;
162         -ms-text-size-adjust: 100%;
163 }
164
165 body {
166         font-size: .8rem;
167         background-color: #eee;
168 }
169
170 html,
171 body {
172         font-family: "Microsoft Yahei", "WenQuanYi Micro Hei", "sans-serif", "Helvetica Neue", "Helvetica", "Hiragino Sans GB";
173         font-family: var(--font-body);
174         height: 100%;
175         margin: 0;
176         padding: 0;
177 }
178
179 select {
180         padding: .36rem .8rem;
181         color: #555;
182         border: thin solid #ccc;
183         background-color: #fff;
184         background-image: none;
185 }
186
187 .btn,
188 button,
189 select,
190 input,
191 .cbi-dropdown {
192         height: 1.8rem;
193         padding: 0;
194         color: rgba(0, 0, 0, .87);
195         border: 0;
196         border-bottom: 2px solid rgba(0, 0, 0, .26);
197         border-radius: 0;
198         outline: 0;
199         background-color: transparent;
200         background-image: none;
201         box-shadow: none;
202 }
203
204 select,
205 .cbi-dropdown {
206         width: inherit;
207         cursor: default;
208 }
209
210 select:not([multiple="multiple"]):focus,
211 input:not(.cbi-button):focus,
212 .cbi-dropdown:focus {
213         border-color: #09c;
214         border-color: var(--main-color);
215 }
216
217 select[multiple="multiple"] {
218         height: auto;
219 }
220
221 pre {
222         overflow: auto;
223 }
224
225 code {
226         font-size: 1rem;
227         font-size-adjust: .35;
228         padding: 1px 3px;
229         color: #101010;
230         border-radius: 2px;
231         background: #ddd;
232 }
233
234 abbr {
235         cursor: help;
236         text-decoration: underline;
237         color: #005470;
238 }
239
240 hr {
241         margin: 1rem 0;
242         opacity: .1;
243         border-color: #eee;
244 }
245
246 header,
247 .main {
248         position: absolute;
249         width: 100%;
250 }
251
252 header {
253         position: fixed;
254         z-index: 2000;
255         float: left;
256         height: 4rem;
257         transition: box-shadow .2s;
258         box-shadow: 0 2px 5px rgba(0, 0, 0, .26);
259 }
260
261 footer {
262         font-size: .8rem;
263         overflow: hidden;
264         padding: 1rem;
265         text-align: right;
266         white-space: nowrap;
267         color: #aaa;
268         text-shadow: 0 0 2px #bbb;
269 }
270
271 footer > a {
272         text-decoration: none;
273         color: #aaa;
274 }
275
276 small {
277         font-size: 90%;
278         line-height: 1.42857143;
279         white-space: normal;
280 }
281
282 .main {
283         position: relative;
284         top: 4rem;
285         bottom: 0;
286         overflow-y: auto;
287         height: 100%;
288         height: calc(100% - 4rem);
289 }
290
291 .main > .loading {
292         position: fixed;
293         z-index: 1000;
294         top: 0;
295         display: block;
296         width: 100%;
297         height: 100%;
298         pointer-events: none;
299         background-color: rgb(240, 240, 240);
300 }
301
302 .main > .loading > span {
303         font-family: monospace;
304         font-size: 2rem;
305         font-size-adjust: .35;
306         position: relative;
307         top: 12.5%;
308         display: block;
309         text-align: center;
310         color: #888;
311 }
312
313 .main > .loading > span > .loading-img {
314         position: relative;
315         top: .1rem;
316         left: .05rem;
317         display: inline-block;
318         width: 1.25rem;
319         height: 1.25rem;
320         margin-right: 1rem;
321         animation: anim-rotate 2s infinite linear;
322         background: url(./icons/spinner.svg) no-repeat center;
323 }
324
325 @keyframes anim-rotate {
326         0% {
327                 -webkit-transform: rotate(0);
328                 -ms-transform: rotate(0);
329                 transform: rotate(0);
330         }
331         100% {
332                 -webkit-transform: rotate(360deg);
333                 -ms-transform: rotate(360deg);
334                 transform: rotate(360deg);
335         }
336 }
337
338 .main-left {
339         position: fixed;
340         top: 4rem;
341         float: left;
342         overflow-x: auto;
343         width: 15%;
344         width: calc(0% + 15rem);
345         height: 100%;
346         height: calc(100% - 4rem);
347         background-color: #fff;
348         background-color: var(--menu-bg-color);
349 }
350
351 .main-right {
352         float: right;
353         width: 85%;
354         width: calc(100% - 15rem);
355         height: 100%;
356         background-color: #eee;
357 }
358
359 .main-right > #maincontent {
360         background-color: #eee;
361 }
362
363 .pull-right {
364         float: right;
365 }
366
367 .pull-left {
368         float: left;
369 }
370
371 .nowrap:not(.td) {
372         white-space: nowrap;
373 }
374
375 [disabled="disabled"] {
376         pointer-events: none;
377 }
378
379 header {
380         color: #fff;
381         color: var(--header-color);
382         background: #09c;
383         background: var(--header-bg);
384 }
385
386 header > .fill > .container {
387         margin-top: .5rem;
388         padding: .5rem 1rem 0 1rem;
389         -webkit-user-select: none;
390         -moz-user-select: none;
391         -ms-user-select: none;
392         user-select: none;
393 }
394
395 header > .fill > .container > #logo {
396         margin: 0 3.5rem 0 1.5rem;
397 }
398
399 header > .fill > .container > #logo > img {
400         width: calc(0% + 10rem);
401         margin-top: -.1rem;
402 }
403
404 body:not(.logged-in) > header > .fill > .container > #logo {
405         display: none;
406 }
407
408 header > .fill > .container > .brand {
409         font-size: 1.4rem;
410         position: absolute;
411         cursor: default;
412         vertical-align: text-bottom;
413         text-decoration: none;
414         color: #fff;
415         color: var(--header-color);
416 }
417
418 header > .fill > .container > .status {
419         position: absolute;
420         top: 25%;
421         right: 1em;
422         float: right;
423 }
424
425 header > .fill > .container > .status > * {
426         position: relative;
427         top: .2rem;
428         float: left;
429         margin-left: .3rem;
430         cursor: pointer;
431 }
432
433 #xhr_poll_status {
434         display: flex;
435 }
436
437 .danger {
438         background-color: #ff7d60 !important;
439 }
440
441 .warning {
442         background-color: #f0e68c !important;
443 }
444
445 .success {
446         background-color: #5cb85c !important;
447 }
448
449 .notice {
450         background-color: #5bc0de !important;
451 }
452
453 .error {
454         color: #f00;
455 }
456
457 .alert,
458 .alert-message {
459         font-weight: bold;
460         margin-bottom: 1em;
461         padding: 1rem;
462         border: 0;
463         border-radius: 0 !important;
464         background-color: #fff;
465         box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
466         text-shadow: 1px 1px rgba(0, 0, 0, .1);
467 }
468
469 .alert-message > h4 {
470         font-size: 110%;
471         font-weight: bold;
472 }
473
474 .alert-message > * {
475         margin: .5rem 0;
476 }
477
478 .alert-message .btn {
479         padding: .3rem .6rem;
480 }
481
482 .container .alert,
483 .container .alert-message {
484         margin-top: 1rem;
485 }
486
487 .main > .main-left > .nav {
488         margin-top: .5rem;
489 }
490
491 .main > .main-left > .nav > li {
492         padding: .5rem 1rem;
493         cursor: pointer;
494         -webkit-user-select: none;
495         -moz-user-select: none;
496         -ms-user-select: none;
497         user-select: none;
498 }
499
500 .main > .main-left > .nav > li:last-child {
501         display: flex;
502         align-items: center;
503         margin: 2rem 0 1rem 0;
504         padding: 0 0 0 2rem;
505 }
506
507 .main > .main-left > .nav > li a {
508         display: block;
509         color: #5f6368;
510         color: var(--menu-color);
511 }
512
513 .main > .main-left > .nav > .slide {
514         padding: 0;
515 }
516
517 .main > .main-left > .nav > .slide > ul {
518         display: none;
519 }
520
521 .main > .main-left > .nav > .slide > .menu,
522 .main > .main-left > .nav > li > [data-title="Logout"] {
523         font-size: 1.15rem;
524         font-weight: 500;
525         display: flex;
526         align-items: center;
527         width: 100%;
528         padding: .5rem 1rem;
529         text-decoration: none;
530         color: #202124;
531         color: var(--main-menu-color);
532 }
533
534 .main > .main-left > .nav > .slide > .menu::before {
535         position: absolute;
536         right: 17px;
537         width: 16px;
538         height: 16px;
539         content: "";
540         background: url(./icons/arrow.svg) no-repeat;
541 }
542
543 .main > .main-left > .nav > .slide > .menu.active::before {
544         transform: rotate(-180deg);
545 }
546
547 body[class*="node-"] > .main > .main-left > .nav > .slide > .menu::before {
548         transition: transform .1s ease-in-out;
549 }
550
551 body[class*="node-"] > .main > .main-left > .nav > .slide > .menu.active::before {
552         transition: transform .2s ease-in-out;
553 }
554
555 .main > .main-left[style*="overflow: hidden"] > .nav > .slide > .menu::before {
556         display: none;
557 }
558
559 .main > .main-left > .nav > li:last-child::before {
560         position: absolute;
561         left: 14px;
562         width: 24px;
563         height: 24px;
564         content: url(./icons/logout.svg);
565 }
566
567 .main > .main-left > .nav > li:hover,
568 .main > .main-left > .nav > .slide > .menu:hover {
569         background: #d4d4d4;
570         background: var(--submenu-bg-hover);
571 }
572
573 .main > .main-left > .nav > .slide:hover {
574         background: none;
575 }
576
577 .main > .main-left > .nav > .slide > .slide-menu > li {
578         padding: .4rem 2rem;
579 }
580
581 .main > .main-left > .nav > .slide > .slide-menu > .active {
582         background-color: #09c;
583         background-color: var(--submenu-bg-hover-active);
584 }
585
586 .main > .main-left > .nav > .slide > .slide-menu > li > a {
587         white-space: nowrap;
588         text-decoration: none;
589 }
590
591 .main > .main-left > .nav > .slide > .slide-menu > .active > a {
592         color: #fff;
593 }
594
595 .main > .main-left > .nav > .slide > .slide-menu > li:hover {
596         background: #d4d4d4;
597         background: var(--submenu-bg-hover);
598 }
599
600 .main > .main-left > .nav > .slide > .slide-menu > li:not(.active):hover > a {
601         color: #202124;
602         color: var(--menu-color-hover);
603 }
604
605 .main > .main-left > .nav > .slide > .slide-menu > .active:hover {
606         background-color: #09c;
607         background-color: var(--main-color);
608 }
609
610 /* ripple effect */
611 .main > .main-left > .nav > .slide > .menu,
612 .main > .main-left > .nav > .slide > .slide-menu > li,
613 .main > .main-left > .nav > li:last-child {
614         position: relative;
615         overflow: hidden;
616         transform: translate3d(0, 0, 0);
617 }
618
619 .main > .main-left > .nav > .slide > .menu::after,
620 .main > .main-left > .nav > .slide > .slide-menu > li::after,
621 .main > .main-left > .nav > li:last-child::after {
622         position: absolute;
623         top: 0;
624         left: 0;
625         display: block;
626         width: 100%;
627         height: 100%;
628         content: "";
629         transition: transform .5s, opacity 1s;
630         transform: scale(10, 10);
631         pointer-events: none;
632         opacity: 0;
633         background-image: radial-gradient(circle, #000 10%, transparent 10.01%);
634         background-repeat: no-repeat;
635         background-position: 50%;
636 }
637
638 .main > .main-left > .nav > .slide > .menu:active::after,
639 .main > .main-left > .nav > .slide > .slide-menu > li:active::after,
640 .main > .main-left > .nav > li:last-child:active::after {
641         transition: 0s;
642         transform: scale(0, 0);
643         opacity: .2;
644 }
645
646 #maincontent > .container {
647         margin: 0 2rem 1rem 2rem;
648 }
649
650 ul {
651         line-height: normal;
652 }
653
654 li {
655         list-style-type: none;
656 }
657
658 h1 {
659         font-size: 2rem;
660         padding-bottom: 10px;
661         border-bottom: thin solid #eee;
662 }
663
664 h2 {
665         font-size: 1.8rem;
666         margin: 2rem 0 0 0;
667         padding-bottom: 10px;
668         border-bottom: thin solid #eee;
669 }
670
671 h3 {
672         font-size: 1.4rem;
673         margin: 2rem 0 0 0;
674         padding-bottom: 10px;
675 }
676
677 h4 {
678         font-size: 1.2rem;
679         margin: 2rem 0 0 0;
680         padding-bottom: 10px;
681 }
682
683 h5 {
684         font-size: 1rem;
685         margin: 2rem 0 0 0;
686         padding-bottom: 10px;
687 }
688
689 .cbi-section,
690 .cbi-section-error,
691 #iptables,
692 .Firewall form,
693 #cbi-network > .cbi-section-node,
694 #cbi-wireless > .cbi-section-node,
695 #cbi-wireless > #wifi_assoclist_table,
696 [data-page^="admin-system-admin"]:not(.node-main-login) .cbi-map:not(#cbi-dropbear),
697 [data-page="admin-system-opkg"] #maincontent > .container {
698         font-family: inherit;
699         font-weight: normal;
700         font-style: normal;
701         line-height: normal;
702         min-width: inherit;
703         margin: 1rem 0 0 0;
704         padding: 2rem;
705         border: 0;
706         border-radius: 0;
707         background-color: #fff;
708         box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
709 }
710
711 .cbi-map-descr,
712 .cbi-section-descr {
713         font-size: small;
714         line-height: 1.42857143;
715         padding: .5rem;
716         color: #999;
717 }
718
719 .cbi-map-descr + fieldset {
720         margin-top: 1rem;
721 }
722
723 .cbi-section > legend {
724         display: none !important;
725 }
726
727 fieldset > fieldset,
728 .cbi-section > .cbi-section {
729         margin: 0;
730         padding: 0;
731         border: 0;
732         box-shadow: none;
733 }
734
735 .cbi-section > h3:first-child,
736 .panel-title {
737         font-size: 1.4rem;
738         line-height: 1;
739         display: block;
740         width: 100%;
741         margin: 0;
742         margin-bottom: .5rem;
743         padding-bottom: 1rem;
744         color: #404040;
745         border-bottom: thin solid #eee;
746 }
747
748 table {
749         border-spacing: 0;
750         border-collapse: collapse;
751 }
752
753 table,
754 .table {
755         overflow-y: hidden;
756         width: 100%;
757         box-shadow: 0 0 0 1px #ddd;
758 }
759
760 table > tbody > tr > td,
761 table > tbody > tr > th,
762 table > tfoot > tr > td,
763 table > tfoot > tr > th,
764 table > thead > tr > td,
765 table > thead > tr > th,
766 .table > .tbody > .tr > .td,
767 .table > .tbody > .tr > .th,
768 .table > .tfoot > .tr > .td,
769 .table > .tfoot > .tr > .th,
770 .table > .thead > .tr > .td,
771 .table > .thead > .tr > .th,
772 .table > .tr > .td.cbi-value-field,
773 .table > .tr > .th.cbi-section-table-cell {
774         padding: .5rem;
775 }
776
777 .container > .cbi-section:first-of-type > .table[width="100%"] > .tr > .td {
778         padding: .6rem;
779 }
780
781 .cbi-section-table-cell {
782         line-height: 1.1;
783         align-self: flex-end;
784         flex: 1 1 auto;
785 }
786
787 tr > td,
788 tr > th,
789 .tr > .td,
790 .tr > .th,
791 .cbi-section-table-row::before,
792 #cbi-wireless > #wifi_assoclist_table > .tr:nth-child(2) {
793         border-top: thin solid #ddd;
794 }
795
796 #cbi-wireless .td,
797 #cbi-network .tr:first-child > .td,
798 .table[width="100%"] > .tr:first-child > .td,
799 [data-page="admin-network-diagnostics"] .tr > .td,
800 .tr.table-titles > .th,
801 .tr.cbi-section-table-titles > .th {
802         border-top: 0 !important;
803 }
804
805 .table[width="100%"] > .tr:first-child > .td {
806         margin: auto 0;
807 }
808
809 .cbi-section-table-row {
810         margin-bottom: 1rem;
811         text-align: center !important;
812         background: #f4f4f4;
813 }
814
815 .cbi-section-table-row:last-child {
816         margin-bottom: 0;
817 }
818
819 .cbi-section-table-row > .cbi-value-field .cbi-dropdown,
820 .cbi-section-table-row > .cbi-value-field .cbi-input-select,
821 .cbi-section-table-row > .cbi-value-field .cbi-input-text,
822 .cbi-section-table-row > .cbi-value-field .cbi-input-password {
823         width: 100%;
824 }
825
826 .cbi-section-table-row > .cbi-value-field [data-dynlist] > input,
827 .cbi-section-table-row > .cbi-value-field input.cbi-input-password {
828         width: calc(100% - 1.5rem);
829 }
830
831 .cbi-section-table-row .td {
832         text-align: center !important;
833 }
834
835 div > table > tbody > tr:nth-of-type(2n),
836 div > .table > .tr:nth-of-type(2n) {
837         background-color: #f9f9f9;
838 }
839
840 /* fix multiple table */
841 table table,
842 .table .table,
843 .cbi-value-field table,
844 .cbi-value-field .table,
845 td > table > tbody > tr > td,
846 .td > .table > .tbody > .tr > .td,
847 .cbi-value-field > table > tbody > tr > td,
848 .cbi-value-field > .table > .tbody > .tr > .td {
849         border: 0;
850 }
851
852 /* button style */
853 .btn,
854 .cbi-button,
855 .item::after {
856         font-size: .8rem;
857         display: inline-block;
858         width: auto !important;
859         padding: 0 .8rem;
860         cursor: pointer;
861         -webkit-user-select: none;
862         -moz-user-select: none;
863         -ms-user-select: none;
864         user-select: none;
865         transition: all .2s ease-in-out;
866         text-align: center;
867         vertical-align: middle;
868         white-space: nowrap;
869         text-decoration: none;
870         text-transform: uppercase;
871         color: rgba(0, 0, 0, .87);
872         border: 0;
873         border-radius: .2rem;
874         background-color: #f0f0f0;
875         background-image: none;
876         -webkit-appearance: none;
877         -ms-touch-action: manipulation;
878         touch-action: manipulation;
879 }
880
881 .cbi-button-up,
882 .cbi-button-down {
883         font-size: 1.2rem;
884         display: inline-block;
885         min-width: 0;
886         padding: .2rem .3rem;
887         color: transparent !important;
888         background: url(./icons/arrow.svg) no-repeat center;
889         background-size: 12px 20px;
890 }
891
892 .cbi-button-up {
893         transform: scaleY(-1);
894 }
895
896 .cbi-button:not(select) {
897         -webkit-appearance: none !important;
898 }
899
900 .cbi-button + .cbi-button {
901         margin-left: .6rem;
902 }
903
904 .btn:hover,
905 .btn:focus,
906 .btn:active,
907 .cbi-button:hover,
908 .cbi-button:focus,
909 .cbi-button:active,
910 .item:hover::after,
911 .item:focus::after,
912 .item:active::after,
913 .cbi-page-actions .cbi-button-apply + .cbi-button-save:hover,
914 .cbi-page-actions .cbi-button-apply + .cbi-button-save:focus,
915 .cbi-page-actions .cbi-button-apply + .cbi-button-save:active {
916         text-decoration: none;
917         outline: 0;
918 }
919
920 .btn:hover,
921 .btn:focus,
922 .cbi-button:hover,
923 .cbi-button:focus,
924 .item:hover::after,
925 .item:focus::after {
926         box-shadow: 0 0 2px rgba(0, 0, 0, .12), 0 2px 2px rgba(0, 0, 0, .2);
927 }
928
929 .btn:active,
930 .cbi-button:active,
931 .item:active::after {
932         box-shadow: 0 10px 20px rgba(0, 0, 0, .19), 0 6px 6px rgba(0, 0, 0, .23);
933 }
934
935 .cbi-button-up:hover,
936 .cbi-button-up:focus {
937         box-shadow: 0 0 2px rgba(0, 0, 0, .12), 0 -2px 2px rgba(0, 0, 0, .2);
938 }
939
940 .cbi-button-up:active {
941         box-shadow: 0 -10px 20px rgba(0, 0, 0, .19), 0 -6px 6px rgba(0, 0, 0, .23);
942 }
943
944 .btn:disabled,
945 .cbi-button:disabled {
946         cursor: not-allowed;
947         pointer-events: none;
948         opacity: .5;
949         box-shadow: none;
950 }
951
952 /* gray */
953 .alert-message [class="btn"],
954 .modal div[class="btn"],
955 .cbi-button-find,
956 .cbi-button-link,
957 .cbi-button-up,
958 .cbi-button-down,
959 .cbi-button-neutral,
960 .cbi-button[name="zero"],
961 .cbi-button[name="restart"],
962 .cbi-button[onclick="hide_empty(this)"] {
963         font-weight: bold;
964         border: thin solid #bfbfbf;
965         background-color: #d4d4d4;
966 }
967
968 /* dark blue */
969 .btn.primary,
970 .cbi-page-actions .cbi-button-save,
971 .cbi-page-actions .cbi-button-apply + .cbi-button-save,
972 .cbi-button-add,
973 .cbi-button-save,
974 .cbi-button-positive,
975 .cbi-button-link,
976 .cbi-button[value="Enable"],
977 .cbi-button[value="Scan"],
978 .cbi-button[value^="Back"],
979 .cbi-button-neutral[onclick="handleConfig(event)"] {
980         font-weight: normal;
981         color: #fff;
982         border: thin solid #2e6da4;
983         background-color: #337ab7;
984 }
985
986 /* light blue */
987 .cbi-page-actions .cbi-button-apply,
988 .cbi-section-actions .cbi-button-edit,
989 .cbi-button-edit,
990 .cbi-button-apply,
991 .cbi-button-reload,
992 .cbi-button-action,
993 .cbi-button[value="Submit"],
994 .cbi-button[value="Upload"],
995 .cbi-button[value$="Apply"],
996 .cbi-button[onclick="addKey(event)"] {
997         font-weight: normal;
998         color: #fff;
999         border: thin solid #46b8da;
1000         background-color: #5bc0de;
1001 }
1002
1003 /* red */
1004 .btn.danger,
1005 .cbi-section-remove > .cbi-button,
1006 .cbi-button-remove,
1007 .cbi-button-reset,
1008 .cbi-button-negative,
1009 .cbi-button[value="Stop"],
1010 .cbi-button[value="Kill"],
1011 .cbi-button[onclick="reboot(this)"],
1012 .cbi-button-neutral[value="Restart"] {
1013         font-weight: normal;
1014         color: #fff;
1015         border: thin solid #d43f3a;
1016         background-color: #d9534f;
1017 }
1018
1019 /* yellow */
1020 .btn[value="Dismiss"],
1021 .cbi-button[value="Terminate"],
1022 .cbi-button[value="Reset"],
1023 .cbi-button[value="Disabled"],
1024 .cbi-button[onclick^="iface_reconnect"],
1025 .cbi-button[onclick="handleReset(event)"],
1026 .cbi-button-neutral[value="Disable"] {
1027         font-weight: normal;
1028         color: #fff;
1029         border: thin solid #eea236;
1030         background-color: #f0ad4e;
1031 }
1032
1033 /* green */
1034 .cbi-button-success,
1035 .cbi-button-download,
1036 .cbi-button[name="backup"],
1037 .cbi-button[value="Download"],
1038 .cbi-button[value="Save mtdblock"] {
1039         font-weight: normal;
1040         color: #fff;
1041         border: thin solid #4cae4c;
1042         background-color: #5cb85c;
1043 }
1044
1045 .cbi-page-actions .cbi-button-link:first-child {
1046         float: left;
1047 }
1048
1049 .a-to-btn {
1050         text-decoration: none;
1051 }
1052
1053 .cbi-value-field .cbi-button-add {
1054         font-weight: bold;
1055         margin: 9px 0 4px 3px;
1056         padding: 1px 6px;
1057 }
1058
1059 .tabs {
1060         margin: 0 -2rem;
1061         padding-left: .5rem;
1062         background-color: #fff;
1063 }
1064
1065 .tabs > li,
1066 .cbi-tabmenu > li {
1067         display: inline-block;
1068         padding: .55rem 0;
1069         cursor: pointer;
1070 }
1071
1072 .tabs > li {
1073         padding-bottom: .4rem;
1074         border-bottom: .2rem solid transparent;
1075 }
1076
1077 .tabs > li[class~="active"],
1078 .tabs > li:hover {
1079         border-bottom-color: #09c;
1080         border-bottom-color: var(--main-color);
1081 }
1082
1083 .tabs > li:hover {
1084         cursor: pointer;
1085         border-bottom-color: #c9c9c9;
1086 }
1087
1088 .tabs > li > a,
1089 .cbi-tabmenu > li > a {
1090         padding: .6rem .9rem;
1091         text-decoration: none;
1092         color: #404040;
1093 }
1094
1095 .tabs > li[class~="active"] > a {
1096         color: #09c;
1097         color: var(--main-color);
1098 }
1099
1100 .cbi-tabmenu {
1101         border: thin solid #d4d4d4;
1102         border-bottom: 0;
1103 }
1104
1105 .cbi-tabmenu > li:hover {
1106         background-color: #f1f1f1;
1107 }
1108
1109 .cbi-tabmenu > li[class~="cbi-tab"] {
1110         background-color: #fff;
1111 }
1112
1113 .cbi-tabmenu {
1114         background-color: #d4d4d4;
1115 }
1116
1117 .cbi-section .cbi-section-remove:nth-of-type(2n),
1118 .container > .cbi-section .cbi-section-node:nth-of-type(2n) {
1119         background-color: #f9f9f9;
1120 }
1121
1122 [data-tab-title] {
1123         overflow: hidden;
1124         height: 0;
1125         opacity: 0;
1126 }
1127
1128 [data-tab-active="true"] {
1129         overflow: visible;
1130         height: auto;
1131         opacity: 1;
1132         transition: opacity .25s ease-in;
1133 }
1134
1135 .cbi-section[id] .cbi-section-remove:nth-of-type(4n+3),
1136 .cbi-section[id] .cbi-section-node:nth-of-type(4n+4) {
1137         background-color: #f9f9f9;
1138 }
1139
1140 .cbi-section-node-tabbed {
1141         margin-top: 0;
1142         padding: 0;
1143         border: thin solid #d4d4d4;
1144         border-top: 0;
1145 }
1146
1147 .cbi-tabcontainer > .cbi-value:nth-of-type(2n) {
1148         background-color: #f9f9f9;
1149 }
1150
1151 .cbi-value-field,
1152 .cbi-value-description {
1153         line-height: 1.25;
1154         display: table-cell;
1155 }
1156
1157 .cbi-value-description {
1158         font-size: small;
1159         padding-top: .4rem;
1160         opacity: .5;
1161 }
1162
1163 .cbi-value-title {
1164         display: table-cell;
1165         float: left;
1166         width: 23rem;
1167         padding-top: .35rem;
1168         padding-right: 2rem;
1169         text-align: right;
1170         word-wrap: break-word;
1171 }
1172
1173 .cbi-value {
1174         display: inline-block;
1175         width: 100%;
1176         padding: .35rem 1rem .2rem 1rem;
1177 }
1178
1179 .cbi-value ul {
1180         line-height: 1.25;
1181 }
1182
1183 .cbi-value-field .cbi-dropdown,
1184 .cbi-value-field .cbi-input-select,
1185 .cbi-value input[type="text"],
1186 .cbi-value input[type="password"] {
1187         min-width: 25rem;
1188 }
1189
1190 #cbi-firewall-zone .cbi-input-select,
1191 #cbi-network-switch_vlan .cbi-input-select {
1192         min-width: 11rem;
1193 }
1194
1195 #cbi-network-switch_vlan .cbi-input-text {
1196         max-width: 3rem;
1197 }
1198
1199 .cbi-input-invalid {
1200         color: #f00;
1201         border-bottom-color: #f00;
1202 }
1203
1204 .cbi-section-error {
1205         font-weight: bold;
1206         line-height: 1.42857143;
1207         margin: 18px;
1208         padding: 6px;
1209         border: thin solid #f00;
1210         border-radius: 3px;
1211         background-color: #fce6e6;
1212 }
1213
1214 .cbi-section-error ul {
1215         margin: 0 0 0 20px;
1216 }
1217
1218 .cbi-section-error ul li {
1219         font-weight: bold;
1220         color: #f00;
1221 }
1222
1223 .td[data-title]::before {
1224         font-weight: bold;
1225         display: none;
1226         padding: .25rem 0;
1227         content: attr(data-title) ":\20";
1228         text-align: left;
1229         white-space: nowrap;
1230 }
1231
1232 .tr.placeholder .td[data-title]::before {
1233         display: none;
1234 }
1235
1236 .tr[data-title]::before,
1237 .tr.cbi-section-table-titles.named::before {
1238         font-weight: bold;
1239         display: table-cell;
1240         align-self: center;
1241         flex: 1 1 5%;
1242         padding: .25rem;
1243         content: attr(data-title) "\20";
1244         text-align: center;
1245         vertical-align: middle;
1246         white-space: normal;
1247         word-wrap: break-word;
1248 }
1249
1250 .cbi-rowstyle-1 {
1251         background-color: #f9f9f9;
1252 }
1253
1254 .cbi-rowstyle-2 {
1255         background-color: #eee;
1256 }
1257
1258 .cbi-rowstyle-2 .cbi-button-up,
1259 .cbi-rowstyle-2 .cbi-button-down,
1260 body:not(.Interfaces) .cbi-rowstyle-2:first-child {
1261         background-color: #fff !important;
1262 }
1263
1264 .cbi-section-table .cbi-section-table-titles .cbi-section-table-cell {
1265         width: auto !important;
1266 }
1267
1268 .td.cbi-section-actions {
1269         text-align: right !important;
1270         vertical-align: middle;
1271 }
1272
1273 .td.cbi-section-actions > * {
1274         display: inline-flex;
1275 }
1276
1277 .td.cbi-section-actions > * > *,
1278 .td.cbi-section-actions > * > form > * {
1279         margin: 0 5px;
1280 }
1281
1282 .td.cbi-section-actions > * > form {
1283         display: inline-flex;
1284         margin: 0;
1285 }
1286
1287 /* lists */
1288 .cbi-dynlist {
1289         line-height: 1.3;
1290         flex-direction: column;
1291         min-height: 30px;
1292         cursor: text;
1293 }
1294
1295 .cbi-dynlist > .item {
1296         position: relative;
1297         max-width: 25rem;
1298         margin-right: 2em;
1299         padding: .5em .25em .25em 0;
1300         pointer-events: none;
1301         color: #666;
1302         border-bottom: 2px solid rgba(0, 0, 0, .26);
1303         outline: 0;
1304 }
1305
1306 .cbi-dynlist[name="sshkeys"] > .item {
1307         max-width: none;
1308 }
1309
1310 .cbi-dynlist > .item::after {
1311         font-weight: bold;
1312         position: absolute;
1313         right: -2em;
1314         bottom: 0;
1315         display: inline-flex;
1316         min-height: 17px;
1317         padding: 0 6px;
1318         content: "\00D7";
1319         pointer-events: auto;
1320         color: #fff;
1321         border: thin solid #d43f3a;
1322         background-color: #d9534f;
1323 }
1324
1325 .cbi-dynlist > .item > span {
1326         white-space: normal;
1327         word-break: break-word;
1328 }
1329
1330 .cbi-dynlist > .add-item {
1331         display: inline-flex;
1332         align-items: center;
1333         width: 100%;
1334         min-width: 16rem;
1335 }
1336
1337 .cbi-dynlist > .add-item:not([ondrop]) > input {
1338         overflow: hidden;
1339         width: 100%;
1340         min-width: 15rem;
1341         white-space: nowrap;
1342         text-overflow: ellipsis;
1343 }
1344
1345 .cbi-dynlist > .add-item[ondrop] > input {
1346         min-width: 13rem;
1347 }
1348
1349 .cbi-dynlist,
1350 .cbi-dropdown {
1351         position: relative;
1352         display: inline-flex;
1353         padding: 0;
1354 }
1355
1356 .cbi-dropdown[placeholder*="select"] {
1357         max-width: 25rem;
1358         height: auto;
1359         margin-top: -3px;
1360 }
1361
1362 .cbi-dropdown > ul {
1363         display: flex;
1364         overflow-x: hidden;
1365         overflow-y: auto;
1366         width: 100%;
1367         margin: 0 !important;
1368         padding: 0;
1369         list-style: none;
1370         outline: 0;
1371 }
1372
1373 .cbi-dropdown > ul.preview {
1374         display: none;
1375 }
1376
1377 .cbi-dropdown > .open {
1378         flex-basis: 15px;
1379 }
1380
1381 .cbi-dropdown > .open,
1382 .cbi-dropdown > .more {
1383         font-size: 1rem;
1384         font-weight: 900;
1385         line-height: 2;
1386         display: flex;
1387         flex-direction: column;
1388         flex-grow: 0;
1389         flex-shrink: 0;
1390         justify-content: center;
1391         padding: 0 .25em;
1392         cursor: default;
1393         text-align: center;
1394         outline: 0;
1395 }
1396
1397 .cbi-dropdown > .more,
1398 .cbi-dropdown > ul > li[placeholder] {
1399         font-weight: bold;
1400         display: none;
1401         color: #777;
1402         text-shadow: 1px 1px 0 #fff;
1403 }
1404
1405 .cbi-dropdown > ul > li {
1406         display: none;
1407         overflow: hidden;
1408         align-items: center;
1409         align-self: center;
1410         flex-grow: 1;
1411         flex-shrink: 1;
1412         min-height: 20px;
1413         padding: .25em;
1414         white-space: nowrap;
1415         text-overflow: ellipsis;
1416 }
1417
1418 .cbi-dropdown > ul > li .hide-open {
1419         display: initial;
1420 }
1421
1422 .cbi-dropdown > ul > li .hide-close {
1423         display: none;
1424 }
1425
1426 .cbi-dropdown > ul > li[display]:not([display="0"]) {
1427         border-left: thin solid #ccc;
1428 }
1429
1430 .cbi-dropdown[empty] > ul {
1431         max-width: 1px;
1432 }
1433
1434 .cbi-dropdown > ul > li > form {
1435         display: none;
1436         margin: 0;
1437         padding: 0;
1438         pointer-events: none;
1439 }
1440
1441 .cbi-dropdown > ul > li img {
1442         margin-right: .25em;
1443         vertical-align: middle;
1444 }
1445
1446 .cbi-dropdown > ul > li > form > input[type="checkbox"] {
1447         height: auto;
1448         margin: 0;
1449 }
1450
1451 .cbi-dropdown > ul > li input[type="text"] {
1452         height: 20px;
1453 }
1454
1455 .cbi-dropdown[open] > ul.dropdown {
1456         position: absolute;
1457         z-index: 1100;
1458         display: block;
1459         width: auto;
1460         min-width: 100%;
1461         max-width: none;
1462         max-height: 200px !important;
1463         border: thin solid #918e8c;
1464         background: #f6f6f6;
1465         box-shadow: 0 0 4px #918e8c;
1466 }
1467
1468 .cbi-dropdown > ul > li[display],
1469 .cbi-dropdown[open] > ul.preview,
1470 .cbi-dropdown[open] > ul.dropdown > li,
1471 .cbi-dropdown[multiple] > ul > li > label,
1472 .cbi-dropdown[multiple][open] > ul.dropdown > li,
1473 .cbi-dropdown[multiple][more] > .more,
1474 .cbi-dropdown[multiple][empty] > .more {
1475         display: flex;
1476         align-items: center;
1477         flex-grow: 1;
1478 }
1479
1480 .cbi-dropdown[empty] > ul > li,
1481 .cbi-dropdown[optional][open] > ul.dropdown > li[placeholder],
1482 .cbi-dropdown[multiple][open] > ul.dropdown > li > form {
1483         display: block;
1484 }
1485
1486 .cbi-dropdown[open] > ul.dropdown > li .hide-open {
1487         display: none;
1488 }
1489
1490 .cbi-dropdown[open] > ul.dropdown > li .hide-close {
1491         display: initial;
1492 }
1493
1494 .cbi-dropdown[open] > ul.dropdown > li {
1495         border-bottom: thin solid #ccc;
1496 }
1497
1498 .cbi-dropdown[open] > ul.dropdown > li[selected] {
1499         background: #b0d0f0;
1500 }
1501
1502 .cbi-dropdown[open] > ul.dropdown > li.focus {
1503         background: linear-gradient(90deg, #a3c2e8 0%, #84aad9 100%);
1504 }
1505
1506 .cbi-dropdown[open] > ul.dropdown > li:last-child {
1507         margin-bottom: 0;
1508         border-bottom: 0;
1509 }
1510
1511 .cbi-dropdown[open] > ul.dropdown > li[unselectable] {
1512         opacity: .7;
1513 }
1514
1515 .cbi-dropdown[open] > ul.dropdown > li > input.create-item-input:first-child:last-child {
1516         width: 100%;
1517 }
1518
1519 .cbi-dropdown[disabled] {
1520         pointer-events: none;
1521         opacity: .6;
1522 }
1523
1524 .cbi-dropdown .zonebadge {
1525         width: 100%;
1526 }
1527
1528 .cbi-dropdown[open] .zonebadge {
1529         width: auto;
1530 }
1531
1532 /* progressbar */
1533 .cbi-progressbar {
1534         position: relative;
1535         min-width: 170px;
1536         height: 20px;
1537         margin: 6px 0;
1538         border: thin solid #999;
1539         background: #eee;
1540 }
1541
1542 .cbi-progressbar > div {
1543         width: 0;
1544         height: 100%;
1545         transition: width .25s ease-in;
1546         background: #5bc0de;
1547         background: var(--bar-bg);
1548 }
1549
1550 .cbi-progressbar::after {
1551         font-family: monospace;
1552         font-size: 1.3em;
1553         font-weight: bold;
1554         font-size-adjust: .38;
1555         line-height: normal;
1556         position: absolute;
1557         top: 2px;
1558         right: 0;
1559         bottom: 2px;
1560         left: 0;
1561         overflow: hidden;
1562         content: attr(title);
1563         text-align: center;
1564         white-space: pre;
1565         text-overflow: ellipsis;
1566         text-shadow: 0 0 2px #eee;
1567 }
1568
1569 #modal_overlay {
1570         position: fixed;
1571         z-index: 900;
1572         top: 4rem;
1573         right: 10000px;
1574         bottom: 0;
1575         left: -10000px;
1576         overflow-y: scroll;
1577         transition: opacity .125s ease-in;
1578         opacity: 0;
1579         background: rgba(0, 0, 0, .7);
1580         -webkit-overflow-scrolling: touch;
1581 }
1582
1583 .modal {
1584         display: flex;
1585         align-items: center;
1586         flex-wrap: wrap;
1587         width: 90%;
1588         min-width: 270px;
1589         max-width: 600px;
1590         min-height: 32px;
1591         max-height: 2400px;
1592         margin: 5em auto;
1593         padding: 1em;
1594         border-radius: 3px !important;
1595         background: #fff;
1596         box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
1597 }
1598
1599 .modal > * {
1600         line-height: normal;
1601         flex-basis: 100%;
1602 }
1603
1604 .modal > pre,
1605 .modal > textarea {
1606         font-size: 1rem;
1607         font-size-adjust: .35;
1608         overflow: auto;
1609         margin-bottom: .5em;
1610         padding: 8.5px;
1611         cursor: auto;
1612         white-space: pre-wrap;
1613         color: #eee;
1614         outline: 0;
1615         background-color: #101010;
1616         box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
1617 }
1618
1619 .modal > h4 {
1620         margin: .5em 0;
1621 }
1622
1623 .modal ul {
1624         margin-left: 2.2em;
1625 }
1626
1627 .modal li {
1628         list-style-type: square;
1629         color: #808080;
1630 }
1631
1632 .modal p {
1633         padding-left: .25rem;
1634         word-break: break-word;
1635 }
1636
1637 .modal .label {
1638         font-size: .6rem;
1639         font-weight: normal;
1640         padding: .1rem .3rem;
1641         padding-bottom: 0;
1642         cursor: default;
1643         border-radius: 0;
1644 }
1645
1646 .modal .label.warning {
1647         background-color: #f0ad4e !important;
1648 }
1649
1650 .modal .btn {
1651         padding: .3rem .6rem;
1652 }
1653
1654 .modal .spinning {
1655         margin-bottom: 2em;
1656 }
1657
1658 body.modal-overlay-active {
1659         overflow: hidden;
1660         height: 100vh;
1661 }
1662
1663 body.modal-overlay-active #modal_overlay {
1664         right: 0;
1665         left: 0;
1666         opacity: 1;
1667 }
1668
1669 .spinning {
1670         position: relative;
1671         padding-left: 32px !important;
1672 }
1673
1674 .spinning::before {
1675         position: absolute;
1676         top: 0;
1677         bottom: 0;
1678         left: .2em;
1679         width: 32px;
1680         content: "";
1681         background: url(../resources/icons/loading.gif) no-repeat center;
1682         background-size: 16px;
1683 }
1684
1685 /* luci */
1686 .hidden {
1687         display: none;
1688 }
1689
1690 .left,
1691 .left::before {
1692         text-align: left !important;
1693 }
1694
1695 .right,
1696 .right::before {
1697         text-align: right !important;
1698 }
1699
1700 .center,
1701 .center::before {
1702         text-align: center !important;
1703 }
1704
1705 .top {
1706         align-self: flex-start !important;
1707         vertical-align: top !important;
1708 }
1709
1710 .bottom {
1711         align-self: flex-end !important;
1712         vertical-align: bottom !important;
1713 }
1714
1715 .inline {
1716         display: inline;
1717 }
1718
1719 .cbi-page-actions {
1720         padding-top: 1rem;
1721         text-align: right;
1722 }
1723
1724 .cbi-page-actions > form[method="post"] {
1725         display: inline-block;
1726 }
1727
1728 .th[data-type="button"],
1729 .td[data-type="button"],
1730 .th[data-type="fvalue"],
1731 .td[data-type="fvalue"] {
1732         flex: 1 1 2em;
1733         text-align: center;
1734 }
1735
1736 .ifacebadge {
1737         display: inline-flex;
1738         padding: .5rem .8rem;
1739         border-bottom: thin solid #ccc;
1740         background: #eee;
1741         box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 1px 2px rgba(0, 0, 0, .05);
1742 }
1743
1744 td > .ifacebadge,
1745 .td > .ifacebadge {
1746         font-size: .8rem;
1747         background-color: #f0f0f0;
1748 }
1749
1750 .ifacebadge > em,
1751 .ifacebadge > img {
1752         display: inline-block;
1753         align-self: flex-start;
1754         margin: 0 .2rem;
1755 }
1756
1757 .ifacebadge > img + img {
1758         margin: 0 .2rem 0 0;
1759 }
1760
1761 .network-status-table {
1762         display: flex;
1763         flex-wrap: wrap;
1764 }
1765
1766 .network-status-table .ifacebox {
1767         flex-grow: 1;
1768         margin: .5em;
1769 }
1770
1771 .network-status-table .ifacebox-body {
1772         display: flex;
1773         flex-direction: column;
1774         height: 100%;
1775 }
1776
1777 .network-status-table .ifacebox-body > span {
1778         flex: 10 10 auto;
1779         height: 100%;
1780 }
1781
1782 .network-status-table .ifacebox-body > div {
1783         display: flex;
1784         flex-wrap: wrap;
1785 }
1786
1787 .network-status-table .ifacebox-body .ifacebadge {
1788         align-items: center;
1789         flex: 1 1 auto;
1790         min-width: 220px;
1791         margin: .5em .25em 0 .25em;
1792         padding: .5em;
1793         background-color: #fff;
1794 }
1795
1796 /* textarea */
1797 .cbi-input-textarea {
1798         font-family: monospace;
1799         width: 100%;
1800         min-height: 14rem;
1801         padding: .8rem;
1802         color: #000;
1803 }
1804
1805 #syslog {
1806         font-size: small;
1807         line-height: 1.25;
1808         overflow-y: hidden;
1809         width: 100%;
1810         min-height: 15rem;
1811         padding: 1rem;
1812         resize: none;
1813         color: #eee;
1814         border: 0;
1815         border-radius: 0;
1816         background-color: #101010;
1817         box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
1818 }
1819
1820 #syslog:focus {
1821         outline: 0;
1822 }
1823
1824 /* config changes */
1825 .uci-change-list {
1826         font-family: monospace;
1827 }
1828
1829 .uci-change-list ins,
1830 .uci-change-legend-label ins {
1831         display: block;
1832         padding: 2px;
1833         text-decoration: none;
1834         border: thin solid #0f0;
1835         background-color: #cfc;
1836 }
1837
1838 .uci-change-list del,
1839 .uci-change-legend-label del {
1840         font-style: normal;
1841         display: block;
1842         padding: 2px;
1843         text-decoration: none;
1844         border: thin solid #f00;
1845         background-color: #fcc;
1846 }
1847
1848 .uci-change-list var,
1849 .uci-change-legend-label var {
1850         font-style: normal;
1851         display: block;
1852         padding: 2px;
1853         text-decoration: none;
1854         border: thin solid #ccc;
1855         background-color: #eee;
1856 }
1857
1858 .uci-change-list var ins,
1859 .uci-change-list var del {
1860         font-style: normal;
1861         padding: 0;
1862         white-space: pre;
1863         border: 0;
1864 }
1865
1866 .uci-change-legend {
1867         padding: 5px;
1868 }
1869
1870 .uci-change-legend-label {
1871         float: left;
1872         width: 150px;
1873 }
1874
1875 .uci-change-legend-label > ins,
1876 .uci-change-legend-label > del,
1877 .uci-change-legend-label > var {
1878         display: block;
1879         float: left;
1880         width: 10px;
1881         height: 10px;
1882         margin-right: 4px;
1883 }
1884
1885 .uci-change-legend-label var ins,
1886 .uci-change-legend-label var del {
1887         line-height: .4;
1888         border: 0;
1889 }
1890
1891 .uci-change-list var,
1892 .uci-change-list del,
1893 .uci-change-list ins {
1894         padding: .5rem;
1895 }
1896
1897 /* other fix */
1898 #iwsvg,
1899 #iwsvg2,
1900 #bwsvg {
1901         border: thin solid #d4d4d4 !important;
1902 }
1903
1904 #iwsvg,
1905 [data-page="admin-status-realtime-bandwidth"] #bwsvg {
1906         border-top: 0 !important;
1907 }
1908
1909 .ifacebox {
1910         line-height: 1.25;
1911         display: inline-flex;
1912         flex-direction: column;
1913         min-width: 100px;
1914         border-bottom: thin solid #ccc;
1915         background-color: #f9f9f9;
1916         box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 1px 2px rgba(0, 0, 0, .2);
1917 }
1918
1919 .ifacebox-head {
1920         padding: .25em;
1921         background: #eee;
1922 }
1923
1924 .ifacebox-head.active {
1925         background: #5bc0de;
1926         background: var(--bar-bg);
1927 }
1928
1929 .ifacebox-body {
1930         padding: .25em;
1931 }
1932
1933 .cbi-image-button {
1934         margin-left: .5rem;
1935 }
1936
1937 .zonebadge {
1938         display: inline-block;
1939         padding: .2rem .5rem;
1940 }
1941
1942 .zonebadge .ifacebadge {
1943         margin: .1rem .2rem;
1944         padding: .2rem .3rem;
1945         border: thin solid #6c6c6c;
1946 }
1947
1948 .zonebadge > input[type="text"] {
1949         min-width: 10rem;
1950         margin-top: .3rem;
1951         padding: .16rem 1rem;
1952 }
1953
1954 .zonebadge > em,
1955 .zonebadge > strong {
1956         display: inline-block;
1957         margin: 0 .2rem;
1958 }
1959
1960 .cbi-value-field .cbi-input-checkbox,
1961 .cbi-value-field .cbi-input-radio {
1962         margin-top: .1rem;
1963 }
1964
1965 .cbi-value-field > ul > li {
1966         display: flex;
1967 }
1968
1969 .cbi-value-field > ul > li > label {
1970         margin-top: .5rem;
1971 }
1972
1973 .cbi-value-field > ul > li .ifacebadge {
1974         margin-top: -.5rem;
1975         margin-left: .4rem;
1976         background-color: #eee;
1977 }
1978
1979 .cbi-section-table-row > .cbi-value-field .cbi-dropdown {
1980         min-width: 7rem;
1981 }
1982
1983 .cbi-section-create {
1984         display: inline-flex;
1985         align-items: center;
1986         margin: .5rem -3px;
1987 }
1988
1989 .cbi-section-create > * {
1990         margin: .5rem;
1991 }
1992
1993 .cbi-section-remove {
1994         padding: .5rem;
1995 }
1996
1997 div.cbi-value var,
1998 td.cbi-value-field var,
1999 .td.cbi-value-field var {
2000         font-style: italic;
2001         color: #0069d6;
2002 }
2003
2004 .cbi-optionals {
2005         padding: 1rem 1rem 0 1rem;
2006         border-top: thin solid #ccc;
2007 }
2008
2009 .cbi-dropdown-container {
2010         position: relative;
2011 }
2012
2013 .cbi-tooltip-container,
2014 span[data-tooltip],
2015 span[data-tooltip] .label {
2016         cursor: help !important;
2017 }
2018
2019 .cbi-tooltip {
2020         position: absolute;
2021         z-index: 1000;
2022         left: -1000px;
2023         padding: 2px 5px;
2024         transition: opacity .25s ease-out;
2025         white-space: pre;
2026         pointer-events: none;
2027         opacity: 0;
2028         border-radius: 3px;
2029         background: #fff;
2030         box-shadow: 0 0 2px #444;
2031 }
2032
2033 .cbi-tooltip-container:hover .cbi-tooltip {
2034         left: auto;
2035         transition: opacity .25s ease-in;
2036         opacity: 1;
2037 }
2038
2039 .zonebadge .cbi-tooltip {
2040         margin: -1.5rem 0 0 -.5rem;
2041         padding: .25rem;
2042         background: inherit;
2043 }
2044
2045 .zonebadge-empty {
2046         color: #404040;
2047         background: repeating-linear-gradient(45deg, rgba(204, 204, 204, .5), rgba(204, 204, 204, .5) 5px, rgba(255, 255, 255, .5) 5px, rgba(255, 255, 255, .5) 10px);
2048 }
2049
2050 .zone-forwards {
2051         display: flex;
2052         min-width: 10rem;
2053 }
2054
2055 .zone-forwards > * {
2056         flex: 1 1 45%;
2057 }
2058
2059 .zone-forwards > span {
2060         flex-basis: 10%;
2061         padding: 0 .25rem;
2062         text-align: center;
2063 }
2064
2065 .zone-forwards .zone-src,
2066 .zone-forwards .zone-dest {
2067         display: flex;
2068         flex-direction: column;
2069 }
2070
2071 .label {
2072         font-size: .8rem;
2073         font-weight: bold;
2074         padding: .3rem .8rem;
2075         white-space: nowrap;
2076         text-decoration: none;
2077         text-transform: uppercase;
2078         color: #fff !important;
2079         border-radius: 3px;
2080         background-color: #bfbfbf;
2081         text-shadow: none;
2082 }
2083
2084 label > input[type="checkbox"],
2085 label > input[type="radio"] {
2086         position: relative;
2087         top: .4rem;
2088         right: .2rem;
2089         margin: 0;
2090         vertical-align: bottom;
2091 }
2092
2093 label[data-index][data-depends] {
2094         padding-right: 2em;
2095 }
2096
2097 .showSide {
2098         display: none;
2099 }
2100
2101 .darkMask {
2102         position: fixed;
2103         z-index: 99;
2104         display: none;
2105         width: 100%;
2106         height: 100%;
2107         content: "";
2108         background-color: rgba(0, 0, 0, .56);
2109 }
2110
2111 /* diagnostics */
2112 #diag-rc-output > pre,
2113 #command-rc-output > pre,
2114 [data-page="admin-services-wol"] .notice code {
2115         font-size: 1.2rem;
2116         font-size-adjust: .35;
2117         line-height: normal;
2118         display: block;
2119         overflow-y: hidden;
2120         width: 100%;
2121         padding: 8.5px;
2122         white-space: pre;
2123         color: #eee;
2124         background-color: #101010;
2125         box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
2126 }
2127
2128 [data-page="admin-network-diagnostics"] .table {
2129         box-shadow: none;
2130 }
2131
2132 input[name="ping"],
2133 input[name="traceroute"],
2134 input[name="nslookup"] {
2135         width: 80%;
2136 }
2137
2138 /* fix Main Login */
2139 .node-main-login > .main > .main-left {
2140         display: none;
2141 }
2142
2143 .node-main-login > .main > .main-right {
2144         width: 100%;
2145 }
2146
2147 .node-main-login > .main fieldset {
2148         display: inline;
2149         overflow: hidden;
2150         margin-bottom: 1rem;
2151         padding: .5rem;
2152         border: 0;
2153         background: none;
2154         box-shadow: none;
2155 }
2156
2157 .node-main-login > .main .cbi-value-title {
2158         width: 9.5rem;
2159 }
2160
2161 .node-main-login > .main #maincontent {
2162         text-align: center;
2163 }
2164
2165 .node-main-login > .main .container {
2166         display: inline-block;
2167         margin-top: 2rem !important;
2168         padding: 1rem 3.5rem 2rem;
2169         text-align: left;
2170         background-color: #fff;
2171         box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
2172 }
2173
2174 .node-main-login > .main form > div:last-child {
2175         float: right;
2176 }
2177
2178 .node-main-login > .main .cbi-value {
2179         display: block;
2180 }
2181
2182 .node-main-login > .main .cbi-value > * {
2183         display: inline-block !important;
2184 }
2185
2186 .node-main-login > .main .cbi-input-text {
2187         width: 100% !important;
2188         min-width: 15rem;
2189 }
2190
2191 .node-main-login .cbi-section {
2192         box-shadow: none;
2193 }
2194
2195 @media screen and (min-height: 585px) {
2196         .node-main-login footer {
2197                 position: absolute;
2198                 bottom: 0;
2199                 width: 100%;
2200         }
2201 }
2202
2203 /* fix status */
2204 .node-status-overview > .main fieldset:nth-child(4) .td:nth-child(2),
2205 .node-status-processes > .main .table .tr .td:nth-child(3) {
2206         white-space: normal;
2207 }
2208
2209 /* fix system reboot */
2210 [data-page="admin-system-reboot"] p {
2211         padding-left: 2rem;
2212 }
2213
2214 [data-page="admin-system-reboot"] p > span {
2215         position: relative;
2216         top: .1rem;
2217         left: 1rem;
2218 }
2219
2220 /* samba */
2221 #cbi-samba [data-tab="template"] .cbi-value-field {
2222         display: block;
2223 }
2224
2225 #cbi-samba [data-tab="template"] .cbi-value-title {
2226         width: auto;
2227         padding-bottom: .6rem;
2228 }
2229
2230 /* software */
2231 .controls > * > .btn:not([aria-label$="page"]) {
2232         flex-grow: initial !important;
2233         margin-top: .1rem;
2234 }
2235
2236 .controls > #pager > .btn[aria-label$="page"] {
2237         font-size: 1.4rem;
2238         font-weight: bold;
2239 }
2240
2241 .controls > * > label {
2242         margin-bottom: .2rem;
2243 }
2244
2245 [data-page="admin-system-opkg"] div.btn {
2246         line-height: 3;
2247         display: inline;
2248         padding: .3rem .6rem;
2249 }
2250
2251 [data-page^="admin-system-admin"]:not(.node-main-login) .cbi-map:not(#cbi-dropbear),
2252 [data-page="admin-system-opkg"] #maincontent > .container {
2253         margin-top: 2rem;
2254         padding-top: .1rem;
2255 }
2256
2257 [data-page="admin-system-opkg"] #maincontent > .container {
2258         margin: 2rem;
2259         margin-bottom: 1rem;
2260 }
2261
2262 .td.version,
2263 .td.size {
2264         white-space: normal !important;
2265         word-break: break-word;
2266 }
2267
2268 .cbi-tabmenu + .cbi-section {
2269         margin-top: 0;
2270 }
2271
2272 /* wireless overview */
2273 #cbi-wireless > #wifi_assoclist_table > .tr {
2274         box-shadow: inset 1px -1px 0 #ddd, inset -1px -1px 0 #ddd;
2275 }
2276
2277 #cbi-wireless > #wifi_assoclist_table > .tr.placeholder > .td {
2278         right: 33px;
2279         bottom: 33px;
2280         left: 33px;
2281         border-top: thin solid #ddd !important;
2282 }
2283
2284 #cbi-wireless > #wifi_assoclist_table > .tr.table-titles {
2285         box-shadow: inset 1px 0 0 #ddd, inset -1px 0 0 #ddd;
2286 }
2287
2288 #cbi-wireless > #wifi_assoclist_table > .tr.table-titles > .th {
2289         border-bottom: thin solid #ddd;
2290         box-shadow: 0 -1px 0 0 #ddd;
2291 }
2292
2293 #wifi_assoclist_table > .tr > .td[data-title="RX Rate / TX Rate"] {
2294         width: 23rem;
2295 }
2296
2297 /* firewall */
2298 #iptables {
2299         margin: 0;
2300 }
2301
2302 .Firewall form {
2303         margin: 2rem 2rem 0 0;
2304         padding: 0;
2305         box-shadow: none;
2306 }
2307
2308 #cbi-firewall-redirect table *,
2309 #cbi-network-switch_vlan table *,
2310 #cbi-firewall-zone table * {
2311         font-size: small;
2312 }
2313
2314 #cbi-firewall-redirect table input[type="text"],
2315 #cbi-network-switch_vlan table input[type="text"],
2316 #cbi-firewall-zone table input[type="text"] {
2317         width: 5rem;
2318 }
2319
2320 #cbi-firewall-redirect table select,
2321 #cbi-network-switch_vlan table select,
2322 #cbi-firewall-zone table select {
2323         min-width: 3.5rem;
2324 }
2325
2326 #cbi-network-switch_vlan .th,
2327 #cbi-network-switch_vlan .td {
2328         flex-basis: 12%;
2329 }
2330
2331 #cbi-firewall-zone .table,
2332 #cbi-network-switch_vlan .table {
2333         display: block;
2334 }
2335
2336 #cbi-firewall-zone .td,
2337 #cbi-network-switch_vlan .td {
2338         width: 100%;
2339 }
2340
2341 /* applyreboot fix */
2342 #applyreboot-container {
2343         margin: 2rem;
2344 }
2345
2346 #applyreboot-section {
2347         line-height: 300%;
2348         margin: 2rem;
2349 }
2350
2351 /* openvpn bug fix */
2352 .OpenVPN a {
2353         line-height: initial !important;
2354 }
2355
2356 /* custom commands */
2357 .commandbox {
2358         width: 24% !important;
2359         margin: 10px 0 0 10px !important;
2360         padding: .5rem 1rem;
2361         border-bottom: thin solid #ccc;
2362         background: #eee;
2363         box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 1px 2px rgba(0, 0, 0, .05);
2364 }
2365
2366 .commandbox h3 {
2367         line-height: normal !important;
2368         overflow: hidden;
2369         margin: 6px 0 !important;
2370         white-space: nowrap;
2371         text-overflow: ellipsis;
2372 }
2373
2374 .commandbox div {
2375         left: auto !important;
2376 }
2377
2378 .commandbox code {
2379         position: absolute;
2380         overflow: hidden;
2381         max-width: 60%;
2382         margin-left: 4px;
2383         padding: 2px 3px;
2384         white-space: nowrap;
2385         text-overflow: ellipsis;
2386 }
2387
2388 .commandbox code:hover {
2389         overflow-y: auto;
2390         max-height: 50px;
2391         white-space: normal;
2392 }
2393
2394 .commandbox p:first-of-type {
2395         margin-top: -6px;
2396 }
2397
2398 .commandbox p:nth-of-type(2) {
2399         margin-top: 2px;
2400 }
2401
2402 [data-page^="admin-system-commands"] .panel-title,
2403 [data-page^="command-cfg"] .mobile-hide,
2404 [data-page^="command-cfg"] .showSide {
2405         display: none;
2406 }
2407
2408 #command-rc-output .alert-message {
2409         line-height: 1.42857143;
2410         position: absolute;
2411         top: 40px;
2412         right: 32px;
2413         max-width: 40%;
2414         margin: 0;
2415         animation: anim-fade-in 1.5s forwards;
2416         word-break: break-word;
2417         opacity: 0;
2418 }
2419
2420 @keyframes anim-fade-in {
2421         100% {
2422                 opacity: 1;
2423         }
2424 }
2425
2426 /* IE hacks */
2427 @media all and (-ms-high-contrast: none) {
2428         .main > .main-left > .nav > .slide > .menu::before {
2429                 top: 30.25%;
2430         }
2431
2432         .main > .main-left > .nav > li:last-child::before {
2433                 top: 20%;
2434         }
2435
2436         .showSide::before {
2437                 top: -12px;
2438         }
2439 }
2440
2441 @media screen and (max-width: 1600px) {
2442         header > .fill > .container > #logo {
2443                 margin: 0 2.5rem 0 .5rem;
2444         }
2445
2446         .main-left {
2447                 width: calc(0% + 13rem);
2448         }
2449
2450         .main-right {
2451                 width: calc(100% - 13rem);
2452         }
2453
2454         .btn:not(button),
2455         .cbi-button {
2456                 font-size: .8rem;
2457                 padding: .3rem .6rem;
2458         }
2459
2460         .label {
2461                 padding: .2rem .6rem;
2462         }
2463
2464         fieldset,
2465         .cbi-section {
2466                 padding: 1rem;
2467         }
2468
2469         .cbi-value-title {
2470                 width: 15rem;
2471                 padding-right: .6rem;
2472         }
2473
2474         .cbi-value-field .cbi-dropdown,
2475         .cbi-value-field .cbi-input-select,
2476         .cbi-value input[type="text"],
2477         .cbi-value input[type="password"] {
2478                 min-width: 22rem;
2479         }
2480
2481         #cbi-firewall-zone .cbi-input-select {
2482                 min-width: 9rem;
2483         }
2484
2485         .cbi-input-textarea {
2486                 font-size: small;
2487         }
2488
2489         .node-admin-status > .main fieldset li > a {
2490                 padding: .3rem .6rem;
2491         }
2492 }
2493
2494 @media screen and (max-width: 1366px) {
2495         header {
2496                 height: 3.5rem;
2497         }
2498
2499         header > .fill > .container {
2500                 margin-top: .25rem;
2501                 cursor: default;
2502         }
2503
2504         .main {
2505                 top: 3.5rem;
2506                 height: calc(100% - 3.5rem);
2507         }
2508
2509         .main-left {
2510                 top: 3.5rem;
2511                 width: calc(0% + 13rem);
2512                 height: calc(100% - 3.5rem);
2513         }
2514
2515         .main-right {
2516                 width: calc(100% - 13rem);
2517         }
2518
2519         .tabs > li > a,
2520         .cbi-tabmenu > li > a {
2521                 padding: .2rem .5rem;
2522         }
2523
2524         .panel-title {
2525                 font-size: 1.1rem;
2526                 padding-bottom: 1rem;
2527         }
2528
2529         table {
2530                 font-size: .7rem !important;
2531                 width: 100% !important;
2532         }
2533
2534         .table .cbi-input-text {
2535                 width: 100%;
2536         }
2537
2538         .cbi-value-field .cbi-dropdown,
2539         .cbi-value-field .cbi-input-select,
2540         .cbi-value input[type="text"],
2541         .cbi-value input[type="password"] {
2542                 min-width: 19rem;
2543         }
2544
2545         #cbi-firewall-zone .cbi-input-select {
2546                 min-width: 4rem;
2547         }
2548
2549         .main > .main-left > .nav > li,
2550         .main > .main-left > .nav > li a,
2551         .main > .main-left > .nav > .slide > .menu,
2552         .main > .main-left > .nav > li > [data-title="Logout"] {
2553                 font-size: .9rem;
2554         }
2555
2556         .main > .main-left > .nav > .slide > .slide-menu > li > a {
2557                 font-size: .7rem;
2558         }
2559
2560         #modal_overlay {
2561                 top: 3.5rem;
2562         }
2563
2564         [data-page="admin-network-firewall-forwards"] .table:not(.cbi-section-table) {
2565                 display: block;
2566         }
2567
2568         [data-page="admin-network-firewall-forwards"] .table:not(.cbi-section-table),
2569         [data-page="admin-network-firewall-rules"] .table:not(.cbi-section-table),
2570         [data-page="admin-network-hosts"] .table,
2571         [data-page="admin-network-routes"] .table {
2572                 overflow-y: visible;
2573         }
2574
2575         .commandbox {
2576                 width: 32% !important;
2577         }
2578 }
2579
2580 @media screen and (max-width: 1152px) {
2581         header > .fill > .container > #logo {
2582                 display: none;
2583         }
2584
2585         header > .fill > .container > .brand {
2586                 position: relative;
2587         }
2588
2589         html,
2590         .main {
2591                 overflow-y: visible;
2592         }
2593
2594         .main > .loading > span {
2595                 top: 25%;
2596         }
2597
2598         .main-left {
2599                 position: fixed;
2600                 z-index: 100;
2601                 width: 0;
2602         }
2603
2604         .main-right {
2605                 width: 100%;
2606         }
2607
2608         .showSide {
2609                 position: relative;
2610                 top: .18rem;
2611                 display: inline-flex;
2612                 align-items: center;
2613                 width: 1.6rem;
2614                 height: 1.6rem;
2615                 margin-right: .7rem;
2616                 cursor: pointer;
2617         }
2618
2619         .showSide::before {
2620                 position: absolute;
2621                 left: 1px;
2622                 width: 24px;
2623                 height: 24px;
2624                 content: "";
2625                 background: url(./icons/menu.svg) no-repeat center;
2626         }
2627
2628         body:not(.logged-in) .showSide {
2629                 visibility: hidden;
2630                 width: 0;
2631                 margin: 0;
2632         }
2633
2634         .node-main-login > .main .cbi-value-title {
2635                 text-align: left;
2636         }
2637
2638         .cbi-value-title {
2639                 width: 12rem;
2640                 padding-right: 1rem;
2641         }
2642
2643         .cbi-value-field .cbi-dropdown,
2644         .cbi-value-field .cbi-input-select,
2645         .cbi-value input[type="text"] {
2646                 width: 16rem;
2647                 min-width: 16rem;
2648         }
2649
2650         .cbi-value input[type="password"],
2651         .cbi-value input[name^="pw"],
2652         .cbi-value input[data-update="change"]:nth-child(2) {
2653                 width: 13rem !important;
2654                 min-width: 13rem;
2655         }
2656
2657         #diag-rc-output > pre,
2658         #command-rc-output > pre,
2659         [data-page="admin-services-wol"] .notice code {
2660                 font-size: 1rem;
2661         }
2662
2663         .table {
2664                 display: block;
2665         }
2666
2667         .Interfaces .table {
2668                 overflow-x: hidden;
2669         }
2670
2671         #packages.table {
2672                 display: grid;
2673         }
2674
2675         .tr {
2676                 display: flex;
2677                 flex-direction: row;
2678                 flex-wrap: wrap;
2679         }
2680
2681         .Overview .table[width="100%"] > .tr {
2682                 flex-wrap: nowrap;
2683         }
2684
2685         .tr.placeholder {
2686                 border-bottom: thin solid #ddd;
2687         }
2688
2689         .tr.placeholder > .td,
2690         #cbi-firewall .tr > .td,
2691         #cbi-network .tr:nth-child(2) > .td,
2692         .cbi-section #wifi_assoclist_table .tr > .td {
2693                 border-top: 0;
2694         }
2695
2696         .th,
2697         .td {
2698                 display: inline-block;
2699                 align-self: flex-start;
2700                 flex: 2 2 25%;
2701                 text-overflow: ellipsis;
2702                 word-wrap: break-word;
2703         }
2704
2705         .td select,
2706         .td input[type="text"] {
2707                 width: 100%;
2708                 word-wrap: normal;
2709         }
2710
2711         .td [data-dynlist] > input,
2712         .td input.cbi-input-password {
2713                 width: calc(100% - 1.5rem);
2714         }
2715
2716         .td[data-type="button"],
2717         .td[data-type="fvalue"] {
2718                 flex: 1 1 12.5%;
2719                 text-align: left;
2720         }
2721
2722         .th.cbi-value-field,
2723         .td.cbi-value-field,
2724         .th.cbi-section-table-cell,
2725         .td.cbi-section-table-cell {
2726                 flex-basis: auto;
2727                 padding-top: 1rem;
2728         }
2729
2730         .cbi-section-table-row {
2731                 display: flex;
2732                 flex-direction: row;
2733                 flex-wrap: wrap;
2734                 justify-content: space-between;
2735                 box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
2736         }
2737
2738         .td.cbi-value-field,
2739         .cbi-section-table-cell {
2740                 display: inline-block;
2741                 flex: 10 10 auto;
2742                 flex-basis: 50%;
2743                 text-align: center;
2744         }
2745
2746         .td.cbi-section-actions {
2747                 vertical-align: bottom;
2748         }
2749
2750         .tr.table-titles,
2751         .tr.cbi-section-table-titles,
2752         .tr.cbi-section-table-descr {
2753                 display: none;
2754         }
2755
2756         .tr[data-title]::before,
2757         .tr.cbi-section-table-titles.named::before {
2758                 font-size: .9rem;
2759                 display: block;
2760                 flex: 1 1 100%;
2761                 border-bottom: thin solid rgba(0, 0, 0, .26);
2762                 background: #90c0e0;
2763         }
2764
2765         .td[data-title],
2766         [data-page^="admin-status-realtime"] .td[id] {
2767                 text-align: left;
2768         }
2769
2770         .td[data-title]::before {
2771                 display: block;
2772         }
2773
2774         .cbi-button + .cbi-button {
2775                 margin-left: 0;
2776         }
2777
2778         .td.cbi-section-actions > * > *,
2779         .td.cbi-section-actions > * > form > * {
2780                 margin: 2.1px 3px;
2781         }
2782
2783         .Firewall form {
2784                 position: static !important;
2785                 margin: 0 0 2rem 0;
2786                 padding: 2rem;
2787                 box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
2788         }
2789
2790         .Firewall form input {
2791                 width: 100% !important;
2792                 margin: 0;
2793                 margin-top: 1rem;
2794         }
2795
2796         .Firewall .center,
2797         .Firewall .center::before {
2798                 text-align: left !important;
2799         }
2800
2801         .commandbox {
2802                 width: 100% !important;
2803                 margin-left: 0 !important;
2804         }
2805 }
2806
2807 @media screen and (max-width: 600px) {
2808         body {
2809                 font-size: .8rem;
2810         }
2811
2812         .cbi-progressbar::after {
2813                 font-size: .95em;
2814                 line-height: 1.5;
2815         }
2816
2817         fieldset,
2818         .cbi-section {
2819                 margin: 1rem 0 0 0;
2820         }
2821
2822         .tabs {
2823                 margin: 0 -1rem;
2824         }
2825
2826         #maincontent > .container {
2827                 margin: 0 1rem 1.5rem 1rem;
2828         }
2829
2830         .main > .main-left > .nav > .slide > .menu,
2831         .main > .main-left > .nav > li > [data-title="Logout"] {
2832                 font-size: 1.2rem;
2833         }
2834
2835         .main > .main-left > .nav > .slide > .slide-menu > li > a {
2836                 font-size: 1rem;
2837         }
2838
2839         .cbi-value-title {
2840                 display: block;
2841                 min-width: 0 !important;
2842                 margin: .5rem 0;
2843                 text-align: left;
2844         }
2845
2846         .cbi-value-title,
2847         .cbi-value-description,
2848         .cbi-value-field,
2849         .cbi-value-field .cbi-dropdown,
2850         .cbi-value-field .cbi-input-select,
2851         .cbi-value input[type="text"] {
2852                 width: 100%;
2853         }
2854
2855         .cbi-value > .cbi-value-field {
2856                 display: inline-block;
2857         }
2858
2859         .tabs > li > a,
2860         .cbi-tabmenu > li > a {
2861                 font-size: .9rem;
2862                 padding: .2rem .3rem;
2863         }
2864
2865         .cbi-page-actions > div > input {
2866                 display: none;
2867         }
2868
2869         .cbi-page-actions > .cbi-button {
2870                 margin-top: .2rem;
2871         }
2872
2873         .node-main-login > .main .container {
2874                 margin: 2rem 1.2rem 1.5rem 1.2rem !important;
2875                 padding: .3rem 1.7rem 2rem 1.6rem;
2876         }
2877
2878         .node-main-login > .main .cbi-value {
2879                 padding: 0;
2880         }
2881
2882         .node-main-login > .main form > div:last-child {
2883                 margin-top: 2rem;
2884         }
2885
2886         .node-main-login > .main .cbi-value-title {
2887                 font-size: 1.2rem;
2888                 width: 100% !important;
2889         }
2890
2891         .node-main-login > .main fieldset {
2892                 margin: 0;
2893                 padding: .5rem;
2894         }
2895
2896         .commandbox p:first-of-type {
2897                 margin-top: -8px;
2898         }
2899
2900         #syslog,
2901         #diag-rc-output > pre,
2902         #command-rc-output > pre,
2903         [data-page="admin-services-wol"] .notice code {
2904                 font-size: .8rem !important;
2905         }
2906
2907         h2 {
2908                 font-size: 2rem;
2909         }
2910
2911         .tabs > li > a {
2912                 font-size: .9rem;
2913         }
2914
2915         select,
2916         input {
2917                 font-size: .9rem;
2918         }
2919
2920         code {
2921                 font-size: .8rem;
2922         }
2923
2924         .mobile-hide {
2925                 display: none;
2926         }
2927
2928         .panel-title {
2929                 font-size: 1.4rem;
2930                 padding-bottom: 1rem;
2931         }
2932
2933         .node-system-packages > .main .cbi-value.cbi-value-last > div {
2934                 width: 100% !important;
2935         }
2936
2937         .node-system-packages > .main .cbi-value .cbi-value-field input {
2938                 width: 100%;
2939         }
2940
2941         .th,
2942         .td {
2943                 flex-basis: 50%;
2944         }
2945
2946         .td.cbi-value-field {
2947                 flex-basis: 100%;
2948         }
2949
2950         .td.cbi-value-field[data-type="button"],
2951         .td.cbi-value-field[data-type="fvalue"] {
2952                 flex-basis: 25%;
2953                 text-align: left;
2954         }
2955
2956         .tr[data-title]::before,
2957         .tr.cbi-section-table-titles.named::before {
2958                 font-size: 1rem;
2959         }
2960
2961         td > .ifacebadge,
2962         .td > .ifacebadge {
2963                 font-size: .62rem;
2964         }
2965
2966         #cbi-wireless > #wifi_assoclist_table .td {
2967                 overflow: hidden;
2968         }
2969
2970         #cbi-wireless > .cbi-section-node .td,
2971         .Interfaces .td.cbi-section-actions {
2972                 text-align: center !important;
2973         }
2974
2975         [data-page="admin-status-processes"] .td[data-title="Hang Up"]::before,
2976         [data-page="admin-status-processes"] .td[data-title="Terminate"]::before,
2977         [data-page="admin-status-processes"] .td[data-title="Kill"]::before {
2978                 display: none;
2979         }
2980
2981         .hide-sm,
2982         .hide-xs:not([data-title="MAC-Address"]) {
2983                 display: none;
2984         }
2985 }
2986
2987 @media screen and (min-width: 600px) {
2988         ::-webkit-scrollbar {
2989                 width: 10px;
2990                 height: 10px;
2991         }
2992
2993         ::-webkit-scrollbar,
2994         ::-webkit-scrollbar-corner {
2995                 background: transparent;
2996         }
2997
2998         ::-webkit-scrollbar-thumb {
2999                 background: #9e9e9e;
3000         }
3001
3002         ::-webkit-scrollbar-thumb:hover {
3003                 background: #757575;
3004         }
3005
3006         ::-webkit-scrollbar-thumb:active {
3007                 background: #424242;
3008         }
3009 }