luci-base, themes: rework dynlist and dropdown widgets
[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: 1000;
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 .th[data-type="button"], .td[data-type="button"],
1258 .th[data-type="fvalue"], .td[data-type="fvalue"] {
1259     flex: 1 1 2em;
1260     text-align: center;
1261 }
1262
1263 .ifacebadge {
1264     display: inline-flex;
1265     border-bottom: 1px solid #CCCCCC;
1266     padding: 0.5rem 1rem;
1267     box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
1268     background: #fff;
1269 }
1270
1271 td > .ifacebadge,
1272 .td > .ifacebadge {
1273     background-color: #F0F0F0;
1274     font-size: 0.9rem;
1275 }
1276
1277 .ifacebadge > em,
1278 .ifacebadge > img {
1279     display: inline-block;
1280     margin: 0 .2rem;
1281     align-self: flex-start;
1282 }
1283
1284 .ifacebadge > img + img {
1285     margin: 0 .2rem 0 0;
1286 }
1287
1288 .network-status-table {
1289     display: flex;
1290     flex-wrap: wrap;
1291 }
1292
1293 .network-status-table .ifacebox {
1294     margin: .5em;
1295     flex-grow: 1;
1296 }
1297
1298 .network-status-table .ifacebox-body {
1299     display: flex;
1300     flex-direction: column;
1301     height: 100%;
1302 }
1303
1304 .network-status-table .ifacebox-body > span {
1305     flex: 10 10 auto;
1306 }
1307
1308 .network-status-table .ifacebox-body > div {
1309     display: flex;
1310     flex-wrap: wrap;
1311 }
1312
1313 .network-status-table .ifacebox-body .ifacebadge {
1314     flex: 1 1 auto;
1315     margin: .5em .25em 0 .25em;
1316     padding: .5em;
1317     min-width: 220px;
1318     background-color: #fff;
1319     align-items: center;
1320 }
1321
1322 /*textarea*/
1323
1324 .cbi-input-textarea {
1325     width: 100%;
1326     min-height: 14rem;
1327     padding: 0.8rem;
1328     font-size: 0.8rem;
1329     font-family: monospace;
1330     color: black;
1331 }
1332
1333 #syslog {
1334     width: 100%;
1335     min-height: 15rem;
1336     padding: 1rem;
1337     font-size: small;
1338     color: #5F5F5F;
1339
1340     margin-bottom: 20px;
1341     border-radius: 0;
1342     background-color: #FFF;
1343     box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
1344     border: none;
1345 }
1346
1347 /* change */
1348
1349 .uci-change-list {
1350     font-family: monospace;
1351 }
1352
1353 .uci-change-list ins,
1354 .uci-change-legend-label ins {
1355     text-decoration: none;
1356     border: 1px solid #00FF00;
1357     background-color: #CCFFCC;
1358     display: block;
1359     padding: 2px;
1360 }
1361
1362 .uci-change-list del,
1363 .uci-change-legend-label del {
1364     text-decoration: none;
1365     border: 1px solid #FF0000;
1366     background-color: #FFCCCC;
1367     display: block;
1368     font-style: normal;
1369     padding: 2px;
1370 }
1371
1372 .uci-change-list var,
1373 .uci-change-legend-label var {
1374     text-decoration: none;
1375     border: 1px solid #CCCCCC;
1376     background-color: #EEEEEE;
1377     display: block;
1378     font-style: normal;
1379     padding: 2px;
1380 }
1381
1382 .uci-change-list var ins,
1383 .uci-change-list var del {
1384     border: none;
1385     white-space: pre;
1386     font-style: normal;
1387     padding: 0px;
1388 }
1389
1390 .uci-change-legend {
1391     padding: 5px;
1392 }
1393
1394 .uci-change-legend-label {
1395     width: 150px;
1396     float: left;
1397 }
1398
1399 .uci-change-legend-label > ins,
1400 .uci-change-legend-label > del,
1401 .uci-change-legend-label > var {
1402     float: left;
1403     margin-right: 4px;
1404     width: 10px;
1405     height: 10px;
1406     display: block;
1407 }
1408
1409 .uci-change-legend-label var ins,
1410 .uci-change-legend-label var del {
1411     line-height: 6px;
1412     border: none;
1413 }
1414
1415 .uci-change-list var,
1416 .uci-change-list del,
1417 .uci-change-list ins {
1418     padding: 0.5rem;
1419 }
1420
1421 /* other fix */
1422 #iwsvg,
1423 #iwsvg2,
1424 #bwsvg {
1425     border: 1px solid #D4D4D4 !important;
1426     border-top: none !important;
1427 }
1428
1429 .ifacebox {
1430     box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 2px rgba(0, 0, 0, 0.2);
1431     border-bottom: 1px solid #ccc;
1432     background-color: #f9f9f9;
1433     display: inline-flex;
1434     flex-direction: column;
1435     line-height: 1.2em;
1436     min-width: 100px;
1437 }
1438
1439 .ifacebox-head {
1440     padding: .25em;
1441     background: #eee;
1442 }
1443
1444 .ifacebox-head.active {
1445     background: #90c0e0;
1446 }
1447
1448 .ifacebox-body {
1449     padding: .25em;
1450 }
1451
1452 .cbi-image-button {
1453     margin-left: 0.5rem;
1454 }
1455
1456 .zonebadge {
1457     padding: 0.2rem 0.5rem;
1458     display: inline-block;
1459 }
1460
1461 .zonebadge .ifacebadge {
1462     padding: .2rem .3rem;
1463     margin: 0.1rem 0.2rem;
1464     border: 1px solid #6C6C6C;
1465 }
1466
1467 .zonebadge > input[type="text"] {
1468     padding: 0.16rem 1rem;
1469     min-width: 10rem;
1470     margin-top: 0.3rem;
1471 }
1472
1473 .zonebadge > em,
1474 .zonebadge > strong {
1475     margin: 0 0.2rem;
1476     display: inline-block;
1477 }
1478
1479 .cbi-value-field .cbi-input-checkbox,
1480 .cbi-value-field .cbi-input-radio {
1481     margin-top: 0.5rem;
1482     height: 1rem;
1483 }
1484
1485 .td .cbi-input-checkbox,
1486 .td .cbi-input-radio {
1487     margin-top: 0;
1488 }
1489
1490 .cbi-value-field > input + .cbi-value-description {
1491     padding: 0;
1492 }
1493
1494 .cbi-value-field > ul > li {
1495     display: flex;
1496 }
1497
1498 .cbi-value-field > ul > li > label {
1499     margin-top: 0.5rem;
1500 }
1501
1502 .cbi-value-field > ul > li .ifacebadge {
1503     background-color: #eee;
1504     margin-left: 0.4rem;
1505     margin-top: -0.5rem;
1506 }
1507
1508 .cbi-section-table-row > .cbi-value-field .cbi-dropdown {
1509     min-width: 7rem;
1510 }
1511
1512 .cbi-section-create {
1513     margin: .5rem -3px;
1514     display: inline-flex;
1515     align-items: center;
1516 }
1517
1518 .cbi-section-create > * {
1519     margin: 0.5rem;
1520 }
1521
1522 .cbi-section-remove {
1523     padding: 0.5rem;
1524 }
1525
1526 div.cbi-value var, td.cbi-value-field var, .td.cbi-value-field var {
1527     font-style: italic;
1528     color: #0069D6;
1529 }
1530
1531 small {
1532     font-size: 90%;
1533     white-space: normal;
1534     line-height: 1.42857143;
1535 }
1536
1537 .cbi-button-up,
1538 .cbi-button-down {
1539     display: inline-block;
1540     min-width: 0;
1541     padding: 0.2rem 0.3rem;
1542     font-size: 1.2rem;
1543 }
1544
1545 .cbi-optionals {
1546     padding: 1rem 1rem 0 1rem;
1547     border-top: 1px solid #CCC;
1548 }
1549
1550 .cbi-dropdown-container {
1551     position: relative;
1552 }
1553
1554 .cbi-tooltip-container {
1555     cursor: help;
1556 }
1557
1558 .cbi-tooltip {
1559     position: absolute;
1560     z-index: 1000;
1561     left: -1000px;
1562     border-radius: 3px;
1563     background: #fff;
1564     padding: 2px 5px;
1565     white-space: pre;
1566     opacity: 0;
1567     transition: opacity .25s ease-out;
1568     pointer-events: none;
1569     box-shadow: 0 0 2px #444;
1570 }
1571
1572 .cbi-tooltip-container:hover .cbi-tooltip {
1573     left: auto;
1574     opacity: 1;
1575     transition: opacity .25s ease-in;
1576 }
1577
1578 .zonebadge .cbi-tooltip {
1579     padding: .25rem;
1580     background: inherit;
1581     margin: -1.5rem 0 0 -.5rem;
1582 }
1583
1584 .zonebadge-empty {
1585     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);
1586     color: #404040;
1587 }
1588
1589 .zone-forwards {
1590     display: flex;
1591     min-width: 10rem;
1592 }
1593
1594 .zone-forwards > * {
1595     flex: 1 1 45%;
1596 }
1597
1598 .zone-forwards > span {
1599     flex-basis: 10%;
1600     text-align: center;
1601     padding: 0 .25rem;
1602 }
1603
1604 .zone-forwards .zone-src,
1605 .zone-forwards .zone-dest {
1606     display: flex;
1607     flex-direction: column;
1608 }
1609
1610 #diag-rc-output > pre {
1611     background-color: #f5f5f5;
1612     display: block;
1613     padding: 8.5px;
1614     margin: 0 0 18px;
1615     line-height: 1.5rem;
1616     -moz-border-radius: 3px;
1617     white-space: pre-wrap;
1618     word-wrap: break-word;
1619     font-size: 1.4rem;
1620     color: #404040;
1621 }
1622
1623 input[name="ping"],
1624 input[name="traceroute"],
1625 input[name="nslookup"] {
1626     width: 80%;
1627 }
1628
1629 header > .container > .pull-right > * {
1630     position: relative;
1631     top: 0.45rem;
1632     cursor: pointer;
1633 }
1634
1635 #xhr_poll_status > .label.success {
1636     background-color: #14CE14;
1637 }
1638
1639 #xhr_poll_status {
1640     display: flex;
1641 }
1642
1643 .label {
1644     padding: 0.3rem 0.8rem;
1645     font-size: 0.8rem;
1646     font-weight: bold;
1647     color: #ffffff !important;
1648     text-transform: uppercase;
1649     white-space: nowrap;
1650     background-color: #bfbfbf;
1651     -webkit-border-radius: 3px;
1652     -moz-border-radius: 3px;
1653     border-radius: 3px;
1654     text-shadow: none;
1655     text-decoration: none;
1656 }
1657
1658 .notice {
1659     background-color: #5BC0DE;
1660 }
1661
1662 .showSide {
1663     display: none;
1664 }
1665
1666 .darkMask {
1667     width: 100%;
1668     height: 100%;
1669     position: fixed;
1670     background-color: rgba(0, 0, 0, 0.56);
1671     content: "";
1672     z-index: 99;
1673     display: none;
1674 }
1675
1676 /* fix Main Login*/
1677 .node-main-login > .main > .main-left {
1678     display: none;
1679 }
1680
1681 .node-main-login > .main > .main-right {
1682     width: 100%;
1683 }
1684
1685 .node-main-login > .main fieldset {
1686     padding: 0.5rem;
1687     margin-bottom: 1rem;
1688     display: inline;
1689     background: none;
1690     border: none;
1691     box-shadow: none;
1692     overflow: hidden;
1693 }
1694
1695 .node-main-login > .main .cbi-value-title {
1696     width: 8rem;
1697 }
1698
1699 .node-main-login > .main #maincontent {
1700
1701     text-align: center;
1702 }
1703
1704 .node-main-login > .main .container {
1705     display: inline-block;
1706     padding: 2rem 4rem;
1707     margin-top: 2rem !important;
1708     background-color: #FFF;
1709     box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
1710     text-align: left;
1711 }
1712
1713 .node-main-login > .main form > div:nth-last-child(1) {
1714     float: right;
1715 }
1716
1717 .node-main-login > .main .cbi-value {
1718     display: block;
1719 }
1720
1721 .node-main-login > .main .cbi-value > * {
1722     display: inline-block !important;
1723 }
1724
1725 .node-main-login > .main .cbi-input-user,
1726 .node-main-login > .main .cbi-input-password {
1727     min-width: 15rem;
1728 }
1729
1730 .node-main-login footer {
1731     bottom: 0;
1732     position: absolute;
1733     width: 100%;
1734 }
1735
1736 /* fix status overview */
1737
1738 .node-status-overview > .main fieldset:nth-child(4) .td:nth-child(2) {
1739     white-space: normal;
1740 }
1741
1742 /* fix status processes */
1743
1744 .node-status-processes > .main .table .tr .td:nth-child(3) {
1745     white-space: normal;
1746 }
1747
1748 .node-status-iptables > .main div > .cbi-map > form {
1749     margin: 2rem 2rem 0 0;
1750 }
1751
1752 /* fix system reboot */
1753
1754 .node-system-reboot > .main > .main-right p,
1755 .node-system-reboot > .main > .main-right h3 {
1756     padding-left: 2rem;
1757 }
1758
1759 /* fix Services  Network Shares*/
1760 .node-services-samba > .main .cbi-tabcontainer:nth-child(3) .cbi-value-title {
1761     margin-bottom: 1rem;
1762     width: auto;
1763 }
1764
1765 .node-services-samba > .main .cbi-tabcontainer:nth-child(3) .cbi-value-field {
1766     display: list-item;
1767 }
1768
1769 .node-services-samba > .main .cbi-tabcontainer:nth-child(3) .cbi-value-description {
1770     padding-top: 1rem;
1771 }
1772
1773 /* fix System Software*/
1774 .node-system-packages > .main table tr td:nth-child(1) {
1775     width: auto !important;
1776 }
1777
1778 .node-system-packages > .main table tr td:nth-last-child(1) {
1779     white-space: normal;
1780     font-size: small;
1781     color: #404040;
1782 }
1783
1784 .node-system-packages > .main .cbi-tabmenu > li > a, .tabs > li > a {
1785     padding: 0.5rem 0.8rem;
1786 }
1787
1788 .node-system-packages > .main .cbi-value > pre {
1789     background-color: #eee;
1790     padding: 0.5rem;
1791     overflow: auto;
1792 }
1793
1794 .cbi-tabmenu + .cbi-section {
1795     margin-top: 0;
1796 }
1797
1798 .node-status-iptables fieldset,
1799 .node-system-packages fieldset,
1800 .node-system-flashops fieldset {
1801     margin-top: 0;
1802 }
1803
1804 .node-status-iptables .cbi-tabmenu,
1805 .node-system-packages .cbi-tabmenu,
1806 .node-system-flashops .cbi-tabmenu {
1807     border: none;
1808     box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
1809 }
1810
1811 .node-system-flashops form.inline + form.inline {
1812     margin-left: 0;
1813 }
1814
1815 #cbi-firewall-redirect table *,
1816 #cbi-network-switch_vlan table *,
1817 #cbi-firewall-zone table * {
1818     font-size: small;
1819 }
1820
1821 #cbi-firewall-redirect table input[type="text"],
1822 #cbi-network-switch_vlan table input[type="text"],
1823 #cbi-firewall-zone table input[type="text"] {
1824     width: 5rem;
1825 }
1826
1827 #cbi-firewall-redirect table select,
1828 #cbi-network-switch_vlan table select,
1829 #cbi-firewall-zone table select {
1830     min-width: 3.5rem;
1831 }
1832
1833 #cbi-network-switch_vlan .th,
1834 #cbi-network-switch_vlan .td {
1835     flex-basis: 12%;
1836 }
1837
1838 /* language fix */
1839 body.lang_pl.node-main-login .cbi-value-title {
1840     width: 12rem;
1841 }
1842
1843 /* applyreboot fix */
1844
1845 #applyreboot-container {
1846         margin: 2rem;
1847 }
1848
1849 #applyreboot-section {
1850         margin: 2rem;
1851         line-height: 300%;
1852 }
1853
1854 @media screen and (max-width: 1600px) {
1855     .btn,
1856     .cbi-button {
1857         padding: 0.3rem 0.6rem;
1858         font-size: 0.8rem;
1859     }
1860
1861     header > .container > .pull-right > * {
1862         top: 0.35rem;
1863     }
1864
1865     .label {
1866         padding: 0.2rem 0.6rem;
1867     }
1868
1869     .cbi-value-title {
1870         width: 15rem;
1871         padding-right: 0.6rem;
1872     }
1873
1874     fieldset {
1875         padding: 1rem;
1876     }
1877
1878     .cbi-input-textarea {
1879         font-size: small;
1880     }
1881
1882     .node-status-iptables > .main fieldset li > a {
1883         padding: 0.3rem 0.6rem;
1884     }
1885 }
1886
1887 @media screen and (max-width: 1280px) {
1888     header > .container {
1889         margin-top: 0.25rem;
1890     }
1891
1892     .cbi-tabmenu > li > a, .tabs > li > a {
1893         padding: 0.2rem 0.5rem;
1894     }
1895
1896     .panel-title {
1897         font-size: 1.1rem;
1898         padding-bottom: 1rem;
1899     }
1900
1901     table {
1902         font-size: 0.7rem !important;
1903         width: 100% !important;
1904     }
1905 }
1906
1907 @media screen and (max-width: 992px) {
1908     header > .fill > .container > img {
1909         display: none;
1910     }
1911
1912     .main-left {
1913         width: 0;
1914         position: fixed;
1915         z-index: 100;
1916     }
1917
1918     .main-right {
1919         width: 100%;
1920     }
1921
1922     .showSide {
1923         padding: 0.1rem;
1924         margin-right: 0.5rem;
1925         display: inline-block;
1926     }
1927
1928     .showSide:before {
1929         content: "\e20e";
1930         font-size: 1.7rem;
1931     }
1932
1933     .node-main-login .showSide {
1934         display: none !important;
1935     }
1936
1937     .cbi-value-title {
1938         width: 9rem;
1939         padding-right: 1rem;
1940     }
1941
1942     .node-network-diagnostics > .main .cbi-map fieldset > div * {
1943         width: 100% !important;
1944     }
1945
1946     .node-network-diagnostics > .main .cbi-map fieldset > div input[type="text"] {
1947         margin: 3rem 0 0 0 !important;
1948     }
1949
1950     .node-network-diagnostics > .main .cbi-map fieldset > div:nth-child(4) input[type="text"] {
1951         margin: 0 !important;
1952     }
1953
1954     .node-network-diagnostics > .main .cbi-map fieldset > div select,
1955     .node-network-diagnostics > .main .cbi-map fieldset > div input[type="button"] {
1956         margin: 1rem 0 0 0;
1957     }
1958
1959     .node-network-diagnostics > .main .cbi-map fieldset > div {
1960         width: 100% !important;
1961     }
1962
1963     #diag-rc-output > pre {
1964         font-size: 1rem;
1965     }
1966
1967     .node-main-login > .main .cbi-value-title {
1968         text-align: left;
1969     }
1970
1971     .tr {
1972         display: flex;
1973         flex-direction: row;
1974         flex-wrap: wrap;
1975     }
1976
1977     .th, .td {
1978         flex: 2 2 25%;
1979         align-self: flex-start;
1980         overflow: hidden;
1981         text-overflow: ellipsis;
1982         word-wrap: break-word;
1983         display: inline-block;
1984     }
1985
1986     .td select,
1987     .td input[type="text"] {
1988         word-wrap: normal;
1989         width: 100%;
1990     }
1991
1992     .td [data-dynlist] > input,
1993     .td input.cbi-input-password {
1994         width: calc(100% - 1.5rem);
1995     }
1996
1997     .td[data-type="button"],
1998     .td[data-type="fvalue"] {
1999         flex: 1 1 12.5%;
2000         text-align: left;
2001     }
2002
2003     .th.cbi-value-field,
2004     .td.cbi-value-field,
2005     .th.cbi-section-table-cell,
2006     .td.cbi-section-table-cell {
2007         flex-basis: auto;
2008     }
2009
2010     .cbi-section-table-row {
2011         display: flex;
2012         flex-wrap: wrap;
2013         flex-direction: row;
2014         justify-content: space-between;
2015     }
2016
2017     .td.cbi-value-field,
2018     .cbi-section-table-cell {
2019         text-align: center;
2020         display: inline-block;
2021         flex: 10 10 auto;
2022     }
2023
2024     .td.cbi-section-actions {
2025         text-align: right;
2026         align-self: flex-end;
2027         vertical-align: bottom;
2028     }
2029
2030     .tr.table-titles,
2031     .tr.cbi-section-table-titles,
2032     .tr.cbi-section-table-descr {
2033         display: none;
2034     }
2035
2036     .tr[data-title]::before,
2037     .tr.cbi-section-table-titles.named::before {
2038         display: block;
2039         flex: 1 1 100%;
2040         background: #eef;
2041         font-size: .9rem;
2042         border-bottom: 1px solid rgba(0, 0, 0, .26);
2043     }
2044
2045     .td[data-title] {
2046         text-align: left;
2047     }
2048
2049     .td[data-title]::before {
2050         display: block;
2051     }
2052
2053     .hide-sm,
2054     .hide-xs {
2055         display: none;
2056     }
2057 }
2058
2059 @media screen and (max-width: 480px) {
2060     body {
2061         font-size: 1rem;
2062     }
2063
2064     fieldset {
2065         padding: 1rem;
2066         margin: 1rem 0 0 0;
2067     }
2068
2069     .tabs {
2070         margin: 0 -1rem;
2071     }
2072
2073     #maincontent > .container {
2074         margin: 0 1rem 1.5rem 1rem;
2075     }
2076
2077     .main > .main-left > .nav > .slide > .menu {
2078         font-size: 1.3rem;
2079     }
2080
2081     .main > .main-left > .nav > .slide > .slide-menu > li > a {
2082         font-size: 1.1rem;
2083     }
2084
2085     .cbi-value-title {
2086         width: 100%;
2087         min-width: 0rem !important;
2088         display: block;
2089         margin-top: 1rem;
2090         margin-bottom: 0.5rem;
2091         text-align: left;
2092     }
2093
2094     .cbi-value-field, .cbi-value-description {
2095         width: 100%;
2096     }
2097
2098     .cbi-value > .cbi-value-field {
2099         display: inline-block;
2100     }
2101
2102     .cbi-tabmenu > li, .tabs > li {
2103         padding: 0.6rem 0rem;
2104     }
2105
2106     .cbi-tabmenu > li > a, .tabs > li > a {
2107         padding: 0.2rem 0.3rem;
2108         font-size: 0.9rem;
2109     }
2110
2111     .cbi-page-actions > div > input {
2112         display: none;
2113     }
2114
2115     .node-main-login > .main .container {
2116         padding: 0.5rem 1rem 2rem 1rem;
2117     }
2118
2119     .node-main-login > .main .cbi-value {
2120         padding: 0;
2121     }
2122
2123     .node-main-login > .main form > div:nth-last-child(1) {
2124         margin-top: 2rem;
2125     }
2126
2127     .node-main-login > .main .cbi-value-title {
2128         width: 100% !important;
2129         font-size: 1.2rem;
2130     }
2131
2132     .node-main-login > .main fieldset {
2133         margin: 0;
2134         padding: 0.5rem;
2135     }
2136
2137     h2 {
2138         font-size: 2rem;
2139     }
2140
2141     .tabs > li > a {
2142         font-size: 0.9rem;
2143     }
2144
2145     select,
2146     input {
2147         font-size: 0.9rem;
2148     }
2149
2150     .mobile-hide {
2151         display: none;
2152     }
2153
2154     .panel-title {
2155         font-size: 1.4rem;
2156         padding-bottom: 1rem;
2157     }
2158
2159     .node-system-packages > .main .cbi-value.cbi-value-last > div {
2160         width: 100% !important;
2161     }
2162
2163     .node-system-packages > .main .cbi-value .cbi-value-field input {
2164         width: 100%;
2165     }
2166
2167     .node-status-iptables > .main div > .cbi-map > form {
2168         position: static !important;
2169         margin: 0 0 2rem 0;
2170         padding: 2rem;
2171         border: 0;
2172         font-weight: normal;
2173         font-style: normal;
2174         line-height: 1;
2175         font-family: inherit;
2176         min-width: inherit;
2177         border-radius: 0;
2178         background-color: #FFF;
2179         box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
2180         -webkit-overflow-scrolling: touch;
2181     }
2182
2183     .node-status-iptables > .main div > .cbi-map > form input[type="submit"] {
2184         width: 100% !important;
2185         margin: 0;
2186     }
2187
2188     .node-status-iptables > .main div > .cbi-map > form input[type="submit"] + input[type="submit"] {
2189         margin-top: 1rem;
2190     }
2191
2192     .th, .td {
2193         flex-basis: 50%;
2194     }
2195
2196     .td.cbi-value-field {
2197         flex-basis: 100%;
2198     }
2199
2200     .td.cbi-value-field[data-type="dvalue"] {
2201         flex-basis: 50%;
2202     }
2203
2204     .td.cbi-value-field[data-type="button"],
2205     .td.cbi-value-field[data-type="fvalue"] {
2206         flex-basis: 25%;
2207         text-align: left;
2208     }
2209
2210     .tr[data-title]::before,
2211     .tr.cbi-section-table-titles.named::before {
2212         font-size: 1rem;
2213     }
2214
2215     .hide-xs {
2216         display: none;
2217     }
2218 }
2219
2220 @media screen and (min-width: 992px) {
2221     .cbi-value input[type="password"],
2222     .cbi-value input[type="text"],
2223     .cbi-value-field .cbi-input-select {
2224         width: 20rem;
2225     }
2226
2227     .cbi-value-field .cbi-dropdown {
2228         min-width: 20rem;
2229     }
2230 }
2231
2232 @media screen and (min-width: 1280px) {
2233     .cbi-value input[type="password"],
2234     .cbi-value input[type="text"],
2235     .cbi-value-field .cbi-input-select {
2236         width: 22rem;
2237     }
2238
2239     .cbi-value-field .cbi-dropdown {
2240         min-width: 22rem;
2241     }
2242 }
2243
2244 @media screen and (min-width: 1600px) {
2245     .cbi-value input[type="password"],
2246     .cbi-value input[type="text"],
2247     .cbi-value-field .cbi-input-select {
2248         width: 25rem;
2249     }
2250
2251     .cbi-value-field .cbi-dropdown {
2252         min-width: 25rem;
2253     }
2254 }