
/* TOC /// */

#reader #book .book-toc {
	display: inline-block;
	width: 30%;
	min-width: 360px;
	height: 80%;
	min-height: 300px;
	font-size: 14px;
	bottom: 60px;
	-webkit-transition: left .5s;
	-moz-transition: left .5s;
	-ms-transition: left .5s;
	transition: left .5s;
	left: -110%;
}
#reader #book .book-toc .bubble-header {
	height: 45px;
}
#reader #book .book-toc .bubble-content {
	height: 89%;
	height: calc(100% - 57px); 
}
#reader #book .book-toc .bubble-footer {
	height: 12px;
}
#reader #book .book-toc.visible {
	left: 5px;
}
#reader[data-isapp="true"] #book .book-toc {
	min-height: 150px;
}
#reader #book .book-toc,
#reader #book .book-toc[data-tab="Contents"],
#reader #book .book-toc[data-tab="Contents"] > * {
	background-color: #65C9BB;
}
#reader #book .book-toc[data-tab="Resources"],
#reader #book .book-toc[data-tab="Resources"] > * {
	background-color: #FF9326;
}
#reader #book .book-toc[data-tab="Bookmarks"],
#reader #book .book-toc[data-tab="Bookmarks"] > * {
	background-color: #FC6B85;
}
#reader #book .book-toc[data-tab="MyTagging"],
#reader #book .book-toc[data-tab="MyTagging"] > * {
	background-color: #B86BE6;
}
#reader #book .book-toc:after {
	left: 10px;
}
#reader #book .book-toc:after,
#reader #book .book-toc[data-tab="Contents"]:after {
	border-color: #65C9BB transparent;
}
#reader #book .book-toc[data-tab="Resources"]:after {
	border-color: #FF9326 transparent;
}
#reader #book .book-toc[data-tab="Bookmarks"]:after {
	border-color: #FC6B85 transparent;
}
#reader #book .book-toc[data-tab="MyTagging"]:after {
	border-color: #B86BE6 transparent;
}
/*#book .book-toc .icon { display: inline-block; cursor: pointer; }*/

/* TOC Top */

#reader #book .book-toc .book-toc-filter-wrapper {
	width: 70%;
	width: calc(100% - 120px);
	margin: 6px 0 3px 6px;
}
#reader #book .book-toc[data-tab="Contents"] .book-toc-filter-wrapper {
	visibility: hidden;
	width: 0;
	/*display: none;*/
}
#reader #book .book-toc .book-toc-filter-wrapper input[type="search"] {
	font-size: 14px;
}
#reader #book .book-toc .button-viewmode {
	position: absolute;
	display: none;
	width: 35px;
	height: 35px;
	right: 50px;
	margin: 6px;
}

#reader #book .book-toc[data-tab="Contents"]:not([data-thumbnail-mode="list-only"]) .button-viewmode { display: inline-block; }
#reader #book .book-toc .bubble-close { margin: 6px; }
/* //TOC Top */

/* TOC Main */

