#btn-Search {
	background-color: #C2F0E2 !important;
	border: 1px solid #A0D9C6 !important;
	color: #333;
}
#btn-Search:hover {
	background-color: #F2FCF9 !important;
}
input#pdh-year_label.moveTab {
	width: 60.49px !important;
}
input#pdh-place_memo.moveTab,
input#pdh-place_memo.moveTab:focus,
input#pdh-place_memo.moveTab:active {
	background-color: #ffffff !important;
	background: #ffffff !important;
}
/* --- fontBold指定の後ろに移動 --- */
input#pdh-sale_price.moveTab.TypePrice:focus,
input#pdh-cost_price.moveTab.TypePrice:focus {
	font-weight: normal !important;
}
input.fontBold {
	font-weight: bold !important;
}
span.fontBold {
	font-weight: bold !important;
}
/* 台帳複写ボタン（#btn-Copy）hover時の背景色 */
#btn-Copy:hover,
#btn-Copy:enabled:hover,
#btn-Copy:disabled:hover {
	background-color: #FCFEF4 !important;
	background: #FCFEF4 !important;
}
/* 登録更新ボタン（#btn-Register）hover時の背景色 */
#btn-Register:hover,
#btn-Register:enabled:hover,
#btn-Register:disabled:hover {
	background-color: #F2FCF9 !important;
	background: #F2FCF9 !important;
}
/* 薄い黄色＋box-shadow/outlineも消す */
input#pdh-sale_price[class*="TypePrice"],
input#pdh-cost_price[class*="TypePrice"],
input#pdh-link_ledger_no[class*="TypeValue8"],
input#pdh-ticket_no[class*="TypeValue8"] {
	background-color: #FFFFE7 !important;
	background: #FFFFE7 !important;
	box-shadow: none !important;
	outline: none !important;
}
/* クラス順序に関係なくid＋TypeValue8/TypePriceを含むinputを黄色で強制 */
input#pdh-sale_price[class*="TypePrice"] {
	background-color: #FFFFE7 !important;
	background: #FFFFE7 !important;
}
input#pdh-cost_price[class*="TypePrice"] {
	background-color: #FFFFE7 !important;
	background: #FFFFE7 !important;
}
input#pdh-link_ledger_no[class*="TypeValue8"] {
	background-color: #FFFFE7 !important;
	background: #FFFFE7 !important;
}
input#pdh-ticket_no[class*="TypeValue8"] {
	background-color: #FFFFE7 !important;
	background: #FFFFE7 !important;
}
/* id＋全クラスの組み合わせで最強指定 */
input#pdh-sale_price.moveTab.TypePrice,
input#pdh-sale_price.moveTab.TypePrice:focus,
input#pdh-sale_price.moveTab.TypePrice:active {
	background-color: #FFFFE7 !important;
	background: #FFFFE7 !important;
}
input#pdh-cost_price.moveTab.TypePrice,
input#pdh-cost_price.moveTab.TypePrice:focus,
input#pdh-cost_price.moveTab.TypePrice:active {
	background-color: #FFFFE7 !important;
	background: #FFFFE7 !important;
}
input#pdh-link_ledger_no.moveTab.TypeValue8,
input#pdh-link_ledger_no.moveTab.TypeValue8:focus,
input#pdh-link_ledger_no.moveTab.TypeValue8:active {
	background-color: #FFFFE7 !important;
	background: #FFFFE7 !important;
}
input#pdh-ticket_no.moveTab.TypeValue8,
input#pdh-ticket_no.moveTab.TypeValue8:focus,
input#pdh-ticket_no.moveTab.TypeValue8:active {
	background-color: #FFFFE7 !important;
	background: #FFFFE7 !important;
}
/* TypePrice/TypeValue8の青色をid＋class＋:focus＋:active＋!importantで完全上書き */
input#pdh-sale_price.TypePrice,
input#pdh-sale_price.TypePrice:focus,
input#pdh-sale_price.TypePrice:active,
input#pdh-sale_price.TypePrice.moveTab,
input#pdh-sale_price.TypePrice.moveTab:focus,
input#pdh-sale_price.TypePrice.moveTab:active {
	background-color: #FFFFE7 !important;
	background: #FFFFE7 !important;
}
input#pdh-cost_price.TypePrice,
input#pdh-cost_price.TypePrice:focus,
input#pdh-cost_price.TypePrice:active,
input#pdh-cost_price.TypePrice.moveTab,
input#pdh-cost_price.TypePrice.moveTab:focus,
input#pdh-cost_price.TypePrice.moveTab:active {
	background-color: #FFFFE7 !important;
	background: #FFFFE7 !important;
}
input#pdh-link_ledger_no.TypeValue8,
input#pdh-link_ledger_no.TypeValue8:focus,
input#pdh-link_ledger_no.TypeValue8:active,
input#pdh-link_ledger_no.TypeValue8.moveTab,
input#pdh-link_ledger_no.TypeValue8.moveTab:focus,
input#pdh-link_ledger_no.TypeValue8.moveTab:active {
	background-color: #FFFFE7 !important;
	background: #FFFFE7 !important;
}
input#pdh-ticket_no.TypeValue8,
input#pdh-ticket_no.TypeValue8:focus,
input#pdh-ticket_no.TypeValue8:active,
input#pdh-ticket_no.TypeValue8.moveTab,
input#pdh-ticket_no.TypeValue8.moveTab:focus,
input#pdh-ticket_no.TypeValue8.moveTab:active {
	background-color: #FFFFE7 !important;
	background: #FFFFE7 !important;
}
/* 強制的に黄色にする（全状態） */
input#pdh-sale_price,
input#pdh-sale_price:focus,
input#pdh-sale_price.cnt,
input#pdh-sale_price.moveTab,
input#pdh-sale_price.TypePrice,
input#pdh-cost_price,
input#pdh-cost_price:focus,
input#pdh-cost_price.cnt,
input#pdh-cost_price.moveTab,
input#pdh-cost_price.TypePrice,
input#pdh-link_ledger_no,
input#pdh-link_ledger_no:focus,
input#pdh-link_ledger_no.cnt,
input#pdh-link_ledger_no.moveTab,
input#pdh-link_ledger_no.TypeValue8,
input#pdh-ticket_no,
input#pdh-ticket_no:focus,
input#pdh-ticket_no.cnt,
input#pdh-ticket_no.moveTab,
input#pdh-ticket_no.TypeValue8 {
	background-color: #FFFFE7 !important;
	background: #FFFFE7 !important;
}
/* BW工事番号・指示番号・請求予定金額・原価予定金額 入力時の背景色を最優先で強制 */
input#pdh-link_ledger_no:focus:not(:disabled),
input#pdh-link_ledger_no:not(:disabled)[style*="FFFFE7"],
input#pdh-ticket_no:focus:not(:disabled),
input#pdh-ticket_no:not(:disabled)[style*="FFFFE7"],
input#pdh-sale_price:focus:not(:disabled),
input#pdh-sale_price:not(:disabled)[style*="FFFFE7"],
input#pdh-cost_price:focus:not(:disabled),
input#pdh-cost_price:not(:disabled)[style*="FFFFE7"] {
	background-color: #FFFFE7 !important;
	background: #FFFFE7 !important;
}
/* BW工事番号・指示番号・請求予定金額・原価予定金額 入力時の背景色を強制 */
input#pdh-link_ledger_no[style*="FFFFE7"],
input#pdh-ticket_no[style*="FFFFE7"],
input#pdh-sale_price[style*="FFFFE7"],
input#pdh-cost_price[style*="FFFFE7"] {
	background-color: #FFFFE7 !important;
}
@CHARSET "UTF-8";
/* 追加CSS */

