/* Number Format */
.rgl-formatted-number,
.rgl-formatted-number-with-alt {
	display: inline-block;
	text-align: right;
	white-space: nowrap;
}

.rgl-formatted-number-with-alt > .rgl-formatted-number {
	display: block;
	overflow: hidden;
}

.rgl-formatted-number > .rgl-formatted-value {
	display: inline-block;
	text-align: right;
}

.rgl-unit,
.rgl-formatted-number > .rgl-formatted-unit {
	display: inline-block;
	/* width: 4.5ex; Removed because of problems with German UOMs*/
	text-align: left;
}

.rgl-formatted-number > .rgl-formatted-currency {
	display: inline-block;
}

.rgl-unit:before,
.rgl-formatted-number > .rgl-formatted-unit:before {
	content: '';
	color: #660000;
	padding-left: 3px;
}

.rgl-formatted-number > .rgl-formatted-unit > .rgl-formatted-value {
	padding-left: 3px;
}

.rgl-formatted-number .rgl-small {
	color: #666666;
}

a .rgl-formatted-number .rgl-formatted-value {
	border-bottom: 1px solid transparent;
}

a:hover .rgl-formatted-number .rgl-formatted-value {
	border-color: #0000ff;
}


/* Address Format */
dl.rgl-address {
	width: 40ex;
}

dl.rgl-address dt {
	font-weight: normal;
}

dl.rgl-address dd {
	margin-left: 0;
}

dl.rgl-address input {
	width: 97%;
}

dl.rgl-address input.rgl-address-city {
	width: 47%;
}

dl.rgl-address input.rgl-address-state {
	width: 10%;
}

dl.rgl-address input.rgl-address-zip {
	width: 32%;
}


/* Form and Text Formats */
textarea {
	width: 97%;
	*width: auto;
}

.rgl-date {
	width: 13ex;
}

.rgl-control-number {
	width: 12ex;
}

.rgl-line-number {
	width: 5ex;
}

.rgl-long-text {
	width: 40ex;
}

.rgl-comment {
	display: inline-block;
	max-width: 25em;
	white-space: pre-line;

	overflow-wrap: break-word; /* css standard */
	word-wrap: break-word; /* IE Edge */
}

.rgl-html-comment {
	display: inline-block;
	max-width: 25em;

	overflow-wrap: break-word; /* css standard */
	word-wrap: break-word; /* IE Edge */
}

.rgl-customer-number ~ .rgl-search-input-descriptor,
.rgl-vendor-number ~ .rgl-search-input-descriptor,
.rgl-contact ~ .rgl-search-input-descriptor,
.rgl-routing ~ .rgl-search-input-descriptor {
	width: 30ex;
}

.rgl-item-number ~ .rgl-search-input-descriptor {
	width: 35ex;
}

.rgl-account-number ~ .rgl-search-input-descriptor {
	width: 40ex;
}

.rgl-hour,
.rgl-hour-5 {
	text-align: right;
	width: 10ex;
	min-width: 10ex;
}

.rgl-amount,
.rgl-quantity,
.rgl-price,
.rgl-cost,
.rgl-weight,
.rgl-rate {
	text-align: right;
	width: 14ex;
	min-width: 14ex;
}

.rgl-location,
.rgl-pallet-number,
.rgl-lrb-number {
	width: 15ex;
}

.rgl-picking-ticket-number {
	width: 14ex;
}

.rgl-percent,
.rgl-percent-negative {
	text-align: right;
	width: 8ex;
}

.rgl-percent[data-validation-field-scale="5"], .rgl-percent[data-validation-field-scale="4"]
{
	width: 11ex;
}

.rgl-number,
.rgl-text-align-right {
	text-align: right;
}

.rgl-text-align-left {
	text-align: left;
}

.rgl-text-align-center {
	text-align: center;
}

/** @todo remove in favor of dl, dt, dd */
.rgl-bold,
.rgl-prompt {
	font-weight: bold;
}

.rgl-italic {
	font-style: italic;
}

.rgl-pending-cancellation {
	font-style: italic;
}

.rgl-on-hold {
	font-style: italic;
}

.rgl-pending-cancellation span:has(+ .rgl-state-notice), .rgl-pending-cancellation span:has(+ .rgl-state-notice) span {
	text-decoration: line-through;
	color: grey;
}

/* A value that is shown for information but does not apply in
the current context (e.g. a schedule hold on a requisition). */
.rgl-not-applicable {
	font-style: italic;
	color: grey;
}

.rgl-no-bold * {
	font-weight: normal;
}

.rgl-no-wrap {
	white-space: nowrap;
}

.rgl-emoji {
	font-family: apple color emoji, segoe ui emoji, noto color emoji, android emoji, emojisymbols, emojione mozilla, twemoji mozilla, segoe ui symbol;
}

/** @todo remove in favor of dl, dt, dd */
.rgl-indent {
	padding-left: 3ex;
	min-height: 2ex;
}

/* List Formats */
dl, dt, dd {
	margin: 0;
	padding: 0;
	min-height: 2ex;
}

dt {
	font-size: 9px;
	font-weight: bold;
}

dt label, dt label * {
	font-size: inherit;
}

dd {
	margin-left: 3ex;
}

dl.horizontal > div /* direct child only */ {
	display: inline-block;
	vertical-align: top;
}

/* MISC */
pre, pre * {
	font-family: monospace;
}
