@charset "utf-8";

/* CSS Document */

/* ======================================================
	[object] table
	@import"../css/test_line.css";
	------------------------------------------------------
	min-width　→　○px以上だと??という設定にする
	max-width　→　○px以下だと??という設定にする
====================================================== */

table,
th,
td
{
}

table
{
	text-indent: 0;
	text-align: left;
	width: 100%;
	border-collapse: collapse;
	border-spacing: 0em;
	margin-top: 1em;
	margin-bottom: 1em;
}

/*
	border-bottom-width: 1px;
	border-top-width: 1px;
	border-width: 1px;
	border-collapse: separate;
	border-spacing: 0.5em;
	border-radius: 1em;
	overflow: hidden;
*/

/*
table:not(:first-child)
	{
	margin-top: 1.5em;
}
table:not(:last-child)
	{
	margin-bottom: 1.5em;
}
*/

caption
{
	text-align: left;
	font-weight: bold;
}

caption span
{
}

tr
{
}

/* ------------------------------------------------------
	<th> */
th
{
}

tbody th,
.WidthTh
{
	width: 13em;
	min-width: 8em;
	vertical-align: top;
}

/*
*/

tbody:first-child
{
}

tbody:first-child tr:first-child th
{
}

:is(thead+tbody, tfoot+tbody) tr:first-child th
/*
thead+tbody tr:first-child th,
tfoot+tbody tr:first-child th
*/
{
}

/* ------------------------------------------------------
	<td> */
td
{
}

td:last-child
{
}

tbody:first-child
{
}

tbody:first-child tr:first-child td
{
}

:is(thead+tbody, tfoot+tbody) tr:first-child td
/*
thead+tbody tr:first-child td,
tfoot+tbody tr:first-child td
*/
{
}

/* ------------------------------------------------------
	<thead> */
thead th small
{
	font-weight: normal;
}

thead.l :is(th, td)
/*
thead.l th,
thead.l td
*/
{
	text-align: left;
}

thead.c :is(th, td)
/*
thead.c th,
thead.c td
*/
{
	text-align: center;
}

thead.r :is(th, td)
/*
thead.r th,
thead.r td
*/
{
	text-align: right;
}

:is(thead, .Thead) :is(th, td):not([class$="Width"])
/*
thead th,
thead td,
.Thead th,
.Thead td
*/
{
	width: auto;
	text-align: center;
	vertical-align: middle;
}

:is(thead, .Thead) tr:first-child :is(th, td)
/*
thead tr:first-child th,
thead tr:first-child td,
.Thead tr:first-child th,
.Thead tr:first-child td
*/
{
}

:is(thead, .Thead) tr:last-child :is(th, td)
/*
thead tr:last-child th,
thead tr:last-child td,
.Thead tr:last-child th,
.Thead tr:last-child td
*/
{
}

:is(thead, .Thead) tr>:is(th, td):first-child
/*
thead tr>td:first-child,
.Thead tr>th:first-child,
.Thead tr>td:first-child
*/
{
}

:is(thead, .Thead) tr>:is(th, td):last-child
/*
thead tr>th:last-child,
thead tr>td:last-child,
.Thead tr>th:last-child,
.Thead tr>td:last-child
*/
{
}

/* ------------------------------------------------------
	<tfoot> */
:is(tfoot, .Tfoot) :is(th, td):not([class$="Width"])
/*
tfoot th,
tfoot td,
.Tfoot th,
.Tfoot td
*/
{
	text-align: right;
	white-space: nowrap;
	width: auto;
}

tfoot.l :is(th, td)
/*
tfoot.l th,
tfoot.l td
*/
{
	text-align: left;
}

tfoot.c :is(th, td)
/*
tfoot.c th,
tfoot.c td
*/
{
	text-align: center;
}

:is(tfoot, .Tfoot) :is(th, td):not([class$="Width"])
/*
tfoot th,
tfoot td,
.Tfoot th,
.Tfoot td
*/
{
	width: auto;
	vertical-align: middle;
}

:is(tfoot, .Tfoot) tr:first-child :is(th, td)
/*
tfoot tr:first-child th,
tfoot tr:first-child td,
.Tfoot tr:first-child th,
.Tfoot tr:first-child td
*/
{
	border-top-width: 3px;
	border-top-style: double;
}

:is(tfoot, .Tfoot) tr:last-child :is(th, td)
/*
tfoot tr:last-child th,
tfoot tr:last-child td,
.Tfoot tr:last-child th,
.Tfoot tr:last-child td
*/
{
	border-bottom-width: 0.5em;
}

/* ------------------------------------------------------
	<tbody> */
:is(th, td),
:is(thead, .Tbody, tfoot) :is(th, td)
/*
th,
td,
thead th,
thead td,
.Tbody th,
.Tbody td,
tfoot th,
tfoot td
*/
{
	text-indent: 0;
	vertical-align: top;
	padding: 0.5em 1em;
	border-style: solid dashed;
	border-top-width: 0.5em;
}