/* 2024.05.27 */

/* 囲み */
.aroundLine {
	padding: 1em;
	border: 1px solid #ccc;
}
.aroundLine input[type=checkbox] {
	height: 2em;
	width: 2em;
	margin-right: 0.5em;
}


/* テーブルの項目幅を固定する */

/* 入力項目の大きさを最大に */
.TypeFull {
	padding: 0.5em;
	width: calc(100% - 1em);
}

* {
	font-size: 16px;
}

.wDate ,
.wSign {
	text-align: center;
	width: 100px;
}
.wText100 {
	text-align: left;
	width: 100px;
}
.wText150 {
	text-align: left;
	width: 150px;
}
.wText200 {
	text-align: left;
	width: 200px;
}
.wText250 {
	text-align: left;
	width: 250px;
}
.wText300 {
	text-align: left;
	width: 300px;
}
.wText400 {
	text-align: left;
	width: 400px;
}
.wText450 {
	text-align: left;
	width: 450px;
}
.wText500 {
	text-align: left;
	width: 500px;
}
.wText550 {
	text-align: left;
	width: 550px;
}
.wText600 {
	text-align: left;
	width: 600px;
}
.wPrice {
	text-align: right;
	width: 150px;
}
.wTextAuto {
	text-align: left;
	width: auto;
}