#reader #book .book-toc .book-toc-main {
	width: 99%;
	width: calc(100% - 10px);
	height: 100%;
	/*height: calc(100% - 55px);*/
	font-size: 16px;
	
	/*background-color: #D8D8D8;*/
	background-color: transparent;
}
#reader #book .book-toc .book-toc-main > * {
	display: none;
}
#reader #book .book-toc .book-toc-main .book-toc-item {
	position: relative;
	padding: .5em;
	padding-left: 1em;
	border: 1px #C6C6C6 solid;
	border-left-width: 0;
	border-right-width: 0;
	background-color: #D8D8D8;
	color: #18222E;
	height: auto;
	line-height: normal;
}
#reader #book .book-toc .book-toc-main .book-toc-item .book-toc-item {
	background-color: #EBEBEB;
}
#reader #book .book-toc .book-toc-main .book-toc-item .book-toc-item .book-toc-item {
	background-color: #FFF;
}
#reader #book .book-toc .book-toc-main .book-toc-item[data-restype] ~ .custom-listview.book-toc-item > .book-toc-item {
	border: none;
}
#reader #book .book-toc .book-toc-main .book-toc-item:before {
	content: '\25B6';
	padding-right: .5em;
	color: #18222E;
	font-size: 1.5em;
	vertical-align: top;
}
html[data-user-agent*="Firefox"]
#reader #book .book-toc .book-toc-main .book-toc-item:before {
	font-size: 1em;
	vertical-align: middle;
}
#reader #book .book-toc[data-tab="Bookmarks"] .book-toc-main .book-toc-item:before {
	display: none;
}
#reader #book .book-toc .book-toc-main .book-toc-item:focus:before,
#reader #book .book-toc .book-toc-main .book-toc-item:active:before {
	color: #26FFFF;
}
#reader #book .book-toc .book-toc-main .book-toc-item[selected]:before {
	content: '\25BC';
}
html[data-user-agent*="Firefox"]
#reader #book .book-toc .book-toc-main .book-toc-item[selected]:before {
	margin-right: -2px;
}
html[data-user-agent*="Trident"]
#reader #book .book-toc .book-toc-main .book-toc-item[selected]:before {
	font-size: .75em;
	line-height: 2em;
	margin-right: -3px;
}
html[data-user-agent*="Android"]
#reader #book .book-toc .book-toc-main .book-toc-item[selected]:before {
	font-size: 3em;
	line-height: .75em;
	margin-right: -13px;
}
#reader #book .book-toc .book-toc-main .book-toc-item.custom-listview {
	-webkit-transition-property: height;
	-webkit-transition-duration: .5s;
	transition-property: height;
	transition-duration: 1s;
	padding-right: 0;
	padding-top: 0;
	padding-bottom: 0;
	border-bottom-width: 0;
	border-top-width: 0;
	background-color: rgba(255, 255, 255, .2);
}
#reader #book .book-toc .book-toc-main .book-toc-item.custom-listview:before {
	display: none;
}
#reader #book .book-toc .book-toc-main .book-toc-item .book-toc-item:before {
	content: '\203a';
}
#reader #book .book-toc .book-toc-main .book-toc-item .book-toc-item[selected]:not([data-restype]):before {
	display: inline-block;;
	-webkit-transform-origin: 20% 55%;
	-moz-transform-origin: 20% 55%;
	transform-origin: 20% 55%;
	-webkit-transform: rotate(90deg);
	-moz-transform: rotate(90deg);
	transform: rotate(90deg);
}
html[data-user-agent*="Trident"]
#reader #book .book-toc .book-toc-main .book-toc-item .book-toc-item[selected]:not([data-restype]):before {
	font-size: 1.5em;
	line-height: 1em;
	margin-right: -3px;
}
html[data-user-agent*="Android"]
#reader #book .book-toc .book-toc-main .book-toc-item .book-toc-item[selected]:not([data-restype]):before {
	font-size: 1.5em;
	line-height: 1.5em;
	margin-right: 0;
}
html[data-user-agent*="Trident"]
#reader #book .book-toc .book-toc-main .book-toc-item .book-toc-item[selected][data-restype]:before,
html[data-user-agent*="Android"]
#reader #book .book-toc .book-toc-main .book-toc-item .book-toc-item[selected][data-restype]:before {
	margin-right: 0;
}
#reader #book .book-toc .book-toc-main .book-toc-item[data-restype]:not(.shared) {
	padding-left: 0;
}
#reader #book .book-toc .book-toc-main .book-toc-item[data-restype]:before {
	content: '';
	padding-right: 0;
	-webkit-transform: none;
	-moz-transform: none;
	transform: none;
}
#reader #book .book-toc .book-toc-main .book-toc-item.shared:after {
	content: '';
	position: absolute;
	display: inline-block;
	left: 0;
}
#reader #book .book-toc .book-toc-main .book-toc-item[data-restype].shared:before {
	margin-left: 15px;
}
#reader #book .book-toc .book-toc-main .book-toc-item[data-restype] ~ .book-toc-item.custom-listview .book-toc-item {
	cursor: default;
}
#reader #book .book-toc .book-toc-main .book-toc-item[data-restype].shared ~ .book-toc-item.custom-listview .book-toc-item {
	border: none;
}
#reader #book .book-toc .book-toc-main .book-toc-item[data-restype] ~ .book-toc-item.custom-listview .book-toc-item:before {
	display: none
}
#reader #book .book-toc .book-toc-main .book-toc-item .book-toc-item .book-toc-item[data-restype] ~ .book-toc-item.custom-listview .book-toc-item-preview-container {
	padding-left: 0;
}
#reader #book .book-toc .book-toc-main .book-toc-item.assigned .book-toc-item-label:after {
	content: '';
	position: absolute;
	/*display: inline-block;*/
	top: 0;
}
#reader #book .book-toc .book-toc-main .book-toc-item .book-toc-item-label,
#reader #book .book-toc .book-toc-main .book-toc-item .book-toc-item-preview {
	left: 0;
	right: 0;
	width: 80%;
	width: calc(100% - 75px);
	overflow: hidden;
	text-overflow: ellipsis;
	word-break: break-all;
	/*vertical-align: middle;*/
	height: auto;
}
#reader #book .book-toc .book-toc-main .book-toc-item .book-toc-item-label {
	text-indent: 4px;
}
#reader #book .book-toc .book-toc-main .book-toc-item[data-restype="drawing"] .book-toc-item-label {
	text-indent: 14px;
}
#reader #book .book-toc .book-toc-main .book-toc-item .book-toc-item-preview {
	overflow: auto;
	padding: .25em 6px;
	max-height: 100px;
	min-height: 4em;
	border: 1px solid #AAA;
	cursor: default;
	margin: .25em 0;
}
html[data-user-agent*="Chrome"][data-user-agent*="Gecko"]
#reader #book .book-toc .book-toc-main .book-toc-item .book-toc-item-preview {
	font-size: .8em;
	line-height: 2em;
}
#reader #book .book-toc .book-toc-main .book-toc-item .book-toc-item-preview .image-caption {
	line-height: 2em;
}
#reader #book .book-toc .book-toc-main .book-toc-item .book-toc-item-preview .image-preview {
	/*width: 60px;*/
	height: 60px;
	background-position: top left;
	background-size: contain;
	background-repeat: no-repeat;
}
#reader #book .book-toc .book-toc-main .book-toc-item .book-toc-item-label {
	line-height: 38px;
	white-space: nowrap;
}

