luci-theme-material: add missing css cbi-section-error definitions
[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-input-invalid,
857 .cbi-value-error input {
858     color: #f00;
859     border-color: #f00;
860 }
861
862 .cbi-section-error {
863     border: 1px solid #f00;
864     border-radius: 3px;
865     background-color: #fce6e6;
866     padding: 5px;
867     margin: 18px;
868 }
869
870 .cbi-section-error ul {
871     margin: 0 0 0 20px;
872 }
873
874 .cbi-section-error ul li {
875     color: #f00;
876     font-weight: bold;
877 }
878
879 .cbi-value-helpicon > img {
880     display: none;
881 }
882
883 .cbi-value-helpicon:before {
884     content: "\f059";
885 }
886
887 .cbi-value-description {
888     font-size: small;
889     opacity: 0.5;
890     padding: 0.5rem 0 0 0;
891 }
892
893 .cbi-value-title {
894     word-wrap: break-word;
895     padding-top: 0.6rem;
896     width: 23rem;
897     float: left;
898     text-align: right;
899     padding-right: 2rem;
900     display: table-cell;
901 }
902
903 .cbi-value {
904     padding: 0.3rem 1rem;
905     display: inline-block;
906     width: 100%;
907 }
908
909 .cbi-section-table-descr > .cbi-section-table-cell,
910 .cbi-section-table-titles > .cbi-section-table-cell {
911     border: none;
912 }
913
914 .td[data-title]::before {
915     content: attr(data-title) ":\20";
916     font-weight: bold;
917     text-align: left;
918     display: none;
919     padding: .25rem 0;
920     white-space: nowrap;
921 }
922
923 .tr.placeholder .td[data-title]::before {
924     display: none;
925 }
926
927 .tr[data-title]::before,
928 .tr.cbi-section-table-titles.named::before {
929     content: attr(data-title) "\20";
930     font-weight: bold;
931     text-align: center;
932     display: table-cell;
933     align-self: center;
934     flex: 1 1 5%;
935     padding: .25rem;
936     white-space: normal;
937     word-wrap: break-word;
938     vertical-align: middle;
939 }
940
941 .cbi-rowstyle-1 {
942     background-color: #f9f9f9;
943 }
944
945 .cbi-rowstyle-2 {
946     background-color: #eee;
947 }
948
949 .cbi-rowstyle-2 .cbi-button-up,
950 .cbi-rowstyle-2 .cbi-button-down {
951     background-color: #FFF !important;
952 }
953
954 .cbi-section-table .cbi-section-table-titles .cbi-section-table-cell {
955     width: auto !important;
956 }
957
958 .td.cbi-section-actions {
959     text-align: right;
960     vertical-align: middle;
961 }
962
963 .td.cbi-section-actions > * {
964     display: flex;
965 }
966
967 .td.cbi-section-actions > * > *,
968 .td.cbi-section-actions > * > form > * {
969     flex: 1 1 4em;
970     margin: 0 1px;
971 }
972
973 .td.cbi-section-actions > * > form {
974     display: inline-flex;
975     margin: 0;
976 }
977
978 /* desc */
979 .cbi-section-descr,
980 .cbi-map-descr {
981     padding: 0.5rem;
982     color: #999;
983     font-size: small;
984 }
985
986
987 .cbi-dynlist,
988 .cbi-dropdown {
989     display: inline-flex;
990     cursor: pointer;
991     position: relative;
992     padding: 0;
993     height: auto;
994 }
995
996 .cbi-dropdown > ul {
997     margin: 0 !important;
998     padding: 0;
999     list-style: none;
1000     overflow-x: hidden;
1001     overflow-y: auto;
1002     display: flex;
1003     width: 100%;
1004 }
1005
1006 .cbi-dropdown > ul.preview {
1007     display: none;
1008 }
1009
1010 .cbi-dropdown > .open {
1011     border: 2px outset #eee;
1012     flex-basis: 15px;
1013     background: #eee;
1014 }
1015
1016 .cbi-dropdown > .open,
1017 .cbi-dropdown > .more {
1018     flex-grow: 0;
1019     flex-shrink: 0;
1020     display: flex;
1021     flex-direction: column;
1022     justify-content: center;
1023     text-align: center;
1024     line-height: 2em;
1025     padding: 0 .25em;
1026 }
1027
1028 .cbi-dropdown > .more,
1029 .cbi-dropdown > ul > li[placeholder] {
1030     color: #777;
1031     font-weight: bold;
1032     text-shadow: 1px 1px 0px #fff;
1033     display: none;
1034 }
1035
1036 .cbi-dropdown > ul > li {
1037     display: none;
1038     padding: .25em;
1039     white-space: nowrap;
1040     overflow: hidden;
1041     text-overflow: ellipsis;
1042     flex-shrink: 1;
1043     flex-grow: 1;
1044     align-items: center;
1045     align-self: center;
1046     min-height: 20px;
1047 }
1048
1049 .cbi-dropdown > ul > li .hide-open { display: initial; }
1050 .cbi-dropdown > ul > li .hide-close { display: none; }
1051
1052 .cbi-dropdown > ul > li[display]:not([display="0"]) {
1053     border-left: 1px solid #ccc;
1054 }
1055
1056 .cbi-dropdown[empty] > ul {
1057     max-width: 1px;
1058 }
1059
1060 .cbi-dropdown > ul > li > form {
1061     display: none;
1062     margin: 0;
1063     padding: 0;
1064     pointer-events: none;
1065 }
1066
1067 .cbi-dropdown > ul > li img {
1068     vertical-align: middle;
1069     margin-right: .25em;
1070 }
1071
1072 .cbi-dropdown > ul > li > form > input[type="checkbox"] {
1073     margin: 0;
1074     height: auto;
1075 }
1076
1077 .cbi-dropdown > ul > li input[type="text"] {
1078     height: 20px;
1079 }
1080
1081 .cbi-dropdown[open] {
1082     position: relative;
1083 }
1084
1085 .cbi-dropdown[open] > ul.dropdown {
1086     display: block;
1087     background: #f6f6f5;
1088     border: 1px solid #918e8c;
1089     box-shadow: 0 0 4px #918e8c;
1090     position: absolute;
1091     z-index: 1100;
1092     max-width: none;
1093     min-width: 100%;
1094     width: auto;
1095 }
1096
1097 .cbi-dropdown > ul > li[display],
1098 .cbi-dropdown[open] > ul.preview,
1099 .cbi-dropdown[open] > ul.dropdown > li,
1100 .cbi-dropdown[multiple] > ul > li > label,
1101 .cbi-dropdown[multiple][open] > ul.dropdown > li,
1102 .cbi-dropdown[multiple][more] > .more,
1103 .cbi-dropdown[multiple][empty] > .more {
1104     flex-grow: 1;
1105     display: flex;
1106     align-items: center;
1107 }
1108
1109 .cbi-dropdown[empty] > ul > li,
1110 .cbi-dropdown[optional][open] > ul.dropdown > li[placeholder],
1111 .cbi-dropdown[multiple][open] > ul.dropdown > li > form {
1112     display: block;
1113 }
1114
1115 .cbi-dropdown[open] > ul.dropdown > li .hide-open { display: none; }
1116 .cbi-dropdown[open] > ul.dropdown > li .hide-close { display: initial; }
1117
1118 .cbi-dropdown[open] > ul.dropdown > li {
1119     border-bottom: 1px solid #ccc;
1120 }
1121
1122 .cbi-dropdown[open] > ul.dropdown > li[selected] {
1123     background: #b0d0f0;
1124 }
1125
1126 .cbi-dropdown[open] > ul.dropdown > li.focus {
1127     background: linear-gradient(90deg, #a3c2e8 0%, #84aad9 100%);
1128 }
1129
1130 .cbi-dropdown[open] > ul.dropdown > li:last-child {
1131     margin-bottom: 0;
1132     border-bottom: none;
1133 }
1134
1135 .cbi-dropdown[open] > ul.dropdown > li[unselectable] {
1136     opacity: 0.7;
1137 }
1138
1139 .cbi-dropdown[open] > ul.dropdown > li > input.create-item-input:first-child:last-child {
1140     width: 100%;
1141 }
1142
1143 .cbi-dropdown[open] > ul.dropdown > li[unselectable] {
1144     opacity: 0.7;
1145 }
1146
1147 .cbi-dropdown[open] > ul.dropdown > li > input.create-item-input:first-child:last-child {
1148     width: 100%;
1149 }
1150
1151 .cbi-dropdown[disabled] {
1152     pointer-events: none;
1153     opacity: .6;
1154 }
1155
1156 .cbi-dropdown .zonebadge {
1157     width: 100%;
1158 }
1159
1160 .cbi-dropdown[open] .zonebadge {
1161     width: auto;
1162 }
1163
1164 .cbi-dynlist {
1165     height: auto;
1166     min-height: 30px;
1167     display: inline-flex;
1168     flex-direction: column;
1169 }
1170
1171 .cbi-dynlist > .item {
1172     margin: 0 2em 4px 0;
1173     padding: 2px 4px;
1174     border-bottom: 2px solid rgba(0, 0, 0, .26);
1175     position: relative;
1176     pointer-events: none;
1177     cursor: default;
1178 }
1179
1180 .cbi-dynlist > .item::after {
1181     content: "×";
1182     position: absolute;
1183     display: inline-flex;
1184     align-items: center;
1185     top: 0;
1186     right: -2em;
1187     bottom: 0;
1188     padding: 0 6px;
1189     border: 1px solid #c44;
1190     font-weight: bold;
1191     color: #c44;
1192     pointer-events: auto;
1193 }
1194
1195 .cbi-dynlist {
1196     height: auto;
1197     min-height: 30px;
1198     display: inline-flex;
1199     flex-direction: column;
1200 }
1201
1202 .cbi-dynlist > .item {
1203     margin: 0 2em 4px 0;
1204     padding: 2px 4px;
1205     border-bottom: 2px solid rgba(0, 0, 0, .26);
1206     position: relative;
1207     pointer-events: none;
1208     cursor: default;
1209 }
1210
1211 .cbi-dynlist > .item::after {
1212     content: "×";
1213     position: absolute;
1214     display: inline-flex;
1215     align-items: center;
1216     top: 0;
1217     right: -2em;
1218     bottom: 0;
1219     padding: 0 6px;
1220     border: 1px solid #c44;
1221     font-weight: bold;
1222     color: #c44;
1223     pointer-events: auto;
1224 }
1225
1226
1227 /* luci */
1228
1229 .hidden {
1230     display: none
1231 }
1232
1233 .left, .left::before {
1234     text-align: left !important;
1235 }
1236
1237 .right, .right::before {
1238     text-align: right !important;
1239 }
1240
1241 .center, .center::before {
1242     text-align: center !important;
1243 }
1244
1245 .top {
1246     align-self: flex-start !important;
1247     vertical-align: top !important;
1248 }
1249
1250 .bottom {
1251     align-self: flex-end !important;
1252     vertical-align: bottom !important;
1253 }
1254
1255 .inline {
1256     display: inline;
1257 }
1258
1259 .cbi-page-actions {
1260     border-top: 1px solid #eee;
1261     padding-top: 1rem;
1262     text-align: right;
1263 }
1264
1265 /* input */
1266 .cbi-value input[type="password"],
1267 .cbi-value input[type="text"] {
1268     min-width: 15rem;
1269 }
1270
1271 /* select */
1272 .cbi-value-field .cbi-dropdown {
1273     min-width: 15rem;
1274 }
1275
1276 .cbi-value-field .cbi-input-select {
1277     width: 15rem;
1278 }
1279
1280 .cbi-value-field .cbi-input-invalid {
1281     border-bottom-color: #f00;
1282     color: #f00;
1283 }
1284
1285 .th[data-type="button"], .td[data-type="button"],
1286 .th[data-type="fvalue"], .td[data-type="fvalue"] {
1287     flex: 1 1 2em;
1288     text-align: center;
1289 }
1290
1291 .ifacebadge {
1292     display: inline-flex;
1293     border-bottom: 1px solid #CCCCCC;
1294     padding: 0.5rem 1rem;
1295     box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
1296     background: #fff;
1297 }
1298
1299 td > .ifacebadge,
1300 .td > .ifacebadge {
1301     background-color: #F0F0F0;
1302     font-size: 0.9rem;
1303 }
1304
1305 .ifacebadge > em,
1306 .ifacebadge > img {
1307     display: inline-block;
1308     margin: 0 .2rem;
1309     align-self: flex-start;
1310 }
1311
1312 .ifacebadge > img + img {
1313     margin: 0 .2rem 0 0;
1314 }
1315
1316 .network-status-table {
1317     display: flex;
1318     flex-wrap: wrap;
1319 }
1320
1321 .network-status-table .ifacebox {
1322     margin: .5em;
1323     flex-grow: 1;
1324 }
1325
1326 .network-status-table .ifacebox-body {
1327     display: flex;
1328     flex-direction: column;
1329     height: 100%;
1330 }
1331
1332 .network-status-table .ifacebox-body > span {
1333     flex: 10 10 auto;
1334 }
1335
1336 .network-status-table .ifacebox-body > div {
1337     display: flex;
1338     flex-wrap: wrap;
1339 }
1340
1341 .network-status-table .ifacebox-body .ifacebadge {
1342     flex: 1 1 auto;
1343     margin: .5em .25em 0 .25em;
1344     padding: .5em;
1345     min-width: 220px;
1346     background-color: #fff;
1347     align-items: center;
1348 }
1349
1350 /*textarea*/
1351
1352 .cbi-input-textarea {
1353     width: 100%;
1354     min-height: 14rem;
1355     padding: 0.8rem;
1356     font-size: 0.8rem;
1357     font-family: monospace;
1358     color: black;
1359 }
1360
1361 #syslog {
1362     width: 100%;
1363     min-height: 15rem;
1364     padding: 1rem;
1365     font-size: small;
1366     color: #5F5F5F;
1367
1368     margin-bottom: 20px;
1369     border-radius: 0;
1370     background-color: #FFF;
1371     box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
1372     border: none;
1373 }
1374
1375 /* change */
1376
1377 .uci-change-list {
1378     font-family: monospace;
1379 }
1380
1381 .uci-change-list ins,
1382 .uci-change-legend-label ins {
1383     text-decoration: none;
1384     border: 1px solid #00FF00;
1385     background-color: #CCFFCC;
1386     display: block;
1387     padding: 2px;
1388 }
1389
1390 .uci-change-list del,
1391 .uci-change-legend-label del {
1392     text-decoration: none;
1393     border: 1px solid #FF0000;
1394     background-color: #FFCCCC;
1395     display: block;
1396     font-style: normal;
1397     padding: 2px;
1398 }
1399
1400 .uci-change-list var,
1401 .uci-change-legend-label var {
1402     text-decoration: none;
1403     border: 1px solid #CCCCCC;
1404     background-color: #EEEEEE;
1405     display: block;
1406     font-style: normal;
1407     padding: 2px;
1408 }
1409
1410 .uci-change-list var ins,
1411 .uci-change-list var del {
1412     border: none;
1413     white-space: pre;
1414     font-style: normal;
1415     padding: 0px;
1416 }
1417
1418 .uci-change-legend {
1419     padding: 5px;
1420 }
1421
1422 .uci-change-legend-label {
1423     width: 150px;
1424     float: left;
1425 }
1426
1427 .uci-change-legend-label > ins,
1428 .uci-change-legend-label > del,
1429 .uci-change-legend-label > var {
1430     float: left;
1431     margin-right: 4px;
1432     width: 10px;
1433     height: 10px;
1434     display: block;
1435 }
1436
1437 .uci-change-legend-label var ins,
1438 .uci-change-legend-label var del {
1439     line-height: 6px;
1440     border: none;
1441 }
1442
1443 .uci-change-list var,
1444 .uci-change-list del,
1445 .uci-change-list ins {
1446     padding: 0.5rem;
1447 }
1448
1449 /* other fix */
1450 #iwsvg,
1451 #iwsvg2,
1452 #bwsvg {
1453     border: 1px solid #D4D4D4 !important;
1454     border-top: none !important;
1455 }
1456
1457 .ifacebox {
1458     box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 2px rgba(0, 0, 0, 0.2);
1459     border-bottom: 1px solid #ccc;
1460     background-color: #f9f9f9;
1461     display: inline-flex;
1462     flex-direction: column;
1463     line-height: 1.2em;
1464     min-width: 100px;
1465 }
1466
1467 .ifacebox-head {
1468     padding: .25em;
1469     background: #eee;
1470 }
1471
1472 .ifacebox-head.active {
1473     background: #90c0e0;
1474 }
1475
1476 .ifacebox-body {
1477     padding: .25em;
1478 }
1479
1480 .cbi-image-button {
1481     margin-left: 0.5rem;
1482 }
1483
1484 .zonebadge {
1485     padding: 0.2rem 0.5rem;
1486     display: inline-block;
1487 }
1488
1489 .zonebadge .ifacebadge {
1490     padding: .2rem .3rem;
1491     margin: 0.1rem 0.2rem;
1492     border: 1px solid #6C6C6C;
1493 }
1494
1495 .zonebadge > input[type="text"] {
1496     padding: 0.16rem 1rem;
1497     min-width: 10rem;
1498     margin-top: 0.3rem;
1499 }
1500
1501 .zonebadge > em,
1502 .zonebadge > strong {
1503     margin: 0 0.2rem;
1504     display: inline-block;
1505 }
1506
1507 .cbi-value-field .cbi-input-checkbox,
1508 .cbi-value-field .cbi-input-radio {
1509     margin-top: 0.5rem;
1510     height: 1rem;
1511 }
1512
1513 .td .cbi-input-checkbox,
1514 .td .cbi-input-radio {
1515     margin-top: 0;
1516 }
1517
1518 .cbi-value-field > input + .cbi-value-description {
1519     padding: 0;
1520 }
1521
1522 .cbi-value-field > ul > li {
1523     display: flex;
1524 }
1525
1526 .cbi-value-field > ul > li > label {
1527     margin-top: 0.5rem;
1528 }
1529
1530 .cbi-value-field > ul > li .ifacebadge {
1531     background-color: #eee;
1532     margin-left: 0.4rem;
1533     margin-top: -0.5rem;
1534 }
1535
1536 .cbi-section-table-row > .cbi-value-field .cbi-dropdown {
1537     min-width: 7rem;
1538 }
1539
1540 .cbi-section-create {
1541     margin: .5rem -3px;
1542     display: inline-flex;
1543     align-items: center;
1544 }
1545
1546 .cbi-section-create > * {
1547     margin: 0.5rem;
1548 }
1549
1550 .cbi-section-remove {
1551     padding: 0.5rem;
1552 }
1553
1554 div.cbi-value var, td.cbi-value-field var, .td.cbi-value-field var {
1555     font-style: italic;
1556     color: #0069D6;
1557 }
1558
1559 small {
1560     font-size: 90%;
1561     white-space: normal;
1562     line-height: 1.42857143;
1563 }
1564
1565 .cbi-button-up,
1566 .cbi-button-down {
1567     display: inline-block;
1568     min-width: 0;
1569     padding: 0.2rem 0.3rem;
1570     font-size: 1.2rem;
1571 }
1572
1573 .cbi-optionals {
1574     padding: 1rem 1rem 0 1rem;
1575     border-top: 1px solid #CCC;
1576 }
1577
1578 .cbi-dropdown-container {
1579     position: relative;
1580 }
1581
1582 .cbi-tooltip-container {
1583     cursor: help;
1584 }
1585
1586 .cbi-tooltip {
1587     position: absolute;
1588     z-index: 1000;
1589     left: -1000px;
1590     border-radius: 3px;
1591     background: #fff;
1592     padding: 2px 5px;
1593     white-space: pre;
1594     opacity: 0;
1595     transition: opacity .25s ease-out;
1596     pointer-events: none;
1597     box-shadow: 0 0 2px #444;
1598 }
1599
1600 .cbi-tooltip-container:hover .cbi-tooltip {
1601     left: auto;
1602     opacity: 1;
1603     transition: opacity .25s ease-in;
1604 }
1605
1606 .zonebadge .cbi-tooltip {
1607     padding: .25rem;
1608     background: inherit;
1609     margin: -1.5rem 0 0 -.5rem;
1610 }
1611
1612 .zonebadge-empty {
1613     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);
1614     color: #404040;
1615 }
1616
1617 .zone-forwards {
1618     display: flex;
1619     min-width: 10rem;
1620 }
1621
1622 .zone-forwards > * {
1623     flex: 1 1 45%;
1624 }
1625
1626 .zone-forwards > span {
1627     flex-basis: 10%;
1628     text-align: center;
1629     padding: 0 .25rem;
1630 }
1631
1632 .zone-forwards .zone-src,
1633 .zone-forwards .zone-dest {
1634     display: flex;
1635     flex-direction: column;
1636 }
1637
1638 #diag-rc-output > pre {
1639     background-color: #f5f5f5;
1640     display: block;
1641     padding: 8.5px;
1642     margin: 0 0 18px;
1643     line-height: 1.5rem;
1644     -moz-border-radius: 3px;
1645     white-space: pre-wrap;
1646     word-wrap: break-word;
1647     font-size: 1.4rem;
1648     color: #404040;
1649 }
1650
1651 input[name="ping"],
1652 input[name="traceroute"],
1653 input[name="nslookup"] {
1654     width: 80%;
1655 }
1656
1657 header > .container > .pull-right > * {
1658     position: relative;
1659     top: 0.45rem;
1660     cursor: pointer;
1661 }
1662
1663 #xhr_poll_status > .label.success {
1664     background-color: #14CE14;
1665 }
1666
1667 #xhr_poll_status {
1668     display: flex;
1669 }
1670
1671 .label {
1672     padding: 0.3rem 0.8rem;
1673     font-size: 0.8rem;
1674     font-weight: bold;
1675     color: #ffffff !important;
1676     text-transform: uppercase;
1677     white-space: nowrap;
1678     background-color: #bfbfbf;
1679     -webkit-border-radius: 3px;
1680     -moz-border-radius: 3px;
1681     border-radius: 3px;
1682     text-shadow: none;
1683     text-decoration: none;
1684 }
1685
1686 .notice {
1687     background-color: #5BC0DE;
1688 }
1689
1690 .showSide {
1691     display: none;
1692 }
1693
1694 .darkMask {
1695     width: 100%;
1696     height: 100%;
1697     position: fixed;
1698     background-color: rgba(0, 0, 0, 0.56);
1699     content: "";
1700     z-index: 99;
1701     display: none;
1702 }
1703
1704 /* fix Main Login*/
1705 .node-main-login > .main > .main-left {
1706     display: none;
1707 }
1708
1709 .node-main-login > .main > .main-right {
1710     width: 100%;
1711 }
1712
1713 .node-main-login > .main fieldset {
1714     padding: 0.5rem;
1715     margin-bottom: 1rem;
1716     display: inline;
1717     background: none;
1718     border: none;
1719     box-shadow: none;
1720     overflow: hidden;
1721 }
1722
1723 .node-main-login > .main .cbi-value-title {
1724     width: 8rem;
1725 }
1726
1727 .node-main-login > .main #maincontent {
1728
1729     text-align: center;
1730 }
1731
1732 .node-main-login > .main .container {
1733     display: inline-block;
1734     padding: 2rem 4rem;
1735     margin-top: 2rem !important;
1736     background-color: #FFF;
1737     box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
1738     text-align: left;
1739 }
1740
1741 .node-main-login > .main form > div:nth-last-child(1) {
1742     float: right;
1743 }
1744
1745 .node-main-login > .main .cbi-value {
1746     display: block;
1747 }
1748
1749 .node-main-login > .main .cbi-value > * {
1750     display: inline-block !important;
1751 }
1752
1753 .node-main-login > .main .cbi-input-user,
1754 .node-main-login > .main .cbi-input-password {
1755     min-width: 15rem;
1756 }
1757
1758 .node-main-login footer {
1759     bottom: 0;
1760     position: absolute;
1761     width: 100%;
1762 }
1763
1764 /* fix status overview */
1765
1766 .node-status-overview > .main fieldset:nth-child(4) .td:nth-child(2) {
1767     white-space: normal;
1768 }
1769
1770 /* fix status processes */
1771
1772 .node-status-processes > .main .table .tr .td:nth-child(3) {
1773     white-space: normal;
1774 }
1775
1776 .node-status-iptables > .main div > .cbi-map > form {
1777     margin: 2rem 2rem 0 0;
1778 }
1779
1780 /* fix system reboot */
1781
1782 .node-system-reboot > .main > .main-right p,
1783 .node-system-reboot > .main > .main-right h3 {
1784     padding-left: 2rem;
1785 }
1786
1787 /* fix Services  Network Shares*/
1788 .node-services-samba > .main .cbi-tabcontainer:nth-child(3) .cbi-value-title {
1789     margin-bottom: 1rem;
1790     width: auto;
1791 }
1792
1793 .node-services-samba > .main .cbi-tabcontainer:nth-child(3) .cbi-value-field {
1794     display: list-item;
1795 }
1796
1797 .node-services-samba > .main .cbi-tabcontainer:nth-child(3) .cbi-value-description {
1798     padding-top: 1rem;
1799 }
1800
1801 /* fix System Software*/
1802 .node-system-packages > .main table tr td:nth-child(1) {
1803     width: auto !important;
1804 }
1805
1806 .node-system-packages > .main table tr td:nth-last-child(1) {
1807     white-space: normal;
1808     font-size: small;
1809     color: #404040;
1810 }
1811
1812 .node-system-packages > .main .cbi-tabmenu > li > a, .tabs > li > a {
1813     padding: 0.5rem 0.8rem;
1814 }
1815
1816 .node-system-packages > .main .cbi-value > pre {
1817     background-color: #eee;
1818     padding: 0.5rem;
1819     overflow: auto;
1820 }
1821
1822 .cbi-tabmenu + .cbi-section {
1823     margin-top: 0;
1824 }
1825
1826 .node-status-iptables fieldset,
1827 .node-system-packages fieldset,
1828 .node-system-flashops fieldset {
1829     margin-top: 0;
1830 }
1831
1832 .node-status-iptables .cbi-tabmenu,
1833 .node-system-packages .cbi-tabmenu,
1834 .node-system-flashops .cbi-tabmenu {
1835     border: none;
1836     box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
1837 }
1838
1839 .node-system-flashops form.inline + form.inline {
1840     margin-left: 0;
1841 }
1842
1843 #cbi-firewall-redirect table *,
1844 #cbi-network-switch_vlan table *,
1845 #cbi-firewall-zone table * {
1846     font-size: small;
1847 }
1848
1849 #cbi-firewall-redirect table input[type="text"],
1850 #cbi-network-switch_vlan table input[type="text"],
1851 #cbi-firewall-zone table input[type="text"] {
1852     width: 5rem;
1853 }
1854
1855 #cbi-firewall-redirect table select,
1856 #cbi-network-switch_vlan table select,
1857 #cbi-firewall-zone table select {
1858     min-width: 3.5rem;
1859 }
1860
1861 #cbi-network-switch_vlan .th,
1862 #cbi-network-switch_vlan .td {
1863     flex-basis: 12%;
1864 }
1865
1866 /* language fix */
1867 body.lang_pl.node-main-login .cbi-value-title {
1868     width: 12rem;
1869 }
1870
1871 /* applyreboot fix */
1872
1873 #applyreboot-container {
1874         margin: 2rem;
1875 }
1876
1877 #applyreboot-section {
1878         margin: 2rem;
1879         line-height: 300%;
1880 }
1881
1882 @media screen and (max-width: 1600px) {
1883     .btn,
1884     .cbi-button {
1885         padding: 0.3rem 0.6rem;
1886         font-size: 0.8rem;
1887     }
1888
1889     header > .container > .pull-right > * {
1890         top: 0.35rem;
1891     }
1892
1893     .label {
1894         padding: 0.2rem 0.6rem;
1895     }
1896
1897     .cbi-value-title {
1898         width: 15rem;
1899         padding-right: 0.6rem;
1900     }
1901
1902     fieldset {
1903         padding: 1rem;
1904     }
1905
1906     .cbi-input-textarea {
1907         font-size: small;
1908     }
1909
1910     .node-status-iptables > .main fieldset li > a {
1911         padding: 0.3rem 0.6rem;
1912     }
1913 }
1914
1915 @media screen and (max-width: 1280px) {
1916     header > .container {
1917         margin-top: 0.25rem;
1918     }
1919
1920     .cbi-tabmenu > li > a, .tabs > li > a {
1921         padding: 0.2rem 0.5rem;
1922     }
1923
1924     .panel-title {
1925         font-size: 1.1rem;
1926         padding-bottom: 1rem;
1927     }
1928
1929     table {
1930         font-size: 0.7rem !important;
1931         width: 100% !important;
1932     }
1933 }
1934
1935 @media screen and (max-width: 992px) {
1936     header > .fill > .container > img {
1937         display: none;
1938     }
1939
1940     .main-left {
1941         width: 0;
1942         position: fixed;
1943         z-index: 100;
1944     }
1945
1946     .main-right {
1947         width: 100%;
1948     }
1949
1950     .showSide {
1951         padding: 0.1rem;
1952         margin-right: 0.5rem;
1953         display: inline-block;
1954     }
1955
1956     .showSide:before {
1957         content: "\e20e";
1958         font-size: 1.7rem;
1959     }
1960
1961     .node-main-login .showSide {
1962         display: none !important;
1963     }
1964
1965     .cbi-value-title {
1966         width: 9rem;
1967         padding-right: 1rem;
1968     }
1969
1970     .node-network-diagnostics > .main .cbi-map fieldset > div * {
1971         width: 100% !important;
1972     }
1973
1974     .node-network-diagnostics > .main .cbi-map fieldset > div input[type="text"] {
1975         margin: 3rem 0 0 0 !important;
1976     }
1977
1978     .node-network-diagnostics > .main .cbi-map fieldset > div:nth-child(4) input[type="text"] {
1979         margin: 0 !important;
1980     }
1981
1982     .node-network-diagnostics > .main .cbi-map fieldset > div select,
1983     .node-network-diagnostics > .main .cbi-map fieldset > div input[type="button"] {
1984         margin: 1rem 0 0 0;
1985     }
1986
1987     .node-network-diagnostics > .main .cbi-map fieldset > div {
1988         width: 100% !important;
1989     }
1990
1991     #diag-rc-output > pre {
1992         font-size: 1rem;
1993     }
1994
1995     .node-main-login > .main .cbi-value-title {
1996         text-align: left;
1997     }
1998
1999     .tr {
2000         display: flex;
2001         flex-direction: row;
2002         flex-wrap: wrap;
2003     }
2004
2005     .th, .td {
2006         flex: 2 2 25%;
2007         align-self: flex-start;
2008         overflow: hidden;
2009         text-overflow: ellipsis;
2010         word-wrap: break-word;
2011         display: inline-block;
2012     }
2013
2014     .td select,
2015     .td input[type="text"] {
2016         word-wrap: normal;
2017         width: 100%;
2018     }
2019
2020     .td [data-dynlist] > input,
2021     .td input.cbi-input-password {
2022         width: calc(100% - 1.5rem);
2023     }
2024
2025     .td[data-type="button"],
2026     .td[data-type="fvalue"] {
2027         flex: 1 1 12.5%;
2028         text-align: left;
2029     }
2030
2031     .th.cbi-value-field,
2032     .td.cbi-value-field,
2033     .th.cbi-section-table-cell,
2034     .td.cbi-section-table-cell {
2035         flex-basis: auto;
2036     }
2037
2038     .cbi-section-table-row {
2039         display: flex;
2040         flex-wrap: wrap;
2041         flex-direction: row;
2042         justify-content: space-between;
2043     }
2044
2045     .td.cbi-value-field,
2046     .cbi-section-table-cell {
2047         text-align: center;
2048         display: inline-block;
2049         flex: 10 10 auto;
2050     }
2051
2052     .td.cbi-section-actions {
2053         text-align: right;
2054         align-self: flex-end;
2055         vertical-align: bottom;
2056     }
2057
2058     .tr.table-titles,
2059     .tr.cbi-section-table-titles,
2060     .tr.cbi-section-table-descr {
2061         display: none;
2062     }
2063
2064     .tr[data-title]::before,
2065     .tr.cbi-section-table-titles.named::before {
2066         display: block;
2067         flex: 1 1 100%;
2068         background: #eef;
2069         font-size: .9rem;
2070         border-bottom: 1px solid rgba(0, 0, 0, .26);
2071     }
2072
2073     .td[data-title] {
2074         text-align: left;
2075     }
2076
2077     .td[data-title]::before {
2078         display: block;
2079     }
2080
2081     .hide-sm,
2082     .hide-xs {
2083         display: none;
2084     }
2085 }
2086
2087 @media screen and (max-width: 480px) {
2088     body {
2089         font-size: 1rem;
2090     }
2091
2092     fieldset {
2093         padding: 1rem;
2094         margin: 1rem 0 0 0;
2095     }
2096
2097     .tabs {
2098         margin: 0 -1rem;
2099     }
2100
2101     #maincontent > .container {
2102         margin: 0 1rem 1.5rem 1rem;
2103     }
2104
2105     .main > .main-left > .nav > .slide > .menu {
2106         font-size: 1.3rem;
2107     }
2108
2109     .main > .main-left > .nav > .slide > .slide-menu > li > a {
2110         font-size: 1.1rem;
2111     }
2112
2113     .cbi-value-title {
2114         width: 100%;
2115         min-width: 0rem !important;
2116         display: block;
2117         margin-top: 1rem;
2118         margin-bottom: 0.5rem;
2119         text-align: left;
2120     }
2121
2122     .cbi-value-field, .cbi-value-description {
2123         width: 100%;
2124     }
2125
2126     .cbi-value > .cbi-value-field {
2127         display: inline-block;
2128     }
2129
2130     .cbi-tabmenu > li, .tabs > li {
2131         padding: 0.6rem 0rem;
2132     }
2133
2134     .cbi-tabmenu > li > a, .tabs > li > a {
2135         padding: 0.2rem 0.3rem;
2136         font-size: 0.9rem;
2137     }
2138
2139     .cbi-page-actions > div > input {
2140         display: none;
2141     }
2142
2143     .node-main-login > .main .container {
2144         padding: 0.5rem 1rem 2rem 1rem;
2145     }
2146
2147     .node-main-login > .main .cbi-value {
2148         padding: 0;
2149     }
2150
2151     .node-main-login > .main form > div:nth-last-child(1) {
2152         margin-top: 2rem;
2153     }
2154
2155     .node-main-login > .main .cbi-value-title {
2156         width: 100% !important;
2157         font-size: 1.2rem;
2158     }
2159
2160     .node-main-login > .main fieldset {
2161         margin: 0;
2162         padding: 0.5rem;
2163     }
2164
2165     h2 {
2166         font-size: 2rem;
2167     }
2168
2169     .tabs > li > a {
2170         font-size: 0.9rem;
2171     }
2172
2173     select,
2174     input {
2175         font-size: 0.9rem;
2176     }
2177
2178     .mobile-hide {
2179         display: none;
2180     }
2181
2182     .panel-title {
2183         font-size: 1.4rem;
2184         padding-bottom: 1rem;
2185     }
2186
2187     .node-system-packages > .main .cbi-value.cbi-value-last > div {
2188         width: 100% !important;
2189     }
2190
2191     .node-system-packages > .main .cbi-value .cbi-value-field input {
2192         width: 100%;
2193     }
2194
2195     .node-status-iptables > .main div > .cbi-map > form {
2196         position: static !important;
2197         margin: 0 0 2rem 0;
2198         padding: 2rem;
2199         border: 0;
2200         font-weight: normal;
2201         font-style: normal;
2202         line-height: 1;
2203         font-family: inherit;
2204         min-width: inherit;
2205         border-radius: 0;
2206         background-color: #FFF;
2207         box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
2208         -webkit-overflow-scrolling: touch;
2209     }
2210
2211     .node-status-iptables > .main div > .cbi-map > form input[type="submit"] {
2212         width: 100% !important;
2213         margin: 0;
2214     }
2215
2216     .node-status-iptables > .main div > .cbi-map > form input[type="submit"] + input[type="submit"] {
2217         margin-top: 1rem;
2218     }
2219
2220     .th, .td {
2221         flex-basis: 50%;
2222     }
2223
2224     .td.cbi-value-field {
2225         flex-basis: 100%;
2226     }
2227
2228     .td.cbi-value-field[data-type="dvalue"] {
2229         flex-basis: 50%;
2230     }
2231
2232     .td.cbi-value-field[data-type="button"],
2233     .td.cbi-value-field[data-type="fvalue"] {
2234         flex-basis: 25%;
2235         text-align: left;
2236     }
2237
2238     .tr[data-title]::before,
2239     .tr.cbi-section-table-titles.named::before {
2240         font-size: 1rem;
2241     }
2242
2243     .hide-xs {
2244         display: none;
2245     }
2246 }
2247
2248 @media screen and (min-width: 992px) {
2249     .cbi-value input[type="password"],
2250     .cbi-value input[type="text"],
2251     .cbi-value-field .cbi-input-select {
2252         width: 20rem;
2253     }
2254
2255     .cbi-value-field .cbi-dropdown {
2256         min-width: 20rem;
2257     }
2258 }
2259
2260 @media screen and (min-width: 1280px) {
2261     .cbi-value input[type="password"],
2262     .cbi-value input[type="text"],
2263     .cbi-value-field .cbi-input-select {
2264         width: 22rem;
2265     }
2266
2267     .cbi-value-field .cbi-dropdown {
2268         min-width: 22rem;
2269     }
2270 }
2271
2272 @media screen and (min-width: 1600px) {
2273     .cbi-value input[type="password"],
2274     .cbi-value input[type="text"],
2275     .cbi-value-field .cbi-input-select {
2276         width: 25rem;
2277     }
2278
2279     .cbi-value-field .cbi-dropdown {
2280         min-width: 25rem;
2281     }
2282 }