/**
* STS citizenlink styles
*
* @package CITIZENLINK
* @subpackage STS
* @platform DESKTOP
* @author KMN
* @since 03/19/2020
*
*/

.inline-license-pdf-target, .inline-form-pdf-target
{
	width: 100%;
	border: 1px dotted black;
	min-height: 500px;
}
/*
* Base rule kept for the cursor only. Sizing and borders are set in the
* ADG-6051 location grid section at the foot of this file; declaring
* border-collapse here as well would fight the border-radius used there.
*/
.sts-welcome-table
{
	cursor: pointer;
}
.sts-welcome-table tr:hover{
	background-color: rgba(207, 216, 208, 0.3);
}
/*
* ADG-6051: the heading above the location grid. It carries ui-state-default,
* whose gradient bar is heavier than the list below it now needs, so reduce it
* to a plain caption that sits with the table.
*/
/*
* ADG-6051: "Account Locations" is a section title, so present it as one -
* a plain label with a rule beneath it, then the table. The heavy
* ui-state-default bar it used to carry is no longer emitted.
*/
.sts-welcome-summary
{
	width: auto;
	margin: 18px 0 0 0;
	padding: 0 0 6px 0;
	background: none;
	border: 0;
	border-bottom: 1px solid #dfe8ef;
	color: #33454f;
	font-size: 13px;
	font-weight: bold;
}

/* the grid follows straight on from its title */
.sts-welcome-summary + .sts-welcome-table,
#welcome-data-form div.welcome-grid-wrapper .sts-welcome-table
{
	margin-top: 10px;
}
/*
* ADG-6051: let the location grid size to its content. The shared rule
* (#welcome-data-form div.welcome-grid-wrapper in common/desktop/style.css)
* pins it to height:150px with a permanent overflow-y:scroll, and the old
* min-height:200px here forced empty space plus a scrollbar for a two row
* table. Cap it instead, so a short list shows no scrollbar and only a long
* one scrolls.
*/
.welcome-grid-wrapper{
	min-height: 0;
}
#welcome-data-form div.welcome-grid-wrapper
{
	height: auto;
	/*
	* Sized so a full three location list fits without scrolling. A two row
	* grid measured 253px before the row padding below was tightened, so this
	* leaves headroom for three rows plus the header; longer lists scroll.
	*/
	max-height: 460px;
	overflow-y: auto;
}
.welcome-grid-wrapper .ui-widget-header{
	background-color: #b9e5ff;
	border: 1px solid #54a9dc;
	font-weight: bold;
	
}
.welcome-grid-wrapper .ui-widget-header th{
	font-size: 10px !important;
}
/*
* ADG-6051: the selected City Code was washed out - the bar sat on a 30%
* opacity tint. Only the colours are changed here: a solid background and a
* darker text colour, leaving the original layout alone.
*/
.location-bar{
	width: 100%;
	height: 30px;
	background-color: #dceefb;
	color: #0d3a5c;
	border: 1px solid #1f6e9f;
	display: flex;
	align-items: center;
	font-weight: bold;
	margin: 5px 0px;
}
.location-bar-title{
	font-size: 16px;
	margin-left: 10px;
}
.location-bar-content{
	flex-grow: 1;
	margin-left: 10px;
}
.switch-city-code{
	cursor: pointer;
	color: #1f6e9f;
	font-weight: bold;
	text-decoration: underline;
	float:right;
	padding-right:10px;
}
.adg-jqu-labelfor-class{
	color: inherit;
}

/*###################################################################
# ADG-6051 - Welcome screen location grid
#
# The billing locations shown in the Welcome popup, as a simple selectable
# list. Fixed column widths and single line rows keep the height predictable
# at any window size. Palette is the existing STS/CitizenLink one.
####################################################################*/

.sts-welcome-table
{
	table-layout: fixed;
	width: 100% !important;
	border-collapse: separate;
	border-spacing: 0;
	background-color: #ffffff;
	border: 1px solid #e3ecf3;
	border-radius: 6px;
	overflow: hidden;
	font-size: 12px;
}

/*
* One typeface across the whole welcome box. The grid sits inside a
* div.ui-widget, whose jQuery UI theme font (Verdana) would otherwise apply,
* while the account block above it renders in the popup font. Take the font
* from #welcome-data-form so both halves match.
*/
#welcome-data-form .sts-welcome-table,
#welcome-data-form .sts-welcome-table th,
#welcome-data-form .sts-welcome-table td,
#welcome-data-form .sts-welcome-table td a.goto-location,
#welcome-data-form .sts-welcome-summary,
#welcome-data-form .welcome-grid-wrapper,
#welcome-data-form .welcome-grid-wrapper .ui-widget
{
	font-family: inherit;
}