#reader #book .book-toc .book-toc-main .book-toc-item[data-restype].shared .book-toc-item-label {
	width: 75%;
	width: calc(100% - 90px);
}
#reader #book .book-toc .book-toc-main .book-toc-item .book-toc-item-label .book-toc-item-title {
	/*height: 50%;*/
	/*line-height: 1em;*/
	display: inline-block;
}
#reader #book .book-toc .book-toc-main .book-toc-item .book-toc-item-label .book-toc-item-subtitle {
	display: none;
	height: 50%;
	line-height: 1.5em;
	color: #888;
}
/*
html[data-user-agent*="Chrome"][data-user-agent*="Gecko"]
#reader #book .book-toc .book-toc-main .book-toc-item .book-toc-item-label .book-toc-item-subtitle {
	font-size: .5em;
}
*/
/** Browser IE11 **/
html[data-user-agent*="Trident"][data-user-agent*="Gecko"]
#reader #book .book-toc .book-toc-main .book-toc-item .book-toc-item-label .book-toc-item-subtitle,
html[data-user-agent*="Firefox"]
#reader #book .book-toc .book-toc-main .book-toc-item .book-toc-item-label .book-toc-item-subtitle {
	font-size: .8em;
}
#reader #book .book-toc .book-toc-main .book-toc-item .book-toc-item-extraInformation {
	/*position: absolute;
	bottom: 0;
	line-height: 1em;
	height: 1em;*/
	/*display: block;
	left: 2em;*/
	font-size: .8em;
	width: 90%;
	width: calc(100% - 2em);
	height: auto;
	line-height: normal;
	cursor: default;
}
#reader #book .book-toc .book-toc-main .book-toc-item .book-toc-item-extraInformation table {
	width: 70%;
}
#reader #book .book-toc .book-toc-main .book-toc-item .book-toc-item-extraInformation td,
#reader #book .book-toc .book-toc-main .book-toc-item .book-toc-item-extraInformation th {
	padding: 0;
	line-height: 0;
}
#reader #book .book-toc .book-toc-main .book-toc-item .book-toc-item-extraInformation td {
	height: 35px;
}
#reader #book .book-toc .book-toc-main .book-toc-item .book-toc-item-extraInformation th {
	height: 27px;
}
#reader #book .book-toc .book-toc-main .book-toc-item .book-toc-item-extraInformation th:nth-child(1) {
	border-bottom: 1px solid #999;
}
#reader #book .book-toc .book-toc-main .book-toc-item .book-toc-item-extraInformation .button-delete {
	width: 0;
	-webkit-transition: width .8s;
	transition: width .8s;
}
#reader #book .book-toc .book-toc-main[EditMode] .book-toc-item .book-toc-item-extraInformation .button-delete {
	width: 27px;
}
#reader #book .book-toc .book-toc-main .book-toc-item .book-toc-item-pageno {
	float: right;
	padding-right: 5px;
	width: 20px;
	text-align: center;
	line-height: 38px;
}

