
/* Link */
a:link,
a:visited {
/*  color: #00749E;*/
/*	color: #60A151;*/
	color: #33738B;
  text-decoration: none;
}

a:hover {
  color: #555;
  text-decoration: underline;
}
a.button {
  width: 80px;
  margin: 1px;
  padding: 5px 20px;
  font-size: 1em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}
a.button.bigbutton {
  width: 80px;
  margin: 1px;
  padding: 30px 40px;
  font-size: 1em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}
a.button.middlebutton {
  width: 80px;
  margin: 1px;
  padding: 15px 20px;
  font-size: 1em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

a.button:link, a.button:visited {
  color: #333;
  background-color: #ddd;
  border: outset 1px silver;
  text-decoration: none;
}
a.button:hover {
  color: #333;
  background-color: #f0f0f0;
  border: inset 1px silver;
  text-decoration: none;
}
span.button_disabled {
  width: 80px;
  margin: 1px;
  padding: 5px 20px;
  font-size: 1em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  color: #ACA899;
  background-color: #F5F4EA;
  border: solid 1px silver;
}
a.button[disabled], .button[disabled]:hover, .button[disabled]:active{
  border-color: #eaeaea;
  background: #fafafa;
  cursor: default;
  position: static;
  color: #999;
  /* Usually, !important should be avoided but here it's really needed :) */
  box-shadow: none !important;
  text-shadow: none !important;
}

/* Form */
input[type=text], input[type=password],
   select, textarea { border: 1px solid silver; padding: 0.2em; margin:0.2em auto; }
input:focus, select:focus, textarea:focus { background-color: #ffd }

/* Headline */

h2 {
  padding: 0.2em 0.5em;
  margin: 1em auto;
/*  color: #00749E;*/
/*	color: #60A151;*/
	color: #578B9E;
  border-left: 5px solid #666;
  border-bottom: 1px solid #666;
  font-size: 1.5em;
}
h3 {
  margin: 1em auto 1em auto;
  padding: 0.2em 0.5em;
  background-color: #5388D6;
  font-size: 1.1em;
  color: #fff;
}
h4 {
  margin: 0; 
  font-size: 1.1em;
  color: #666;
}

/* Navigation */
div.breadcrumb {
    font-size: 0.9em;
}

/* Paging */
div.paging {
    color: #ccc;
    margin-top: 1em;
    margin-bottom: 1em;
    text-align: center;
    font-size: 0.9em;
}
div.paging div.disabled {
    color: #ddd;
    display: inline;
}
div.paging span {
}
div.paging span.current {
    color: #000;
}
div.paging span a {
}


/* Notices and Errors */
.success {
/*
    background-color: green;
*/
    background-color: #00749E;
    color: #fff;
    padding: 0.8em;
    margin: 1em 0;
}
.error {
    background-color: #e32;
    color: #fff;
    font-size: 1.1em;
    line-height: 140%;
    padding: 0.8em;
    margin: 1em 0;
}
.notice {
/*    background-color: #ffdd66;*/
    background-color: #64D34A;
    color: #000;
    font-size: 1.1em;
    line-height: 140%;
    padding: 0.8em;
    margin: 1em 0;
}
.info {
/*    background-color: #ffffcc;*/
    background-color: #C2E8B9;
    font-size: 1em;
    line-height: 120%;
    padding: 0.8em;
    margin: 1em 0;
}

table.list {
    margin: 0 auto;
    width: 100%;
    border-collapse: collapse;
    border-spacing: 1px;
    border: 1px solid #d5d5d5;
}

table.list th,
table.list td {
    padding: 0.2em 5px;
    border-left: 1px solid #d5d5d5;
    border-right: 1px solid #d5d5d5;
}

table.list th {
    background-color: #eff0f1;
    color: #666;
    border: 1px solid #d5d5d5;
    font-size: 1.1em;
    white-space: nowrap;
}

table.list th a {
/*	color: #00749E;*/
/*	color: #60A151;*/
	color: #33738B;

}

table.list tr.row0 {
    background-color: #fff;
}
table.list tr.row1 {
    background-color: #eef;
}
table.list tr.hover {
    background-color: #ffd;
}
table.list_bottle {
    margin: 0;
    table-layout: fixed;
    border-collapse: collapse;
    border-spacing: 0;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    border-left: none;   /* ← 左右は div に任せる */
    border-right: none;
}


table.list_bottle th,
table.list_bottle td {
    height: 37px;
    padding: 0.2em 5px;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
}

table.list_bottle th {
/*    background-color: #eff0f1;*/
	background-color:#E6F4FA;
    color: #666;
    border: 1px solid #ccc;
    font-size: 1.1em;
/*    white-space: nowrap;*/
}

table.list_bottle tr.row0 {
    background-color: #fff;
}
table.list_bottle tr.row1 {
    background-color: #fff;
}
table.list_bottle tr.hover {
    background-color: #fff;
}

table.list_bottle td input,
table.list_bottle td textarea {
    margin: 0px;
    padding: 0px;
}

table.form {
    margin: 0 auto 10px;
    width: 100%;
    border-collapse: collapse;
	border: 1px solid #ccc;
}
table.form th,
table.form td {
    text-align: left;
	vertical-align: middle;
/*    padding-left: 1em;*/
    padding-left: 5px;
    font-weight: normal;
/*    border-bottom: 1px dotted #ccc;*/
	border: 1px solid #ccc;
}
table.form th {
    width: 120px;
	font-weight: bold;
/*	background-color:#E9F7E6;*/
	background-color:#E6F4FA;
}
table.form td {
	font-weight: normal;
}

table th.inner {
    margin: 0 auto 10px;
	border:none;
	border-right:1px solid #ccc;
	border-bottom:1px dotted #ccc;
}
table.form td.inner {
    margin: 0 auto 10px;
	border:none;
	border-bottom:1px dotted #ccc;
}
table.form td.inner_btm {
    margin: 0 auto 10px;
	border:none;
	border-top:1px dotted #ccc;
}

.td_hide {
	background-color:#eeeeee;
}

table.search {
    margin: 0 auto 10px;
    width: 100%;
    border-collapse: collapse;
	border: 1px solid #ccc;
}
table.search th,
table.search td {
	text-align: left;
	vertical-align: middle;
/*	padding-left: 1em;*/
    padding-left: 5px;
	border: 1px solid #ccc;
}
table.search th {
	width: 120px;
	font-weight: bold;
/*	background-color:#E9F7E6;*/
	background-color:#E6F4FA;
/*	border-top: 1px dotted #ccc;
	border-right: 1px dotted #ccc;
	border-left: 1px dotted #ccc;*/
}
table.search td {
/*    background-color: #ffffff;*/
	font-weight: normal;
/*	border-top: 1px dotted #ccc;*/
}
table.search td.btn {
	padding: 5px;
	text-align:center;
	vertical-align: bottom;
}



/* Debugging */
.debug {
    color: #000;
    background: #f0f0f0;
    padding: 1em;
}

/* filters */
.padding { padding: 5px 10px; }
.nowrap { white-space: nowrap; }
.small { font-size: 0.8em; }
.xsmall { font-size: 0.7em; }
.large { font-size: 1.2em; }
.center { text-align: center; }
.right { text-align: right; }
.highlight  { background-color: #ffb; }
.highlight2 { background-color: #f6f6ff; }
.highlight3 { background-color: #FEE6E6; }
.highlight4 { background-color: #E4F1E1; }
.required { color: #f60; font-size: 0.9em; font-weight: normal; }
.red { color: red; }
.bold { font-weight: bold; }
.deleted { color: #999 !important; }

/* back color */
.backred { color: black; background-color: red; }
.lightgreen { background-color: #80ff80 !important; }
.lightpurple { background-color: #ccccff !important; }
.lightpink { background-color: #ffeeff !important; }

.space { margin: auto; padding: 10px 0px; }
.space-bottom { margin: auto; padding-bottom: 10px; }
.space-top { margin: auto; padding-top: 10px; }
.space-right { margin: auto; padding-right: 10px; }
.space-left { margin: auto; padding-left: 10px; }
p.indent { margin: 0.5em 20px 0.5em 5px; }


div.box {
/*    background: #fff url(../images/box.gif) top left repeat-x;*/
}

div.panel {
    margin: 0;
    padding: 0.5em 1em;
/*    border: 1px solid #ccc;
    background-color: #f1f1f1;*/
}


div.panel2 {
    margin: 0;
    padding: 0;
    border: 1px solid #ccc;
    background: #fff url(../images/box.gif) top left repeat-x;
}

div.panel .item_flat {
    float: left;
}
div.panel .item {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

input.ime_active {
	ime-mode:active;
}
input.ime_inactive {
	ime-mode:inactive;
}
input.ime_disabled {
	ime-mode:disabled;
}
textarea {
	ime-mode:active;
}

table.noborder {
    margin: 0 auto 10px;
    width: 100%;
    border-collapse: collapse;
	border: none;
}
table.noborder th,
table.noborder td {
    text-align: left;
	vertical-align: middle;
    padding-left: 5px;
    font-weight: normal;
	border: none;
}
table.noborder th {
    width: 120px;
}


table.list_journal {
    margin: 0 auto 10px;
    width: 100%;
    border-collapse: collapse;
	border: 1px solid #ccc;
}
table.list_journal th,
table.list_journal td {
    text-align: right;
	vertical-align: middle;
    padding-left: 5px;
    font-weight: normal;
	border: 1px solid #ccc;
}
table.list_journal th {
	text-align: center;
	vertical-align: middle;
	font-weight: bold;
/*	background-color:#fff;*/
	background-color:#E6F4FA;
}
/*summary detail header color change*/
table#summary_edit.list_journal th:nth-child(n+16) {
	background-color:#B4C6E7;
}


/* ★ 横スクロール用ラッパ（既に inline style で指定しているが、参考） */
/*
div.bottle-wrapper {
  margin-top: 10px;
  width: 1280px;
  overflow-x: auto;
}
*/

.bottle-scroll {
  margin-top: 10px;
  width: 1280px;
  overflow-x: auto;
  border-left: 1px solid #ccc;
  border-right: 1px solid #ccc;
}

/* --- ボトル一覧：固定列 --- */

/* 来店日列：ヘッダ & データ共通 */
.list_bottle th.col-date,
.list_bottle td.col-date {
  position: sticky;
  left: 0;
  z-index: 20;
  background: #fff;
  border-left: none;   /* 左端は .bottle-scroll の枠を使う */
}

/* ヘッダだけ色を変える */
.list_bottle th.col-date {
  background: #E6F4FA;
}

/* 備考列：ヘッダ & データ共通 */
.list_bottle th.col-note,
.list_bottle td.col-note {
  position: sticky;
  right: 0;
  z-index: 20;
  background: #fff;
  border-right: none;  /* 右端は .bottle-scroll の枠を使う */
}

/* ヘッダだけ色を変える */
.list_bottle th.col-note {
  background: #E6F4FA;
}

/* すべてのセルを疑似要素の親にしておく（sticky との相性もOK） */
table.list_bottle th,
table.list_bottle td {
  position: relative;
}

/* 来店日列の「右側の線」を疑似要素で描く */
.list_bottle th.col-date::after,
.list_bottle td.col-date::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;          /* セルの右端 */
  width: 1px;
  height: 100%;
  background: #ccc;  /* 枠線色 */
}

/* 備考列の「左側の線」を疑似要素で描く */
.list_bottle th.col-note::before,
.list_bottle td.col-note::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;           /* セルの左端 */
  width: 1px;
  height: 100%;
  background: #ccc;
}
