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