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