.wPiece {
	text-align: right;
	width: 150px;
}

.wUnit {
	text-align: center;
	width: 60px;
}
.padding {
	padding: 0.5em;
}

/* 一覧の調整 */
.wThTd300 {
	width: 300px;
}
.wThTd500 {
	width: 500px;
}
.wThTd700 {
	width: 700px;
}
.wThTd1000 {
	width: 1000px;
}
.hTr80 {
	height: 80px;
}
.hTr100 {
	height: 100px;
}


tr.lineBold th ,
tr.lineBold td {
	font-weight: bold;
}


/* 工事台帳 */

#content-header {
		margin-bottom: 20px;
}


table.ledger th {
	background-color: #ccc;
	text-align: center;
}
/*
table.ledger td {
	text-align: center;
}
table.short {
	width: auto;
}
*/
#content-estimate ,
#content-cost ,
#content-contract ,
#content-expected ,
#content-demand ,
#content-collect {
		border: 1px solid #666;
		margin: 5px;
		padding: 10px;
}

#content-contract:hover ,
#content-expected:hover ,
#content-demand:hover ,
#content-collect:hover {

	cursor: pointer;
	background-color: #fff;
}

#content-cost:hover {

	cursor: pointer;
	background-color: #eee;
}

#content-cost table ,
#content-contract table ,
#content-expected table ,
#content-demand table ,
#content-collect table {
		width: 100%;
}

#content-cost table tr th ,
#content-contract table tr th ,
#content-expected table tr th ,
#content-demand table tr th ,
#content-collect table tr th {
		font-weight: bold;
}

/* 見積予定 */
#content-estimate {
		border: 1px solid #666;
		margin: 10px 0;
		padding: 10px;
}
#content-estimate:hover {
	background-color: #eee;
}
#content-estimate ul li input[type='checkbox'] ,
#content-estimate ul li input[type='radio'] {

	width: 2em;
	height: 2em;
	margin-right: 5px;

}
#content-estimate ul {
	margin-top: 10px;
	list-style: none;

	display: none;

}
#content-estimate ul li {
	margin: 10px;
/*	display: inline;*/

	border: 1px solid #666;
	margin: 10px 0;
	padding: 10px;

}
#content-estimate ul li:nth-child(odd) {
	background-color: #eee;
}
#content-estimate ul li:nth-child(even) {
	background-color: #e0e0e0;
}

#content-estimate ul li input[type=radio] ,
#content-estimate ul li input[type=checkbox] ,
#content-estimate ul li label {
	cursor: pointer;
}

#content-estimate ul li label.MstPayName {
	display: inline-block;
	width: 300px;
}

#content-auto table {
		width: auto;
		margin: 0;
}
#content-auto {
		margin-left: 0;
		margin-right: auto;
}





/* 横幅調整 */
#content table.auto {
		width: auto;
		margin-left: 0;
}



.GoogleChart {
	margin: 20px;
	padding: 10px;
	background-color: #ccc;
}

#searchAdd ,
#reportAdd {
	display: none;
}


/* 現金精算入力 */

.area_suspense {
	margin-left: auto;
	margin-right: 0;
	width: auto;
	display: none;
}
.goSuspense:hover {
	cursor: pointer;
	background-color: #eee;
}

.list_row:hover {
	cursor: pointer;
	background-color: #eee;
}


.goLedger {
	padding: 0.5em;
	border: 2px solid #333;
}
.goLedger:hover {
	cursor: pointer;
	background-color: #eee;
}

.copy_row {
	cursor: pointer;
	display:  inline-block;
	color: #fff;
	text-decoration:  none;
	background-color: #666;
	padding:  0.3em 0.7em;
	border-radius: 0.3em;
}
.copy_row:hover {
	background-color: #999;
}


#RunRecord:hover {
	cursor: pointer;
	background-color: #eee;

}

/* 台帳へリンク */
.goLedgerByNo:hover {
	font-weight: bold;
	cursor: pointer;
	color: blue;
	text-decoration: underline;
	text-decoration-color: blue;
}

/* 入管理表 */
#WinSmallList {
	color: #000;
  width: 100%;
  height: 100%;
  position: fixed;
  text-align: center;
  vertical-align: middle;
  left: 0;
  top: 0;
  background: #eee;
  overflow:auto;