#reader #book .book-toc[data-tab="Contents"] .book-toc-main [Contents],
#reader #book .book-toc[data-tab="Resources"] .book-toc-main [Resources],
#reader #book .book-toc[data-tab="Bookmarks"] .book-toc-main [Bookmarks],
#reader #book .book-toc[data-tab="MyTagging"] .book-toc-main [MyTagging] {
	display: block;
}
#reader #book .book-toc[data-tab="Contents"] .book-toc-main .book-toc-thumbnailview,
#reader #book .book-toc[data-tab="Contents"][data-thumbview="true"] .book-toc-main .book-toc-item {
	display: none;
}
#reader #book .book-toc[data-tab="Contents"][data-thumbview="true"]:not([data-thumbnail-mode="list-only"]) .book-toc-main .book-toc-thumbnailview {
	display: block;
	color: #18222E;
}
#reader #book .book-toc[data-tab="Contents"][data-thumbview="true"] .book-toc-main .book-toc-thumbnailview .book-toc-thumbnailview-chapter-wrapper {
	width: 100%;
	padding: 1em;
	vertical-align: top;
	float: left;
	background-color: #D8D8D8;
	font-weight: bold;
}
#reader #book .book-toc[data-tab="Contents"][data-thumbview="true"] .book-toc-main .book-toc-thumbnailview .book-toc-thumbnailview-thumbnail-wrapper {
	float: left;
	vertical-align: top;
	padding: 10px 0;
	/*width: 30%;
	max-width: 120px;*/
	width: 100px; height: 140px;
	cursor: pointer;
}
#reader #book .book-toc[data-tab="Contents"][data-thumbview="true"] .book-toc-main .book-toc-thumbnailview .book-toc-thumbnailview-thumbnail-wrapper .book-toc-thumbnailview-thumbnail {
	text-align: center;
}

#reader #book .book-toc[data-tab="Contents"][data-thumbview="true"] .book-toc-main .book-toc-thumbnailview .book-toc-thumbnailview-thumbnail-wrapper .book-toc-thumbnailview-thumbnail img {
	/*width: 80px;
	height: auto;
	max-height: 120px;*/
	max-width: 80px; max-height: 100px;
	box-shadow: grey 2pt 2pt 4pt;
}

#reader #book .book-toc[data-tab="Contents"][data-thumbview="true"] .book-toc-main .book-toc-thumbnailview .book-toc-thumbnailview-thumbnail-wrapper .book-toc-thumbnailview-pageno {
	text-align: center;
}
#reader #book .book-toc[data-tab="Bookmarks"] .book-toc-main .book-toc-item {
	padding-left: .5em;
	height: 35px;
}
#reader #book .book-toc[data-tab="Bookmarks"] .book-toc-main .book-toc-item-label-wrapper {
	display: inline-block;
	width: 90%;
	width: calc(100% - 35px);
	height: 35px;
}
#reader #book .book-toc[data-tab="Bookmarks"] .book-toc-main .book-toc-item-label-wrapper .book-toc-item-label-name {
	width: 100%;
	line-height: 20px;
	text-indent: 5px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
