:root {
	--cc-table-th: var(--cc-main-hl);
	--cc-table-tr: #F1F1F1;

	--cc-button: var(--cc-main);
	--cc-button-hl: var(--cc-main-hl);
	--cc-button-box: var(--cc-table-tr);

	--cc-link-hl:  var(--cc-input-hl);

	--cc-alert: #CC0000;
/*	--cc-bg-color: #e1e1e1;*/
	--cc-bg-color: var(--cc-main-bg-color);
	--cc-logo: #283891;

	--cc-red: Crimson;
	--cc-red-dark: DarkRed;
	--cc-blue: SteelBlue;
	--cc-green: Green;
	--cc-green-light: #329932;
	--cc-green-dark: DarkGreen;

	--ff-main:'Open Sans', sans-serif, "Microsoft YaHei";
}
body {
	margin:0px;
	margin-bottom: 40px;
	padding:0px;
	background-color:var(--cc-bg-color);
}
table {
	font-family: var(--ff-main);
	font-size: 14px;
	color:#333;
}
input[type="text"],
input[type="number"],
input[type="password"] {
	font-family: var(--ff-main);
	font-size: 14px;
	border: 1px solid #e6e6e6;
    padding: 5px 5px;
	color:#333;
	-text-transform:uppercase;
	outline: none;
}
input[type="text"]:hover,
input[type="text"]:focus,
input[type="number"]:hover,
input[type="number"]:focus,
input[type="password"]:hover,
input[type="password"]:focus {
	/*box-shadow: 0px 0px 0px 2px var(--cc-input-hl);*/
	outline: solid 2px var(--cc-input-hl);
}
input[type="text"]:read-only {
	background-color:#f6f6f6;
/*	cursor:not-allowed;*/
	cursor:default;
}
input[readonly]:hover,
input[readonly]:focus {
	border: 1px solid #e6e6e6;
	box-shadow: none;
}
input[type="file"] {
	font-family: var(--ff-main);
	font-size: 14px;
    padding: 5px 5px;
	color:#333;
}
input[type="checkbox"] {
	width:20px;
	height:20px;
}
input[type="text"]::placeholder {
	font-style: italic;
	font-size: 13px;
	color: grey;
}

select {
    padding: 5px 5px;
	color:#333;
	font-family: var(--ff-main);
	font-size: 14px;
	border: 1px solid #e6e6e6;
	box-sizing:none;
	outline: none;
}
select:hover, select:focus, select:active {
	border-color: #fff;
	outline: solid 2px var(--cc-input-hl);
}
textarea {
	font-family: var(--ff-main);
	font-size: 14px;
	color:#333;
	border: 1px solid #e6e6e6;
    padding: 5px 5px;
}
textarea:hover, textarea:focus, textarea:active {
	border-color: #fff;
	outline: solid 2px var(--cc-input-hl);
}
div {
	-webkit-tap-highlight-color: transparent; /* Disables the dim overlay */
	tap-highlight-color: transparent; /* Standard property (future-proofing) */	
	font-family: var(--ff-main);
	font-size: 14px;
    display: block;
	padding:0px;
	overflow:hidden;
}
input[type="text"]:-ms-input-placeholder ,
input[type="password"]:-ms-input-placeholder {
    color: #999;
}
i {margin:0 5px;}

