/* Hide the table if it overflox the widget boundries. */
#business-hours .inside {
	overflow: hidden;
}

#business-hours table {
	border-collapse: collapse;
	width: auto;
}

/* Bold the table head, foot and row head. */
#business-hours thead, #business-hours tfoot, #business-hours th {
	font-weight: bold;
	vertical-align: middle;
	width: auto;
}

#business-hours table tbody th {
	border-right: 15px solid transparent;
	width: auto;
}
#business-hours table tbody th.cn-metabox-label-empty {
	border-right: none;
	width: 0;
}

#business-hours table tbody {
	border-top: 15px solid transparent;
	border-bottom: 15px solid transparent;
}

#business-hours table tr td {
	border-right: 15px solid transparent;
}

/* The input fields are readonly to prevent manual text input. */
/* Set the background white and the width to the width of the timepicker. */
#business-hours input[type="text"].cn-timepicker.hasDatepicker {
	background-color: #ffffff;
	padding: 2px;
	max-width: 17.5em;
}

#business-hours table tr td p {
	margin-top: 16px;
}

#business-hours .cn-timepicker {
	background:url(../images/x.png) no-repeat right -10px center;
}
#business-hours .cn-timepicker.x {
	background-position: right 5px center;
}
#business-hours .cn-timepicker.onX {
	cursor:pointer;
}

/* The add/remove period buttons. */
#business-hours .button {
	border-radius: 50%;
	display: inline-block;
	font-family: monospace;
	font-size: 1.5em;
	font-weight: 600;
	height: 24px;
	line-height: 1em;
	max-height: 24px;
	min-height: auto;
	padding: 0 4px;
	text-align: center;
	width: 24px;
}

/* For timepicker. */
.ui-timepicker-div .ui-widget-header { margin-bottom: 8px; }
.ui-timepicker-div dl { text-align: left; }
.ui-timepicker-div dl dt { float: left; clear:left; padding: 0 0 0 5px; }
.ui-timepicker-div dl dd { margin: 0 10px 10px 45%; }
.ui-timepicker-div td { font-size: 90%; }
.ui-tpicker-grid-label { background: none; border: none; margin: 0; padding: 0; }

.ui-timepicker-rtl{ direction: rtl; }
.ui-timepicker-rtl dl { text-align: right; padding: 0 5px 0 0; }
.ui-timepicker-rtl dl dt{ float: right; clear: right; }
.ui-timepicker-rtl dl dd { margin: 0 45% 10px 10px; }