:is(th, td):not(:last-child),
:is(thead, .Tbody) :is(th, td):not(:last-child)
/*
th:not(:last-child),
td:not(:last-child),
thead th:not(:last-child),
thead td:not(:last-child),
.Tbody th:not(:last-child),
.Tbody td:not(:last-child)
*/
{
}
/*
	border-right-width: 0.5em;
*/

:is(tbody, .Tbody) :is(th, td)
/*
tbody th,
tbody td,
.Tbody th,
.Tbody td
*/
{
}

tr:last-child
{
}

:is(th, td):not([class*="Border"]):last-child
/*
th:not([class*="Border"]):last-child,
td:not([class*="Border"]):last-child
*/
{
	border-right-width: 0;
}

/*
	border-bottom-width: 1px;
*/





/* <tbody>ドラッグで上下移動 */
.RowControl
{
}

div.RowControl:before
{
	content: "※ドラッグで、項目の順番(上下)を変更できます。";
	display: block;
	text-align: left;
}

/*
div.RowControl tr td:last-child
	{
	display: table;
}
div.RowControl tr td:last-child>*
	{
	display: table-cell;
}
div.RowControl tr td:last-child:after
	{
	content: "□";
	display: table-cell;
}
*/




/* [181016]角丸にしてみる///////////////////////////////// 
table.RoundedC
{
	border-collapse: separate;
	border-spacing: 0;
	border-width: 1px;
	border-radius: 1em;
	overflow: hidden;
	background-color: rgba(255,255,255,1.0);
}
td table
{
	border-collapse: collapse;
	border-radius: 0em;
	overflow: auto;
}


.RoundedC tbody th
{
	border-width: 0 0 1px 0;
}

.RoundedC tbody td
{
	border-width: 0 0 1px 1px;
}

.RoundedC :is(thead, tbody, tfoot) :is(th, td):first-child,
.RoundedC tbody th+td
/
.RoundedC thead th:first-child,
.RoundedC tfoot th:first-child,
.RoundedC tbody td:first-child,
.RoundedC tbody th+td
/
{
	border-left-width: 0;
}

.RoundedC tbody th+th
{
}
.RoundedC th[rowspan]
{
	border-right-width: 1px;
}


.RoundedC tbody:last-child tr:last-child
{
}

.RoundedC tfoot tr:last-child :is(th, td),
.RoundedC tbody:last-child tr:last-child :is(th, td),
.RoundedC tbody:last-child tr:nth-last-child(2) :is(th, td)[rowspan="2"],
.RoundedC tbody:last-child tr:nth-last-child(3) :is(th, td)[rowspan="3"],
.RoundedC tbody:last-child tr:nth-last-child(4) :is(th, td)[rowspan="4"],
.RoundedC tbody:last-child tr:nth-last-child(5) :is(th, td)[rowspan="5"]
/
.RoundedC tfoot tr:last-child th,
.RoundedC tfoot tr:last-child td,
.RoundedC tbody:last-child tr:last-child th,
.RoundedC tbody:last-child tr:last-child td,
.RoundedC tbody:last-child tr:nth-last-child(2) th[rowspan="2"],
.RoundedC tbody:last-child tr:nth-last-child(2) td[rowspan="2"],
.RoundedC tbody:last-child tr:nth-last-child(3) th[rowspan="3"],
.RoundedC tbody:last-child tr:nth-last-child(3) td[rowspan="3"],
.RoundedC tbody:last-child tr:nth-last-child(4) th[rowspan="4"],
.RoundedC tbody:last-child tr:nth-last-child(4) td[rowspan="4"],
.RoundedC tbody:last-child tr:nth-last-child(5) th[rowspan="5"],
.RoundedC tbody:last-child tr:nth-last-child(5) td[rowspan="5"]
/
{
	border-bottom-width: 0;
}

*/




/*空セル */
th.Blank,
* th.Blank,
* thead th.Blank,
* thead * th.Blank
{
	border-width: 0 !important;
	background: none !important;
}

/* ------------------------------------------------------
	<table>の中の<table> */
/*
table :is(table, table th):not([class$="Width"])
*/
table table,
table table th
{
	width: auto;
}

table table td
{
}

/*
	padding-left: 0;
*/


:is(th, td) table
/*
th table,
td table
*/
{
	border-collapse: inherit;
	background: none;
}

:is(th, td) :is(th, td)
/*
td th,
td td
*/
{
	border-width: 0;
	background: none;
}

:is(.ie6, .ie7, .ie8, .ie9) th
/*
.ie6 th,
.ie7 th,
.ie8 th,
.ie9 th
*/
{
	width: 13em;
}

th span
{
}

:is(thead, tfoot) :is(th, td)
/*
thead th,
thead td,
tfoot th,
tfoot td
*/
{
	border-style: solid;
}

/* ------------------------------------------------------
	cell → block */
.TableBlock,
.TableBlock :is(table, th, td):not([class$="Width"])
/*
.TableBlock>tr th,
.TableBlock>tr td,
.TableBlock>tbody>tr>th,
.TableBlock>tbody>tr>td
*/
{
	width: 100%;
}
/*
	width: initial;
*/

