/* flex */
.c1-flex.c1-flex,
.c1-flex-wrap.c1-flex-wrap {
	display:flex;
	letter-spacing:-0.31em;
	word-spacing:-0.43em;
}
.c1-flex {
	white-space:nowrap;
}
.c1-flex-wrap {
    flex-wrap:wrap;
}
.c1-flex > *, .c1-flex-wrap > * {
	display:inline-block;
	letter-spacing:normal;
	word-spacing:normal;
}

/* table */
table.c1-style {
	width:100%;
	box-sizing:border-box;
	border-collapse:collapse;
	background:#fff;
	background:rgba(255,255,255,.7);
}
table.c1-style > tbody {
	vertical-align:middle;
}
.c1-style > * > tr > * {
	padding:5px;
	border:1px solid #f6f6f6;
	border:1px solid rgba(0,0,0,.05);
}
.c1-style > * > tr > th {
	padding:8px 5px;
	white-space:nowrap;
	text-overflow:ellipsis;
}
.c1-style > * > tr > * > input:not([type=checkbox]):not([type=radio]):only-child,
.c1-style > * > tr > * > textarea:only-child,
.c1-style > * > tr > * > select:only-child,
.c1-style > * > tr > * > .c1-inp:only-child,
.c1-style > * > tr > * > button:only-child {
	width:100%;
	box-sizing:border-box;
	display:block;
	min-width:7px;
}
.c1-style > * > tr > * > img:only-child {
	display:block;
	margin: auto;
}
.c1-style > thead {
	border:solid #ccc;
	border-width:1px 0;
}
.c1-style > thead > tr,
.c1-style > tfoot > tr {
	background-color:#DFDFDF;
	background-image:linear-gradient(#eee,#ccc);
}
.c1-style > tbody > tr   				           { background-color:#FBFBFB; background-color:rgba(255,255,255,.03) }
.c1-style > tbody > tr:nth-child(2n+1)             { background-color:#F4F4F4; background-color:rgba(0,0,0,.03) }
.c1-style > tbody > tr:hover                       { background-color:#FCFCB0; background-color:rgba(255,255,0,.3) }
.c1-style > thead > * > .c1-col-hover:not(:hover)  { background-color:#ECECA0; background-color:rgba(255,255,0,.3) }
.c1-style > tbody > tr.c1-focusIn                  { background-color:#EAFDFD; background-color:rgba(190,255,255,.3) }

table.c1-padding > * > tr > * {
	padding:8px;
}
table.c1-padding > * > tr > *:first-child {
	padding-left:0;
}
table.c1-padding > * > tr > *:last-child {
	padding-right:0;
}

/* vertical */
tr.c1-vertical > * {
	vertical-align:bottom !important;
	text-align:center;
}
tr.c1-vertical > * > * {
    -ms-writing-mode:tb-rl;
    display:inline-block;
	-webkit-writing-mode:vertical-rl;
	writing-mode:vertical-rl;
	transform:rotate(180deg);
	min-width: 1.3em;
}


/* table body scroll */
table.c1-scrollable {
    display:flex;
	flex-direction:column;
}
table.c1-scrollable > thead {
	display:block;
	overflow-y:hidden;
	overflow-x:auto;
}
table.c1-scrollable > tbody {
	display:block;
	max-height:75vh;
	overflow-y:scroll;
	overflow-x:auto;
}
table.c1-scrollable > * tr {
	display:table;
	table-layout:fixed;
	width:100%;
	box-sizing:border-box;
}
table.c1-scrollable > * tr > * {
	width:100px;
}
table.c1-scrollable > *::-webkit-scrollbar { width: 8px; height: 8px; }
table.c1-scrollable > *::-webkit-scrollbar-track { background: rgba(0, 0, 0, .1); }
table.c1-scrollable > *::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, .5); }
table.c1-scrollable > thead > tr > :last-child { padding-right:10px; }


/* c1-pop */
.c1-pop {
	display:flex;
    flex-direction:column;
	position:fixed;
	top:15%;
	left:0;
	right:0;
	max-height:80%;
	max-width:100%;
	width:500px;
	margin:auto;
	background:#fff;
	z-index:2;
	border:1px solid #aaa;
	box-shadow:0 0 5px rgba(0,0,0,.5);
}
.c1-pop[hidden] {
	display:none;
}
.c1-pop.c1-focusIn, .c1-pop.c1-targetIn {
	display:block;
	display:flex;
}
.c1-pop > .-body {
	overflow:auto;
	padding:5px;
	flex:1 1 auto;
}
.c1-pop > .-head {
	background:#666;
	color:#fff;
	padding:5px;
	flex:0 0 auto;
	display:flex;
}
.c1-pop > .-foot {
	padding:5px;
	flex:0 0 auto;
}
@media (max-width: 500px), (max-height: 600px) {
	.c1-pop {
		top:0;
		border:0;
		height:100%; /* ie11 */
		max-height:100%;
	}
	.c1-pop > .-body {
		padding:0;
	}
}
