Merge pull request #2259 from pmelange/luci-app-olsr-new-json-lib
[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  *  Licensed to the public under the Apache License 2.0
19  */
20
21 /*
22  *  Include custom css
23  */
24 @import url("custom.css");
25
26 /*
27  *  Font generate by Icomoon<icomoon.io>
28  */
29 @font-face {
30     font-family: 'icomoon';
31     src: url('fonts/font.eot');
32     src: url('fonts/font.eot') format('embedded-opentype'),
33     url('fonts/font.ttf') format('truetype'),
34     url('fonts/font.woff') format('woff'),
35     url('fonts/font.svg') format('svg');
36     font-weight: normal;
37     font-style: normal;
38 }
39
40 .table { display: table; position: relative; }
41 .tr    { display: table-row; }
42 .thead { display: table-header-group; }
43 .tbody { display: table-row-group; }
44 .tfoot { display: table-footer-group; }
45 .td, .th {
46     vertical-align: middle;
47     text-align: center;
48     display: table-cell;
49     padding: .5em;
50 }
51
52 .th {
53     font-weight: bold;
54 }
55
56 .tr.placeholder {
57     height: 4em;
58 }
59
60 .tr.placeholder > .td {
61     position: absolute;
62     left: 0;
63     right: 0;
64     bottom: 0;
65     text-align: center;
66     line-height: 3em;
67     background: inherit;
68 }
69
70 .table[width="33%"], .th[width="33%"], .td[width="33%"] { width: 33%; }
71 .table[width="100%"], .th[width="100%"], .td[width="100%"] { width: 100%; }
72
73 .col-1 { flex: 1 1 30px !important; -webkit-flex: 1 1 30px !important; }
74 .col-2 { flex: 2 2 60px !important; -webkit-flex: 2 2 60px !important; }
75 .col-3 { flex: 3 3 90px !important; -webkit-flex: 3 3 90px !important; }
76 .col-4 { flex: 4 4 120px !important; -webkit-flex: 4 4 120px !important; }
77 .col-5 { flex: 5 5 150px !important; -webkit-flex: 5 5 150px !important; }
78 .col-6 { flex: 6 6 180px !important; -webkit-flex: 6 6 180px !important; }
79 .col-7 { flex: 7 7 210px !important; -webkit-flex: 7 7 210px !important; }
80 .col-8 { flex: 8 8 240px !important; -webkit-flex: 8 8 240px !important; }
81 .col-9 { flex: 9 9 270px !important; -webkit-flex: 9 9 270px !important; }
82 .col-10 { flex: 10 10 300px !important; -webkit-flex: 10 10 300px !important; }
83
84 .cbi-button-up,
85 .cbi-button-down,
86 .cbi-value-helpicon,
87 .showSide,
88 .main > .loading > span {
89     font-family: 'icomoon' !important;
90     speak: none;
91     font-style: normal !important;
92     font-weight: normal !important;
93     font-variant: normal !important;
94     text-transform: none !important;
95     line-height: 1;
96
97     -webkit-font-smoothing: antialiased;
98     -moz-osx-font-smoothing: grayscale;
99 }
100
101 * {
102     margin: 0;
103     padding: 0;
104     box-sizing: border-box;
105 }
106
107 .h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
108     font-family: inherit;
109     font-weight: 400;
110     line-height: 1.1;
111     color: inherit;
112 }
113
114 html {
115     -webkit-text-size-adjust: 100%;
116     -ms-text-size-adjust: 100%;
117 }
118
119 body {
120     font-size: 0.8rem;
121     background-color: #EEE;
122 }
123
124 html, body {
125     margin: 0px;
126     padding: 0px;
127     height: 100%;
128     font-family: var(--font-body, "Microsoft Yahei", "WenQuanYi Micro Hei", "sans-serif", "Helvetica Neue", "Helvetica", "Hiragino Sans GB");
129 }
130
131 select {
132     padding: 0.36rem 0.8rem;
133     color: #555;
134     background-color: #fff;
135     background-image: none;
136     border: 1px solid #ccc;
137 }
138
139 select,
140 input,
141 .cbi-dropdown {
142     background-color: transparent;
143     color: rgba(0, 0, 0, .87);
144     border: none;
145     border-bottom: 2px solid rgba(0, 0, 0, .26);
146     outline: 0;
147     padding: 0;
148     box-shadow: none;
149     border-radius: 0;
150     background-image: none;
151     height: 1.8rem;
152     font-size: 0.8rem;
153 }
154
155 select:not([multiple="multiple"]):focus,
156 input:focus,
157 .cbi-dropdown:focus,
158 .cbi-dynlist > .item:focus {
159     border-color: var(--main-color, #0099CC);
160 }
161
162 select[multiple="multiple"] {
163     height: auto;
164 }
165
166 code {
167     color: var(--main-color, #0099CC);
168 }
169
170 abbr {
171     color: #005470;
172     text-decoration: underline;
173     cursor: help;
174 }
175
176 hr {
177     margin: 1rem 0;
178     border-color: #EEE;
179     opacity: 0.1;
180 }
181
182 header, .main {
183     width: 100%;
184     position: absolute;
185 }
186
187 header {
188     box-shadow: 0 2px 5px rgba(0, 0, 0, .26);
189     transition: box-shadow .2s;
190     float: left;
191     position: fixed;
192     z-index: 2000;
193 }
194
195 footer {
196     text-align: right;
197     padding: 1rem;
198     color: #aaa;
199     font-size: 0.8rem;
200     text-shadow: 0px 0px 2px #BBB;
201 }
202
203 footer > a {
204     color: #aaa;
205     text-decoration: none;
206 }
207
208 .main {
209     top: 5rem;
210     bottom: 0rem;
211     position: relative;
212     height: 100%;
213     height: calc(100% - 4rem);
214 }
215
216 .main > .loading {
217     position: fixed;
218     width: 100%;
219     height: 100%;
220     z-index: 1000;
221     display: block;
222     background-color: rgb(240, 240, 240);
223     top: 0;
224 }
225
226 .main > .loading > span {
227     display: block;
228     text-align: center;
229     margin-top: 2rem;
230     color: #888;
231     font-size: 1.2rem;
232 }
233
234 .main > .loading > span > .loading-img:before {
235     content: "\e603";
236 }
237
238 .main > .loading > span > .loading-img {
239     animation: anim-rotate 2s infinite linear;
240     display: inline-block;
241     margin: 5rem;
242 }
243
244 @keyframes anim-rotate {
245     0% {
246         -webkit-transform: rotate(0);
247         -ms-transform: rotate(0);
248         transform: rotate(0);
249     }
250     100% {
251         -webkit-transform: rotate(360deg);
252         -ms-transform: rotate(360deg);
253         transform: rotate(360deg)
254     }
255 }
256
257 .main-left {
258     float: left;
259     top: 5rem;
260     width: 15%;
261     width: calc(0% + 15rem);
262     height: 100%;
263     height: calc(100% - 4rem);
264     background-color: var(--menu-bg-color, #FFFFFF);
265     overflow-x: auto;
266     position: fixed;
267 }
268
269 .main-right {
270     width: 85%;
271     width: calc(100% - 15rem);
272     float: right;
273     height: 100%;
274     background-color: #EEE;
275 }
276
277 .main-right > #maincontent {
278     background-color: #EEE;
279 }
280
281 .pull-right {
282     float: right;
283 }
284
285 .pull-left {
286     float: left;
287 }
288
289 header {
290     background: var(--header-bg, #0099CC);
291     color: var(--header-color, #FFFFFF);
292     height: 5rem;
293 }
294
295 header > .fill > .container {
296     padding-top: 0.25rem;
297     padding-right: 1rem;
298     padding-bottom: 0.25rem;
299     display: flex;
300     align-items: center;
301     height: 5rem;
302 }
303
304 header > .fill > .container > .brand {
305     font-size: 2rem;
306     color: var(--header-color, #FFFFFF);
307     text-decoration: none;
308     cursor: default;
309     margin-left: 1rem;
310 }
311
312 header > .fill > .container > img{
313     max-height: 4.5rem;
314     width: calc(0% + 13rem);
315     margin: 1rem;
316 }
317
318 header > .fill > .container > .status {
319     display: flex;
320     justify-content: flex-end;
321     flex-grow: 8;
322 }
323
324 .danger {
325     background-color: #FA8072 !important;
326     color: black;
327 }
328
329 .warning {
330     background-color:  #F0E68C !important;
331     color: black;
332 }
333
334 .success {
335     background-color: #90EE90 !important;
336     color: black;
337 }
338
339 .alert-message {
340     margin: 2rem 0 0 0;
341     padding: 1rem;
342     border: 0;
343     font-weight: normal;
344     font-style: normal;
345     line-height: 1;
346     font-family: inherit;
347     min-width: inherit;
348     overflow: auto;
349     border-radius: 0;
350     background-color: #FFF;
351     box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
352 }
353
354 .error {
355     color: red;
356 }
357
358 .alert-message > h4 {
359     font-weight: bold;
360     font-size: 110%;
361 }
362
363 .alert-message > * {
364     margin: .5rem 0;
365 }
366
367 #maincontent > .container > div:nth-child(1).alert-message.warning > a {
368     font: inherit;
369     overflow: visible;
370     text-transform: none;
371     display: inline-block;
372     margin-bottom: 0;
373     font-weight: 400;
374     text-align: center;
375     white-space: nowrap;
376     vertical-align: middle;
377     touch-action: manipulation;
378     cursor: pointer;
379     -webkit-user-select: none;
380     -moz-user-select: none;
381     -ms-user-select: none;
382     user-select: none;
383     background-image: none;
384     min-width: 6rem;
385     padding: 0.5rem 1rem;
386     font-size: 0.9rem;
387     line-height: 1.42857143;
388     color: #fff;
389     background-color: #5bc0de;
390     border-color: #46b8da;
391     margin-top: 2rem;
392     text-decoration: inherit;
393 }
394
395 .main > .main-left > .nav {
396     margin-top: 0.5rem;
397 }
398
399 .main > .main-left > .nav > li a {
400     color: var(--menu-color, #404040);
401     display: block;
402 }
403
404 .main > .main-left > .nav > li:nth-last-child(1) {
405     margin-top: 1rem;
406     margin-bottom: 1rem;
407     font-size: 1.2rem;
408 }
409
410 .main > .main-left > .nav > li {
411     padding: 0.5rem 1rem;
412     cursor: pointer;
413 }
414
415 .main > .main-left > .nav > .slide {
416     padding: 0;
417 }
418
419 .main > .main-left > .nav > .slide > ul {
420     display: none;
421 }
422
423 .main > .main-left > .nav > .slide > .menu {
424     display: block;
425     padding: 0.5rem 1rem;
426     text-decoration: none;
427     cursor: default;
428     font-size: 1.15rem;
429 }
430
431 .main > .main-left > .nav > li:hover,
432 .main > .main-left > .nav > .slide > .menu:hover {
433     background: var(--submenu-bg-hover, #D4D4D4)
434 }
435
436 .main > .main-left > .nav > .slide:hover {
437     background: none;
438 }
439
440 .main > .main-left > .nav > .slide > .slide-menu > li {
441     padding: 0.4rem 2rem;
442 }
443
444 .main > .main-left > .nav > .slide > .slide-menu > .active {
445     background-color: var(--submenu-bg-hover-active, #0099CC);
446 }
447
448 .main > .main-left > .nav > .slide > .slide-menu > li > a {
449     text-decoration: none;
450     white-space: nowrap;
451 }
452
453 .main > .main-left > .nav > .slide > .slide-menu > .active > a {
454     color: white;
455 }
456
457 .main > .main-left > .nav > .slide > .slide-menu > li:hover {
458     background: var(--submenu-bg-hover, #D4D4D4)
459 }
460
461 .main > .main-left > .nav > .slide > .slide-menu > .active:hover {
462     background-color: var(--main-color, #0099CC);
463     cursor: hand;
464 }
465
466 li {
467     list-style-type: none;
468 }
469
470 #maincontent > .container {
471     margin: 0 2rem 1rem 2rem;
472 }
473
474 h1 {
475     font-size: 2rem;
476     padding-bottom: 10px;
477     border-bottom: 1px solid #eee;
478 }
479
480 h2 {
481     margin: 2rem 0 0 0;
482     font-size: 1.8rem;
483     padding-bottom: 10px;
484     border-bottom: 1px solid #eee;
485 }
486
487 h3 {
488     margin: 2rem 0 0 0;
489     font-size: 1.4rem;
490     padding-bottom: 10px;
491 }
492
493 h4 {
494     margin: 2rem 0 0 0;
495     font-size: 1.2rem;
496     padding-bottom: 10px;
497 }
498
499 .cbi-section {
500     margin: 1rem 0 0 0;
501     padding: 2rem;
502     border: 0;
503     font-weight: normal;
504     font-style: normal;
505     line-height: 1;
506     font-family: inherit;
507     min-width: inherit;
508     border-radius: 0;
509     background-color: #FFF;
510     box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
511
512     -webkit-overflow-scrolling: touch;
513 }
514
515 .cbi-map-descr + fieldset {
516     margin-top: 1rem;
517 }
518
519 .cbi-section > legend {
520     display: none !important;
521 }
522
523 fieldset > fieldset {
524     margin: 0;
525     padding: 0;
526     border: none;
527     box-shadow: none;
528 }
529
530 .cbi-section > h3:first-child,
531 .panel-title {
532     width: 100%;
533     display: block;
534     line-height: 1;
535     color: #404040;
536     font-size: 1.4rem;
537     padding-bottom: 1rem;
538     border-bottom: 1px solid #eee;
539     margin: 0;
540 }
541
542 table {
543     border-spacing: 0;
544     border-collapse: collapse;
545 }
546
547 table, .table {
548     width: 100%;
549     border: 1px solid #eee;
550 }
551
552 table > tbody > tr > td, table > tbody > tr > th, table > tfoot > tr > td, table > tfoot > tr > th, table > thead > tr > td, table > thead > tr > th,
553 .table > .tbody > .tr > .td, .table > .tbody > .tr > .th, .table > .tfoot > .tr > .td, .table > .tfoot > .tr > .th, .table > .thead > .tr > .td, .table > .thead > .tr > .th {
554     padding: .5rem;
555     border-top: 1px solid #ddd;
556     white-space: nowrap;
557 }
558
559 .cbi-section-table-cell {
560     white-space: nowrap;
561     align-self: flex-end;
562     flex: 1 1 auto;
563 }
564
565 .cbi-section-table {
566     border: none;
567 }
568
569 .cbi-section-table-row {
570     text-align: center;
571     margin-bottom: 1rem;
572     background: #f4f4f4;
573     box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
574 }
575
576 .cbi-section-table-row:last-child {
577     margin-bottom: 0;
578 }
579
580 .cbi-section-table-row > .cbi-value-field .cbi-input-select,
581 .cbi-section-table-row > .cbi-value-field .cbi-input-text,
582 .cbi-section-table-row > .cbi-value-field .cbi-input-password,
583 .cbi-section-table-row > .cbi-value-field .cbi-dropdown {
584     width: 100%;
585 }
586
587 .cbi-section-table-row > .cbi-value-field [data-dynlist] > input,
588 .cbi-section-table-row > .cbi-value-field input.cbi-input-password {
589     width: calc(100% - 1.5rem);
590 }
591
592 div > table > tbody > tr:nth-of-type(2n),
593 div > .table > .tbody > .tr:nth-of-type(2n) {
594     background-color: #f9f9f9;
595 }
596
597 div > table > tbody > tr:nth-of-type(2n),
598 div > .table > .tbody > .tr:nth-of-type(2n) {
599     background-color: #f9f9f9;
600 }
601
602 /* fix progress bar */
603 #swaptotal > div,
604 #swapfree > div,
605 #memfree > div,
606 #membuff > div,
607 #conns > div,
608 #memtotal > div {
609     width: 100% !important;
610     height: 1.2rem !important;
611 }
612
613 #swaptotal > div > div,
614 #swapfree > div > div,
615 #memfree > div > div,
616 #membuff > div > div,
617 #conns > div > div,
618 #memtotal > div > div {
619     height: 100% !important;
620     background-color: var(--main-color, #0099CC) !important;
621 }
622
623 /* fix multiple table */
624
625 table table,
626 .table .table {
627     border: none;
628 }
629
630 .cbi-value-field table,
631 .cbi-value-field .table {
632     border: none;
633 }
634
635 td > table > tbody > tr > td,
636 .td > .table > .tbody > .tr > .td {
637     border: none;
638 }
639
640 .cbi-value-field > table > tbody > tr > td,
641 .cbi-value-field > .table > .tbody > .tr > .td {
642     border: none;
643 }
644
645 /* button style */
646
647 .btn, .cbi-button, .item::after {
648     -webkit-appearance: none;
649     text-transform: uppercase;
650     color: rgba(0, 0, 0, 0.87);
651     background-color: #F0F0F0;
652     transition: all 0.2s ease-in-out;
653     display: inline-block;
654     padding: 0 0.8rem;
655     border: none;
656     border-radius: 0.2rem;
657     cursor: pointer;
658     -ms-touch-action: manipulation;
659     touch-action: manipulation;
660     background-image: none;
661     text-align: center;
662     vertical-align: middle;
663     white-space: nowrap;
664     -webkit-user-select: none;
665     -moz-user-select: none;
666     -ms-user-select: none;
667     user-select: none;
668     font-size: 0.8rem;
669     width: auto !important;
670     display: inline-block;
671     text-decoration: none;
672 }
673
674 .btn:hover,
675 .btn:focus,
676 .btn:active,
677 .cbi-button:hover,
678 .cbi-button:focus,
679 .cbi-button:active,
680 .item:hover::after,
681 .cbi-page-actions .cbi-button-apply + .cbi-button-save:hover,
682 .cbi-page-actions .cbi-button-apply + .cbi-button-save:focus,
683 .cbi-page-actions .cbi-button-apply + .cbi-button-save:active {
684     outline: 0;
685     text-decoration: none;
686     background-color: rgba(250, 250, 250, 0.7);
687 }
688
689 .btn:hover,
690 .btn:focus,
691 .cbi-button:hover,
692 .cbi-button:focus {
693     box-shadow: 0 0px 2px rgba(0, 0, 0, 0.12), 0 2px 2px rgba(0, 0, 0, 0.2);
694 }
695
696 .btn:active,
697 .cbi-button:active {
698     box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
699 }
700
701 .btn:disabled,
702 .cbi-button:disabled {
703     cursor: not-allowed;
704     pointer-events: none;
705     opacity: 0.60;
706     box-shadow: none;
707 }
708
709 .cbi-page-actions .cbi-button-apply,
710 .cbi-section-actions .cbi-button-edit,
711 .cbi-button-edit.important,
712 .cbi-button-apply.important,
713 .cbi-button-reload.important,
714 .cbi-button-action.important {
715     color: #fff;
716     background-color: #337ab7;
717 }
718
719 .cbi-page-actions .cbi-button-save,
720 .cbi-button-add.important,
721 .cbi-button-save.important,
722 .cbi-button-positive.important {
723     color: #fff;
724     background-color: #5bc0de;
725 }
726
727 .cbi-button-remove.important,
728 .cbi-button-reset.important,
729 .cbi-button-negative.important {
730     color: #fff;
731     background-color: #d9534f;
732 }
733
734 .cbi-button-find,
735 .cbi-button-link,
736 .cbi-button-up,
737 .cbi-button-down,
738 .cbi-button-neutral {
739     border: 1px solid #bfbfbf;
740     background-color: transparent;
741 }
742
743 .cbi-button-edit,
744 .cbi-button-apply,
745 .cbi-button-reload,
746 .cbi-button-action {
747     color: #2e6da4;
748     border: 1px solid #2e6da4;
749     background-color: transparent;
750 }
751
752 .cbi-page-actions .cbi-button-apply + .cbi-button-save,
753 .cbi-button-add,
754 .cbi-button-save,
755 .cbi-button-positive {
756     color: #46b8da;
757     border: 1px solid #46b8da;
758     background-color: transparent;
759 }
760
761 .cbi-section-remove > .cbi-button,
762 .cbi-button-remove,
763 .cbi-button-reset,
764 .cbi-button-negative {
765     color: #d43f3a;
766     border: 1px solid #d43f3a;
767     background-color: transparent;
768 }
769
770 .cbi-page-actions .cbi-button-link:first-child {
771     float: left;
772 }
773
774 .a-to-btn {
775     text-decoration: none;
776 }
777
778 /* table */
779
780 .tabs {
781     margin: 0 -2rem;
782     padding-left: 0.5rem;
783     background-color: #FFFFFF;
784 }
785
786 .cbi-tabmenu > li,
787 .tabs > li {
788     display: inline-block;
789     padding: 0.6rem 0rem;
790 }
791
792 .cbi-tabmenu > li > a,
793 .tabs > li > a {
794     text-decoration: none;
795     color: #404040;
796     padding: 0.5rem 0.8rem;
797 }
798
799 .tabs > li[class~="active"],
800 .tabs > li:hover {
801     cursor: pointer;
802     border-bottom: 0.2rem solid var(--main-color, #0099CC);
803     color: var(--main-color, #0099CC);
804     margin-bottom: -0.18751rem;
805 }
806
807 .tabs > li[class~="active"] > a {
808     color: var(--main-color, #0099CC);
809 }
810
811 .tabs > li:hover {
812     border-bottom: 0.18751rem solid #C9C9C9;
813 }
814
815 .cbi-tabmenu {
816     border-top: 1px solid #D4D4D4;
817     border-left: 1px solid #D4D4D4;
818     border-right: 1px solid #D4D4D4;
819 }
820
821 .cbi-tabmenu > li:hover {
822     background-color: #F1F1F1;
823 }
824
825 .cbi-tabmenu > li[class~="cbi-tab"] {
826     background-color: white;
827 }
828
829 .cbi-tabmenu {
830     background-color: #D4D4D4;
831 }
832
833 .cbi-section-remove:nth-of-type(2n),
834 .cbi-section-node:nth-of-type(2n){
835     background-color: #f9f9f9;
836 }
837
838 .cbi-section-node-tabbed {
839     padding: 0;
840     margin-top: 0;
841     border-bottom: 1px solid #D4D4D4;
842     border-left: 1px solid #D4D4D4;
843     border-right: 1px solid #D4D4D4;
844 }
845
846 .cbi-tabcontainer > .cbi-value:nth-of-type(2n) {
847     background-color: #f9f9f9;
848 }
849
850 .cbi-value-field,
851 .cbi-value-description {
852     display: table-cell;
853     line-height: 1.25;
854 }
855
856 .cbi-value-helpicon > img {
857     display: none;
858 }
859
860 .cbi-value-helpicon:before {
861     content: "\f059";
862 }
863
864 .cbi-value-description {
865     font-size: small;
866     opacity: 0.5;
867     padding: 0.5rem 0 0 0;
868 }
869
870 .cbi-value-title {
871     word-wrap: break-word;
872     padding-top: 0.6rem;
873     width: 23rem;
874     float: left;
875     text-align: right;
876     padding-right: 2rem;
877     display: table-cell;
878 }
879
880 .cbi-value {
881     padding: 0.3rem 1rem;
882     display: inline-block;
883     width: 100%;
884 }
885
886 .cbi-section-table-descr > .cbi-section-table-cell,
887 .cbi-section-table-titles > .cbi-section-table-cell {
888     border: none;
889 }
890
891 .td[data-title]::before {
892     content: attr(data-title) ":\20";
893     font-weight: bold;
894     text-align: left;
895     display: none;
896     padding: .25rem 0;
897     white-space: nowrap;
898 }
899
900 .tr.placeholder .td[data-title]::before {
901     display: none;
902 }
903
904 .tr[data-title]::before,
905 .tr.cbi-section-table-titles.named::before {
906     content: attr(data-title) "\20";
907     font-weight: bold;
908     text-align: center;
909     display: table-cell;
910     align-self: center;
911     flex: 1 1 5%;
912     padding: .25rem;
913     white-space: normal;
914     word-wrap: break-word;
915     vertical-align: middle;
916 }
917
918 .cbi-rowstyle-1 {
919     background-color: #f9f9f9;
920 }
921
922 .cbi-rowstyle-2 {
923     background-color: #eee;
924 }
925
926 .cbi-rowstyle-2 .cbi-button-up,
927 .cbi-rowstyle-2 .cbi-button-down {
928     background-color: #FFF !important;
929 }
930
931 .cbi-section-table .cbi-section-table-titles .cbi-section-table-cell {
932     width: auto !important;
933 }
934
935 .td.cbi-section-actions {
936     text-align: right;
937     vertical-align: middle;
938 }
939
940 .td.cbi-section-actions > * {
941     display: flex;
942 }
943
944 .td.cbi-section-actions > * > *,
945 .td.cbi-section-actions > * > form > * {
946     flex: 1 1 4em;
947     margin: 0 1px;
948 }
949
950 .td.cbi-section-actions > * > form {
951     display: inline-flex;
952     margin: 0;
953 }
954
955 /* desc */
956 .cbi-section-descr,
957 .cbi-map-descr {
958     padding: 0.5rem;
959     color: #999;
960     font-size: small;
961 }
962
963
964 .cbi-dynlist,
965 .cbi-dropdown {
966     display: inline-flex;
967     cursor: pointer;
968     position: relative;
969     padding: 0;
970     height: auto;
971 }
972
973 .cbi-dropdown > ul {
974     margin: 0 !important;
975     padding: 0;
976     list-style: none;
977     overflow-x: hidden;
978     overflow-y: auto;
979     display: flex;
980     width: 100%;
981 }
982
983 .cbi-dropdown > ul.preview {
984     display: none;
985 }
986
987 .cbi-dropdown > .open {
988     border: 2px outset #eee;
989     flex-basis: 15px;
990     background: #eee;
991 }
992
993 .cbi-dropdown > .open,
994 .cbi-dropdown > .more {
995     flex-grow: 0;
996     flex-shrink: 0;
997     display: flex;
998     flex-direction: column;
999     justify-content: center;
1000     text-align: center;
1001     line-height: 2em;
1002     padding: 0 .25em;
1003 }
1004
1005 .cbi-dropdown > .more,
1006 .cbi-dropdown > ul > li[placeholder] {
1007     color: #777;
1008     font-weight: bold;
1009     text-shadow: 1px 1px 0px #fff;
1010     display: none;
1011 }
1012
1013 .cbi-dropdown > ul > li {
1014     display: none;
1015     padding: .25em;
1016     white-space: nowrap;
1017     overflow: hidden;
1018     text-overflow: ellipsis;
1019     flex-shrink: 1;
1020     flex-grow: 1;
1021     align-items: center;
1022     align-self: center;
1023     min-height: 20px;
1024 }
1025
1026 .cbi-dropdown > ul > li .hide-open { display: initial; }
1027 .cbi-dropdown > ul > li .hide-close { display: none; }
1028
1029 .cbi-dropdown > ul > li[display]:not([display="0"]) {
1030     border-left: 1px solid #ccc;
1031 }
1032
1033 .cbi-dropdown[empty] > ul {
1034     max-width: 1px;
1035 }
1036
1037 .cbi-dropdown > ul > li > form {
1038     display: none;
1039     margin: 0;
1040     padding: 0;
1041     pointer-events: none;
1042 }
1043
1044 .cbi-dropdown > ul > li img {
1045     vertical-align: middle;
1046     margin-right: .25em;
1047 }
1048
1049 .cbi-dropdown > ul > li > form > input[type="checkbox"] {
1050     margin: 0;
1051     height: auto;
1052 }
1053
1054 .cbi-dropdown > ul > li input[type="text"] {
1055     height: 20px;
1056 }
1057
1058 .cbi-dropdown[open] {
1059     position: relative;
1060 }
1061
1062 .cbi-dropdown[open] > ul.dropdown {
1063     display: block;
1064     background: #f6f6f5;
1065     border: 1px solid #918e8c;
1066     box-shadow: 0 0 4px #918e8c;
1067     position: absolute;
1068     z-index: 1100;
1069     max-width: none;
1070     min-width: 100%;
1071     width: auto;
1072 }
1073
1074 .cbi-dropdown > ul > li[display],
1075 .cbi-dropdown[open] > ul.preview,
1076 .cbi-dropdown[open] > ul.dropdown > li,
1077 .cbi-dropdown[multiple] > ul > li > label,
1078 .cbi-dropdown[multiple][open] > ul.dropdown > li,
1079 .cbi-dropdown[multiple][more] > .more,
1080 .cbi-dropdown[multiple][empty] > .more {
1081     flex-grow: 1;
1082     display: flex;
1083     align-items: center;
1084 }
1085
1086 .cbi-dropdown[empty] > ul > li,
1087 .cbi-dropdown[optional][open] > ul.dropdown > li[placeholder],
1088 .cbi-dropdown[multiple][open] > ul.dropdown > li > form {
1089     display: block;
1090 }
1091
1092 .cbi-dropdown[open] > ul.dropdown > li .hide-open { display: none; }
1093 .cbi-dropdown[open] > ul.dropdown > li .hide-close { display: initial; }
1094
1095 .cbi-dropdown[open] > ul.dropdown > li {
1096     border-bottom: 1px solid #ccc;
1097 }
1098
1099 .cbi-dropdown[open] > ul.dropdown > li[selected] {
1100     background: #b0d0f0;
1101 }
1102
1103 .cbi-dropdown[open] > ul.dropdown > li.focus {
1104     background: linear-gradient(90deg, #a3c2e8 0%, #84aad9 100%);
1105 }
1106
1107 .cbi-dropdown[open] > ul.dropdown > li:last-child {
1108     margin-bottom: 0;
1109     border-bottom: none;
1110 }
1111
1112 .cbi-dropdown[open] > ul.dropdown > li[unselectable] {
1113     opacity: 0.7;
1114 }
1115
1116 .cbi-dropdown[open] > ul.dropdown > li > input.create-item-input:first-child:last-child {
1117     width: 100%;
1118 }
1119
1120 .cbi-dropdown[open] > ul.dropdown > li[unselectable] {
1121     opacity: 0.7;
1122 }
1123
1124 .cbi-dropdown[open] > ul.dropdown > li > input.create-item-input:first-child:last-child {
1125     width: 100%;
1126 }
1127
1128 .cbi-dropdown[disabled] {
1129     pointer-events: none;
1130     opacity: .6;
1131 }
1132
1133 .cbi-dropdown .zonebadge {
1134     width: 100%;
1135 }
1136
1137 .cbi-dropdown[open] .zonebadge {
1138     width: auto;
1139 }
1140
1141 .cbi-dynlist {
1142     height: auto;
1143     min-height: 30px;
1144     display: inline-flex;
1145     flex-direction: column;
1146 }
1147
1148 .cbi-dynlist > .item {
1149     margin: 0 2em 4px 0;
1150     padding: 2px 4px;
1151     border-bottom: 2px solid rgba(0, 0, 0, .26);
1152     position: relative;
1153     pointer-events: none;
1154     cursor: default;
1155 }
1156
1157 .cbi-dynlist > .item::after {
1158     content: "×";
1159     position: absolute;
1160     display: inline-flex;
1161     align-items: center;
1162     top: 0;
1163     right: -2em;
1164     bottom: 0;
1165     padding: 0 6px;
1166     border: 1px solid #c44;
1167     font-weight: bold;
1168     color: #c44;
1169     pointer-events: auto;
1170 }
1171
1172 .cbi-dynlist {
1173     height: auto;
1174     min-height: 30px;
1175     display: inline-flex;
1176     flex-direction: column;
1177 }
1178
1179 .cbi-dynlist > .item {
1180     margin: 0 2em 4px 0;
1181     padding: 2px 4px;
1182     border-bottom: 2px solid rgba(0, 0, 0, .26);
1183     position: relative;
1184     pointer-events: none;
1185     cursor: default;
1186 }
1187
1188 .cbi-dynlist > .item::after {
1189     content: "×";
1190     position: absolute;
1191     display: inline-flex;
1192     align-items: center;
1193     top: 0;
1194     right: -2em;
1195     bottom: 0;
1196     padding: 0 6px;
1197     border: 1px solid #c44;
1198     font-weight: bold;
1199     color: #c44;
1200     pointer-events: auto;
1201 }
1202
1203
1204 /* luci */
1205
1206 .hidden {
1207     display: none
1208 }
1209
1210 .left, .left::before {
1211     text-align: left !important;
1212 }
1213
1214 .right, .right::before {
1215     text-align: right !important;
1216 }
1217
1218 .center, .center::before {
1219     text-align: center !important;
1220 }
1221
1222 .top {
1223     align-self: flex-start !important;
1224     vertical-align: top !important;
1225 }
1226
1227 .bottom {
1228     align-self: flex-end !important;
1229     vertical-align: bottom !important;
1230 }
1231
1232 .inline {
1233     display: inline;
1234 }
1235
1236 .cbi-page-actions {
1237     border-top: 1px solid #eee;
1238     padding-top: 1rem;
1239     text-align: right;
1240 }
1241
1242 /* input */
1243 .cbi-value input[type="password"],
1244 .cbi-value input[type="text"] {
1245     min-width: 15rem;
1246 }
1247
1248 /* select */
1249 .cbi-value-field .cbi-dropdown {
1250     min-width: 15rem;
1251 }
1252
1253 .cbi-value-field .cbi-input-select {
1254     width: 15rem;
1255 }
1256
1257 .cbi-value-field .cbi-input-invalid {
1258     border-bottom-color: #f00;
1259     color: #f00;
1260 }
1261
1262 .th[data-type="button"], .td[data-type="button"],
1263 .th[data-type="fvalue"], .td[data-type="fvalue"] {
1264     flex: 1 1 2em;
1265     text-align: center;
1266 }
1267
1268 .ifacebadge {
1269     display: inline-flex;
1270     border-bottom: 1px solid #CCCCCC;
1271     padding: 0.5rem 1rem;
1272     box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
1273     background: #fff;
1274 }
1275
1276 td > .ifacebadge,
1277 .td > .ifacebadge {
1278     background-color: #F0F0F0;
1279     font-size: 0.9rem;
1280 }
1281
1282 .ifacebadge > em,
1283 .ifacebadge > img {
1284     display: inline-block;
1285     margin: 0 .2rem;
1286     align-self: flex-start;
1287 }
1288
1289 .ifacebadge > img + img {
1290     margin: 0 .2rem 0 0;
1291 }
1292
1293 .network-status-table {
1294     display: flex;
1295     flex-wrap: wrap;
1296 }
1297
1298 .network-status-table .ifacebox {
1299     margin: .5em;
1300     flex-grow: 1;
1301 }
1302
1303 .network-status-table .ifacebox-body {
1304     display: flex;
1305     flex-direction: column;
1306     height: 100%;
1307 }
1308
1309 .network-status-table .ifacebox-body > span {
1310     flex: 10 10 auto;
1311 }
1312
1313 .network-status-table .ifacebox-body > div {
1314     display: flex;
1315     flex-wrap: wrap;
1316 }
1317
1318 .network-status-table .ifacebox-body .ifacebadge {
1319     flex: 1 1 auto;
1320     margin: .5em .25em 0 .25em;
1321     padding: .5em;
1322     min-width: 220px;
1323     background-color: #fff;
1324     align-items: center;
1325 }
1326
1327 /*textarea*/
1328
1329 .cbi-input-textarea {
1330     width: 100%;
1331     min-height: 14rem;
1332     padding: 0.8rem;
1333     font-size: 0.8rem;
1334     font-family: monospace;
1335     color: black;
1336 }
1337
1338 #syslog {
1339     width: 100%;
1340     min-height: 15rem;
1341     padding: 1rem;
1342     font-size: small;
1343     color: #5F5F5F;
1344
1345     margin-bottom: 20px;
1346     border-radius: 0;
1347     background-color: #FFF;
1348     box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
1349     border: none;
1350 }
1351
1352 /* change */
1353
1354 .uci-change-list {
1355     font-family: monospace;
1356 }
1357
1358 .uci-change-list ins,
1359 .uci-change-legend-label ins {
1360     text-decoration: none;
1361     border: 1px solid #00FF00;
1362     background-color: #CCFFCC;
1363     display: block;
1364     padding: 2px;
1365 }
1366
1367 .uci-change-list del,
1368 .uci-change-legend-label del {
1369     text-decoration: none;
1370     border: 1px solid #FF0000;
1371     background-color: #FFCCCC;
1372     display: block;
1373     font-style: normal;
1374     padding: 2px;
1375 }
1376
1377 .uci-change-list var,
1378 .uci-change-legend-label var {
1379     text-decoration: none;
1380     border: 1px solid #CCCCCC;
1381     background-color: #EEEEEE;
1382     display: block;
1383     font-style: normal;
1384     padding: 2px;
1385 }
1386
1387 .uci-change-list var ins,
1388 .uci-change-list var del {
1389     border: none;
1390     white-space: pre;
1391     font-style: normal;
1392     padding: 0px;
1393 }
1394
1395 .uci-change-legend {
1396     padding: 5px;
1397 }
1398
1399 .uci-change-legend-label {
1400     width: 150px;
1401     float: left;
1402 }
1403
1404 .uci-change-legend-label > ins,
1405 .uci-change-legend-label > del,
1406 .uci-change-legend-label > var {
1407     float: left;
1408     margin-right: 4px;
1409     width: 10px;
1410     height: 10px;
1411     display: block;
1412 }
1413
1414 .uci-change-legend-label var ins,
1415 .uci-change-legend-label var del {
1416     line-height: 6px;
1417     border: none;
1418 }
1419
1420 .uci-change-list var,
1421 .uci-change-list del,
1422 .uci-change-list ins {
1423     padding: 0.5rem;
1424 }
1425
1426 /* other fix */
1427 #iwsvg,
1428 #iwsvg2,
1429 #bwsvg {
1430     border: 1px solid #D4D4D4 !important;
1431     border-top: none !important;
1432 }
1433
1434 .ifacebox {
1435     box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 2px rgba(0, 0, 0, 0.2);
1436     border-bottom: 1px solid #ccc;
1437     background-color: #f9f9f9;
1438     display: inline-flex;
1439     flex-direction: column;
1440     line-height: 1.2em;
1441     min-width: 100px;
1442 }
1443
1444 .ifacebox-head {
1445     padding: .25em;
1446     background: #eee;
1447 }
1448
1449 .ifacebox-head.active {
1450     background: #90c0e0;
1451 }
1452
1453 .ifacebox-body {
1454     padding: .25em;
1455 }
1456
1457 .cbi-image-button {
1458     margin-left: 0.5rem;
1459 }
1460
1461 .zonebadge {
1462     padding: 0.2rem 0.5rem;
1463     display: inline-block;
1464 }
1465
1466 .zonebadge .ifacebadge {
1467     padding: .2rem .3rem;
1468     margin: 0.1rem 0.2rem;
1469     border: 1px solid #6C6C6C;
1470 }
1471
1472 .zonebadge > input[type="text"] {
1473     padding: 0.16rem 1rem;
1474     min-width: 10rem;
1475     margin-top: 0.3rem;
1476 }
1477
1478 .zonebadge > em,
1479 .zonebadge > strong {
1480     margin: 0 0.2rem;
1481     display: inline-block;
1482 }
1483
1484 .cbi-value-field .cbi-input-checkbox,
1485 .cbi-value-field .cbi-input-radio {
1486     margin-top: 0.5rem;
1487     height: 1rem;
1488 }
1489
1490 .td .cbi-input-checkbox,
1491 .td .cbi-input-radio {
1492     margin-top: 0;
1493 }
1494
1495 .cbi-value-field > input + .cbi-value-description {
1496     padding: 0;
1497 }
1498
1499 .cbi-value-field > ul > li {
1500     display: flex;
1501 }
1502
1503 .cbi-value-field > ul > li > label {
1504     margin-top: 0.5rem;
1505 }
1506
1507 .cbi-value-field > ul > li .ifacebadge {
1508     background-color: #eee;
1509     margin-left: 0.4rem;
1510     margin-top: -0.5rem;
1511 }
1512
1513 .cbi-section-table-row > .cbi-value-field .cbi-dropdown {
1514     min-width: 7rem;
1515 }
1516
1517 .cbi-section-create {
1518     margin: .5rem -3px;
1519     display: inline-flex;
1520     align-items: center;
1521 }
1522
1523 .cbi-section-create > * {
1524     margin: 0.5rem;
1525 }
1526
1527 .cbi-section-remove {
1528     padding: 0.5rem;
1529 }
1530
1531 div.cbi-value var, td.cbi-value-field var, .td.cbi-value-field var {
1532     font-style: italic;
1533     color: #0069D6;
1534 }
1535
1536 small {
1537     font-size: 90%;
1538     white-space: normal;
1539     line-height: 1.42857143;
1540 }
1541
1542 .cbi-button-up,
1543 .cbi-button-down {
1544     display: inline-block;
1545     min-width: 0;
1546     padding: 0.2rem 0.3rem;
1547     font-size: 1.2rem;
1548 }
1549
1550 .cbi-optionals {
1551     padding: 1rem 1rem 0 1rem;
1552     border-top: 1px solid #CCC;
1553 }
1554
1555 .cbi-dropdown-container {
1556     position: relative;
1557 }
1558
1559 .cbi-tooltip-container {
1560     cursor: help;
1561 }
1562
1563 .cbi-tooltip {
1564     position: absolute;
1565     z-index: 1000;
1566     left: -1000px;
1567     border-radius: 3px;
1568     background: #fff;
1569     padding: 2px 5px;
1570     white-space: pre;
1571     opacity: 0;
1572     transition: opacity .25s ease-out;
1573     pointer-events: none;
1574     box-shadow: 0 0 2px #444;
1575 }
1576
1577 .cbi-tooltip-container:hover .cbi-tooltip {
1578     left: auto;
1579     opacity: 1;
1580     transition: opacity .25s ease-in;
1581 }
1582
1583 .zonebadge .cbi-tooltip {
1584     padding: .25rem;
1585     background: inherit;
1586     margin: -1.5rem 0 0 -.5rem;
1587 }
1588
1589 .zonebadge-empty {
1590     background: repeating-linear-gradient(45deg,rgba(204,204,204,0.5),rgba(204,204,204,0.5) 5px,rgba(255,255,255,0.5) 5px,rgba(255,255,255,0.5) 10px);
1591     color: #404040;
1592 }
1593
1594 .zone-forwards {
1595     display: flex;
1596     min-width: 10rem;
1597 }
1598
1599 .zone-forwards > * {
1600     flex: 1 1 45%;
1601 }
1602
1603 .zone-forwards > span {
1604     flex-basis: 10%;
1605     text-align: center;
1606     padding: 0 .25rem;
1607 }
1608
1609 .zone-forwards .zone-src,
1610 .zone-forwards .zone-dest {
1611     display: flex;
1612     flex-direction: column;
1613 }
1614
1615 #diag-rc-output > pre {
1616     background-color: #f5f5f5;
1617     display: block;
1618     padding: 8.5px;
1619     margin: 0 0 18px;
1620     line-height: 1.5rem;
1621     -moz-border-radius: 3px;
1622     white-space: pre-wrap;
1623     word-wrap: break-word;
1624     font-size: 1.4rem;
1625     color: #404040;
1626 }
1627
1628 input[name="ping"],
1629 input[name="traceroute"],
1630 input[name="nslookup"] {
1631     width: 80%;
1632 }
1633
1634 header > .container > .pull-right > * {
1635     position: relative;
1636     top: 0.45rem;
1637     cursor: pointer;
1638 }
1639
1640 #xhr_poll_status > .label.success {
1641     background-color: #14CE14;
1642 }
1643
1644 #xhr_poll_status {
1645     display: flex;
1646 }
1647
1648 .label {
1649     padding: 0.3rem 0.8rem;
1650     font-size: 0.8rem;
1651     font-weight: bold;
1652     color: #ffffff !important;
1653     text-transform: uppercase;
1654     white-space: nowrap;
1655     background-color: #bfbfbf;
1656     -webkit-border-radius: 3px;
1657     -moz-border-radius: 3px;
1658     border-radius: 3px;
1659     text-shadow: none;
1660     text-decoration: none;
1661 }
1662
1663 .notice {
1664     background-color: #5BC0DE;
1665 }
1666
1667 .showSide {
1668     display: none;
1669 }
1670
1671 .darkMask {
1672     width: 100%;
1673     height: 100%;
1674     position: fixed;
1675     background-color: rgba(0, 0, 0, 0.56);
1676     content: "";
1677     z-index: 99;
1678     display: none;
1679 }
1680
1681 /* fix Main Login*/
1682 .node-main-login > .main > .main-left {
1683     display: none;
1684 }
1685
1686 .node-main-login > .main > .main-right {
1687     width: 100%;
1688 }
1689
1690 .node-main-login > .main fieldset {
1691     padding: 0.5rem;
1692     margin-bottom: 1rem;
1693     display: inline;
1694     background: none;
1695     border: none;
1696     box-shadow: none;
1697     overflow: hidden;
1698 }
1699
1700 .node-main-login > .main .cbi-value-title {
1701     width: 8rem;
1702 }
1703
1704 .node-main-login > .main #maincontent {
1705
1706     text-align: center;
1707 }
1708
1709 .node-main-login > .main .container {
1710     display: inline-block;
1711     padding: 2rem 4rem;
1712     margin-top: 2rem !important;
1713     background-color: #FFF;
1714     box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
1715     text-align: left;
1716 }
1717
1718 .node-main-login > .main form > div:nth-last-child(1) {
1719     float: right;
1720 }
1721
1722 .node-main-login > .main .cbi-value {
1723     display: block;
1724 }
1725
1726 .node-main-login > .main .cbi-value > * {
1727     display: inline-block !important;
1728 }
1729
1730 .node-main-login > .main .cbi-input-user,
1731 .node-main-login > .main .cbi-input-password {
1732     min-width: 15rem;
1733 }
1734
1735 .node-main-login footer {
1736     bottom: 0;
1737     position: absolute;
1738     width: 100%;
1739 }
1740
1741 /* fix status overview */
1742
1743 .node-status-overview > .main fieldset:nth-child(4) .td:nth-child(2) {
1744     white-space: normal;
1745 }
1746
1747 /* fix status processes */
1748
1749 .node-status-processes > .main .table .tr .td:nth-child(3) {
1750     white-space: normal;
1751 }
1752
1753 .node-status-iptables > .main div > .cbi-map > form {
1754     margin: 2rem 2rem 0 0;
1755 }
1756
1757 /* fix system reboot */
1758
1759 .node-system-reboot > .main > .main-right p,
1760 .node-system-reboot > .main > .main-right h3 {
1761     padding-left: 2rem;
1762 }
1763
1764 /* fix Services  Network Shares*/
1765 .node-services-samba > .main .cbi-tabcontainer:nth-child(3) .cbi-value-title {
1766     margin-bottom: 1rem;
1767     width: auto;
1768 }
1769
1770 .node-services-samba > .main .cbi-tabcontainer:nth-child(3) .cbi-value-field {
1771     display: list-item;
1772 }
1773
1774 .node-services-samba > .main .cbi-tabcontainer:nth-child(3) .cbi-value-description {
1775     padding-top: 1rem;
1776 }
1777
1778 /* fix System Software*/
1779 .node-system-packages > .main table tr td:nth-child(1) {
1780     width: auto !important;
1781 }
1782
1783 .node-system-packages > .main table tr td:nth-last-child(1) {
1784     white-space: normal;
1785     font-size: small;
1786     color: #404040;
1787 }
1788
1789 .node-system-packages > .main .cbi-tabmenu > li > a, .tabs > li > a {
1790     padding: 0.5rem 0.8rem;
1791 }
1792
1793 .node-system-packages > .main .cbi-value > pre {
1794     background-color: #eee;
1795     padding: 0.5rem;
1796     overflow: auto;
1797 }
1798
1799 .cbi-tabmenu + .cbi-section {
1800     margin-top: 0;
1801 }
1802
1803 .node-status-iptables fieldset,
1804 .node-system-packages fieldset,
1805 .node-system-flashops fieldset {
1806     margin-top: 0;
1807 }
1808
1809 .node-status-iptables .cbi-tabmenu,
1810 .node-system-packages .cbi-tabmenu,
1811 .node-system-flashops .cbi-tabmenu {
1812     border: none;
1813     box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
1814 }
1815
1816 .node-system-flashops form.inline + form.inline {
1817     margin-left: 0;
1818 }
1819
1820 #cbi-firewall-redirect table *,
1821 #cbi-network-switch_vlan table *,
1822 #cbi-firewall-zone table * {
1823     font-size: small;
1824 }
1825
1826 #cbi-firewall-redirect table input[type="text"],
1827 #cbi-network-switch_vlan table input[type="text"],
1828 #cbi-firewall-zone table input[type="text"] {
1829     width: 5rem;
1830 }
1831
1832 #cbi-firewall-redirect table select,
1833 #cbi-network-switch_vlan table select,
1834 #cbi-firewall-zone table select {
1835     min-width: 3.5rem;
1836 }
1837
1838 #cbi-network-switch_vlan .th,
1839 #cbi-network-switch_vlan .td {
1840     flex-basis: 12%;
1841 }
1842
1843 /* language fix */
1844 body.lang_pl.node-main-login .cbi-value-title {
1845     width: 12rem;
1846 }
1847
1848 /* applyreboot fix */
1849
1850 #applyreboot-container {
1851         margin: 2rem;
1852 }
1853
1854 #applyreboot-section {
1855         margin: 2rem;
1856         line-height: 300%;
1857 }
1858
1859 @media screen and (max-width: 1600px) {
1860     .btn,
1861     .cbi-button {
1862         padding: 0.3rem 0.6rem;
1863         font-size: 0.8rem;
1864     }
1865
1866     header > .container > .pull-right > * {
1867         top: 0.35rem;
1868     }
1869
1870     .label {
1871         padding: 0.2rem 0.6rem;
1872     }
1873
1874     .cbi-value-title {
1875         width: 15rem;
1876         padding-right: 0.6rem;
1877     }
1878
1879     fieldset {
1880         padding: 1rem;
1881     }
1882
1883     .cbi-input-textarea {
1884         font-size: small;
1885     }
1886
1887     .node-status-iptables > .main fieldset li > a {
1888         padding: 0.3rem 0.6rem;
1889     }
1890 }
1891
1892 @media screen and (max-width: 1280px) {
1893     header > .container {
1894         margin-top: 0.25rem;
1895     }
1896
1897     .cbi-tabmenu > li > a, .tabs > li > a {
1898         padding: 0.2rem 0.5rem;
1899     }
1900
1901     .panel-title {
1902         font-size: 1.1rem;
1903         padding-bottom: 1rem;
1904     }
1905
1906     table {
1907         font-size: 0.7rem !important;
1908         width: 100% !important;
1909     }
1910 }
1911
1912 @media screen and (max-width: 992px) {
1913     header > .fill > .container > img {
1914         display: none;
1915     }
1916
1917     .main-left {
1918         width: 0;
1919         position: fixed;
1920         z-index: 100;
1921     }
1922
1923     .main-right {
1924         width: 100%;
1925     }
1926
1927     .showSide {
1928         padding: 0.1rem;
1929         margin-right: 0.5rem;
1930         display: inline-block;
1931     }
1932
1933     .showSide:before {
1934         content: "\e20e";
1935         font-size: 1.7rem;
1936     }
1937
1938     .node-main-login .showSide {
1939         display: none !important;
1940     }
1941
1942     .cbi-value-title {
1943         width: 9rem;
1944         padding-right: 1rem;
1945     }
1946
1947     .node-network-diagnostics > .main .cbi-map fieldset > div * {
1948         width: 100% !important;
1949     }
1950
1951     .node-network-diagnostics > .main .cbi-map fieldset > div input[type="text"] {
1952         margin: 3rem 0 0 0 !important;
1953     }
1954
1955     .node-network-diagnostics > .main .cbi-map fieldset > div:nth-child(4) input[type="text"] {
1956         margin: 0 !important;
1957     }
1958
1959     .node-network-diagnostics > .main .cbi-map fieldset > div select,
1960     .node-network-diagnostics > .main .cbi-map fieldset > div input[type="button"] {
1961         margin: 1rem 0 0 0;
1962     }
1963
1964     .node-network-diagnostics > .main .cbi-map fieldset > div {
1965         width: 100% !important;
1966     }
1967
1968     #diag-rc-output > pre {
1969         font-size: 1rem;
1970     }
1971
1972     .node-main-login > .main .cbi-value-title {
1973         text-align: left;
1974     }
1975
1976     .tr {
1977         display: flex;
1978         flex-direction: row;
1979         flex-wrap: wrap;
1980     }
1981
1982     .th, .td {
1983         flex: 2 2 25%;
1984         align-self: flex-start;
1985         overflow: hidden;
1986         text-overflow: ellipsis;
1987         word-wrap: break-word;
1988         display: inline-block;
1989     }
1990
1991     .td select,
1992     .td input[type="text"] {
1993         word-wrap: normal;
1994         width: 100%;
1995     }
1996
1997     .td [data-dynlist] > input,
1998     .td input.cbi-input-password {
1999         width: calc(100% - 1.5rem);
2000     }
2001
2002     .td[data-type="button"],
2003     .td[data-type="fvalue"] {
2004         flex: 1 1 12.5%;
2005         text-align: left;
2006     }
2007
2008     .th.cbi-value-field,
2009     .td.cbi-value-field,
2010     .th.cbi-section-table-cell,
2011     .td.cbi-section-table-cell {
2012         flex-basis: auto;
2013     }
2014
2015     .cbi-section-table-row {
2016         display: flex;
2017         flex-wrap: wrap;
2018         flex-direction: row;
2019         justify-content: space-between;
2020     }
2021
2022     .td.cbi-value-field,
2023     .cbi-section-table-cell {
2024         text-align: center;
2025         display: inline-block;
2026         flex: 10 10 auto;
2027     }
2028
2029     .td.cbi-section-actions {
2030         text-align: right;
2031         align-self: flex-end;
2032         vertical-align: bottom;
2033     }
2034
2035     .tr.table-titles,
2036     .tr.cbi-section-table-titles,
2037     .tr.cbi-section-table-descr {
2038         display: none;
2039     }
2040
2041     .tr[data-title]::before,
2042     .tr.cbi-section-table-titles.named::before {
2043         display: block;
2044         flex: 1 1 100%;
2045         background: #eef;
2046         font-size: .9rem;
2047         border-bottom: 1px solid rgba(0, 0, 0, .26);
2048     }
2049
2050     .td[data-title] {
2051         text-align: left;
2052     }
2053
2054     .td[data-title]::before {
2055         display: block;
2056     }
2057
2058     .hide-sm,
2059     .hide-xs {
2060         display: none;
2061     }
2062 }
2063
2064 @media screen and (max-width: 480px) {
2065     body {
2066         font-size: 1rem;
2067     }
2068
2069     fieldset {
2070         padding: 1rem;
2071         margin: 1rem 0 0 0;
2072     }
2073
2074     .tabs {
2075         margin: 0 -1rem;
2076     }
2077
2078     #maincontent > .container {
2079         margin: 0 1rem 1.5rem 1rem;
2080     }
2081
2082     .main > .main-left > .nav > .slide > .menu {
2083         font-size: 1.3rem;
2084     }
2085
2086     .main > .main-left > .nav > .slide > .slide-menu > li > a {
2087         font-size: 1.1rem;
2088     }
2089
2090     .cbi-value-title {
2091         width: 100%;
2092         min-width: 0rem !important;
2093         display: block;
2094         margin-top: 1rem;
2095         margin-bottom: 0.5rem;
2096         text-align: left;
2097     }
2098
2099     .cbi-value-field, .cbi-value-description {
2100         width: 100%;
2101     }
2102
2103     .cbi-value > .cbi-value-field {
2104         display: inline-block;
2105     }
2106
2107     .cbi-tabmenu > li, .tabs > li {
2108         padding: 0.6rem 0rem;
2109     }
2110
2111     .cbi-tabmenu > li > a, .tabs > li > a {
2112         padding: 0.2rem 0.3rem;
2113         font-size: 0.9rem;
2114     }
2115
2116     .cbi-page-actions > div > input {
2117         display: none;
2118     }
2119
2120     .node-main-login > .main .container {
2121         padding: 0.5rem 1rem 2rem 1rem;
2122     }
2123
2124     .node-main-login > .main .cbi-value {
2125         padding: 0;
2126     }
2127
2128     .node-main-login > .main form > div:nth-last-child(1) {
2129         margin-top: 2rem;
2130     }
2131
2132     .node-main-login > .main .cbi-value-title {
2133         width: 100% !important;
2134         font-size: 1.2rem;
2135     }
2136
2137     .node-main-login > .main fieldset {
2138         margin: 0;
2139         padding: 0.5rem;
2140     }
2141
2142     h2 {
2143         font-size: 2rem;
2144     }
2145
2146     .tabs > li > a {
2147         font-size: 0.9rem;
2148     }
2149
2150     select,
2151     input {
2152         font-size: 0.9rem;
2153     }
2154
2155     .mobile-hide {
2156         display: none;
2157     }
2158
2159     .panel-title {
2160         font-size: 1.4rem;
2161         padding-bottom: 1rem;
2162     }
2163
2164     .node-system-packages > .main .cbi-value.cbi-value-last > div {
2165         width: 100% !important;
2166     }
2167
2168     .node-system-packages > .main .cbi-value .cbi-value-field input {
2169         width: 100%;
2170     }
2171
2172     .node-status-iptables > .main div > .cbi-map > form {
2173         position: static !important;
2174         margin: 0 0 2rem 0;
2175         padding: 2rem;
2176         border: 0;
2177         font-weight: normal;
2178         font-style: normal;
2179         line-height: 1;
2180         font-family: inherit;
2181         min-width: inherit;
2182         border-radius: 0;
2183         background-color: #FFF;
2184         box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
2185         -webkit-overflow-scrolling: touch;
2186     }
2187
2188     .node-status-iptables > .main div > .cbi-map > form input[type="submit"] {
2189         width: 100% !important;
2190         margin: 0;
2191     }
2192
2193     .node-status-iptables > .main div > .cbi-map > form input[type="submit"] + input[type="submit"] {
2194         margin-top: 1rem;
2195     }
2196
2197     .th, .td {
2198         flex-basis: 50%;
2199     }
2200
2201     .td.cbi-value-field {
2202         flex-basis: 100%;
2203     }
2204
2205     .td.cbi-value-field[data-type="dvalue"] {
2206         flex-basis: 50%;
2207     }
2208
2209     .td.cbi-value-field[data-type="button"],
2210     .td.cbi-value-field[data-type="fvalue"] {
2211         flex-basis: 25%;
2212         text-align: left;
2213     }
2214
2215     .tr[data-title]::before,
2216     .tr.cbi-section-table-titles.named::before {
2217         font-size: 1rem;
2218     }
2219
2220     .hide-xs {
2221         display: none;
2222     }
2223 }
2224
2225 @media screen and (min-width: 992px) {
2226     .cbi-value input[type="password"],
2227     .cbi-value input[type="text"],
2228     .cbi-value-field .cbi-input-select {
2229         width: 20rem;
2230     }
2231
2232     .cbi-value-field .cbi-dropdown {
2233         min-width: 20rem;
2234     }
2235 }
2236
2237 @media screen and (min-width: 1280px) {
2238     .cbi-value input[type="password"],
2239     .cbi-value input[type="text"],
2240     .cbi-value-field .cbi-input-select {
2241         width: 22rem;
2242     }
2243
2244     .cbi-value-field .cbi-dropdown {
2245         min-width: 22rem;
2246     }
2247 }
2248
2249 @media screen and (min-width: 1600px) {
2250     .cbi-value input[type="password"],
2251     .cbi-value input[type="text"],
2252     .cbi-value-field .cbi-input-select {
2253         width: 25rem;
2254     }
2255
2256     .cbi-value-field .cbi-dropdown {
2257         min-width: 25rem;
2258     }
2259 }