button {
	font-family: var(--ff-main);
	font-size: 14px;
	color:#333;
}
/* ---------- class ---------- */
.info {
	font-family: var(--ff-main);
	font-size: 11px;
}
.title {
	font-family: var(--ff-main);
	font-size: 13px;
}
.header {
	font-size: 14px; font-family: 'Times New Roman', sans-serif;
}
.header1 {/* ---------- sales report, persoanl sales header ---------- */
	font-family: var(--ff-main);
	font-size: 16px;
}
.header2 {/* ---------- general report header ---------- */
	font-size: 18px; font-family: 'Times New Roman', sans-serif; font-weight:bold;
}
.header3 {/* ---------- bonus statement header ---------- */
	font-size: 18px; font-family: 'Times New Roman', sans-serif; font-weight:bold; text-decoration:underline; font-variant:small-caps;
}
.header4 {/* ---------- inventory bill header ---------- */
	font-size: 22px; font-family: 'Roboto', sans-serif; text-decoration:underline; font-weight:bold;
}
.header5 {
	font-family: 'Racing Sans One', cursive;
/*	color:#999;*/
	color: var(--cc-table-th);
	font-size: 20px;
	text-decoration: underline;
	height:40px;
}
.header6 {
	font-family: 'Racing Sans One', cursive;
	color: var(--cc-table-th);
	border-bottom:solid 3px var(--cc-table-th);
/*	background-color: var(--cc-main-bg-color);*/
	background-color: #f3f3f3;
	font-size:22px;
	text-align:center;
	width: 50%;
	padding: 10px;
}
.header_box1 {/* ---------- total amount box ---------- */
	display:block;
	margin:3px;
	padding:2px 30px;
	background-color:var(--cc-table-th);
	color:#fff;
	font-size:16px;
	border-radius:25px;
	text-align:center;
	float:left;
}
.bottom2 {
	font-size: 12px; font-family:"Times New Roman", Times, serif, "Microsoft YaHei";
}
.detail {
	font-family: var(--ff-main);
	font-size: 11px;
}
.note {
	font-family: var(--ff-main);
	font-size: 11px;
	color:#666666;
}
.dot {
	border-bottom-style:solid; border-bottom-color:#EEEEEE; border-bottom-width:1px;
}
.dot2 {
	border-bottom-style:solid; border-bottom-color:#FFCC00; border-bottom-width:1px;
}
.img_shadow {
	box-shadow: 0 10px 10px -8px rgba(0, 0, 0, 0.2);
}
.bg_color1 {
	background-color:white;
}
.bg_color2 {
	background-color:var(--cc-bg-color);
}
tr.activerow td {
/*	border-top:solid 2px var(--cc-input-hl);*/
	border-bottom:solid 1px var(--cc-link-hl);
	background-color:var(--cc-table-tr-active);
}
.logo {
/*	font-family: Montserrat;*/
	color: var(--cc-logo);
	text-align: center;
}
.logo-1 {
	font-size: 70px;
	font-weight: 900;
	line-height: 60px;
}
.logo-2 {
	font-size: 16px;
	font-weight: 500;
}
.logo-img {
	height: 80px;
	width: auto;
}

