/* osTicket Awesome: accessibility (-104). Nothing here is visible to a mouse
   user. osta-a11y.js puts .osta-kbd on <html> when Tab is pressed and removes
   it on the next mouse or touch press. The class is needed on top of
   :focus-visible because browsers also match :focus-visible on a text field
   that was clicked with a mouse. */

/* Staff menu list: real <ul> for screen readers, no box of its own. */
#nav > ul.osta-nav-list {
	display: contents;
	list-style: none;
}
#nav > ul.osta-nav-list > li + li {
	margin-left: 8px;
}
#nav > ul.osta-nav-list > li:first-of-type {
	margin-left: 8px;
}
@media screen and (max-width: 1270px) {
	div#sub_nav {
		margin-left: 12px !important;
	}
}

/* Skip link */
a#osta-skip-link {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	z-index: 2147483000;
}
a#osta-skip-link:focus {
	width: auto;
	height: auto;
	margin: 8px;
	padding: 10px 16px;
	clip-path: none;
	overflow: visible;
	background: #fff !important;
	color: #1b1b1b !important;
	border-radius: 3px;
	font: 600 15px/1.4 sans-serif;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}
#content[tabindex="-1"]:focus {
	outline: none;
}

/* Keyboard focus */
html.osta-kbd :focus-visible {
	outline: 2px solid #128dbe !important;
	outline-offset: 1px !important;
}
html.osta-kbd #content[tabindex="-1"]:focus-visible {
	outline: none !important;
}
/* Coloured bars: the text colour is the one that contrasts there. */
html.osta-kbd #header :focus-visible,
html.osta-kbd #nav-wrapper :focus-visible,
html.osta-kbd #sub_nav-wrap :focus-visible,
html.osta-kbd #footer :focus-visible,
html.osta-kbd .sidr :focus-visible {
	outline-color: currentColor !important;
}
/* Custom checkboxes and radios: the real box is hidden, outline its label. */
html.osta-kbd input[type=checkbox]:focus-visible + label,
html.osta-kbd input[type=radio]:focus-visible + label {
	outline: 2px solid #128dbe !important;
	outline-offset: 1px !important;
}
/* Right to left: staff-desktop.css pulls the 4th tab in by counting the Home
   icon as the first child (".rtl #header li:nth-child(5)"). Same tab here. */
.rtl #header #nav > ul.osta-nav-list > li:nth-child(5) {
	margin-left: 8px !important;
}
.rtl #header #nav > ul.osta-nav-list > li:nth-child(4) {
	margin-left: -2px !important;
}
/* Very narrow view: the list search box stuck out 4px and made the page
   scroll sideways. */
@media screen and (max-width: 340px) {
	form[action="tasks.php"] .attached.input,
	form[action="tickets.php"] .attached.input {
		max-width: calc(99% - 3px);
		overflow: hidden;
	}
}