/*  opacity: 0.7;*/
}
#WinSmallList .inner {
  margin: 0 auto;
  margin-top: 150px;
}
#WinSmallList .inner table {
 width: auto;
}

#winClose {
	height: 50px;
	margin: 20px 0;
	width: 200px;

}

td.goLink {
	font-weight: bold;
	color: blue;
}
td.goLink:hover {
	text-decoration: underline;
	text-decoration-color: blue;
}
td.goWin {
	font-weight: bold;
	color: #333;
}


/* 買掛支払 */
td.temp {
	font-weight: bold;
	color: #333;
	cursor: pointer;
}

.files {
	display: none;
}


/* メッセージ */
#content-message {
		margin: 5px;
		padding: 10px;
}

#content-message textarea {
		width: calc(100% - 1em);
		height: 100px;
		padding: 0.5em;
}

#content-message #btn-Register {
		width: 150px;
		padding: 1em;
}





/* top */
p.topMessageTitle {
	margin-top: 20px;
	font-weight: bold;
	text-align: center;
}
div.topMessage {
		border: 1px solid #666;
		margin: 0 0 5px;
		padding: 10px;
}


div.topMessage ul {
	list-style: none;
}


div.topMessage ul li {
		margin: 5px 0;
		cursor: pointer;
		background-color: #ffffff;
}


div.topMessage ul li span.SendReceive {
	display: inline-block;
	width: 300px;
	padding: 0.5em;
}
div.topMessage ul li span.SendMessage {
	display: inline-block;
	margin-left: 10px;
	width: auto;
}

/* 共通 */

#pds-any{

	padding: 0.5em;

}

.hint {
	padding:0.2em;
}
.hint:before {
	content:'ヒント';
	background-color:#ff0000;
	color:#ffffff;
	margin-right:0.5em;
	padding: 0.2em;
}





/* 入金管理 */


/* タイトルを固定する */
table.deposited tbody td {
	cursor: pointer;
}
table.deposited tbody td:hover {
	color: #333;
  background: #94b6c4;
}
.setTitle ,
.setTitle2 {
  position: sticky;
  top: 0;
	left: 0;
  color: #000;
  background: #f5f5f5;
	  &:before{
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    width: 100%;
    height: 100%;
    border: 1px solid #000;
  }
}
.setTitle {
	z-index: 1;
}
.setTitle2 {
	z-index: 2;
}

.bdr-lft {
	border-left: 3px solid #000;
}
.bdr-rgt {
	border-right: 3px solid #000;
}
.bdr-top {
	border-top: 3px solid #000;
}
.bdr-btm {
	border-bottom: 3px solid #000;
}
.bdr-all {
	border: 3px solid #000;
}

.colorViolet {
	color: #ee82ee;
}

.backLightYellow {
	background-color: #fafad2;
}


/* 台帳検索 */

#resetDatLedgerId {

	cursor: pointer;

}

#resetDatLedgerId:hover {

	color: red;
	font-weight: bold;
	
}

/* 支払請求一覧のJLW */

.area-jlw {
	position: absolute;
	top: 70px;
	right: 20px;
	width: 200px;
}
.area-jlw table {
	background-color: #fff;
}
.area-jlw table th ,
.area-jlw table td {
	line-height: 1em;
	padding: 3px;
}
.area-jlw table th {
	text-align: center;
}


/* 注文書入力 */

table.tblOrderSheet {

	width: 100%;

}
table.tblOrderSheet th {
		text-align: center;
	width: 6em;
	background-color: #eee;
}
table.tblOrderSheet td {
	width: auto;
}
table.tblOrderSheet td textarea {
	width: 100%;
}
table.tblOrderSheet td #pdh-nontax_cost_price {
	width: calc(100% - 1em);
}
table.tblOrderSheet td #pdh-mst_pay_formal_name {
	width: calc(100% - 7em);
}
table.tblOrderSheet td #pdh-ledger_no:hover {
	color: blue;
	font-weight: bold;
}

table.tblOrderRow th {
	width: 15%;
	text-align: center;
	background-color: #eee;
}
table.tblOrderRow th:nth-child(1) {
		width: 30%;
}
table.tblOrderRow th:nth-child(6) {
	width: 10%;
}

