@charset "utf-8";

/* スマホ用　コンパクトレイアウト */
@media (max-width: 767px) {
	/* base */

	#contents section h2 {
		padding: 8px 0 8px 5px;
	}
	section.view .wrap label {
		padding: 4px 0 0 3px;
	}
	section.view.customerInfos .wrap div {
		padding: 5px;
	}
	.main-table th {
		padding: 2px;
		font-size: 10px;
	}

	#detail_table tr input,
	#detail_table tr textarea {
		/* font-size: 10px; */
		margin: 0;
		/* height: 1.5em !important; */
		/* padding: 1px !important; */
	}

	td.no-padding {
		padding: 0 2px !important;
	}

	table tbody td {
		padding: 1px;
		font-size: 11px;
	}

	#toggle_checks {
		height: initial;
	}

	.my_popup_open {
		padding: 2px;
		display: inline-block;
		height: 24px !important;
		width: 35px !important;
		vertical-align: middle;
		font-size: 11px;
		margin-top: 1px;
		padding: 5px 0 0 0 !important;
	}
	#detail_table tr.top input,
	#detail_table tr.middle input,
	#detail_table tr.bottom input {
		margin: 0;
	}

	.tax_include_box,
	.tax_cost_include_box {
		width: 10px !important;
		height: 10px !important;
	}

	#my_popup {
		width: 80vw !important;
		padding: 2px !important;
	}

	#listControlPopup {
		font-size: 10px;
	}

	.modal-body .heading {
		font-size: 11px;
	}

	.btn,
	section.view .wrap .btn {
		padding: 5px 10px;
		font-size: 11px;
	}
	section h2 .rightBtnArea a.btn {
		padding: 5px 10px;
		font-size: 11px;
	}
	input,
	textarea,
	select {
		height: 24px;
	}

	.matterStatus {
		display: flex;
	}
	.matterStatus .btn.lg {
		padding: 5px !important;
		margin: 3px;
	}

	#contents section h2 {
		font-size: 12px;
	}
	.pagination .pager li a {
		padding: 2px 10px;
	}
	hr {
		margin: 1.5em 0 0.5em 0;
	}

	#contents section h2 {
		padding-left: 5px !important;
	}

	#contents section h2 small {
		display: block;
		margin-left: 0px;
		font-size: 10px;
	}

	.pagination .ctl {
		width: 100%;
		font-size: 12px;
		padding-right: 0px;
	}

	.rightBtnArea {
		display: block;
		position: initial !important;
		text-align: right;
		margin-top: 5px;
	}
	section.notice .wrap ul li.title {
		font-size: 12px !important;
	}

	.box li {
		font-size: 12px;
	}

	.box span {
		font-size: 11px;
		display: block;
		width: 100%;
		text-align: right;
	}

	/* 案件見積 */
	#detail_table {
		/* border-collapse: collapse; */
		/* width: 100%; */
		min-width: initial;
	}

	#detail_table * {
		font-size: 12px;
	}

	#detail_table thead {
		display: none;
	}

	#detail_table tr:first-child {
		border-top: 1px solid #dbe1e8;
	}

	#detail_table th,
	#detail_table td {
		padding: 0px 0;
		border: none;
	}

	#detail_table th {
		text-align: left;
		width: 120px;
	}

	#detail_table input[type="text"],
	#detail_table textarea {
		width: 50%;
	}
	#detail_table textarea {
		height: 100px;
	}

	#detail_table .sp3 {
		display: inline-block;
		width: calc(100% / 3);
		flex-basis: calc(100% / 3);
		text-align: center;
		box-sizing: border-box;
		border: none;
		border-right: 1px solid #ccc;
		border-bottom: 1px solid #ccc;
		height: 26px;
		vertical-align: middle;
		margin: 0 !important;
		padding: 0 !important;
		float: left;
		text-align: center;
	}

	#detail_table .sp4 {
		display: inline-block;
		width: calc(100% / 2);
		flex-basis: calc(100% / 2);
		text-align: center;
		box-sizing: border-box;
		border: 1px #ccc solid;
		height: 26px;
		vertical-align: middle;
		font-size: 10px;
		padding: 0 0 0 1px !important;
		margin: 0 !important;
		border: none;
		border-right: 1px solid #ccc;
		border-bottom: 1px solid #ccc;
		box-sizing: border-box;
		/* float: left; */
		text-align: right;
	}

	#detail_table .sp2 {
		display: inline-block;
		width: calc(100% / 2);
		flex-basis: calc(100% / 2);
		text-align: right;
		box-sizing: border-box;
		border: none;
		border-right: 1px solid #ccc;
		border-bottom: 1px solid #ccc;
		height: 26px;
		vertical-align: middle;
	}


	#detail_table .sp2.tac , #detail_table .sp2.center {
		text-align:center;
	}

	#detail_table tr.top input,
	#detail_table tr.middle input,
	#detail_table tr.bottom input {
		border-radius: 0px;
		margin: 0;
		background-color: #fff;
		height: 22px;
		min-height: inherit;
		float: initial;
	}

	#detail_table td::before {
		content: attr(aria-label);
		display: inline-block;
		font-weight: bold;
		float: left;
		text-align: left;
		padding-right: 0px;
		white-space: nowrap;
		line-height: 26px;
	}

	#detail_table td::after {
		content: "";
		display: block;
		clear: both;
	}

	#detail_table th,
	#detail_table td {
		display: block;
		width: 100%;
		border-bottom: 1px solid #ccc;
		padding: 1px;
		padding: 0 0 0 1px !important;
	}
	#detail_table tr {
		width: auto;
		display: flex;
		flex-flow: row wrap;
	}

	#detail_table th {
		padding-bottom: 0;
	}

	#detail_table input[type="text"],
	#detail_table textarea,
	#detail_table .amount-view,
	#detail_table .amount-view-cost {
		width: calc(100% - 55px) !important;
	}

	.amount-view,
	.amount-view-cost {
		padding-top: 4px !important;
	}

	#detail_table .listContoroll i,
	#detail_table i.toggleClass {
		font-size: 20px;
		line-height: 26px;
	}

	#detail_table .tax_include_box,
	#detail_table .tax_cost_include_box {
		display: inline-block;
		width: 15px !important;
	}

	#detail_table .nameInput {
		height: 26px !important;
		padding-top: 5px !important;
	}

	#calclateTable {
		width: 100% !important;
		font-size: 12px !important;
		min-width: initial;
	}
	#calclateTable td,
	#calclateTable th {
		font-size: 10px !important;
		padding: 3px !important;
	}

	#detail_sub_table {
		min-width: inherit;
		width: 100%;
	}

	#detail_sub_table textarea {
		width: 100% !important;
		border: 1px solid #ccc;
	}

	#detail_sub_table thead {
		display: none;
	}

	#detail_sub_table tr,
	#detail_sub_table td {
		display: block;
		width: auto;
	}

	#detail_sub_table tr {
		border: 1px solid #dbe1e8;
		border-radius: 5px;
		box-shadow: 3px 3px rgba(0, 0, 0, 0.1);
		margin-bottom: 20px;
		padding: 8px 8px 0;
	}

	#detail_sub_table td {
		border: none;
		border-bottom: 1px solid #dbe1e8;
		display: flex;
		justify-content: space-between;
		text-align: right;
		font-size: 11px;
	}
	#detail_sub_table td:last-child {
		border-bottom: none;
	}
	#detail_sub_table td::before {
		content: attr(aria-label);
		display: inline-block;
		font-weight: bold;
		float: left;
		text-align: left;
		padding-right: 20px;
		white-space: nowrap;
	}

	#detail_sub_table td.bt-area::before {
		display: none;
	}
	#detail_sub_table td.bt-area a {
		background: #007aff;
		border-radius: 5px;
		color: #fff;
		display: inline-block;
		flex: 1;
		height: 40px;
		margin: 0 2px;
		overflow: hidden;
		width: auto;
	}
	#detail_sub_table td.bt-area a::before {
		align-items: center;
		content: attr(aria-label);
		display: flex;
		font-size: 14px;
		height: 100%;
		justify-content: center;
		line-height: 40px;
		width: 100%;
	}

	.detailSaveButtons {
		margin: 0 0 0px 0;
	}

	#detail_sub_table .col-md-12 {
		padding: 0 3px !important;
	}

	td.no-padding {
		padding: 2px 0px !important;
		font-size: 10px !important;
		vertical-align: middle;
	}
}