/* ---------- class button ---------- */
.button {
	margin: 0px 2px;
    padding: 0px 20px;
	border: 1px solid #e6e6e6;
	border-bottom: 3px solid #e6e6e6;
	outline: solid 2px white;
	/*box-shadow: 0px 0px 0px 2px white;*/
	background-color:#f6f6f6;
	border-radius:0px;
	font-family: var(--ff-main);
	font-size: 14px;
/*	font-weight: bold;*/
	color: var(--cc-table-th);
	cursor: pointer;
	height: 35px;
}
.button:hover, .button:focus, .button:active {
	border-bottom: 3px solid var(--cc-input-hl);
	color: var(--cc-input-hl);
/*	color:#fff;*/
/*	background-color:var(--cc-input-hl);*/
}
.button2 {
	font-size:18px;
	border:0px;
	background-color:transparent;
	color:#006699;
	cursor:pointer;
}
.button2:hover, .button2:focus, .button2:active {
	text-decoration:none;
	color:#FF6600;
}
.btn_next {
	border-bottom: 3px solid var(--cc-input-hl);
}
.btn_next:hover {
	border-bottom: 3px solid var(--cc-input-hl);
	color: var(--cc-input-hl);
}
.btn_next:disabled {
	color:#999;
	background-color:transparent;
	border: 1px solid #e6e6e6;
}
.button_add {
	text-indent:25px;
	background:url(../download/image/icon/b_addnew.png) left no-repeat;
}
.button_add:hover {
	border-bottom: 3px solid var(--cc-input-hl);
	color: var(--cc-input-hl);
}
.button_save {
	text-indent:25px;
	background:url(../download/image/icon/b_save.png) left no-repeat;
}
.button_save:hover {
	background:url(../download/image/icon/b_save2.png) left no-repeat;
	border-bottom: 3px solid var(--cc-input-hl);
	color: var(--cc-input-hl);
}
.button_edit {
	text-indent:25px;
	background:url(../download/image/icon/b_edit.png) left no-repeat;
}
.button_edit:hover {
	background:url(../download/image/icon/b_edit2.png left) no-repeat;
	border-bottom: 3px solid var(--cc-input-hl);
	color: var(--cc-input-hl);
}
.button_view {
	text-indent:25px;
	background:url(../download/image/icon/b_view.png) left no-repeat;
}
.button_view:hover {
	background:url(../download/image/icon/b_view2.png) left no-repeat;
	border-bottom: 3px solid var(--cc-input-hl);
	color: var(--cc-input-hl);
}
.button_print {
	text-indent:25px;
	background:url(../download/image/icon/b_print.png) left no-repeat;
}
.button_print:hover {
	background:url(../download/image/icon/b_print2.png) left no-repeat;
	border-bottom: 3px solid var(--cc-input-hl);
	color: var(--cc-input-hl);
}
.button_delete {
	text-indent:25px;
	background:url(../download/image/icon/b_delete.png) left no-repeat;
}
.button_delete:hover {
	background:url(../download/image/icon/b_delete2.png) left no-repeat;
	border-bottom: 3px solid var(--cc-input-hl);
	color: var(--cc-input-hl);
}
.button_edit2 {
	width:30px;
	height:30px;
	border:0;
	vertical-align:bottom;
	background:url(../download/image/icon/b_edit.png) no-repeat;
}
.button_edit2:hover {
	cursor: pointer;
	background:url(../download/image/icon/b_edit2.png) no-repeat;
}
.button_del {
	width:30px;
	height:30px;
	border:0;
	vertical-align:bottom;
	background:url(../download/image/icon/b_delete.png) no-repeat;
}
.button_del:hover {
	cursor: pointer;
	background:url(../download/image/icon/b_delete2.png) no-repeat;
}
.button_block {
	width:30px;
	height:30px;
	border:0;
	vertical-align:bottom;
	background:url(../download/image/icon/b_block.png) no-repeat;
}
.button_block:hover {
	cursor: pointer;
	background:url(../download/image/icon/b_block2.png) no-repeat;
}
/* ---------- button page ---------- */
.btn_page_label {
	font-size: 14px;
	margin: 0 0 0 5px;
    padding: 2px 8px;
	border: none;
	border-radius:25px;
	background-color:var(--cc-table-th);
	color:#fff;
}
.btn_page {
	font-size: 18px;
	color:var(--cc-table-th);
	width:30px;
	margin: 0px;
    padding: 2px;
	border: none;
	border-radius:25px;
	background-color:transparent;
}
.btn_page:hover, .btn_page:focus, .btn_page:active {
	cursor:pointer;
	color:#fff;
	border-color: var(--cc-main-hl);
	background-color:var(--cc-main-hl);
}
/* ---------- button box ---------- */
.buttonbox {
	padding: 10px;
	background-color: var(--cc-table-tr); 
	border-top: solid 2px white;
	text-align:center;
	height: 50px;
}
.buttonbox2 {
	background-color: var(--cc-table-tr); 
	border-top: solid 2px white;
	text-align:center;
	border-bottom: solid 3px var(--cc-main);
	height: 50px;
}
.buttonbox2r {
	background-color: var(--cc-table-tr); 
	border-top: solid 2px white;
	text-align:right;
	height: 50px;
}

/* ---------- hover ---------- */
.hvr-none {
	text-decoration: none;
}
.hvr-none a:link,
.hvr-none a:visited,
.hvr-none a:hover  {
	text-decoration: none;
}

.hvr-view {
	display: inline-block;
	vertical-align: middle;
	text-decoration: none;
	width:30px;
	height:30px;
	background:url(../download/image/icon/b_view.png) no-repeat;
}
.hvr-view:hover {
	background:url(../download/image/icon/b_view2.png) no-repeat;
}
.hvr-edit {
	display: inline-block;
	vertical-align: middle;
	text-decoration: none;
	width:30px;
	height:30px;
	background:url(../download/image/icon/b_edit.png) no-repeat;
}
.hvr-edit:hover {
	background:url(../download/image/icon/b_edit2.png) no-repeat;
}
.hvr-copy {
	display: inline-block;
	vertical-align: middle;
	text-decoration: none;
	width:30px;
	height:30px;
	background:url(../download/image/icon/b_copy.png) no-repeat;
}
.hvr-copy:hover {
	background:url(../download/image/icon/b_copy2.png) no-repeat;
}
.hvr-delete {
	display: inline-block;
	vertical-align: middle;
	text-decoration: none;
	width:30px;
	height:30px;
	background:url(../download/image/icon/b_delete.png) no-repeat;
}
.hvr-delete:hover {
	background:url(../download/image/icon/b_delete2.png) no-repeat;
}