table.tblOrderRow td input[type='text'] {
	width: calc(100% - 1em);
}
.divOrderMemo textarea {
	padding: 0.5em;
	width: calc(100% - 1em);
}
.delRow ,
.addRow {
	width: 3em;
	margin: 0 5px;
	padding: 2px;
}

.divCopyMessage {
	background-color: #f00;
	color: #fff;
	text-align: center;
	width: 100%;
	padding: 10px 0;
	margin-top: 10px;
}

.tooltip {
  position: relative;
}
.tooltip .tooltipvalue {
  background-color: red;
  color: #fff;
}
.tooltip .tooltiptext {
  visibility: hidden;
  visibility: visible;
  background-color: red;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  
  /* Position the tooltip text */
  position: absolute;
  z-index: 1;
  top: 100%;
  left: 50%;
  margin-left: -60px;
  
  /* Fade in tooltip */
  opacity: 0;
  opacity: 1;
  transition: opacity 0.3s;
}
/*
.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}
*/

/* TOP画面のダウンロードボタンの特別なホバー効果のみ */
#content input[id^="btn-Download"]:hover,
#content input[id*="download"]:hover,
#content input[id*="Download"]:hover,
#content input[value*="ダウンロード"]:hover,
#content input[value*="download"]:hover,
#content input[value*="Download"]:hover {
	background-color: #F5F8FD !important;  /* 薄い青 */
	color: #333333 !important;              /* 濃いグレー */
	border-color: #E3F2FD !important;      /* 薄い青の枠線 */
	transform: scale(1.05);
	transition: all 0.3s ease;
	box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 業務管理1・2のメニューボタンのホバー効果 */