.TableBlock :is(th, td)
/*
.TableBlock th,
.TableBlock td,
.TableBlock>tr th,
.TableBlock>tr td,
.TableBlock>tbody>tr>th,
.TableBlock>tbody>tr>td
*/
{
	display: block;
}

.TableBlock td
/*
.TableBlock>tr td,
.TableBlock>tbody>tr>td
*/
{
	padding-left: 0;
	padding-right: 0;
}
/*
	border-width: 0;
*/

/* ------------------------------------------------------
	block → cell */
.TableCell,
.TableCell table
{
	display: table;
}

.TableCell :is(th, td)
/*
.TableCell th,
.TableCell td,
.TableCell>tr th,
.TableCell>tr td,
.TableCell>tbody>tr>th,
.TableCell>tbody>tr>td
*/
{
	display: table-cell;
}

/*
	width: inherit;
*/

/*
.TableCell th,
.TableCell>tr th,
.TableCell>tbody>tr>th
{
	display: table-cell;
}
*/

.TableCell td:not([class$="Width"])
/*
.TableCell>tr td,
.TableCell>tbody>tr>td
*/
{
	width: inherit;
}

/* ------------------------------------------------------
	価格 のセル*/
.PriceCell,
:is(thead, tfoot) .PriceCell 
/*
thead .PriceCell,
tfoot .PriceCell
*/
{
	white-space: nowrap;
	text-align: right;
}

/* ------------------------------------------------------
	時間のセル */
.TimeCell
{
	white-space: nowrap;
	text-align: center;
}

/* ------------------------------------------------------
	単位(円だけとか)のセル */
.TdUnit
{
	padding-left: 0;
	padding-right: 0;
}

/* ------------------------------------------------------
	「数量」のセル */
.QuantityCell:not([class$="Width"])
{
	width: 5em;
}

.Print .QuantityCell:not([class$="Width"])
{
	width: 3em;
}

/* ------------------------------------------------------
	等幅 */
table.fixed
{
	position: static;
	table-layout: fixed;
}

table.fixed th:not([class$="Width"])
{
	max-width: initial;
	width: initial;
}

/* ======================================================
	<ul><ol><li> */
/* ------------------------------------------------------
	<li>で<table>
*/
.table
{
	margin: 0;
	display: table;
}

.table>ul
{
	display: table-row;
}

.table>ul>li
{
	display: table-cell;
	vertical-align: top;
	width: inherit;
}

.table>ul>li:first-child
{
	padding-right: 1em;
	white-space: nowrap;
}




.inline_table:not([class$="Width"])
{
	display: inline-table;
	width: initial;
}






/* ======================================================
	======================================================
	======================================================
	hack
	======================================================
	======================================================
====================================================== */




/* FFだけ線が消える */
@-moz-document url-prefix() {
table {
	border-collapse: separate;
	border-spacing: 0em;
}
/*
	thead th:before,
	thead td:before,
	tfoot th:before,
	tfoot td:before,
	tbody th:before,
	tbody td:before,
	.Tbody th:before,
	.Tbody td:before
		{
		content: "";
		display: block;
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		border-style: solid dashed;
	}
	
	tbody th:before,
	tbody td:before,
	.Tbody th:before,
	.Tbody td:before
		{
		border-top-width: 1px;
	}
	
	tbody th:not(:last-child):before,
	tbody td:not(:last-child):before,
	.Tbody th:not(:last-child):before,
	.Tbody td:not(:last-child):before
		{
		border-right-width: 1px;
	}
	
	tbody tr:last-child th:before,
	tbody tr:last-child td:before,
	.Tbody tr:last-child th:before,
	.Tbody tr:last-child td:before
		{
		border-bottom-width: 1px;
	}
	
	thead tr:not(:first-child) th:before,
	thead tr:not(:first-child) td:before
		{
		border-top-width: 1px;
	}
	
	thead th:not(:last-child):before,
	thead td:not(:last-child):before
		{
		border-right-width: 1px;
	}
	
	th.blank
		{
		background-color:red
	}
	
	th.blank:not(:last-child):before
		{
		border-width: 0;
	}
	
	th.blank+th
		{
	}
	
	tfoot th:before,
	tfoot td:before
		{
		border-bottom-width: 1px;
	}
	
	tfoot th:not(:last-child):before,
	tfoot td:not(:last-child):before
		{
		border-right-width: 1px;
	}
*/

/* レイアウトとして使う 
	table.Layout,
	table.Layout th:before,
	table.Layout td:before,
	
	table.Layout tbody tr:last-child th:before,
	table.Layout tbody tr:last-child td:before,
	table.Layout .Tbody tr:last-child th:before,
	table.Layout .Tbody tr:last-child td:before,
	
	#Admin table.Layout table,
	#Admin table.Layout th:before,
	
	table.Layout th:not([class]):before,
	table.Layout td:not([class]):before,
	
	table.Layout th:first-child:before
		{
		content: none;
	}
*/
}
