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