input[id^="menu-job-"]:hover {
	background-color: #FCFEF4 !important;  /* 薄い黄緑 */
	color: #333333 !important;              /* 濃いグレー */
	border-color: #E8F5E8 !important;      /* 薄い緑の枠線 */
	transform: scale(1.05);
	transition: all 0.3s ease;
	box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* マスタ管理1・2のメニューボタンのホバー効果 */
input[id^="menu-mst-"]:hover {
	background-color: #F2FCF9 !important;  /* 薄い緑 */
	color: #333333 !important;              /* 濃いグレー */
	border-color: #D4ECD9 !important;      /* 薄い緑の枠線 */
	transform: scale(1.05);
	transition: all 0.3s ease;
	box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 分析管理のメニューボタンのホバー効果 */
input[id^="menu-mng-"]:hover {
	background-color: #F5F8FD !important;  /* 薄い青 */
	color: #333333 !important;              /* 濃いグレー */
	border-color: #E3F2FD !important;      /* 薄い青の枠線 */
	transform: scale(1.05);
	transition: all 0.3s ease;
	box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 工事台帳の工事件名・工事場所の背景色 */
input[name*="construction_name"],
input[id*="construction_name"],
input[name*="construction_place"],
input[id*="construction_place"],
input[name*="工事件名"],
input[name*="工事場所"],
input[name="pd[b][construction_name]"],
input[id="content-construction_name"],
input[name="pd[b][construction_place]"],
input[id="content-construction_place"],
input[name="pd[b][name]"],
input[id="content-name"],
input[name="pd[b][place]"],
input[id="content-place"],
textarea[name*="construction_name"],
textarea[id*="construction_name"],
textarea[name*="construction_place"],
textarea[id*="construction_place"],
textarea[name="pd[b][construction_name]"],
textarea[id="content-construction_name"],
textarea[name="pd[b][construction_place]"],
textarea[id="content-construction_place"],
textarea[name="pd[b][name]"],
textarea[id="content-name"],
textarea[name="pd[b][place]"],
textarea[id="content-place"] {
	background-color: #FFFFE7 !important;  /* 薄い黄色 */
	border: 2px solid #FFD700 !important;  /* 目立つ枠線も追加 */
}

/* 工事台帳ページ専用の背景色設定（より具体的） */
body:has([action*="ledger"]) input[name*="name"],
body:has([action*="ledger"]) input[name*="place"],
body:has([action*="ledger"]) textarea[name*="name"],
body:has([action*="ledger"]) textarea[name*="place"],
[action*="ledger"] input[name*="name"],
[action*="ledger"] input[name*="place"],
[action*="ledger"] textarea[name*="name"],
[action*="ledger"] textarea[name*="place"] {
	background-color: #FFFFE7 !important;  /* 薄い黄色 */
	border: 2px solid #FFD700 !important;  /* 目立つ枠線 */
}

/* 緊急テスト用：削除（元に戻す） */
/* 全フィールド対象を削除 */

/* 工事件名のみの設定（太枠なし） */
input[name="pd[b][construction_name]"],
input[id="content-construction_name"],
input[name="pd[b][name]"],
input[id="content-name"],
input[name*="construction_name"],
input[id*="construction_name"],
input[name*="件名"],
textarea[name="pd[b][construction_name]"],
textarea[id="content-construction_name"],
textarea[name="pd[b][name]"],
textarea[id="content-name"],
textarea[name*="construction_name"],
textarea[id*="construction_name"],
textarea[name*="件名"] {
	background-color: #FFFFE7 !important;  /* 薄い黄色 */
}

/* 工事場所のみの設定（太枠なし） */
input[name="pd[b][construction_place]"],
input[id="content-construction_place"],
input[name="pd[b][place]"],
input[id="content-place"],
input[name*="construction_place"],
input[id*="construction_place"],
input[name*="場所"],
textarea[name="pd[b][construction_place]"],
textarea[id="content-construction_place"],
textarea[name="pd[b][place]"],
textarea[id="content-place"],
textarea[name*="construction_place"],
textarea[id*="construction_place"],
textarea[name*="場所"] {
	background-color: #FFFFE7 !important;  /* 薄い黄色 */
}

/* 強制的に工事件名・工事場所を指定（最優先） */
#content input[name*="name"]:not([name*="login"]):not([name*="user"]):not([name*="member"]),
#content textarea[name*="name"]:not([name*="login"]):not([name*="user"]):not([name*="member"]),
#content input[name*="place"]:not([name*="備考"]):not([name*="memo"]):not([name*="note"]),
#content textarea[name*="place"]:not([name*="備考"]):not([name*="memo"]):not([name*="note"]) {
	background-color: #FFFFE7 !important;  /* 薄い黄色 */
}

/* 場所備考フィールドを通常の背景色に戻す */
#content input[name*="place"][name*="備考"],
#content textarea[name*="place"][name*="備考"],
#content input[name*="place"][name*="memo"],
#content textarea[name*="place"][name*="memo"],
#content input[name*="place"][name*="note"],
#content textarea[name*="place"][name*="note"],
#content input[name*="place_memo"],
#content textarea[name*="place_memo"],
#content input[name*="place_note"],
#content textarea[name*="place_note"] {
	background-color: inherit !important;  /* 通常の背景色に戻す */
	border: 1px solid #333 !important;     /* 通常の枠線に戻す */
}

/* 工事場所・工事備考の枠線を通常に戻す */
#content input[name*="place"],
#content textarea[name*="place"],
#content input[name*="place_memo"],
#content textarea[name*="place_memo"],
#content input[name*="備考"],
#content textarea[name*="備考"],
#content input[name*="memo"],
#content textarea[name*="memo"],
#content input[name*="note"],
#content textarea[name*="note"] {
	border: 1px solid #ccc !important;     /* 通常の薄いグレー枠線 */
	box-shadow: none !important;           /* 影効果を削除 */
	outline: inherit !important;           /* フォーカス時の枠線を通常に戻す */
}

/* すべての入力フィールドの枠線を薄いグレーに統一 */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea,
select {
	border: 1px solid #ccc !important;     /* すべてのフィールドを薄いグレー枠線に */
	border-color: #ccc !important;         /* 枠線色を明示的に指定 */
}

/* より具体的に場所備考フィールドの枠線を強制設定 */
input[name="place_memo"],
textarea[name="place_memo"],
input[name*="place_memo"],
textarea[name*="place_memo"],
input[name="pd[h][place_memo]"],
input[id="pdh-place_memo"],
#pdh-place_memo {
	border: 1px solid #ccc !important;     /* 場所備考も薄いグレー枠線に強制 */
	border-color: #ccc !important;         /* 枠線色を明示的に指定 */
	box-shadow: none !important;
}

/* 場所備考フィールドに対する最強制適用 */
body input[id="pdh-place_memo"],
body #pdh-place_memo,
table input[name*="place_memo"],
td input[name*="place_memo"] {
	border: 1px solid #ccc !important;     /* 工事件名・工事場所と同じ薄いグレー枠線 */
	border-color: #ccc !important;
	border-width: 1px !important;
	border-style: solid !important;
	box-shadow: none !important;
}