#reader #book .book-toc[data-tab="Bookmarks"] .book-toc-main .book-toc-item-label-wrapper .book-toc-item-label-page {
	width: 100%;
	line-height: 15px;
	color: #787878;
	font-size: .8em;
	text-indent: 5px;
	white-space: nowrap;
	text-overflow: ellipsis;
}
#reader #book .book-toc .book-toc-main .button-edit {
	width: 27px;
	height: 27px;
}
#reader #book .book-toc[data-tab="Bookmarks"] .book-toc-main .editing .button-edit {
	display: none;
}
#reader #book .book-toc .book-toc-item-inline-edit {
	position: absolute;
	display: none;
	top: 0;
	left: 0;
	width: 100%;
	width: calc(100% - 10px);
	padding: 0 5px;
	border-left: none;
	border-right: none;
}
#reader #book .book-toc[data-tab="Bookmarks"] .book-toc-main[EditMode] .book-toc-item-inline-edit {
	display: block;
}
#reader #book .book-toc[data-tab="Bookmarks"] .book-toc-main .book-toc-item-inline-edit > :not(.icon) {
	position: relative;
	display: inline-block;
	vertical-align: top;
	height: 28px;
}
#reader #book .book-toc[data-tab="Bookmarks"] .book-toc-main .book-toc-item-inline-edit .book-toc-item-remove {
	width: 27px;
}
#reader #book .book-toc[data-tab="Bookmarks"] .book-toc-main .book-toc-item-inline-edit .book-toc-item-input {
	width: 80%;
	/*width: calc(100% - 80px);*/
	width: calc(100% - 75px);
	padding: 0 5px 0 0;
}
#reader #book .book-toc[data-tab="Bookmarks"] .book-toc-main .book-toc-item-inline-edit .book-toc-item-input > input {
	display: inline-block;
	margin: 0;
	margin-top: 2px;
	padding: 0;
	width: 100%;
	height: 23px;
	line-height: 21px;
}
#reader #book .book-toc[data-tab="Bookmarks"] .book-toc-main .book-toc-item-inline-edit .book-toc-item-confirm {
	width: 35px;
	color: #404650;
	height: 35px;
	text-align: center;
	line-height: 35px;
	font-size: 24px;
	cursor: pointer;
}
#reader #book .book-toc[data-tab="Bookmarks"] .book-toc-main .book-toc-item-inline-edit .book-toc-item-confirm:focus,
#reader #book .book-toc[data-tab="Bookmarks"] .book-toc-main .book-toc-item-inline-edit .book-toc-item-confirm:active {
	color: #26FFFF;
}

#reader #book .book-toc[data-tab="Contents"] .book-toc-main[onFilter="Contents"] .book-toc-item:not([onFilterMatch]),
#reader #book .book-toc[data-tab="Bookmarks"] .book-toc-main[onFilter="Bookmarks"] .book-toc-item:not([onFilterMatch]),
#reader #book .book-toc[data-tab="Resources"] .book-toc-main[onFilter="Resources"] .book-toc-item:not([onFilterMatch]),
#reader #book .book-toc[data-tab="MyTagging"] .book-toc-main[onFilter="MyTagging"] .book-toc-item:not([onFilterMatch]),
#reader #book .book-toc .book-toc-main .book-toc-item.disabled:before
{ display: none; }

#reader #book .book-toc .book-toc-main[onFilter][EditMode] .book-toc-item-inline-edit {
	display: block;
}
/* //TOC Main */

/* TOC Tabs */

#reader #book .book-toc .book-toc-tabs {
	z-index: 1;
	position: absolute;
	white-space: nowrap;
	//right: -55px;
	//left: 100%;
	//left: calc(100% - 1px);
	right: 0px;
	-webkit-transform: translate3d(55px,0,0);
	-moz-transform: translate3d(55px,0,0);
	-ms-transform: translate3d(55px,0,0);
	transform: translate3d(55px,0,0);
}
#reader #book .book-toc .book-toc-tabs .book-toc-tab {
	position: relative;
	display: block;
	cursor: pointer;
	outline: none;
	width: 56px;
}
#reader #book .book-toc .book-toc-tabs .book-toc-tab:not(:first-child) {
	margin-top: -15px;
}
#reader #book .book-toc .book-toc-tabs .book-toc-tab:focus,
#reader #book .book-toc .book-toc-tabs .book-toc-tab:active {
	z-index: 2;
}
#reader #book .book-toc[data-tab="Contents"] .book-toc-tabs .book-toc-tab[data-name="Contents"],
#reader #book .book-toc[data-tab="Resources"] .book-toc-tabs .book-toc-tab[data-name="Resources"],
#reader #book .book-toc[data-tab="Bookmarks"] .book-toc-tabs .book-toc-tab[data-name="Bookmarks"],
#reader #book .book-toc[data-tab="MyTagging"] .book-toc-tabs .book-toc-tab[data-name="MyTagging"] {
	z-index: 1;
}

/* //TOC Tabs */

/* /// TOC */