/*-------------------------------------------------------------------
| Column widths. Under table-layout:fixed each column needs one, or
| the space is split evenly and the address is clipped early.
-------------------------------------------------------------------*/
.sts-welcome-table th:nth-child(1), .sts-welcome-table td:nth-child(1) { width: 20%; }
.sts-welcome-table th:nth-child(2), .sts-welcome-table td:nth-child(2) { width: 46%; }
.sts-welcome-table th:nth-child(3), .sts-welcome-table td:nth-child(3) { width: 18%; }
.sts-welcome-table th:nth-child(4), .sts-welcome-table td:nth-child(4) { width: 16%; }

/*-------------------------------------------------------------------
| Header - a quiet label strip so the rows lead
-------------------------------------------------------------------*/
.sts-welcome-table thead th
{
	padding: 8px 12px;
	background-color: #f7fafc !important;
	border-bottom: 1px solid #dfe8ef;
	color: #4a6577;
	font-size: 10px !important;
	font-weight: bold;
	letter-spacing: .04em;
	text-transform: uppercase;
	text-align: left;
	/*
	* Let the labels wrap rather than truncate: "Location Code" and
	* "Current Balance" then read in full on two lines instead of
	* becoming "LOCATIO..." and "CURRE...".
	*/
	white-space: normal;
	overflow: visible;
	text-overflow: clip;
	line-height: 1.25;
	vertical-align: bottom;
	overflow-wrap: break-word;
}