/* 工事件名、工事場所、場所備考を同じ枠線色に統一 */
#pdh-name,
#pdh-place,
#pdh-place_memo,
input[name="pd[h][name]"],
textarea[name="pd[h][name]"],
input[name="pd[h][place]"],
input[name="pd[h][place_memo]"] {
	border: 1px solid #ccc !important;     /* すべて同じ薄いグレー枠線 */
	border-color: #ccc !important;
}

/* 通常のCSSに戻す */

/* すべての可能性に対応 */
input[id*="place_memo"],
*[id*="place_memo"] {
	border: 1px solid #ccc !important;
	border-color: #ccc !important;
}

/* より具体的に工事場所・工事備考の枠線を強制設定 */
input[name*="place"]:focus,
textarea[name*="place"]:focus,
input[name*="place_memo"]:focus,
textarea[name*="place_memo"]:focus,
input[name*="備考"]:focus,
textarea[name*="備考"]:focus,
input[name*="memo"]:focus,
textarea[name*="memo"]:focus,
input[name*="note"]:focus,
textarea[name*="note"]:focus {
	border: 1px solid #ccc !important;     /* フォーカス時も薄いグレー枠線 */
	border-color: #ccc !important;         /* フォーカス時も枠線色を明示的に指定 */
	box-shadow: none !important;           /* フォーカス時の影も削除 */
	outline: 2px solid #0066cc !important; /* 標準的なフォーカス表示 */
}

/* btnCopyクラスのホバー効果 */
.btnCopy:hover {
	background-color: #FCFEF4 !important;
}

/* btnRegisterクラスのホバー効果 */
.btnRegister:hover {
	background-color: #F2FCF9 !important;
}

/* btnUsuallyクラスのホバー効果 */
.btnUsually:hover {
	background-color: #F5F8FD !important;
}

/* btnArrowLastとbtnArrowNextクラスのホバー効果 */
.btnArrowLast:hover,
.btnArrowNext:hover {
	background-color: #F4F1FD !important;
}

/* btnHeaderBarクラスのホバー効果 */
.btnHeaderBar:hover {
	background-color: #C1E2F5 !important;
}

/* 入力フィールドの背景色制御 - JavaScriptで制御するクラスベース */
/* デフォルトは白背景 */
input.moveTab.TypeDate.cnt {
	background-color: #ffffff !important;
}

/* 入力がある場合のクラス（JavaScriptで動的に追加/削除） */
input.moveTab.TypeDate.cnt.has-input {
	background-color: #FFFFE7 !important;
}

/* フォーカス時も同じ制御 */
input.moveTab.TypeDate.cnt:focus {
	background-color: #ffffff !important;
}

input.moveTab.TypeDate.cnt.has-input:focus {
	background-color: #FFFFE7 !important;
}

/* テーブル内の全ての入力フィールドにも同じ制御を適用 */
/* デフォルトは白背景 */
input.moveTab.cnt,
input.moveTab.TypePrice,
input.moveTab.TypeValue8,
input.moveTab.TypeValue12,
input.moveTab.TypeValue3,
select.moveTab.TypeValue12 {
	background-color: #ffffff !important;
}

/* 入力がある場合のクラス（JavaScriptで動的に追加/削除） */
input.moveTab.cnt.has-input,
input.moveTab.TypePrice.has-input,
input.moveTab.TypeValue8.has-input,
input.moveTab.TypeValue12.has-input,
input.moveTab.TypeValue3.has-input,
select.moveTab.TypeValue12.has-input {
	background-color: #FFFFE7 !important;
}

/* フォーカス時も同じ制御 */
input.moveTab.cnt:focus,
input.moveTab.TypePrice:focus,
input.moveTab.TypeValue8:focus,
input.moveTab.TypeValue12:focus,
input.moveTab.TypeValue3:focus,
select.moveTab.TypeValue12:focus {
	background-color: #ffffff !important;
}

input.moveTab.cnt.has-input:focus,
input.moveTab.TypePrice.has-input:focus,
input.moveTab.TypeValue8.has-input:focus,
input.moveTab.TypeValue12.has-input:focus,
input.moveTab.TypeValue3.has-input:focus,
select.moveTab.TypeValue12.has-input:focus {
	background-color: #FFFFE7 !important;
}

/* 特定のフィールドも確実に#FFFFE7になるように強制設定 */
input#pdh-link_ledger_no.moveTab.cnt.TypeValue8.has-input,
input#pdh-ticket_no.moveTab.cnt.TypeValue8.has-input {
	background-color: #FFFFE7 !important;
}

