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