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