input#pdh-link_ledger_no.moveTab.cnt.TypeValue8.has-input:focus,
input#pdh-ticket_no.moveTab.cnt.TypeValue8.has-input:focus {
	background-color: #FFFFE7 !important;
}

/* デフォルト状態も強制設定 */
input#pdh-link_ledger_no.moveTab.cnt.TypeValue8,
input#pdh-ticket_no.moveTab.cnt.TypeValue8 {
	background-color: #ffffff !important;
}

input#pdh-link_ledger_no.moveTab.cnt.TypeValue8:focus,
input#pdh-ticket_no.moveTab.cnt.TypeValue8:focus {
	background-color: #ffffff !important;
}

/* 追加の強制設定 - 他のすべての可能な組み合わせをカバー */
input[id="pdh-link_ledger_no"].has-input,
input[id="pdh-ticket_no"].has-input {
	background-color: #FFFFE7 !important;
}

input[id="pdh-link_ledger_no"]:focus.has-input,
input[id="pdh-ticket_no"]:focus.has-input {
	background-color: #FFFFE7 !important;
}

/* 最高レベルの詳細度で強制適用 */
body input#pdh-link_ledger_no.moveTab.cnt.TypeValue8.has-input,
body input#pdh-ticket_no.moveTab.cnt.TypeValue8.has-input,
body input[id="pdh-link_ledger_no"].has-input,
body input[id="pdh-ticket_no"].has-input {
	background-color: #FFFFE7 !important;
	color: inherit !important;
}

body input#pdh-link_ledger_no.moveTab.cnt.TypeValue8.has-input:focus,
body input#pdh-ticket_no.moveTab.cnt.TypeValue8.has-input:focus,
body input[id="pdh-link_ledger_no"]:focus.has-input,
body input[id="pdh-ticket_no"]:focus.has-input {
	background-color: #FFFFE7 !important;
	color: inherit !important;
}

/* === 最終オーバーライド === */
/* 絶対的な優先度で背景色を強制設定 */
html body table.ledger td input#pdh-link_ledger_no.has-input,
html body table.ledger td input#pdh-ticket_no.has-input,
html body input[id="pdh-link_ledger_no"].moveTab.cnt.TypeValue8.has-input,
html body input[id="pdh-ticket_no"].moveTab.cnt.TypeValue8.has-input {
	background-color: #FFFFE7 !important;
	background: #FFFFE7 !important;
}

/* フォーカス時も同様 */
html body table.ledger td input#pdh-link_ledger_no.has-input:focus,
html body table.ledger td input#pdh-ticket_no.has-input:focus,
html body input[id="pdh-link_ledger_no"].moveTab.cnt.TypeValue8.has-input:focus,
html body input[id="pdh-ticket_no"].moveTab.cnt.TypeValue8.has-input:focus {
	background-color: #FFFFE7 !important;
	background: #FFFFE7 !important;
}

/* デフォルト状態 */
html body table.ledger td input#pdh-link_ledger_no,
html body table.ledger td input#pdh-ticket_no,
html body input[id="pdh-link_ledger_no"].moveTab.cnt.TypeValue8,
html body input[id="pdh-ticket_no"].moveTab.cnt.TypeValue8 {
	background-color: #ffffff !important;
	background: #ffffff !important;
}

/* === 初回入力対策 === */
/* 入力中（フォーカス時）でも強制適用 */
input#pdh-link_ledger_no:focus,
input#pdh-ticket_no:focus {
	background-color: #ffffff !important;
}

/* 値がある場合の強制適用（複数パターン） */
input#pdh-link_ledger_no[value]:not([value=""]),
input#pdh-ticket_no[value]:not([value=""]),
input#pdh-link_ledger_no:not(:placeholder-shown),
input#pdh-ticket_no:not(:placeholder-shown) {
	background-color: #FFFFE7 !important;
	background: #FFFFE7 !important;
}

/* フォーカス時でも値がある場合 */
input#pdh-link_ledger_no:focus[value]:not([value=""]),
input#pdh-ticket_no:focus[value]:not([value=""]),
input#pdh-link_ledger_no:focus:not(:placeholder-shown),
input#pdh-ticket_no:focus:not(:placeholder-shown) {
	background-color: #FFFFE7 !important;
	background: #FFFFE7 !important;
}