/* -------------------------------------------------- */
/* shopping cart */
/* -------------------------------------------------- */
.hvr-addcart {
	display: inline-block;
	text-align:center;
	width:100%;
	height:80px;
 	background:url(../download/image/cart/ico_addcart1.png) bottom center no-repeat;
}
.hvr-addcart:hover {
	text-decoration:none;
 	background:url(../download/image/cart/ico_addcart2.png) bottom center no-repeat;
}
.hvr-checkout {
	display: inline-block;
	text-align:center;
	font-weight:bold;
	width:100%;
	height:70px;
	padding-top:10px;
 	background:url(../download/image/cart/ico_checkout1.png) bottom center no-repeat;
}
.hvr-checkout:hover {
	text-decoration:none;
 	background:url(../download/image/cart/ico_checkout2.png) bottom center no-repeat;
}
.hvr-clearcart {
	display: inline-block;
	text-align:center;
	font-weight:bold;
	width:100%;
	height:70px;
	padding-top:10px;
 	background:url(../download/image/cart/ico_clearcart1.png) bottom center no-repeat;
}
.hvr-clearcart:hover {
	text-decoration:none;
 	background:url(../download/image/cart/ico_clearcart2.png) bottom center no-repeat;
}

/* -------------------------------------------------- */
/* message */
/* -------------------------------------------------- */

.div-msg {
    margin-bottom: 15px;
    padding: 4px 12px;
}
.danger {
    background-color: #ffdddd;
    border-left: 6px solid #f44336;
}
.success {
    background-color: #ddffdd;
    border-left: 6px solid #4CAF50;
}
.infor {
    background-color: #e7f3fe;
    border-left: 6px solid #2196F3;
}
.warning {
    background-color: #ffffcc;
    border-left: 6px solid #ffeb3b;
}

/* -------------------------------------------------- */
/* ribbon message */
/* -------------------------------------------------- */
.ribbon_container {
	position:absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	width: 100%;
	overflow:hidden;
	opacity: 1;
}
.ribbon_msg {
	display:block;
	position:absolute;
	top: 15px;
	left: -80px;
	background-color:#FF0000;
	opacity:0.8;
	width:300px;
	height:55px;
	line-height:50px;
	color:#FFFFFF;
	font-size:16px;
	text-align:left;
	text-indent:80px;
	vertical-align:middle;
	transform: rotate(-45deg);
}
/* -------------------------------------------------- */
/* scroll to top */
/* -------------------------------------------------- */
.crunchify-top {
	display: none;
	position: fixed;
	font-size: 3rem;
	color: var(--cc-table-th);
	cursor: pointer;
	text-decoration: none;
	right: 2rem;
	bottom: 3rem;
}
.crunchify-top:hover {
	color: var(--cc-input-hl);
}

/* -------------------------------------------------- */
/* process loader */
/* -------------------------------------------------- */
/* Center the loader */
#loader {
	position: absolute;
	left: 50%;
	top: 50%;
	transform:translate(-50%,-50%);
	z-index: 1;
	-width: 150px;
	-height: 150px;
	margin: -30px 0 0 -30px;
	border: 6px solid #f3f3f3;
	border-radius: 50%;
	border-top: 6px solid #3498db;
	width: 50px;
	height: 50px;
	-webkit-animation: spin 2s linear infinite;
	animation: spin 2s linear infinite;
}
@keyframes spin {
	0%   { transform: rotate(0deg);   }
	100% { transform: rotate(360deg); }
}

/* -------------------------------------------------- */
/* search container */
/* -------------------------------------------------- */
.search-container {
	position: relative;
	/*min-width: min-content;*/
	/*max-width: max-content;*/
	display: flex;
	align-items: center; 
	overflow: visible;
}
.search-container > button {
	position: absolute;
	height: 100%;
	width: 50px;
	right: 0px;
}
.search-container:hover button {
	background-color: var(--cc-input-hl);
}
.search-container:hover i {
	color: white;
}
.search-container > button:hover + input {
	outline: solid 2px var(--cc-input-hl);
	border-left: solid 2px transparent;
}