/*-------------------------------------------------------------------
| Cells - one line each, so row height never varies with width
-------------------------------------------------------------------*/
.sts-welcome-table td
{
	padding: 11px 14px;
	vertical-align: middle;
	border-top: 1px solid #f0f5f9;
	line-height: 1.4;
	color: #33454f;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sts-welcome-table tbody tr:first-child td
{
	border-top: 0;
}

/* Alignment: money right, status centre */
.sts-welcome-table th:nth-child(3),
.sts-welcome-table td.bind-text-right   { text-align: right; }
.sts-welcome-table th:nth-child(4),
.sts-welcome-table td:nth-child(4)      { text-align: center; }

.sts-welcome-table td.bind-text-right
{
	font-variant-numeric: tabular-nums;
	color: #33454f;
}

.sts-welcome-table td.ubs-welcome-address
{
	color: #5a7486;
}

.sts-welcome-table td.ubs-welcome-address div
{
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/*-------------------------------------------------------------------
| Rows - the whole row is the target
-------------------------------------------------------------------*/
.sts-welcome-table tr.sts-welcome-selectable-row
{
	background-color: #ffffff;
	cursor: pointer;
	transition: background-color .15s ease;
}

.sts-welcome-table tr.sts-welcome-selectable-row:hover
{
	background-color: #f5fafd;
}

.sts-welcome-table tr.sts-welcome-selectable-row td a.goto-location
{
	color: #1f6e9f;
	font-weight: bold;
	text-decoration: none;
}

/*-------------------------------------------------------------------
| Current location - a left rule and a light tint, not a full colour
| inversion, which would compete with the hover state
-------------------------------------------------------------------*/
.sts-welcome-table tr.sts-welcome-row-selected
{
	background-color: #f0f7fc;
}

.sts-welcome-table tr.sts-welcome-row-selected:hover
{
	background-color: #e8f3fb;
}

.sts-welcome-table tr.sts-welcome-row-selected td
{
	color: #1a4a68;
	font-weight: bold;
}

.sts-welcome-table tr.sts-welcome-row-selected td:first-child
{
	box-shadow: inset 3px 0 0 0 #1f6e9f;
}

.sts-welcome-table tr.sts-welcome-row-selected td a.goto-location
{
	color: #1a4a68;
}

/*
* Status column doubles as the "current" marker, so the state is not
* signalled by colour alone
*/
/*
* The marker sits on the location code cell, positioned out of the text flow
* so it cannot squeeze the status word into an ellipsis. The cell is relative
* and allows overflow purely for this dot.
*/
.sts-welcome-table tr.sts-welcome-row-selected td:first-child
{
	position: relative;
}

/*-------------------------------------------------------------------
| Focus. The default UA outline draws a hard black box over the row
| tint; use a themed ring instead so keyboard focus stays obvious.
-------------------------------------------------------------------*/
.sts-welcome-table td a.goto-location:focus,
.sts-welcome-table td a.goto-location:active,
.sts-welcome-table tr.sts-welcome-selectable-row:focus,
.sts-welcome-table tr.sts-welcome-selectable-row td:focus
{
	outline: none;
}

.sts-welcome-table td a.goto-location:focus-visible
{
	outline: 2px solid #1f6e9f;
	outline-offset: 2px;
	border-radius: 3px;
}

/*###################################################################
# ADG-6051 - "About Your Account" block
#
# Rendered by the shared loadWelcomeData.php table, which every module
# uses, so it is restyled here rather than in that markup. Same section
# language as the location grid: a title with a rule beneath it, then the
# facts, with label and value on one line.
####################################################################*/

#welcome-data-form th.welcome-head
{
	display: block;
	width: auto;
	padding: 0 0 6px 0;
	background: none;
	border: 0;
	border-bottom: 1px solid #dfe8ef;
	color: #33454f;
	font-size: 13px;
	font-weight: bold;
	text-align: left;
}

/*
* Collapse the two fact rows onto one line - "3 - MINNIE MOUSE TOYS" - to save
* vertical space in the popup. The shared markup emits Account Number and Name
* as separate rows (plus two empty ones), and it is used by every module, so
* the reflow is done here in CSS rather than by changing that file.
*/
/*
* Collapse the block onto one line: "Account: 3 - MINNIE MOUSE TOYS".
* The table, its body, rows and cells all go inline so the separate rows the
* shared markup emits stop each claiming a line of their own.
*/
#welcome-data-form th.welcome-head
{
	display: block;
}

#welcome-data-form table:not(.sts-welcome-table) tbody,
#welcome-data-form table:not(.sts-welcome-table) tbody tr,
#welcome-data-form td.welcome-data
{
	display: inline;
}

#welcome-data-form table:not(.sts-welcome-table) tbody
{
	line-height: 1.6;
}

/*
* The per row labels ("Account Number", "Name") are redundant once the facts
* share a line; a single "Account:" label leads instead.
*/
#welcome-data-form td.welcome-label
{
	display: none;
}

#welcome-data-form td.welcome-data
{
	padding: 0;
	border: 0;
	font-size: 12px;
	vertical-align: baseline;
	color: #33454f;
	font-weight: bold;
}

/* "Account:" ahead of the first value */
#welcome-data-form table:not(.sts-welcome-table) tr:first-child td.welcome-data:before
{
	content: "Account: ";
	color: #4a6577;
	font-weight: normal;
}

/* " - " ahead of every value after the first */
#welcome-data-form table:not(.sts-welcome-table) tr ~ tr td.welcome-data:before
{
	content: " - ";
	color: #4a6577;
	font-weight: normal;
}

/*###################################################################
# ADG-6051 - "Keep Me Logged In" row
#
# The checkbox wrapper carries ui-state-default, whose jQuery UI theme
# paints a solid blue gradient bar with white text. That was the last
# heavy element left in an otherwise light popup, so quiet it down to
# match the section titles and location list above it.
####################################################################*/

#welcome-data-form .stay-logged-in
{
	margin: 14px 0 4px 0;
}

#welcome-data-form .stay-logged-in .text-and-button-checkbox
{
	background: #f7fafc !important;
	background-image: none !important;
	border: 1px solid #e3ecf3 !important;
	border-radius: 6px;
	padding: 8px 12px;
	color: #33454f !important;
}

/* the label reads as body text, not as a button caption */
#welcome-data-form .stay-logged-in .text-and-button-checkbox-label,
#welcome-data-form .stay-logged-in label
{
	color: #33454f !important;
	font-size: 12px;
	font-weight: normal;
}

/* keep the box and its label on one comfortable line */
#welcome-data-form .stay-logged-in .text-and-button-checkbox-widget
{
	vertical-align: middle;
}

#welcome-data-form .stay-logged-in input[type=checkbox]
{
	vertical-align: middle;
	accent-color: #1f6e9f;
}

/* no jQuery UI hover/active repaint on what is now a plain row */
#welcome-data-form .stay-logged-in .text-and-button-checkbox.ui-state-hover,
#welcome-data-form .stay-logged-in .text-and-button-checkbox.ui-state-active,
#welcome-data-form .stay-logged-in .text-and-button-checkbox.ui-state-focus
{
	background: #eef4f9 !important;
	background-image: none !important;
	border-color: #cfe0ec !important;
	color: #33454f !important;
}
