
:root {
	--color-fg: #333;
	--color-bg: #f8f8ff;
	--color-link: #05f;
	--color-link-light: #007bff;
	--color-btn-default-fg: #fff;
	--color-btn-default-bg: #6c757d;
	--color-btn-default-hover-bg: #5a6268;
	--color-btn-primary-fg: #fff;
	--color-btn-primary-bg: #007bff;
	--color-btn-primary-hover-bg: #0069d9;
	--color-btn-danger-fg: #fff;
	--color-btn-danger-bg: #dc3545;
	--color-btn-danger-hover-bg: #c82333;
	--color-card-bg: #fff;
	--color-card-line: #ebedf2;
	--font-weight-bold: 600;
	--font-weight-heavy-bold: 700;
	--border-radius: 5px;
	--color-base-fg: #fff;
	--color-base-fg2: #ccc;
	--color-base: #003c78;
	--color-placeholder: #ddd;
}

/* latin-ext */
@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 400;
	src: local("Open Sans Regular"), local("OpenSans-Regular"), url(../fonts/open-sans-latin-ext-400-normal.woff2) format("woff2");
	unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 400;
	src: local("Open Sans Regular"), local("OpenSans-Regular"), url(../fonts/open-sans-latin-400-normal.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215;
}

/* latin-ext */
@font-face {
	font-family: "Open Sans";
	font-style: italic;
	font-weight: 400;
	src: local("Open Sans Italic"), local("OpenSans-Italic"), url(../fonts/open-sans-latin-ext-400-italic.woff2) format("woff2");
	unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
	font-family: "Open Sans";
	font-style: italic;
	font-weight: 400;
	src: local("Open Sans Italic"), local("OpenSans-Italic"), url(../fonts/open-sans-latin-400-italic.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215;
}

/* latin-ext */
@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 600;
	font-stretch: normal;
	font-display: swap;
	src: url(../fonts/open-sans-latin-ext-600-normal.woff2) format("woff2");
	unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 600;
	font-stretch: normal;
	font-display: swap;
	src: url(../fonts/open-sans-latin-600-normal.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
	font-family: "Open Sans";
	font-style: italic;
	font-weight: 600;
	font-stretch: normal;
	font-display: swap;
	src: url(../fonts/open-sans-latin-ext-600-italic.woff2) format("woff2");
	unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
	font-family: "Open Sans";
	font-style: italic;
	font-weight: 600;
	font-stretch: normal;
	font-display: swap;
	src: url(../fonts/open-sans-latin-600-italic.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 700;
	src: local("Open Sans Bold"), local("OpenSans-Bold"), url(../fonts/open-sans-latin-ext-700-normal.woff2) format("woff2");
	unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 700;
	src: local("Open Sans Bold"), local("OpenSans-Bold"), url(../fonts/open-sans-latin-700-normal.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215;
}

/* latin-ext */
@font-face {
	font-family: "Open Sans";
	font-style: italic;
	font-weight: 700;
	src: local("Open Sans Bold Italic"), local("OpenSans-BoldItalic"), url(../fonts/open-sans-latin-ext-700-italic.woff2) format("woff2");
	unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
	font-family: "Open Sans";
	font-style: italic;
	font-weight: 700;
	src: local("Open Sans Bold Italic"), local("OpenSans-BoldItalic"), url(../fonts/open-sans-latin-700-italic.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215;
}

@font-face {
	font-family: "Material Symbols Outlined";
	font-style: normal;
	font-weight: 400;
	src: url(../fonts/material-symbols-outlined.woff2) format("woff2");
}
.material-symbols-outlined {
	font-family: "Material Symbols Outlined";
	font-weight: normal;
	font-style: normal;
	font-size: 24px;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	display: inline-block;
	white-space: nowrap;
	word-wrap: normal;
	direction: ltr;
	-moz-font-feature-settings: "liga";
	-moz-osx-font-smoothing: grayscale;
	user-select: none;
}

@font-face {
	font-family: "Material Symbols Filled";
	font-style: normal;
	font-weight: 400;
	src: url(../fonts/material-symbols-filled.woff2) format("woff2");
}
.material-symbols-filled {
	font-family: "Material Symbols Filled";
	font-weight: normal;
	font-style: normal;
	font-size: 24px;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	display: inline-block;
	white-space: nowrap;
	word-wrap: normal;
	direction: ltr;
	-moz-font-feature-settings: "liga";
	-moz-osx-font-smoothing: grayscale;
	user-select: none;
}

.material-symbols-outlined.md-16,
.material-symbols-filled.md-16 {
	font-size: 16px;
}
.material-symbols-outlined.md-18,
.material-symbols-filled.md-18 {
	font-size: 18px;
	margin-top: -5px;
	position: relative;
	top: 4px;
}
.material-symbols-outlined.md-24,
.material-symbols-filled.md-24 {
	font-size: 24px;
	position: relative;
	top: 7px;
}
.material-symbols-outlined.md-36,
.material-symbols-filled.md-36 {
	font-size: 36px;
}
.material-symbols-outlined.md-48,
.material-symbols-filled.md-48 {
	font-size: 48px;
}


html {
	scroll-behavior: smooth;
}

body {
	font-family: "Open Sans", Verdana, Arial, Helvetica, sans-serif;
	font-size: 15px;
	color: var(--color-fg);
	background-color: var(--color-bg);
	margin: 0;
}

h1 {
	font-size: 1.9rem;
	font-weight: var(--font-weight-bold);
	margin: 0 0 1rem 0;
	line-height: 3.3rem;
	color: var(--color-base);
}

h3 {
	font-weight: normal;
	margin: 30px 0 10px 0;
}

@media only screen and (max-width: 860px) {
	h1 {
		font-size: 1.5rem;
	}
}

@media only screen and (max-width: 480px) {
	h1 {
		font-size: 1.2rem;
	}
}


a, a:visited {
	color: var(--color-link);
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}

a .material-symbols-outlined, a:visited .material-symbols-outlined,
a .material-symbols-filled, a:visited .material-symbols-filled {
	color: var(--color-btn-primary-bg);
}
a:hover .material-symbols-outlined,
a:hover .material-symbols-filled {
	color: var(--color-btn-primary-hover-bg);
}

label {
	display: inline-block;
	cursor: pointer;
}

img {
	border: none;
}

noscript {
	position: fixed;
	top: 10px;
	left: 10px;
	right: 10px;
	color: #f00;
	background-color: #fff;
	padding: 10px 20px;
	border-radius: var(--border-radius);
	text-align: center;
	z-index: 2;
}

strong {
	color: #5f5f5f;
	font-weight: var(--font-weight-bold);
}

.asterisk {
	font-weight: normal;
	color: #f00;
	font-size: 1.1rem;
	position: relative;
	top: 2px;
}

pre, tt {
	font-family: Consolas, Monaco, "Courier New", monospace;
	font-size: 1rem;
}

.ul-no-gap {
	padding-left: 1em;
	margin-left: 0;
}

::placeholder {
	color: var(--color-placeholder);
	opacity: 1;
}

.page-frame {
	max-width: 90vw;
	margin-left: auto;
	margin-right: auto;
}

.row {
	margin: 1rem auto;
}

.h-start {
	text-align: left;
}
.h-center {
	text-align: center;
}
.h-end {
	text-align: right;
}

.expand {
	flex-grow: 1;
}

.no-data {
	color: #aaa;
}

.error {
	color: #f00;
}

.fine-print {
	display: inline-block;
	font-size: 0.7rem;
}

.ctxmenu {
	display: none;
	position: absolute;
	left: 300px;
	top: 100px;
	background-color: #fafafa;
	box-shadow: 0 2px 7px rgba(0, 0, 0, 0.3);
	padding: var(--border-radius) 0;
	border-radius: var(--border-radius);
	z-index: 2;
}
.ctxmenu a {
	display: block;
	padding: 5px 15px;
	color: var(--color-fg);
	white-space: nowrap;
}
.ctxmenu a:hover {
	text-decoration: none;
	color: var(--color-btn-primary-fg);
	background-color: var(--color-btn-primary-bg);
}
.ctxmenu__separator {
	background-color: #eee;
	height: 1px;
	margin-top: 6px;
	margin-bottom: 6px;
}
.ctxmenu-arrow {
	display: none;
	position: absolute;
	width: 0;
	height: 0;
	border-left: 7px solid transparent;
	border-right: 7px solid transparent;
	border-bottom: 7px solid #fafafa;
	z-index: 3;
}
.ctxmenu-arrow--reverse {
	border-top: 7px solid #fafafa;
	border-bottom: none;
}

.ctxmenu-tag-custom {
	color: var(--color-fg);
	padding: 3px 1px;
	margin: 0;
	background: none;
	border: none;
	border-radius: var(--border-radius);
	cursor: pointer;
	transition: all 300ms;
}
.ctxmenu-tag-custom:hover {
	background-color: #fff;
	box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
}
.ctxmenu-tag-custom:hover, .ctxmenu-tag-custom--open {
	background-color: var(--color-btn-primary-bg);
	color: var(--color-btn-primary-fg);
}
.ctxmenu-tag-custom span {
	height: 19px;
	transition: transform 200ms;
}
.ctxmenu-tag-custom--open span {
	transform: rotate(90deg);
	transform-origin: 11px 1px;
}

@-moz-document url-prefix() {
	.ctxmenu-tag-custom span {
		height: 16px;
	}
	.ctxmenu-tag-custom--open span {
		transform-origin: 12px 1px;
	}
}

.ctxmenu__profile-name {
	padding: 3px 15px 10px 15px;
	font-size: 0.8rem;
	font-weight: var(--font-weight-bold);
}

.dtable {
	display: grid;
}
.dtable__head, .dtable__data {
	background-color: var(--color-card-bg);
	padding: 10px 10px;
}
.dtable__sup-data {
	padding: 0 10px 10px 10px;
}
.dtable__head, .dtable__sup-head {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	font-weight: var(--font-weight-bold);
	font-size: 0.85rem;
}
.dtable__head, .dtable__head a, .dtable__head a:visited, .dtable__sup-head {
	color: var(--color-fg);
}
.dtable__head a:hover {
	color: var(--color-link);
	text-decoration: none;
}
.dtable__head span {
	color: var(--color-btn-primary-bg);
}
.dtable__head span.cb__on, .dtable__head span.cb__off {
	color: var(--color-fg);
}
.dtable__lf, .dtable__lf-head {
	background-color: var(--color-card-line);
	height: 1px;
}
.dtable__lf-head {
	height: 2px;
}
.dtable__row {
	display: contents;
}
.dtable__row:hover > div {
	background-color: #f8f8f8;
}
.dtable__data p:first-child {
	margin-top: 0;
}
.dtable__data--static {
	padding-top: 1.2rem;
}
.dtable__sub-item {
	margin-bottom: 5px;
}

.dtable__data .material-symbols-outlined.md-18,
.dtable__data .material-symbols-filled.md-18 {
	top: 1px;
}
.dtable__data .material-symbols-outlined.md-24,
.dtable__data .material-symbols-filled.md-24 {
	top: 5px;
	margin-top: -5px;
}

.btn-clear-row {
	user-select: none;
}

.data-block-column {
	display: inline-block;
	vertical-align: top;
	margin-right: 20px;
}

.input-form {
	display: grid;
	justify-content: start;
	grid-row-gap: 1.5rem;
	grid-column-gap: 2rem;
	grid-template-columns: max-content auto;
}
.input-form__header {
	font-weight: var(--font-weight-bold);
	font-size: 0.85rem;
	line-height: 1.8rem;
}
.input-form__data p:first-of-type {
	margin-top: 0;
}
.input-form__data p:last-of-type {
	margin-bottom: 0;
}
.input-form__data ul {
	padding-left: 1em;
	margin-left: 0;
	margin-top: 2px;
}
.input-form__data li {
	margin-bottom: 5px;
}
.input-form__data--static {
	padding-top: 0.2rem;
}
input[type=date].input-form__date {
	width: 160px;
}
input[type=text].input-form__time {
	width: 100px;
	margin-left: 10px;
}

@media only screen and (max-width: 600px) {

	.input-form {
		display: block;
	}

	.input-form__header {
		margin-bottom: 5px;
	}

	.input-form__data {
		margin-bottom: 30px;
	}

}


.input-form__warning, .input-form__error, .input-form__success {
	color: #856404;
	background-color: #fff3cd;
	border: 1px solid #f2eaba;
	border-radius: var(--border-radius);
	padding: 0.7rem 1rem;
	margin: 0.5rem auto 1rem auto;
}
.input-form__error {
	color: #DC143C;
	background-color: #fff6f6;
	border-color: #fdd;
}
.input-form__success {
	color: #070;
	background-color: #dfd;
	border-color: #ada;
	padding-top: 0.2rem;
}
.input-form__error .material-symbols-outlined,
.input-form__error .material-symbols-filled {
	margin: -10px 3px 0 0;
}
.input-form__error span {
	color: #500;
	margin-left: 5px;
}
.input-form__success span {
	margin-left: 5px;
}

input[type=submit] {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

input[type=text], input[type=password], input[type=email], input[type=date], input[type=time], textarea {
	font-family: inherit;
	font-size: 1rem;
	border: 1px solid #ced4da;
	border-radius: var(--border-radius);
	padding: 0.5rem 0.8rem;
	width: 20rem;
	max-width: calc(80vw - 2rem);
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
input[type=text]:focus, input[type=password]:focus, input[type=email]:focus, input[type=date]:focus, textarea:focus {
	border-color: #80bdff;
	box-shadow: 0 0 0 .2rem rgba(88, 103, 221, 0.25)
}
input[readonly] {
	background-color: #eee;
}

select {
	padding: 4px 7px;
	background: none;
	border: 1px solid #ced4da;
	border-radius: var(--border-radius);
	font-size: 1rem;
	font-family: inherit;
}

@-moz-document url-prefix() {
	select {
		padding-bottom: 5px;
	}
}

.table-page-header {
	display: flex;
}
.table-page-header__col-date {
	white-space: nowrap;
}
.table-page-header__col-text-filter {
	display: flex;
}
.table-page-header__col-text-filter input {
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
	border-right: none;
	width: 170px;
}
.table-page-header__col-text-filter button {
	color: var(--color-fg);
	background-color: #ebe9f2;
	border: 1px solid #ced4da;
	border-top-left-radius: 0;
	border-top-right-radius: var(--border-radius);
	border-bottom-left-radius: 0;
	border-bottom-right-radius: var(--border-radius);
	cursor: pointer;
	padding: 2px 12px;
	transition: all 100ms;
}
.table-page-header__col-text-filter button:hover {
	color: #fff;
	border-color: var(--color-btn-primary-hover-bg);
	background-color: var(--color-btn-primary-hover-bg);
}
.table-page-header__col-filters {
	padding-top: 5px;
}
.table-page-header__col-pagination {
	white-space: nowrap;
	text-align: right;
	padding-top: 4px;
}

.table-page-header__filter {
	display: inline-block;
	vertical-align: top;
	background-color: var(--color-bg);
	line-height: 27px;
	border-radius: 5px;
	overflow: hidden;
	margin-right: 7px;
	margin-bottom: 6px;
}
.table-page-header__filter__container {
	display: flex;
}
.table-page-header__filter__title {
	font-size: 0.7rem;
	color: var(--color-btn-primary-fg);
	background-color: var(--color-btn-primary-bg);
	padding: 0 10px;
}
.table-page-header__filter__value {
	font-size: 0.85rem;
	padding-left: 12px;
	padding-right: 12px;
}
.table-page-header__filter__close {
	color: var(--color-fg);
	background-color: #d6eaf8;
	cursor: pointer;
	transition: all 200ms;
	padding-left: 4px;
	padding-right: 4px;
}
.table-page-header__filter__close:hover {
	color: #fff;
	background-color: var(--color-btn-primary-hover-bg);
}
.table-page-header__filter__close span {
	position: relative;
	top: 3px;
}

.btn {
	display: inline-block;
	white-space: nowrap;
	cursor: pointer;
	padding: 0.375rem 0.75rem;
	border-radius: var(--border-radius);
	font-size: 0.9rem;
	line-height: 1.2rem;
	border: 1px solid var(--color-btn-default-bg);
	background: var(--color-btn-default-bg);
	transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out
}
.btn, a.btn, a.btn:visited {
	color: var(--color-btn-default-fg);
	text-align: center;
}
.btn:hover {
	border-color: var(--color-btn-default-hover-bg);
	background-color: var(--color-btn-default-hover-bg);
}
a.btn:hover {
	text-decoration: none;
}

.btn-sm {
	padding: 4px 5px;
	font-size: 0.75rem;
}

.btn-primary {
	color: var(--color-btn-primary-fg);
	border-color: var(--color-btn-primary-bg);
	background-color: var(--color-btn-primary-bg);
}
.btn-primary:hover {
	border-color: var(--color-btn-primary-hover-bg);
	background-color: var(--color-btn-primary-hover-bg);
}
.btn-primary .material-symbols-outlined, .btn-primary .material-symbols-filled,
a.btn-primary .material-symbols-outlined, a.btn-primary .material-symbols-filled,
a.btn-primary:visited .material-symbols-outlined, a.btn-primary:visited .material-symbols-filled,
a.btn-primary:hover .material-symbols-outlined, a.btn-primary:hover .material-symbols-filled {
	color: var(--color-btn-primary-fg);
}

.btn-success {
	color: #fff;
	border-color: #28a745;
	background-color: #28a745;
}
.btn-success:hover {
	border-color: #080;
	background-color: #080;
}

.btn-danger {
	color: var(--color-btn-danger-fg);
	border-color: var(--color-btn-danger-bg);
	background-color: var(--color-btn-danger-bg);
}
.btn-danger:hover {
	border-color: var(--color-btn-danger-hover-bg);
	background-color: var(--color-btn-danger-hover-bg);
}

.btn-filter {
	color: var(--color-fg);
	background-color: transparent;
	border: 1px solid #ced4da;
	position: relative;
	top: -1px;
	padding-top: 0.4rem;
}
.btn-filter:hover {
	background-color: #eee;
	border: 1px solid #ddd;
}

.disabled {
	opacity: 0.4;
}

.input-form .btn-primary, .input-form .btn-danger {
	min-width: 80px;
}

.no-records {
	font-size: 1rem;
	text-align: center;
	margin: 4rem auto;
}

.input-switch {
	display: inline-block;
	vertical-align: top;
	background-color: #ccc;
	width: 48px;
	height: 26px;
	border-radius: 14px;
	padding: 1px;
	cursor: pointer;
	position: relative;
	transition: background-color 200ms;
}
.input-switch__button {
	position: absolute;
	background-color: #fff;
	left: 1px;
	top: 1px;
	width: 26px;
	height: 26px;
	border-radius: 13px;
	box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
	transition: left 200ms;
}
body.loading .input-switch__button {
	transition: none;
}
.input-switch__label {
	display: inline-block;
	vertical-align: top;
	margin: 2px 0 0 10px;
}
.input-switch--on {
	background-color: #32CD32;
}
.input-switch--on .input-switch__button {
	left: calc(100% - 27px);
}
.input-switch--off {
	background-color: #DC143C;
}
.input-switch--off .input-switch__button {
}


label.cb {
	display: flex;
}
.dtable__head label.cb {
	margin-bottom: 19px;
}
.dtable__data label.cb {
	margin-top: 7px;
}
label.cb input {
	display: none;
}
label.cb .cb__on {
	display: none;
}
label.cb input:checked ~ .cb__on {
	display: block;
}
label.cb input:checked ~ .cb__off {
	display: none;
}


/* typography - message */

.message-wrapper {
	width: 400px;
	max-width: calc(90vw - 20px);
	margin: 20vh auto 0 auto;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
	padding: 15px 10px;
	background-color: #fff;
	border-radius: var(--border-radius);
}
.message-wrapper p {
	margin-bottom: 0;
}
.message-error, .message-success, .message-warning {
	border-left: 3px solid #f00;
	padding-left: 15px;
}
.message-error .message-title, .message-success .message-title, .message-warning .message-title {
	font-size: 1.2rem;
}
.message-error {
	border-left-color: #f00;
}
.message-error .message-title {
	color: #f00;
}
.message-success {
	border-left-color: #090;
}
.message-success .message-title {
	color: #090;
}
.message-warning {
	border-left-color: #DAA520;
}
.message-warning .message-title {
	color: #DAA520;
}
.message-error ul, .message-success ul, .message-warning ul {
	padding-left: 1em;
	margin-left: 0;
}

.message-page-top .message-wrapper {
	margin-top: 0;
	margin-bottom: 1rem;
}
.card .message-wrapper {
	margin-top: 2rem;
	background: #fcfcfc;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
	border: 1px solid #fff;
}


.page-message {
	margin-top: 15vh;
}
.page-message__back-link {
	text-align: center;
	margin-top: 30px;
}


/* layout - content */

.content-wrapper {
	display: flex;
	margin: 20px;
}
.sidebar-placeholder {
	min-width: 205px;
	max-width: 205px;
}
.content {
	flex-grow: 1;
}
.sidebar {
	white-space: nowrap;
	padding-top: 5px;
	padding-bottom: 15px;
	width: 180px;
	position: fixed;
	left: 20px;
	top: 20px;
	max-height: calc(100vh - 90px);
	overflow: auto;
	scrollbar-width: thin;
	scrollbar-color: #cdcdcd #fff;
	z-index: 2;
}
.sidebar::-webkit-scrollbar {
	width: 6px;
	background-color: #fff;
}
.sidebar::-webkit-scrollbar-thumb {
	background-color: #cdcdcd;
	outline: 1px solid #cdcdcd;
}
.sidebar__separator {
	height: 1px;
	background-color: #eee;
	margin-top: 15px;
	margin-bottom: 20px;
}
.sidebar__header {
	padding: 0 0;
}
.sidebar__header a, .sidebar__header a:link, .sidebar__header a:visited {
	color: var(--color-base);
	font-size: 1.1rem;
	font-weight: var(--font-weight-bold);
	margin-left: 2px;
	border-top: 5px solid rgba(255, 255, 255, 0);
	border-bottom: 5px solid rgba(255, 255, 255, 0);
	border-left: 10px solid rgba(255, 255, 255, 0);
	border-right: 10px solid rgba(255, 255, 255, 0);
}
.sidebar__header a:hover {
	text-decoration: none;
	color: var(--color-bg);
	background-color: var(--color-base);
}
.sidebar__content {
}
.sidebar__section__title {
	text-transform: uppercase;
	color: #888;
	font-size: 0.7rem;
	margin-top: 20px;
	padding: 0 10px;
	line-height: 2rem;
}
.sidebar__content i {
	margin-right: 2px;
	position: relative;
	top: 3px;
}
.sidebar__content a, .sidebar__content a:visited {
	display: block;
	color: #444;
	font-size: 0.8rem;
	padding: 0 10px;
	line-height: 2.2rem;
}
a.sidebar__content--selected, a.sidebar__content--selected:visited {
	border-left: 3px solid var(--color-base);
	background-color: #fff;
	padding-left: 7px;
}
.sidebar__content a:hover {
	color: var(--color-base-fg);
	text-decoration: none;
	background-color: var(--color-base);
}
.sidebar a .material-symbols-outlined, .sidebar a:visited .material-symbols-outlined,
.sidebar a .material-symbols-filled, .sidebar a:visited .material-symbols-filled {
	color: #777;
	margin-right: 5px;
}
.sidebar a:hover .material-symbols-outlined,
.sidebar a:hover .material-symbols-filled {
	color: var(--color-base-fg);
}

.sidebar__footer {
	display: none;
}

.sidebar__footer-user {
	color: #c0c4d1;
	font-size: 0.8rem;
}
.sidebar__footer-user__description {
	padding: 0 20px;
	margin-bottom: 5px;
}
.sidebar__footer-user a, .sidebar__footer-user a:visited {
	color: #c0c4d1;
	display: block;
	padding: 0 20px;
	line-height: 2.4rem;
}
.sidebar__footer-user a:hover {
	color: #fff;
	text-decoration: none;
	background-color: #373c4b;
}

.sidebar__bgap {
	height: 30px;
}

.sidebar.sidebar--sm {
	visibility: hidden;
	left: 0px;
	opacity: 0;
	transition: all 300ms;
}
.loading .sidebar.sidebar--sm {
	transition: none;
}
.sidebar.sidebar--sm.sidebar--open {
	visibility: visible;
	left: 20px;
	opacity: 1;
}

.sidebar-backdrop {
	display: none;
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-color: rgba(255, 255, 255, 0.9);
	z-index: 1;
}

.header__menu-button {
	display: inline-block;
	width: 40px;
	height: 58px;
	background: url(../images/icon-menu.svg) no-repeat center 16px;
	cursor: pointer;
	margin-right: 7px;
	display: none;
}

@media only screen and (max-width: 860px) {

	.sidebar-placeholder {
		display: none;
	}

	.header__menu-button {
		display: inline-block;
	}

}


header {
	display: flex;
}
.header__h1-aux {
	padding-left: 20px;
}
.header__h1-aux__button {
	position: relative;
	top: 12px;
	padding: 4px 3px;
}
.header__h1-aux__button--grey, .header__h1-aux__button--grey:visited {
	margin-left: 4px;
	background-color: #8a939b;
	border-color: #8a939b;
}
/* on the right of the header, next to the profile picture: level with the blue + on the left */
.header__user-info .header__h1-aux__button--grey {
	top: -21px;
	margin: 0 12px 0 0;
}
.header__h1-aux__button--grey:hover {
	background-color: #6c757d;
	border-color: #6c757d;
}
a.header__h1-aux__button .material-symbols-outlined, a.header__h1-aux__button:visited .material-symbols-outlined,
a.header__h1-aux__button .material-symbols-filled, a.header__h1-aux__button:visited .material-symbols-filled {
	color: #fff;
	margin-top: -10px;
}
.header__supplementary {
	flex-grow: 1;
	text-align: center;
	padding-top: 20px;
}
.header__supplementary a {
	display: inline-block;
}
.header__user-info {
}
a .material-symbols-outlined.header__user-info__utility, a .material-symbols-outlined.header__user-info__utility:visited,
a .material-symbols-filled.header__user-info__utility, a .material-symbols-filled.header__user-info__utility:visited {
	display: inline-block;
	vertical-align: top;
	color: #aaa;
	margin: 10px 10px 0 0;
}
a .material-symbols-outlined.header__user-info__utility:hover,
a .material-symbols-filled.header__user-info__utility:hover {
	color: var(--color-link);
}
.header__user-info__profile {
	display: inline-block;
	width: 50px;
	margin-left: 5px;
	border: 1px solid #bbb;
	border-radius: 50%;
	box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
}
.header__h1-aux__download-csv {
	margin-left: 17px;
	position: relative;
	top: 13px;
}
a.header__h1-aux__download-csv .material-symbols-outlined, a.header__h1-aux__download-csv:visited .material-symbols-outlined,
a.header__h1-aux__download-csv .material-symbols-filled, a.header__h1-aux__download-csv:visited .material-symbols-filled {
	margin-top: -10px;
}
.header__h1-aux__print {
	margin-left: 12px;
	position: relative;
	top: 8px;
}

.card {
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.06);
	background-color: var(--color-card-bg);
	border-radius: var(--border-radius);
	padding-top: 1px;
	padding-bottom: 1px;
	margin-bottom: 20px;
}
.card__section {
	margin: 1.5rem;
}
.card__separator {
	height: 1px;
	background-color: var(--color-card-line);
	margin: 15px auto;
}
.card__section__columns {
	display: flex;
}
.card__section__column {
	display: inline-block;
	vertical-align: top;
}
.card__section__column__part-number input[type=text] {
	width: 14rem;
}
.card__section__column__separator {
	width: 1px;
	background-color: var(--color-card-line);
	margin: 10px 15px;
}
.card h2 {
	font-weight: normal;
	margin: 0 0 20px 0;
}

.card.minicard {
	padding-top: 0;
}
.minicard {
	display: inline-block;
	vertical-align: top;
	margin-right: 20px;
	max-width: 300px;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}
.minicard h2 {
	font-size: 1.0rem;
	white-space: nowrap;
	color: #fff;
	background-color: #335c81;
	border-top-left-radius: var(--border-radius);
	border-top-right-radius: var(--border-radius);
	margin-bottom: -0.7rem;
	text-align: center;
	padding: 1rem 20px;
	border-bottom: 1px solid #f8f8f8;
}
.minicard--alert h2 {
	color: #fff;
	background-color: #cc3f0c;
}
.minicard h3 {
	font-size: 1.1rem;
	margin: 10px 0 10px 0;
}
.minicard h4 {
	color: #99c;
	font-weight: normal;
	border-bottom: 1px solid #ccf;
	margin: 20px 0 0 0;
}
.minicard p {
	margin: 0.6rem 0;
	line-height: 1.1rem;
}

.minicard-more {
	text-align: center;
	margin-top: 25px;
}
.minicard-more button {
	white-space: nowrap;
	cursor: pointer;
	padding: 0.375rem 0.75rem;
	border-radius: var(--border-radius);
	font-size: 0.9rem;
	line-height: 1.2rem;
	border: 1px solid #d0d0d0;
	background-color: #eee;
	transition: background-color .3s ease-in-out, border-color .3s ease-in-out;
}
.minicard-more button:hover {
	background-color: var(--color-bg);
	border-color: var(--color-link);
}

.password-toggle {
	display: inline-block;
	cursor: pointer;
	margin-left: 10px;
}
.password-toggle--show span:nth-child(2) {
	display: none;
}
.password-toggle--hide span:nth-child(1) {
	display: none;
}
.password-container {
	padding-left: 40px;
}

.password-quality-indicators {
	font-size: 0.8rem;
	line-height: 1.5rem;
}
.password-quality-indicators__inner {
	display: inline-block;
	text-align: left;
}
.password-quality-indicators__error {
	display: none;
	color: #f00;
	font-size: 0.9rem;
	margin-top: 9px;
}
.password-quality-indicators__caption {
	margin: 8px 0 2px 0;
}
.password-quality-indicators__item__success-icon,
.password-quality-indicators__item__failure-icon {
	position: relative;
	top: 4px;
	margin-right: 3px;
}
.password-quality-indicators__item__success-icon {
	color: #0b0;
}
.password-quality-indicators__item__failure-icon {
	color: #f00;
}
.password-quality-indicators__item--success {
	color: #0a0
}
.password-quality-indicators__item--success .password-quality-indicators__item__failure-icon {
	display: none;
}
.password-quality-indicators__item--failure {
}
.password-quality-indicators__item--failure .password-quality-indicators__item__success-icon {
	display: none;
}


.badge {
	display: inline-block;
	font-size: 0.65rem;
	font-weight: var(--font-weight-heavy-bold);
	padding: 4px 10px 3px 10px;
	border-radius: 7px;
	margin-bottom: 3px;
}
.badge-primary {
	color: #fff;
	background-color: #007bff;
}
.badge-secondary {
	color: #fff;
	background-color: #6c757d;
}
.badge-success {
	color: #fff;
	background-color: #28a745;
}
.badge-danger {
	color: #fff;
	background-color: #dc3545;
}
.badge-warning {
	color: #212529;
	background-color: #fff3cd;
	border: 1px solid #f2eaba;
	padding: 3px 9px 2px 9px;
}
.badge-info {
	color: #fff;
	background-color: #17a2b8;
}
.badge-light {
	font-weight: normal;
	color: #212529;
	background-color: #f8f9fa;
	border: 1px solid #e3e3e3;
	padding: 3px 10px 2px 10px;
}
.badge-dark {
	color: #fff;
	background-color: #343a40;
}

.profile-table {
	display: grid;
	justify-content: start;
}
.profile-table div {
	margin-right: 17px;
	margin-bottom: 12px;
}
.profile-table__primary {
	color: #ffe200;
}
.profile-table__row {
	display: contents;
}
.profile-table__row .material-symbols-outlined.md-18,
.profile-table__row .material-symbols-filled.md-18 {
	top: 5px;
}
.profile-table__row .material-symbols-outlined.md-24,
.profile-table__row .material-symbols-filled.md-24 {
	top: 1px;
}


/* layout - page-info */

.page-info {
	display: flex;
}
.page-info__length {
	flex-grow: 1;
	text-align: center;
}


/* layout - pagination */

form.pagination {
	display: block;
}
ul.pagination {
	list-style-type: none;
	display: inline-block;
	margin: 0;
	padding: 0;
	white-space: nowrap;
}
ul.pagination li {
	display: inline-block;
}
.pagination a {
	display: inline-block;
	border-radius: var(--border-radius);
	padding: 3px 5px;
	min-width: 20px;
	text-align: center;
}
.pagination a, .pagination a:visited {
	color: var(--color-fg);
	transition: all 150ms;
}
.pagination a:hover {
	color: #fff;
	background-color: var(--color-btn-primary-hover-bg);
	text-decoration: none;
}
input[type=text].pagination__input {
	text-align: center;
	width: 1ch;
	min-width: 30px;
	font-size: 0.9rem;
	padding-top: 3px;
	padding-bottom: 3px;
	border: 1px solid #eee;
}
input[type=text].pagination__input:focus {
	border: 1px solid #80bdff;
}
.pagination__gap {
	color: #ccc;
	font-size: 1.3rem;
}
.pagination__arrow {
	background: #ebe9f2;
	border-radius: var(--border-radius);
}
.pagination__arrow--disabled {
	opacity: 0.4;
}
.pagination a .material-symbols-outlined, .pagination a:visited .material-symbols-outlined,
.pagination a .material-symbols-filled, .pagination a:visited .material-symbols-filled {
	color: var(--color-fg);
}
.pagination a:hover .material-symbols-outlined,
.pagination a:hover .material-symbols-filled {
	color: var(--color-bg);
}

form.page-length input {
	margin-right: 5px;
}


form.pagination-large {
	display: block;
}
form.pagination-medium {
	display: none;
}
form.pagination-small {
	display: none;
}

@media only screen and (max-width: 860px) {
	form.pagination-large {
		display: none;
	}
	form.pagination-medium {
		display: block;
	}
}

@media only screen and (max-width: 480px) {
	form.pagination-medium {
		display: none;
	}
	form.pagination-small {
		display: block;
	}
}


/* basic pagination */

.basic-pagination {

}
.basic-pagination-section {
	display: inline-block;
}
.basic-pagination-data {
	border-radius: var(--border-radius);
	padding: 3px 10px;
	cursor: pointer;
	transition: all 300ms;
}
.basic-pagination-data:hover {
	background-color: #eee;
}
.basic-pagination-items {
	margin-right: 10px;
}
.basic-pagination-page {

}


/* page - HTTP status */

.http404 {
	text-align: center;
	margin-top: 25vh;
}


/* page - front page */

.fp-body {
	background: url(../images/frontpage-bg.jpg) no-repeat center center;
	background-size: cover;
	text-align: center;
	min-height: 100vh;
	margin: 0;
	padding: 0;
}
.fp-body__h1-wrapper {
	padding-top: 15vh;
	margin-bottom: 40px;
}
.fp-body__h1 {
	display: inline-block;
	font-size: 3rem;
	color: #fff;
	font-weight: bold;
	text-shadow: 0px 1px 6px rgba(0, 0, 0, 0.5);
}

.fp__input-row {
	margin-bottom: 15px;
}
.fp-body input[type=text], .fp-body input[type=password] {
	box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
}
.fp-body input[type=submit] {
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}
.fp__input-error {
	display: inline-block;
	background-color: #fcfcfc;
	border-left: 4px solid #f00;
	padding: 0.7rem 1.7rem;
	max-width: calc(90vw - 3rem);
	box-shadow: 0 0px 3px rgba(0, 0, 0, 0.2);
}
.fp__input-error span {
	color: #f00;
}
.fp-login-helpers {
	margin: 30px 0 30px 0;
}
.fp-login-helpers a, .fp-login-helpers a:visited {
	font-size: 0.9rem;
	color: #fff;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.fp__welcome {
	display: inline-block;
	border: 2px solid #003c78;
	border-radius: 10px;
	padding: 1.5rem 1rem;
	width: calc(90vw - 2rem);
	max-width: 400px;
}

@media only screen and (max-width: 480px) {
	.fp-body h1 {
		padding-top: 15vh;
	}
}


/* dialog windows */

.modal-window__backdrop {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-color: rgba(0, 0, 0, 0.8);
	z-index: 20;
}
.modal-window__backdrop--hidden {
	display: none;
}
.modal-window {
	display: flex;
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	align-items: center;
	justify-content: center;
	z-index: 21;
}
.modal-window--hidden {
	display: none;
}
.modal-window__hspacer {
	flex-grow: 2;
}
.modal-window__document {
	flex-grow: 1;
	width: auto;
	max-width: 85vw;
	background-color: #fff;
	border-radius: var(--border-radius);
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.7);
}
.modal-window__header {
	border-bottom: 1px solid #ddd;
	display: flex;
}
#modal-window__title {
	margin: 0;
	font-size: 1rem;
	font-weight: var(--font-weight-bold);
	padding: 10px 20px;
}
.modal-window__header__gap {
	flex-grow: 1;
}
.modal-window__status-switch {
	cursor: pointer;
	text-align: center;
	padding: 0 10px;
}
.modal-window__status-switch:hover {
	background-color: var(--color-bg);
}
.modal-window__status-switch__header {
	height: 8px;
	font-size: 0.7rem;
	margin-top: 6px;
	text-transform: uppercase;
	opacity: 0;
	transition: all 200ms;
}
.modal-window__status-switch:hover .modal-window__status-switch__header {
	height: 14px;
	opacity: 1;
}
.modal-window__status-switch__active-only, .modal-window__status-switch__any-status {
	font-size: 0.8rem;
}
.modal-window__status-switch__active-only {
	display: none;
	color: #070;
}
.modal-window__status-switch--active .modal-window__status-switch__active-only {
	display: block;
}
.modal-window__status-switch__any-status {
	display: none;
	color: #f55;
}
.modal-window__status-switch--any-status .modal-window__status-switch__any-status {
	display: block;
}
.modal-window__back, .modal-window__close {
	color: #aaa;
	border: none;
	background: none;
	cursor: pointer;
	transition: all 200ms;
}
.modal-window__back .material-symbols-outlined, .modal-window__close .material-symbols-outlined {
	margin-top: -7px;
}
.modal-window__back:hover, .modal-window__close:hover {
	color: #888;
	background-color: var(--color-bg);
}
.modal-window__back:hover {
	border-top-left-radius: var(--border-radius);
}
.modal-window__close:hover {
	border-top-right-radius: var(--border-radius);
}
.modal-window__body {
	padding: 10px;
	max-height: calc(90vh - 40px);
	overflow: auto;
}
.modal-window__body h2 {
	font-weight: normal;
}
.modal-window__please-wait {
	text-align: center;
	margin: 30px auto;
}
.modal-window__body__no-results {
	text-align: center;
	color: #888;
	margin: 10px auto;
}
.modal-window__error {
	display: none;
	margin-top: 0.5rem;
	margin-bottom: 0.5rem;
	padding: 0.4rem 0.6rem;
	text-align: center;
	color: #f00;
}
.modal-window__body__search-text {
	margin-top: 5px;
	margin-bottom: 10px;
}
input.modal-window__body__search-text {
	width: calc(100% - 1.50rem);
}
.modal-window__body__select {
	max-height: calc(100vh - 300px);
	overflow: auto;
}
.modal-window__body__select div {
	cursor: pointer;
	padding: 4px 10px;
	color: #007bff;
	border-bottom: 1px solid rgba(255, 255, 255, 0);
}
.modal-window__body__select div:hover {
	background-color: #f5f5f5;
	border-bottom: 1px solid #007bff;
}

.modal-window__body__select-vehicle__input {
	display: flex;
	margin-top: 15px;
	margin-bottom: 20px;
}
.modal-window__body__select-vehicle__input input {
	flex-grow: 1;
	margin-left: 15px;
}

.modal-window__body__part input {
	display: block;
	margin-top: 15px;
	margin-bottom: 20px;
	width: calc(100% - 2rem);
}

.modal-window__body__select-work-order-issue__input input {
	margin-top: 15px;
	margin-bottom: 20px;
}
.modal-window__body__select-work-order-issue__input input {
	width: calc(100% - 1.9rem);
}
.modal-window__body__select-work-order-issue__group {
	font-weight: var(--font-weight-bold);
	margin: 15px 10px 5px 10px;
}
.modal-window__body__select-work-order-issue__item {
	padding: 7px 10px;
	cursor: pointer;
	color: var(--color-link);
}
.modal-window__body__select-work-order-issue__item:hover {
	background-color: #f8f8f8;
}


/* help */

.inline-help {
	padding: 10px 15px;
}
.page-help li, .inline-help li {
	margin-bottom: 7px;
}
.card.page-help h1, .inline-help h1, .card.page-help h2, .inline-help h2,
.card.page-help h3, .inline-help h3, .card.page-help h4, .inline-help h4,
.card.page-help h5, .inline-help h5, .card.page-help h6, .inline-help h6 {
	font-size: 1rem;
	font-weight: var(--font-weight-bold);
	margin-bottom: 0;
}
.card.page-help h1, .inline-help h1 {
	font-size: 1.8rem;
}
.card.page-help h2, .inline-help h2 {
	font-size: 1.1rem;
}
.card.page-help h3, .inline-help h3 {
	font-size: 0.95rem;
	margin-bottom: -5px;
}
.card.page-help p, .inline-help p {
	margin: 10px 0;
}


/* order status */

.order-status {
	display: inline-block;
}
.order-status div {
	display: inline-block;
	padding: 0.5rem 0.8rem;
	border-radius: var(--border-radius);
	cursor: pointer;
	border: 1px solid #fff;
	user-select: none;
}
.order-status input {
	display: none;
}
.order-status .order-status__btn--on {
	display: none;
}
.order-status input:checked ~ .order-status__btn--on {
	display: inline-block;
}
.order-status input:checked ~ .order-status__btn--off {
	display: none;
}
.order-status .order-status__draft .order-status__btn--on {
	border: 1px solid #8bb;
	background-color: #dff;
}
.order-status .order-status__open .order-status__btn--on {
	border: 1px solid #9b0;
	background-color: #df9;
}
.order-status .order-status__closed .order-status__btn--on {
	border: 1px solid #ced4da;
	background-color: #eee;
}
.order-status div:hover {
	border: 1px solid #888;
	background-color: #fff;
}


/* edit part */

.part-edit .card__section__column {
	margin-left: 30px;
}
.part-edit .card__section__column:first-child {
	margin-left: 0;
}
.part-edit__header {
	display: block;
	margin-bottom: 7px;
}
.part-edit__header span {
	font-weight: var(--font-weight-bold);
	font-size: 0.85rem;
	line-height: 1.8rem;
	margin-right: 30px;
}
.part-edit__edit {
	margin-bottom: 10px;
}
.part-edit__static {
	padding-top: 10px;
}
.part-edit__fleet-values {
	margin-top: 20px;
}
.part-edit__fleet-values .card__section__column {
	margin-left: 15px;
}
.part-edit__fleet-values .card__section__column-separator {
	width: 20px;
}
input.part-edit__fleet-values__bin-location {
	width: 150px;
}
input.part-edit__fleet-values__quantity {
	width: 60px;
}
div.part-edit__fleet-values__warning {
	color: #c00;
}
input.part-edit__fleet-values__warning {
	border-color: #c00;
}
.part-edit__cost {
	display: inline-block;
	border-top: 1px solid #ddd;
	margin-top: 20px;
	padding-top: 20px;
}
.part-edit__cost .dtable__data {
	padding-left: 8px;
	padding-right: 8px;
}
.part-edit__cost__order a {
	margin-left: 10px;
	position: relative;
	top: -4px;
}

.open-part-uicontrol {
	display: inline-block;
	margin-left: 10px;
	margin-top: -10px;
}


/* purchase orders & work orders */

.cost-info {
	color: #777;
}
.cost-info--danger {
	color: #b00;
}
.cost-info--warning {
	color: #b8860b;
}
.cost-info--no-data {
	display: none;
}
.cost-helper {
	position: relative;
	top: -3px;
}

.file-overview-container {
	float: left;
	margin: 0 2rem 10px 0;
	text-align: center;
}
.file-overview {
	width: 300px;
	height: 300px;
	background-color: #f0f0f0;
	display: flex;
}
.file-overview--pdf {
	background: radial-gradient(#fff 30%, #f0f0f0);
}
.file-overview img {
	max-width: 300px;
	max-height: 300px;
	margin: auto;
}

.cl-button {
	background-color: #080;
	border-radius: 7px;
	position: relative;
	top: 4px;
}
a.cl-button, a.cl-button:visited {
	color: #fff;
	padding: 4px 13px 5px 10px;
}
a.cl-button:hover {
	text-decoration: none;
}
a.cl-button .material-symbols-outlined, a.cl-button .material-symbols-filled {
	color: #fff;
	position: relative;
	top: 3px;
	margin-right: 2px;
}


/* work order */

.work-order__vehicle-controls {
	display: flex;
}
.work-order__vehicle-controls button {
	margin-left: 20px;
}

.work-order__vehicle-not-set {
	line-height: 1.7rem;
}

.work-order__vehicle-item {
	display: inline-block;
	margin-right: 20px;
}
.work-order__vehicle-item__key {
	display: block;
	text-transform: uppercase;
	color: #777;
	font-size: 0.7rem;
	border-bottom: 1px solid #eee;
	padding-bottom: 2px;
	margin-bottom: 1px;
}
.work-order__vehicle-item__value {
	display: block;
}

.open-vehicle-uicontrol {
	margin: 5px 0 0 15px;
}

/* vehicle typeahead (B2B-244) */

.vehicle-typeahead {
	position: relative;
	max-width: 520px;
	margin-bottom: 12px;
}
.vehicle-typeahead__input {
	width: 100%;
	box-sizing: border-box;
	min-height: 44px;
	font-size: 1.05rem;
	padding: 8px 12px;
}
.vehicle-typeahead__results {
	position: absolute;
	z-index: 50;
	top: 100%;
	left: 0;
	right: 0;
	max-height: 360px;
	overflow-y: auto;
	background: var(--color-card-bg);
	border: 1px solid var(--color-card-line);
	border-radius: var(--border-radius);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
.vehicle-typeahead__item {
	display: flex;
	align-items: baseline;
	gap: 14px;
	min-height: 44px;
	box-sizing: border-box;
	padding: 10px 12px;
	cursor: pointer;
	border-bottom: 1px solid var(--color-card-line);
}
.vehicle-typeahead__item:last-child {
	border-bottom: none;
}
.vehicle-typeahead__item:hover, .vehicle-typeahead__item--active {
	background: #eef5ff;
}
.vehicle-typeahead__medallion {
	font-weight: var(--font-weight-heavy-bold);
	min-width: 4.5em;
}
.vehicle-typeahead__detail {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	color: #666;
	font-size: 0.9rem;
}
.vehicle-typeahead__message {
	padding: 12px;
	color: #777;
}

/* read-only summary of the chosen vehicle */

.vehicle-card {
	box-sizing: border-box;
	width: 100%;
	max-width: 640px;
	padding: 14px 16px;
	background: #f5f7fa;
	border: 1px solid #e1e6ee;
	border-left: 4px solid var(--color-base);
	border-radius: var(--border-radius);
}
.vehicle-card--empty {
	color: #888;
	background: transparent;
	border-style: dashed;
	border-left-width: 1px;
}
.vehicle-card__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 12px;
	margin-bottom: 10px;
}
.vehicle-card__medallion {
	font-size: 1.6rem;
	font-weight: var(--font-weight-heavy-bold);
	line-height: 1.1;
}
.vehicle-card__model {
	font-size: 1.05rem;
	color: #444;
}
.vehicle-card__id {
	margin-left: auto;
	color: #999;
	font-size: 0.8rem;
}
.vehicle-card__facts {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 8px 16px;
	margin: 0;
}
.vehicle-card__facts dt {
	text-transform: uppercase;
	color: #888;
	font-size: 0.7rem;
	letter-spacing: 0.03em;
}
.vehicle-card__facts dd {
	margin: 2px 0 0 0;
	font-weight: var(--font-weight-bold);
	overflow-wrap: anywhere;
}

.work-order__due-date-alert {
	display: inline-block;
	margin: 8px 0 0 30px;
}

#work-order__mass-part-update {
	margin-left: 10px;
	color: var(--color-btn-default-fg);
	font-size: 0.75rem;
	cursor: pointer;
	border-radius: var(--border-radius);
	line-height: 1.2rem;
	border: 1px solid var(--color-btn-default-bg);
	background: var(--color-btn-default-bg);
}

.work-order__amount {
	text-align: right;
	font-family: monospace;
	font-size: 0.9rem;
	line-height: 1.4rem;
}
.work-order__amount-total {
	font-weight: var(--font-weight-bold);
}

.work-order__order-parts-btn {
	position: relative;
	top: -3px;
	margin-left: 15px;
	margin-right: 2px;
}

.work-order__error .dtable__data {
	background-color: #fff5f5;
}
.work-order__error-btn {
	display: none;
	color: #e00;
	margin-left: 10px;
	margin-right: 5px;
}
.work-order__error .work-order__error-btn {
	display: inline-block;
}

.work-order__btn-verify {
	margin-left: 30px;
	margin-right: 10px;
}
.work-order__badge-verify {
	margin-left: 20px;
	color: #070;
}

.work-order__badge-verify-listing-done, .work-order__badge-verify-listing-pending {
	margin-left: 7px;
	position: relative;
	top: 3px;
}
.work-order__badge-verify-listing-done {
	color: #bbb;
}
.work-order__badge-verify-listing-pending {
	color: #d00;
}

.work-order-checklist__categories__item {
	padding: 8px;
	cursor: pointer;
	border-bottom: 1px solid rgba(255, 255, 255, 0);
}
.work-order-checklist__categories__item:hover {
	background-color: #f8f8f8;
	border-bottom: 1px solid var(--color-link);
}
.work-order-checklist__items {
	grid-template-columns: auto max-content max-content max-content;
}
.work-order-checklist__items__status {
	cursor: pointer;
	user-select: none;
}
.work-order-checklist__items--pass div {
	background-color: #dfd;
}
.work-order-checklist__items--pass div.work-order-checklist__items__status-pass, div.work-order-checklist__items__status-pass:hover {
	color: #fff;
	background-color: #070;
}
.work-order-checklist__items--fail div {
	background-color: #fee;
}
.work-order-checklist__items--fail div.work-order-checklist__items__status-fail, div.work-order-checklist__items__status-fail:hover {
	color: #fff;
	background-color: #c00;
}
.work-order-checklist__items--defer div {
	background-color: #eef;
}
.work-order-checklist__items--defer div.work-order-checklist__items__status-defer, div.work-order-checklist__items__status-defer:hover {
	color: #fff;
	background-color: #00c;
}
.work-order-checklist__items-reset {
	text-align: center;
	padding-top: 20px;
	padding-bottom: 5px;
}
.work-order-checklist__items-reset div {
	color: var(--color-link);
	cursor: pointer;
}

.work-order__issue {
	margin-bottom: 10px;
	position: relative;
	top: -4px;
}
.work-order__issue tt {
	display: block;
	margin-top: 7px;
	font-size: 0.85rem;
}
.work-order__issue a {
	margin-left: 15px;
}

.work-order__eta-content {
	display: none;
	padding: 20px 20px;
	margin-top: 15px;
	border: 1px dashed #888;
	border-radius: 10px;
}
.work-order__eta-title-history {
	margin-bottom: 10px;
}
.work-order__eta-title-new {
	margin-top: 30px;
	margin-bottom: 10px;
}
.work-order__eta-duration {
	margin-right: 10px;
}

#work-order__status__btn-start,
#work-order__status__btn-resume,
#work-order__status__btn-end,
#work-order__status__btn-on_hold,
#work-order__status__btn-verify,
#work-order__status__btn-reopen {
	display: none;
	margin-left: 20px;
}

#work-order__new-status {
	display: none;
	border-radius: var(--border-radius);
	font-size: 0.9rem;
	line-height: 1.2rem;
	color: #000;
	padding-left: 0.8rem;
	margin-left: 20px;
	background-color: #ddd;
	border: 1px solid #ddd;
}

#work-order__new-status__time {
	display: inline-block;
	padding: 0.375rem 0.75rem;
	margin-left: 0.5rem;
	border-radius: var(--border-radius);
}

.work-order__new-status__time--open {
	color: #fff;
	background-color: #28a745;
	border: 1px solid #28a745;
}

.work-order__new-status__time--on_hold {
	color: var(--color-btn-danger-fg);
	border-color: var(--color-btn-danger-bg);
	background-color: var(--color-btn-danger-bg);
}

.work-order__new-status__time--pending_verification {
	color: var(--color-btn-primary-fg);
	border-color: var(--color-btn-primary-bg);
	background-color: var(--color-btn-primary-bg);
}

.work-order__new-status__time--closed {
	color: #fff;
	background-color: var(--color-btn-default-bg);
	border: 1px solid var(--color-btn-default-bg);
}


.work-order__on-hold-status-picker {
	display: flex;
	justify-content: center;
	align-items: center;
}
.work-order__on-hold-status-picker form {
	padding-top: 10px;
	padding-bottom: 30px;
}
.work-order__on-hold-status-picker__item {
	line-height: 2.5rem;
}
.work-order__on-hold-status-picker__controls {
	margin-top: 30px;
}


/* utilities */

.utils-table {
	grid-template-columns: auto auto;
	justify-content: start;
	grid-row-gap: 5px;
	margin-top: 30px;
}
.utils-table .material-symbols-outlined {
	position: relative;
	top: 0;
}
.utils-table div {
	padding: 7px 10px 3px 10px;
}

.card__links a, .card__links a:visited {
	display: inline-block;
	padding: 8px 20px;
	margin: 10px 10px 10px 0;
	color: var(--color-fg);
	border: 1px solid #eee;
	border-radius: var(--border-radius);
	transition: all 200ms;
}
.card__links a:hover {
	text-decoration: none;
	background-color: #fff;
	border: 1px solid #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.utils-details {
	display: none;
	background-color: #eee;
	padding: 10px 20px;
}


/* float-controls */

#float-controls {
	position: absolute;
	top: 0;
	right: 40px;
	background-color: rgba(255, 255, 255, 0.8);
	border-radius: 10px;
	border: 1px solid rgba(0, 0, 0, 0.2);
	padding: 12px;
}
#float-controls.float-controls--fixed {
	position: fixed;
}


/* check-in */

.check-in__listing__reason-notes {
	font-size: 0.8rem;
	color: #777;
}

.check-in__textarea {
	width: calc(100% - 1.6rem);
	min-height: 80px;
}

.check-in__button {
	display: inline-block;
	background-color: #f5f5f5;
	border: 1px solid #d0d0d0;
	border-radius: 10px;
	padding: 5px 10px;
	cursor: pointer;
	user-select: none;
	margin: 0 8px 10px 0;
}
.check-in__button:hover {
	box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}
.check-in__button--selected {
	color: #fff;
	background-color: #33f;
	border: 1px solid #33f;
}

.check-in__button div {
	font-size: 0.6rem;
	margin-top: 4px;
	text-transform: uppercase;
}
.check-in__button--level-1_normal_maintenance {
	color: #fff;
	background-color: #2B7FFF;
	border: 1px solid #2B7FFF;
}
.check-in__button--level-2_minor_damage {
	color: #333;
	background-color: #FFB93B;
	border: 1px solid #FFB93B;
}
.check-in__button--level-3_accident_damage {
	color: #fff;
	color: #111;
	background-color: #FF692A;
	border: 1px solid #FF692A;
}
.check-in__button--level-4_major_repair {
	color: #fff;
	background-color: #C11007;
	border: 1px solid #C11007;
}

.check-in__visit-issues span {
	vertical-align: middle;
}

.check-in__issues-reset {
	text-align: center;
	padding-top: 20px;
	padding-bottom: 5px;
}
.check-in__issues-reset div {
	color: var(--color-link);
	cursor: pointer;
}

.check-in__photos {
	display: grid;
	grid-template-columns: max-content max-content;
	grid-row-gap: 20px;
	grid-column-gap: 20px;
}
.check-in__photos__item__caption {
	text-align: center;
	font-size: 0.9rem;
	margin-bottom: 5px;
}
.check-in__photos__item__image-box {
	border: 1px dashed #777;
	border-radius: 5px;
	background-color: #fafafa;
	cursor: pointer;
}
.check-in__photos__item__image-box:hover {
	box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08);
}
.check-in__photos__item__image {
	width: 400px;
	height: 247px;
}
.check-in__photos__item__image--active {
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center center;
}
.check-in__photos__item__image--pending {
	background: url(../images/camera.png) no-repeat center center;
}

@media only screen and (max-width: 860px) {
	.check-in__photos {
		grid-template-columns: max-content;
	}
}


/* vehicles */

.vehicles-edit__log .material-symbols-outlined {
	font-size: 15px;
	color: #aaa;
	position: relative;
	top: 2px;
	margin-right: 2px;
}


/* export */

.export .utils-table {
	margin-top: 20px;
}

.export .input-form__error {
	display: inline-block;
	padding-right: 1.7rem;
}

.export input[type=text] {
	margin-left: 15px;
	width: 100px;
}
.export input[type=date] {
	margin-left: 15px;
	width: 150px;
}
.export select {
	margin-top: -6px;
}


/* date range */

.date-range {
	width: 440px;
	margin: 30px auto;
}

.date-rage__label1 {
	position: relative;
	top: -3px;
}

.date-rage__label2 {
	position: relative;
	top: 8px;
}

#date-range__error {
	color: red;
	font-weight: var(--font-weight-bold);
}

/* dashboard */

.dashboard {
	--dash-head: #335c81;
	--dash-line: #e3e7ee;
	--dash-row-line: #eef1f5;
	--dash-hover: #f8f9fc;
	--dash-muted: #6c757d;
	--dash-alert: #dc3545;
	--dash-warn: #b07a00;
	--dash-ok: #28a745;
	--dash-fresh-bg: #e9ecef;
	--dash-fresh-fg: #495057;
	--dash-aging-bg: #ffe8a3;
	--dash-aging-fg: #6b4e00;
	--dash-old-bg: #f5c2c7;
	--dash-old-fg: #842029;
	display: flex;
	flex-direction: column;
	gap: 22px;
	max-width: calc(100vw - 245px);
	margin-bottom: 22px;
}
@media only screen and (max-width: 860px) {
	.dashboard {
		max-width: calc(100vw - 40px);
	}
}

.dash-now {
	display: inline-block;
	padding-top: 22px;
	font-size: 0.85rem;
	color: var(--color-btn-default-bg);
}

.dash-tabs {
	display: inline-flex;
	flex-wrap: wrap;
	vertical-align: top;
	margin: 11px 12px 0 0;
	border: 1px solid #ced4da;
	border-radius: 4px;
	overflow: hidden;
	background-color: #fff;
}
.dash-tabs a, .dash-tabs a:visited {
	padding: 6px 14px;
	font-size: 0.9rem;
	color: var(--color-fg);
	border-right: 1px solid #ced4da;
}
.dash-tabs a:last-child {
	border-right: 0;
}
.dash-tabs a:hover {
	background-color: #f1f5fa;
	text-decoration: none;
}
.dash-tabs a.dash-tabs--selected {
	color: #fff;
	background-color: #335c81;
}
.dash-tabs--mobile {
	display: none;
}
@media only screen and (max-width: 860px) {
	.dash-tabs--mobile {
		display: inline-flex;
		align-self: flex-start;
		margin: 0;
	}
}
@media only screen and (max-width: 600px) {
	.dash-now {
		display: none;
	}
	.dash-tabs a, .dash-tabs a:visited {
		padding: 4px 8px;
		font-size: 0.78rem;
	}
}

.dash-kpis {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 1px;
	background-color: #e3e7ee;
	border-radius: var(--border-radius);
	overflow: hidden;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
}
.dash-kpi, .dash-kpi:visited {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 18px;
	background-color: #fff;
	color: var(--color-fg);
}
.dash-kpi:hover {
	background-color: #f8f9fc;
	text-decoration: none;
}
.dash-kpi__label {
	font-size: 0.9rem;
	color: #495057;
}
.dash-kpi__value {
	font-size: 1.6rem;
	font-weight: var(--font-weight-heavy-bold);
	line-height: 1.25;
	color: var(--color-base);
	font-variant-numeric: tabular-nums;
}
.dash-kpi__value--alert {
	color: #dc3545;
}
.dash-kpi__sub {
	font-size: 0.82rem;
	color: #6c757d;
}

.dash-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background-color: #fff;
	border-radius: var(--border-radius);
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
	overflow: hidden;
}
.dash-card__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 11px 18px;
	color: #fff;
	background-color: var(--dash-head);
}
.dash-card__head h2 {
	margin: 0;
	font-size: 1.05rem;
	font-weight: var(--font-weight-bold);
}
.dash-card__head > span {
	font-size: 0.82rem;
	opacity: 0.9;
	text-align: right;
}
.dash-card__body {
	display: flex;
	flex-direction: column;
	gap: 11px;
	padding: 16px 18px;
}
.dash-card__footer {
	margin-top: auto;
	padding: 9px 18px;
	font-size: 0.9rem;
}

.dash-row {
	display: flex;
	flex-wrap: wrap;
	gap: 22px;
	align-items: stretch;
}
.dash-row > .dash-card {
	flex: 1 1 420px;
}

.dash-grid {
	display: grid;
	gap: 22px;
	align-items: stretch;
}
.dash-grid--halves {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.dash-grid--top {
	align-items: start;
}
.dash-grid--thirds {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
	align-items: start;
}

.dash-scroll {
	overflow-x: auto;
}

.dash-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}
.dash-table th {
	padding: 9px 8px;
	border-bottom: 2px solid var(--dash-line);
	text-align: left;
	font-size: 0.82rem;
	font-weight: var(--font-weight-heavy-bold);
	color: #495057;
	white-space: nowrap;
}
.dash-table td {
	padding: 8px;
	border-bottom: 1px solid var(--dash-row-line);
	vertical-align: middle;
}
.dash-table th:first-child, .dash-table td:first-child {
	padding-left: 18px;
}
.dash-table th:last-child, .dash-table td:last-child {
	padding-right: 18px;
}
.dash-table tbody tr:hover {
	background-color: var(--dash-hover);
}
.dash-table th.dash-wide {
	min-width: 150px;
}

.dash-right {
	text-align: right !important;
}
.dash-nowrap {
	white-space: nowrap;
}
.dash-tnum {
	font-variant-numeric: tabular-nums;
}
.dash-muted {
	color: var(--dash-muted);
}
.dash-small {
	font-size: 0.8rem;
}
.dash-block {
	display: block;
	font-size: 0.82rem;
}
.dash-strong {
	font-weight: var(--font-weight-heavy-bold);
}
.dash-alert {
	color: var(--dash-alert);
}
.dash-warn {
	color: var(--dash-warn);
}
.dash-issue {
	min-width: 160px;
	color: #495057;
}
.dash-clip {
	max-width: 220px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.dash-ellipsis {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.dash-empty {
	padding: 16px 18px !important;
	color: var(--dash-muted);
}
.dash-num--alert {
	color: var(--dash-alert);
	font-weight: var(--font-weight-heavy-bold);
}
.dash-num--zero {
	color: #adb5bd;
}

.dash-status, .dash-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 0.78rem;
	font-weight: var(--font-weight-heavy-bold);
	color: #fff;
	white-space: nowrap;
}
.dash-status--open {
	background-color: var(--dash-ok);
}
.dash-status--hold, .dash-badge--alert {
	background-color: var(--dash-alert);
}
.dash-badge--warn {
	color: var(--dash-aging-fg);
	background-color: var(--dash-aging-bg);
}
.dash-badge--muted {
	color: var(--dash-fresh-fg);
	background-color: var(--dash-fresh-bg);
}

.dash-pill {
	display: inline-block;
	padding: 1px 8px;
	border-radius: 4px;
	font-size: 0.82rem;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.dash-pill--fresh {
	color: var(--dash-fresh-fg);
	background-color: var(--dash-fresh-bg);
}
.dash-pill--aging {
	color: var(--dash-aging-fg);
	background-color: var(--dash-aging-bg);
}
.dash-pill--old {
	color: var(--dash-old-fg);
	background-color: var(--dash-old-bg);
}

.dash-change--up {
	color: var(--dash-alert);
}
.dash-change--slight {
	color: var(--dash-aging-fg);
}
.dash-change--down {
	color: var(--dash-ok);
}

.dash-bar {
	display: flex;
	height: 14px;
	border-radius: 3px;
	overflow: hidden;
	background-color: var(--dash-row-line);
}
.dash-bar--thin {
	height: 8px;
}
.dash-bar > div {
	height: 100%;
}
.dash-bar--fresh {
	background-color: #adb5bd;
}
.dash-bar--aging {
	background-color: #f0ad4e;
}
.dash-bar--old {
	background-color: var(--dash-alert);
}
.dash-bar--ok {
	background-color: var(--dash-head);
}

.dash-bucket {
	display: grid;
	grid-template-columns: 84px 1fr 32px;
	align-items: center;
	gap: 10px;
	font-size: 0.9rem;
}
.dash-bucket > span {
	color: #495057;
}
.dash-bucket > strong {
	text-align: right;
}

.dash-fleet {
	display: flex;
	flex-direction: column;
	gap: 5px;
	font-size: 0.9rem;
}
.dash-fleet__line {
	display: flex;
	justify-content: space-between;
	gap: 10px;
}

.dash-hours {
	display: flex;
	align-items: center;
	gap: 8px;
}
.dash-hours .dash-bar {
	flex: 1;
}
.dash-hours > span {
	width: 44px;
	text-align: right;
}

.dash-section {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.dash-section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
}
.dash-section__head h2 {
	margin: 0;
	font-size: 1.35rem;
	font-weight: var(--font-weight-bold);
	color: var(--color-base);
}

.dash-legend {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	font-size: 0.82rem;
	color: #495057;
}
.dash-legend > span {
	display: flex;
	align-items: center;
	gap: 6px;
}
.dash-legend i {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 2px;
}

.dash-dot, .dash-legend i.dash-dot {
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-left: 6px;
	border-radius: 50%;
	background-color: var(--dash-alert);
	vertical-align: middle;
}
.dash-legend i.dash-dot {
	margin-left: 0;
}

.dash-count {
	padding: 1px 8px;
	border-radius: 10px;
	background-color: rgba(255, 255, 255, 0.16);
}

.dash-lane {
	display: grid;
	grid-template-columns: 150px 1fr;
	align-items: start;
	gap: 12px;
	padding: 10px 18px;
	border-bottom: 1px solid var(--dash-row-line);
}
.dash-lane:last-child {
	border-bottom: 0;
}
.dash-lane__name {
	display: flex;
	flex-direction: column;
	gap: 1px;
	padding-top: 3px;
	font-size: 0.9rem;
}
.dash-lane__name > strong {
	color: var(--color-base);
}
.dash-lane__name > span {
	font-size: 0.8rem;
}
.dash-lane--none {
	background-color: #fafbfc;
}
.dash-lane__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	min-width: 0;
}
.dash-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 0.82rem;
	line-height: 1.2;
	white-space: nowrap;
	text-decoration: none;
}
.dash-chip:hover {
	text-decoration: none;
	filter: brightness(0.95);
}
.dash-chip > strong {
	font-size: 0.88rem;
}
.dash-chip .dash-dot {
	margin-left: 0;
}
.dash-chip--fresh {
	background-color: var(--dash-fresh-bg);
	color: var(--dash-fresh-fg);
}
.dash-chip--aging {
	background-color: var(--dash-aging-bg);
	color: var(--dash-aging-fg);
}
.dash-chip--old {
	background-color: var(--dash-old-bg);
	color: var(--dash-old-fg);
}
.dash-chip--fresh > strong, .dash-chip--aging > strong, .dash-chip--old > strong {
	color: inherit;
}
.dash-tip-box {
	position: fixed;
	z-index: 1000;
	width: 320px;
	max-width: calc(100vw - 16px);
	padding: 12px 14px;
	border: 1px solid var(--dash-line);
	border-radius: 6px;
	background-color: #fff;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
	font-size: 0.85rem;
	line-height: 1.35;
	color: #212529;
	pointer-events: none;
}
.dash-tip__head {
	display: flex;
	align-items: center;
	gap: 8px;
}
.dash-tip__head > strong {
	font-size: 1rem;
	color: var(--color-base);
}
.dash-tip__head > .dash-status {
	margin-left: auto;
}
.dash-tip__sub, .dash-tip__issue {
	display: block;
}
.dash-tip__sub {
	margin-top: 2px;
	color: var(--dash-muted);
}
.dash-tip__lines {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 4px 12px;
	margin-top: 10px;
}
.dash-tip__lines > span:nth-child(odd) {
	color: var(--dash-muted);
}
.dash-tip__issue {
	margin-top: 10px;
	padding-top: 8px;
	border-top: 1px solid var(--dash-row-line);
	white-space: normal;
}

.dash-lanes__free {
	border-top: 1px solid var(--dash-row-line);
	font-size: 0.85rem;
	color: #495057;
}
.dash-lanes__free > strong {
	margin-right: 6px;
	color: var(--color-base);
}

@media only screen and (max-width: 600px) {
	.dash-lane {
		grid-template-columns: 1fr;
		gap: 6px;
		padding: 10px 14px;
	}
	.dash-lane__name {
		flex-direction: row;
		align-items: baseline;
		gap: 8px;
	}
}

.dash-due__stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	border-bottom: 1px solid var(--dash-row-line);
}
.dash-due__stat {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 18px;
}
.dash-due__stat > strong {
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--color-base);
}
.dash-due__stat > strong.dash-alert {
	color: var(--dash-alert);
}
.dash-due__stat > strong.dash-warn {
	color: var(--dash-warn);
}
.dash-due__stat > span {
	font-size: 0.78rem;
	color: var(--dash-muted);
}
.dash-due__rows {
	padding: 6px 0;
}
.dash-due__row {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 10px;
	padding: 7px 18px;
	font-size: 0.9rem;
}
.dash-due__rows .dash-card__footer {
	padding: 6px 18px;
}

.dash-spend__total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 0.82rem;
}
.dash-spend__total > strong {
	font-size: 1.75rem;
	font-weight: 800;
	color: var(--color-base);
}
.dash-spend__bar {
	display: flex;
	height: 10px;
	border-radius: 3px;
	overflow: hidden;
	background-color: var(--dash-row-line);
}
.dash-spend--parts {
	background-color: #34597e;
}
.dash-spend--services {
	background-color: #7f9cbc;
}
.dash-spend--misc {
	background-color: #c3d0de;
}
.dash-spend__note {
	font-size: 0.78rem;
	color: var(--dash-muted);
}
.dash-spend__title {
	padding-top: 8px;
	border-top: 1px solid var(--dash-row-line);
	font-size: 0.82rem;
	font-weight: var(--font-weight-heavy-bold);
	color: #495057;
}
.dash-spend__row {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	font-size: 0.9rem;
}

.dashboard ~ .minicard {
	margin-top: 0;
}


/* mechanic work order screen (B2B-240) - one column, large touch targets for shop tablets */

.mwo {
	font-size: 1rem;
}
.mwo input[type=text], .mwo input[type=date], .mwo input[type=search], .mwo select, .mwo textarea {
	min-height: 44px;
	font-size: 1rem;
	box-sizing: border-box;
}
.mwo textarea {
	width: 100%;
	max-width: 640px;
}

.mwo__acting {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	padding: 10px 20px;
	background: #fff7e0;
	border-bottom: 1px solid #f0d58a;
}

.mwo__fields {
	padding: 10px 20px 0 20px;
}
.mwo__field {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 8px 20px;
	padding: 16px 0;
	border-bottom: 1px solid var(--color-card-line);
}
.mwo__label {
	font-weight: var(--font-weight-bold);
	padding-top: 10px;
}
.mwo__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin-right: 8px;
	border-radius: 50%;
	background: #f2b632;
	color: #222;
	font-weight: var(--font-weight-heavy-bold);
}
.mwo__control {
	min-width: 0;
}
.mwo__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}
.mwo__hint {
	color: #777;
	font-size: 0.9rem;
}
/* busy mechanics (field 5) and bay status (field 6): work order cards in the style of the vehicle card */
.mwo-busy-list {
	margin-top: 10px;
}
.mwo-busy + .mwo-busy {
	margin-top: 10px;
}
.mwo-busy__title, .mwo-bay-status__title {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-bottom: 6px;
	color: #7a4a00;
	font-size: 0.95rem;
}
.mwo-bay-status {
	margin-top: 10px;
}
.mwo-bay-status__group + .mwo-bay-status__group {
	margin-top: 12px;
}
.mwo-bay-status__title {
	color: #495057;
	font-weight: var(--font-weight-bold);
}
.mwo-bay-status__title--busy {
	color: #7a4a00;
}
.mwo-bay-status__cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 8px;
	max-width: 1000px;
}
.mwo-bay-status__free {
	display: flex;
	align-items: center;
	gap: 6px;
	color: #1e6b33;
	font-size: 0.95rem;
}
.mwo-wo-card {
	box-sizing: border-box;
	width: 100%;
	max-width: 640px;
	padding: 12px 14px;
	background: #fffaf0;
	border: 1px solid #f0dfbf;
	border-left: 4px solid #f0a020;
	border-radius: var(--border-radius);
}
.mwo-bay-status__cards .mwo-wo-card {
	max-width: none;
}
.mwo-wo-card--compact {
	padding: 10px 12px;
	background: #f5f7fa;
	border-color: #e1e6ee;
	border-left-color: #8a939b;
}
.mwo-wo-card__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
	margin-bottom: 8px;
}
.mwo-wo-card__id {
	font-weight: var(--font-weight-bold);
}
.mwo-wo-card__status {
	padding: 1px 8px;
	border-radius: 10px;
	background: #e9ecef;
	color: #495057;
	font-size: 0.75rem;
	font-weight: var(--font-weight-bold);
}
.mwo-wo-card__status--OPN {
	background: #e3f2e6;
	color: #1e6b33;
}
.mwo-wo-card__status--HLD {
	background: #fbe3e3;
	color: #a61b1b;
}
.mwo-wo-card__status--VER {
	background: #e5ebfa;
	color: #2a4aa0;
}
.mwo-wo-card__medallion {
	font-size: 1.25rem;
	font-weight: var(--font-weight-heavy-bold);
	line-height: 1.1;
}
.mwo-wo-card--compact .mwo-wo-card__medallion {
	font-size: 1.05rem;
}
.mwo-wo-card__vehicle {
	color: #444;
}
.mwo-wo-card__facts {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: 6px 16px;
	margin: 0;
}
.mwo-wo-card__facts dt {
	text-transform: uppercase;
	color: #888;
	font-size: 0.7rem;
	letter-spacing: 0.03em;
}
.mwo-wo-card__facts dd {
	margin: 2px 0 0 0;
	font-weight: var(--font-weight-bold);
	font-size: 0.9rem;
	overflow-wrap: anywhere;
}
.mwo-wo-card__overdue {
	color: #c62828;
}
.mwo-wo-card__none {
	color: #8a939b;
	font-weight: normal;
}
.mwo-wo-card__issue {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid #f0dfbf;
	font-size: 0.9rem;
}
.mwo-wo-card__issue span {
	margin-right: 4px;
	text-transform: uppercase;
	color: #888;
	font-size: 0.7rem;
	letter-spacing: 0.03em;
}
.mwo__locked {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
}
.mwo__locked span:first-child {
	font-weight: var(--font-weight-bold);
}

.mwo__panel-title {
	margin: 14px 0 6px 0;
	font-weight: var(--font-weight-bold);
}
.mwo__check-in {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 12px;
	margin-bottom: 8px;
	border: 1px solid var(--color-card-line);
	border-radius: var(--border-radius);
}
.mwo__check-in--selected {
	border-color: #28a745;
	background: #f0fbf3;
}
.mwo__warning {
	margin-top: 10px;
	padding: 10px 12px;
	background: #fdecea;
	border-left: 3px solid var(--color-btn-danger-bg);
}
.mwo__separate {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 10px;
	min-height: 44px;
}
.mwo__separate input {
	width: 22px;
	height: 22px;
}

.mwo__footer {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 20px;
}
.mwo__footer-status {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-left: auto;
}



.mwo__bay-native {
	display: none;
}
.mwo-select.mwo-select--wide {
	width: 360px;
}
.mwo-select.mwo-select--wide .mwo-select__panel {
	width: 420px;
}
.mwo-select__section {
	padding: 10px 10px 4px 10px;
	color: #888;
	font-size: 0.72rem;
	font-weight: var(--font-weight-bold);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.mwo-select__option-main .mwo-badge + .mwo-badge {
	margin-left: -2px;
}

.vehicle-card-slot {
	display: block;
}

/* custom mechanic picker */

.mwo-select {
	position: relative;
	width: 280px;
	max-width: 100%;
}
.mwo-select__button {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	min-height: 44px;
	padding: 6px 8px 6px 12px;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: var(--border-radius);
	font-size: 1rem;
	text-align: left;
	cursor: pointer;
}
.mwo-select__button[aria-expanded=true] {
	border-color: var(--color-link-light);
	box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.15);
}
.mwo-select__button .mwo-select__name {
	flex-grow: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.mwo-select__placeholder {
	flex-grow: 1;
	color: #888;
}
.mwo-select__caret {
	color: #777;
}
.mwo-select__panel {
	position: absolute;
	z-index: 55;
	top: calc(100% + 4px);
	left: 0;
	width: 340px;
	max-width: 90vw;
	padding: 8px;
	background: var(--color-card-bg);
	border: 1px solid var(--color-card-line);
	border-radius: var(--border-radius);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.mwo-select__filter {
	width: 100%;
	margin-bottom: 6px;
}
.mwo-select__list {
	max-height: 320px;
	overflow-y: auto;
}
.mwo-select__option {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-height: 44px;
	box-sizing: border-box;
	justify-content: center;
	padding: 8px 10px;
	border-radius: var(--border-radius);
	cursor: pointer;
}
.mwo-select__option:hover, .mwo-select__option--active {
	background: #eef5ff;
}
.mwo-select__option--selected {
	background: #e3efff;
	font-weight: var(--font-weight-bold);
}
.mwo-select__option--disabled {
	cursor: default;
	opacity: 0.5;
}
.mwo-select__option--disabled:hover {
	background: none;
}
.mwo-select__option-main {
	display: flex;
	align-items: center;
	gap: 8px;
}
.mwo-select__detail {
	color: #777;
	font-size: 0.85rem;
	font-weight: normal;
}
.mwo-select__empty {
	padding: 10px;
	color: #888;
}
.mwo-badge {
	display: inline-block;
	padding: 2px 7px;
	border-radius: 10px;
	background: #e9ecef;
	color: #555;
	font-size: 0.72rem;
	font-weight: var(--font-weight-bold);
	text-transform: uppercase;
	letter-spacing: 0.02em;
	white-space: nowrap;
}
.mwo-badge--free {
	background: #dff3e4;
	color: #1e7b34;
}
.mwo-badge--busy {
	background: #fde2c4;
	color: #9a4d00;
}

.mwo-pick {
	position: relative;
	display: inline-block;
	margin-left: 4px;
}
.mwo-pick__popover {
	position: absolute;
	z-index: 60;
	top: 46px;
	left: 0;
	width: 280px;
	padding: 12px;
	background: var(--color-card-bg);
	border: 1px solid var(--color-card-line);
	border-radius: var(--border-radius);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
	font-size: 1rem;
	font-weight: normal;
}
.mwo-pick__title {
	font-weight: var(--font-weight-bold);
	margin-bottom: 8px;
}
.mwo-pick__filter {
	width: 100%;
	box-sizing: border-box;
	min-height: 40px;
	margin-bottom: 8px;
}
.mwo-pick__list {
	max-height: 320px;
	overflow-y: auto;
}
.mwo-pick__item, .mwo-pick__item:visited {
	display: block;
	padding: 10px 8px;
	min-height: 24px;
	color: var(--color-fg);
	border-radius: var(--border-radius);
}
.mwo-pick__item:hover {
	background: #eef5ff;
	text-decoration: none;
}
.mwo-pick__empty, .mwo-pick__hint {
	color: #777;
	font-size: 0.85rem;
}
.mwo-pick__hint {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid var(--color-card-line);
}

@media only screen and (max-width: 860px) {
	.mwo__field {
		grid-template-columns: 1fr;
	}
	.mwo__label {
		padding-top: 0;
	}
}


/* mechanic top bar (B2B-247): one white line fixed across the full width, above the sidebar; uses the site's .btn styles */

:root {
	--mbar-h: 52px;
}

.has-mbar {
	padding-top: var(--mbar-h);
}
.has-mbar .sidebar {
	top: calc(var(--mbar-h) + 20px);
	max-height: calc(100vh - var(--mbar-h) - 90px);
}
.has-mbar #float-controls.float-controls--fixed {
	top: calc(var(--mbar-h) + 16px) !important;
}

.mbar {
	position: fixed;
	z-index: 90;
	top: 0;
	left: 0;
	right: 0;
	background: var(--color-card-bg);
	border-bottom: 1px solid var(--color-card-line);
	border-left: 4px solid #adb5bd;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.mbar--working {
	border-left-color: #28a745;
}
.mbar--ready {
	border-left-color: var(--color-btn-primary-bg);
}
.mbar__inner {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 8px;
	height: 52px;
	padding: 0 16px;
	white-space: nowrap;
}

.mbar__status {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
}
.mbar__dot {
	flex-shrink: 0;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #adb5bd;
}
.mbar--working .mbar__dot {
	background: #28a745;
	box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
	animation: mbar-pulse 2s ease-in-out infinite;
}
.mbar--ready .mbar__dot {
	background: var(--color-btn-primary-bg);
}
@keyframes mbar-pulse {
	50% { box-shadow: 0 0 0 6px rgba(40, 167, 69, 0); }
}
.mbar__label {
	color: #6c757d;
	overflow: hidden;
	text-overflow: ellipsis;
}
.mbar__title {
	font-weight: var(--font-weight-bold);
	overflow: hidden;
	text-overflow: ellipsis;
}
.mbar__title a, .mbar__title a:visited {
	color: var(--color-base);
}
.mbar__meta {
	font-weight: normal;
	color: #6c757d;
}
.mbar__status-tag {
	padding: 2px 8px;
	border-radius: 10px;
	background: #e9ecef;
	color: #555;
	font-size: 0.75rem;
}
.mbar__timer {
	flex-shrink: 0;
	padding: 2px 8px;
	border-radius: var(--border-radius);
	background: #e8f5ec;
	color: #1e6b33;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-weight: var(--font-weight-bold);
	font-variant-numeric: tabular-nums;
}

.mbar__actions, .mbar__viewing, .mbar__mine {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	gap: 6px;
}
.mbar__viewing {
	padding-left: 8px;
	border-left: 1px solid var(--color-card-line);
}
.mbar__form {
	display: inline-flex;
	margin: 0;
}

/* site buttons with an icon */
.mbar__btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.mbar__btn .material-symbols-outlined {
	font-size: 18px;
	line-height: 1;
}
.mbar .btn:not(.btn-primary):not(.btn-success):not(.btn-danger):not(.btn-filter) .material-symbols-outlined {
	color: var(--color-btn-default-fg);
}
.mbar .btn-filter {
	top: 0;
	padding-top: 0.375rem;
}
.mbar__btn--small {
	padding: 3px 8px;
	font-size: 0.8rem;
}
.mbar__count {
	display: inline-block;
	min-width: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: var(--color-base);
	color: #fff;
	font-size: 0.75rem;
	line-height: 18px;
}

/* popovers */
.mbar__popover-wrap {
	position: relative;
	display: inline-flex;
}
.mbar__popover {
	position: absolute;
	z-index: 95;
	top: calc(100% + 8px);
	right: 0;
	width: 330px;
	max-width: calc(100vw - 32px);
	max-height: calc(100vh - var(--mbar-h) - 40px);
	overflow-y: auto;
	padding: 8px;
	background: var(--color-card-bg);
	color: var(--color-fg);
	border: 1px solid var(--color-card-line);
	border-radius: var(--border-radius);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
	white-space: normal;
}
.mbar__popover a, .mbar__popover a:visited {
	color: var(--color-fg);
	text-decoration: none;
}
.mbar__popover-title {
	padding: 4px 6px 8px 6px;
	font-weight: var(--font-weight-bold);
}
.mbar__popover--hold {
	left: 0;
	right: auto;
	width: 290px;
	overflow-x: hidden;
}
.mbar__popover--hold .mbar__form {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 0 4px 4px 4px;
}
.mbar__popover--hold select, .mbar__popover--hold input {
	width: 100%;
	box-sizing: border-box;
}
.mbar__popover--hold .mbar__btn {
	justify-content: center;
}
.mbar__item {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 7px 6px;
	border-radius: var(--border-radius);
}
.mbar__item:hover {
	background: #f5f7fa;
}
/* the link covers the whole row; the Start / Switch button sits above it */
.mbar__item-main::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: var(--border-radius);
}
.mbar__item .mbar__form, .mbar__item .mwo-badge {
	position: relative;
	z-index: 1;
}
.mbar__item--current {
	background: #e8f5ec;
}
.mbar__item-main {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.mbar__item-detail {
	color: #6c757d;
	font-size: 0.8rem;
}
.mbar__empty {
	padding: 10px 6px;
	color: #6c757d;
}
.mbar__popover .mbar__new, .mbar__popover .mbar__new:visited {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-top: 4px;
	padding: 8px 6px 4px 6px;
	border-top: 1px solid var(--color-card-line);
	color: var(--color-link);
}
.mbar__message {
	padding: 6px 16px;
	background: #fdecea;
	color: #8a1c13;
	border-top: 1px solid #f5c2c0;
}

/* keep one line: drop secondary text, then button labels, as the window narrows */
@media only screen and (max-width: 1280px) {
	.mbar__label, .mbar__status-tag {
		display: none;
	}
}
@media only screen and (max-width: 1150px) {
	.mbar__meta, .mbar__age {
		display: none;
	}
}
@media only screen and (max-width: 1050px) {
	.mbar__inner .mbar__btn-text {
		display: none;
	}
	.mbar__inner .mbar__popover .mbar__btn-text {
		display: inline;
	}
}

/* mechanic work order page: status badge next to the title (mechanics have no status strip) */
.mwo__title-status {
	position: relative;
	top: 16px;
	margin-left: 10px;
}
/* square header buttons side by side (print, act as mechanic) */
.header__h1-aux .header__h1-aux__button + .header__h1-aux__button,
.header__h1-aux .header__h1-aux__button + .mwo-pick {
	margin-left: 4px;
}
.header__h1-aux .mwo-pick {
	margin-right: 12px;
}
.mwo__title-status .badge {
	font-size: 0.85rem;
	padding: 5px 9px;
}
/* due dates (field 4) */
.mwo-due {
	gap: 12px 24px;
}
.mwo-due__item {
	display: flex;
	align-items: center;
	gap: 8px;
}
.mwo-due__caption {
	color: #555;
}
.mwo-due--eta {
	margin-top: 10px;
	flex-wrap: wrap;
}
.mwo-due--eta .mwo-due__item {
	flex-wrap: wrap;
}
.mwo-due__eta-now {
	font-weight: 600;
}
.mwo-due__eta-now--overdue {
	color: #c62828;
}

/* routine maintenance (B2B-245): "Upcoming service" box beside the fields on wide screens, above them otherwise; field 12 list */
.mwo__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas: "upcoming" "fields";
}
.mwo__layout > .mwo__fields {
	grid-area: fields;
	min-width: 0;
}
.mwo-upcoming {
	grid-area: upcoming;
	margin: 16px 20px 0 20px;
	border: 1px solid #222;
	border-radius: var(--border-radius);
	background: #fff;
	overflow: hidden;
	align-self: start;
}
.mwo-upcoming__head {
	padding: 10px 14px;
	background: #f2b632;
	color: #222;
	font-weight: var(--font-weight-heavy-bold);
}
.mwo-upcoming__body {
	padding: 10px 14px;
}
.mwo-upcoming__item {
	padding: 8px 0;
}
.mwo-upcoming__item + .mwo-upcoming__item {
	border-top: 1px solid var(--color-card-line);
}
.mwo-upcoming__item--done strong {
	text-decoration: line-through;
	color: #777;
}
.mwo-upcoming__due {
	color: #555;
	font-size: 0.95rem;
}
.mwo-upcoming__link {
	display: inline-block;
	margin-top: 8px;
	font-size: 0.9rem;
}
@media only screen and (min-width: 1400px) {
	.mwo__layout {
		grid-template-columns: minmax(0, 1fr) 300px;
		grid-template-areas: "fields upcoming";
	}
	.mwo-upcoming {
		position: sticky;
		top: calc(var(--mbar-h, 0px) + 16px);
		margin: 26px 20px 0 0;
	}
}

.mwo-maint {
	max-width: 900px;
	container-type: inline-size;
	border: 1px solid var(--color-card-line);
	border-radius: var(--border-radius);
	margin-bottom: 8px;
}
.mwo-maint__head, .mwo-maint__row {
	display: grid;
	grid-template-columns: 56px minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: 4px 14px;
	align-items: start;
	padding: 10px 12px;
}
.mwo-maint__head {
	background: #f6f7f9;
	color: #555;
	font-size: 0.8rem;
	font-weight: var(--font-weight-bold);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}
.mwo-maint__row {
	border-top: 1px solid var(--color-card-line);
	cursor: pointer;
}
.mwo-maint__row--requested {
	background: #fffaf0;
}
.mwo-maint__tick input {
	width: 22px;
	height: 22px;
	margin: 0;
}
.mwo-maint__item {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.mwo-maint__desc {
	white-space: pre-line;
}
.mwo-maint__note {
	color: #7a4a00;
	font-size: 0.85rem;
}
.mwo-maint__last, .mwo-maint__next {
	font-size: 0.95rem;
}
.mwo-maint__badge {
	display: inline-block;
	padding: 1px 6px;
	border-radius: 10px;
	background: #eef1f4;
	color: #495057;
	font-size: 0.75rem;
	font-weight: var(--font-weight-bold);
	white-space: nowrap;
}
.mwo-maint__badge--overdue {
	background: #fde2e1;
	color: #a61b1b;
}
.mwo-maint__badge--done {
	background: #dff3e4;
	color: #1e6b33;
}
@container (max-width: 620px) {
	.mwo-maint__head {
		display: none;
	}
	.mwo-maint__row {
		grid-template-columns: 40px 1fr;
	}
	.mwo-maint__last, .mwo-maint__next {
		grid-column: 2;
	}
	.mwo-maint__last::before {
		content: "Last done: ";
		color: #777;
	}
	.mwo-maint__next::before {
		content: "Next due: ";
		color: #777;
	}
}

/* routine maintenance admin pages (B2B-245) */
.maint-filter__title {
	margin: 0 0 12px 0;
}
.maint-filter__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 12px 20px;
	max-width: 1100px;
}
.maint-filter__grid label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	color: #555;
	font-size: 0.9rem;
}
.maint-filter__grid select, .maint-filter__grid input[type=text] {
	min-height: 36px;
	color: #222;
}
.maint-filter__grid .maint-filter__check {
	flex-direction: row;
	align-items: center;
	align-self: end;
	gap: 8px;
	padding-bottom: 8px;
}
.maint-filter__pair {
	display: flex;
	gap: 8px;
}
.maint-filter__pair input {
	width: 50%;
}
.maint-filter__actions {
	display: flex;
	gap: 10px;
	margin-top: 14px;
}
.maint-pick {
	margin-bottom: 18px;
}
.maint-pick__head {
	margin-bottom: 6px;
}
.maint-pick__list {
	max-height: 420px;
	overflow: auto;
	border: 1px solid var(--color-card-line);
	border-radius: var(--border-radius);
}
.maint-pick__row {
	display: grid;
	grid-template-columns: 28px minmax(170px, 1.3fr) 60px 70px minmax(150px, 1.2fr) 90px minmax(150px, 1.2fr) 80px minmax(110px, 1fr);
	gap: 10px;
	align-items: center;
	padding: 7px 10px;
	border-top: 1px solid var(--color-card-line);
	font-size: 0.9rem;
	cursor: pointer;
}
.maint-pick__row:first-child {
	border-top: 0;
}
.maint-pick__row--all {
	position: sticky;
	top: 0;
	background: #f6f7f9;
	font-weight: var(--font-weight-bold);
	z-index: 1;
}
.maint-pick__vin {
	font-family: monospace;
}
.maint-pick__pending {
	color: #7a4a00;
	font-size: 0.8rem;
}
.maint-pick__empty {
	padding: 10px;
	color: #777;
}
.maint-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 10px;
}
.maint-section__head h5 {
	margin: 0;
}
.maint-section__filters {
	display: flex;
	gap: 8px;
}

/* parts & services (field 11): one grid per line on named areas, so parts, labor and misc amounts line up in the same columns */
.mwo__field--lines {
	grid-template-columns: 1fr;
}
.mwo__field--lines .mwo__label {
	padding-top: 0;
}
.mwo-lines {
	--mwo-lines-columns: minmax(200px, 1fr) 84px 170px 110px 96px;
	--mwo-lines-areas: "main qty unit net act";
	max-width: 1100px;
	container-type: inline-size; /* the line layout follows the block's own width (see the @container rules below) */
}
.mwo-lines--tax {
	--mwo-lines-columns: minmax(200px, 1fr) 84px 170px 104px 84px 104px 96px;
	--mwo-lines-areas: "main qty unit net tax gross act";
}
.mwo-lines input[type=text] {
	width: 100%;
	min-height: 40px;
}

/* tax: a two-way switch and the rate */
.mwo-lines__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin-bottom: 14px;
}
.mwo-lines__toolbar-caption {
	color: #555;
}
.mwo-tax {
	display: inline-flex;
	padding: 3px;
	border-radius: 8px;
	background: #eef0f3;
}
.mwo-tax__option {
	position: relative;
	margin: 0;
	cursor: pointer;
}
.mwo-tax__option input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.mwo-tax__option span {
	display: block;
	padding: 6px 14px;
	border-radius: 6px;
	color: #555;
	font-size: 0.95rem;
}
.mwo-tax__option input:checked + span {
	background: #fff;
	color: var(--color-fg);
	font-weight: var(--font-weight-bold);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.mwo-tax__option input:focus-visible + span {
	outline: 2px solid var(--color-link-light);
	outline-offset: 1px;
}
.mwo-tax__rate {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	color: #555;
}
.mwo-lines .mwo-tax__rate input[type=text] {
	width: 84px;
	text-align: right;
}
.mwo-lines:not(.mwo-lines--tax) .mwo-tax__rate {
	opacity: 0.45;
}

/* parts / labor / misc blocks */
.mwo-lines__group {
	margin-bottom: 14px;
	border: 1px solid #e3e6ea;
	border-radius: 8px;
	background: #fff;
}
.mwo-lines__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	padding: 10px 14px;
	border-bottom: 1px solid #e3e6ea;
	border-radius: 8px 8px 0 0;
	background: #f7f8fa;
}
.mwo-lines__title {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-size: 1rem;
	font-weight: var(--font-weight-bold);
}
.mwo-lines__title .material-symbols-outlined {
	color: #6c757d;
}
#mwo-lines .mwo-lines__tool {
	margin: 0;
	line-height: normal;
	padding: 5px 10px;
	border: 1px solid #ced4da;
	border-radius: var(--border-radius);
	background: #fff;
	color: #495057;
	font: inherit;
	font-size: 0.85rem;
	cursor: pointer;
}
#mwo-lines .mwo-lines__tool:hover {
	background: #f1f3f5;
}
.mwo-lines__rate {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	color: #555;
	font-size: 0.95rem;
}
.mwo-lines__rate .mwo-money {
	width: 100px;
}

/* adjust prices by %: a popover under its button, over the lines (nothing below moves) */
.mwo-lines__adjust-wrap {
	position: relative;
}
.mwo-lines__adjust {
	position: absolute;
	z-index: 30;
	top: calc(100% + 6px);
	right: 0;
	width: 390px;
	max-width: calc(100vw - 40px);
	padding: 12px 14px;
	border: 1px solid #ced4da;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.mwo-lines__adjust[hidden] {
	display: none;
}
.mwo-lines__adjust-label {
	display: block;
	margin: 0 0 8px 0;
	color: #495057;
	font-size: 0.95rem;
}
.mwo-lines__adjust-row {
	display: flex;
	align-items: center;
	gap: 8px;
}
.mwo-lines__adjust-percent {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-right: auto;
}
.mwo-lines .mwo-lines__adjust-input {
	width: 90px;
	text-align: right;
}
.mwo-lines__adjust-note {
	margin-top: 8px;
	color: #1e6b33;
	font-size: 0.9rem;
}
.mwo-lines__adjust-note:empty {
	display: none;
}
.mwo-lines__adjust-note.is-error {
	color: #a61b1b;
}

/* a line */
.mwo-line {
	display: grid;
	grid-template-columns: var(--mwo-lines-columns);
	grid-template-areas: var(--mwo-lines-areas);
	align-items: center;
	gap: 0 12px;
	padding: 8px 14px;
	border-bottom: 1px solid #eef0f3;
}
.mwo-line.is-hidden {
	display: none;
}
.mwo-line__main { grid-area: main; min-width: 0; }
.mwo-line__qty { grid-area: qty; }
.mwo-line__unit { grid-area: unit; }
.mwo-line__net { grid-area: net; }
.mwo-line__tax { grid-area: tax; }
.mwo-line__gross { grid-area: gross; }
.mwo-line__act { grid-area: act; }
.mwo-line__wide { grid-column: main-start / unit-end; min-width: 0; }
.mwo-lines:not(.mwo-lines--tax) .mwo-line__tax,
.mwo-lines:not(.mwo-lines--tax) .mwo-line__gross,
.mwo-lines:not(.mwo-lines--tax) .mwo-lines__total--tax,
.mwo-lines:not(.mwo-lines--tax) .mwo-lines__total--gross {
	display: none;
}
.mwo-line__net, .mwo-line__tax, .mwo-line__gross {
	text-align: right;
}
.mwo-line .work-order__amount {
	font-family: inherit;
	font-size: 0.95rem;
	font-variant-numeric: tabular-nums;
}
.mwo-line__qty input[type=text] {
	text-align: right;
}

.mwo-line--cols {
	padding-top: 8px;
	padding-bottom: 6px;
	color: #6c757d;
	font-size: 0.8rem;
	font-weight: var(--font-weight-bold);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}
.mwo-line--cols .mwo-line__qty {
	text-align: right;
}
.mwo-lines__group.is-empty .mwo-line--cols {
	display: none;
}

/* a line with a problem (calculator / server check): red edge, the warning icon says what */
.mwo-line.work-order__error {
	background: #fff5f5;
	box-shadow: inset 3px 0 0 #dc3545;
}
.mwo-line .work-order__error-btn {
	margin: 0;
	cursor: help;
}

/* the part search looks like a field: part number on top, description under it, as tall as the Qty / price inputs beside it */
.mwo-line__picker {
	display: flex;
	align-items: center;
	gap: 8px;
	box-sizing: border-box;
	height: 40px;
	padding: 0 10px;
	border: 1px solid #ced4da;
	border-radius: var(--border-radius);
	background: #fff;
	color: var(--color-fg);
	text-decoration: none;
}
.mwo-line__picker:hover, .mwo-line__picker:focus-visible {
	border-color: var(--color-link-light);
	color: var(--color-fg);
	text-decoration: none;
}
.mwo-line__picker-text {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	min-width: 0;
	line-height: 1.15;
}
.mwo-line__picker .part-partNumber {
	overflow: hidden;
	font-size: 0.9rem;
	font-weight: var(--font-weight-bold);
	white-space: nowrap;
	text-overflow: ellipsis;
}
.mwo-line__picker .part-description {
	overflow: hidden;
	color: #6c757d;
	font-size: 0.75rem;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.mwo-line__picker .part-description .mwo-line__choose {
	display: none;
}
.mwo-line__choose {
	color: #8a939b;
	font-weight: normal;
}
.mwo-line__picker-icon {
	flex-shrink: 0;
	color: #8a939b;
}

/* part search (PartSearch in mechanic-work-orders.js): a search box on a line without a part, the part's name once picked; results drop down while typing */
.mwo-part {
	position: relative;
}
.mwo-part .mwo-line__picker {
	width: 100%;
	font: inherit;
	text-align: left;
	cursor: pointer;
}
.mwo-part.is-empty .mwo-line__picker, .mwo-part.is-searching .mwo-line__picker {
	display: none;
}
.mwo-part__input {
	display: none;
}
.mwo-lines input.mwo-part__input {
	width: 100%;
	min-height: 40px;
	height: 40px;
}
.mwo-part.is-empty .mwo-part__input, .mwo-part.is-searching .mwo-part__input {
	display: block;
}
.mwo-part__results {
	display: none;
	position: absolute;
	z-index: 30;
	top: calc(100% + 4px);
	left: 0;
	width: max(100%, 460px);
	max-width: calc(100vw - 40px);
	max-height: 340px;
	overflow-y: auto;
	border: 1px solid #ced4da;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.mwo-part__results.is-open {
	display: block;
}
.mwo-part__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 12px;
	border-bottom: 1px solid #f1f3f5;
	cursor: pointer;
}
.mwo-part__item.is-active, .mwo-part__item:hover {
	background: #eef5ff;
}
.mwo-part__item-text {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	min-width: 0;
	line-height: 1.25;
}
.mwo-part__item-text strong {
	font-size: 0.95rem;
}
.mwo-part__item-text span {
	overflow: hidden;
	color: #6c757d;
	font-size: 0.85rem;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.mwo-part__item-cost {
	flex-shrink: 0;
	color: #495057;
	font-size: 0.9rem;
	font-variant-numeric: tabular-nums;
}
.mwo-part__item-used {
	flex-shrink: 0;
	padding: 1px 8px;
	border-radius: 10px;
	background: #fff3cd;
	color: #7a5b00;
	font-size: 0.75rem;
	font-weight: var(--font-weight-bold);
}
.mwo-part__message {
	padding: 10px 12px;
	color: #6c757d;
	font-size: 0.9rem;
}

/* money inputs carry a $ in front */
.mwo-money {
	position: relative;
	display: inline-block;
	width: 100%;
}
.mwo-money::before {
	content: "$";
	position: absolute;
	top: 50%;
	left: 9px;
	transform: translateY(-50%);
	color: #8a939b;
	pointer-events: none;
}
.mwo-lines .mwo-money input[type=text] {
	padding-left: 20px;
	text-align: right;
}
.mwo-line__unit {
	display: flex;
	align-items: center;
	gap: 6px;
}
.mwo-line__unit .mwo-money {
	width: 110px;
	flex-shrink: 0;
}
.mwo-line__unit .cost-helper {
	top: 0;
	color: #6c757d;
	font-size: 0.85rem;
}
.mwo-line__unit .cost-info {
	cursor: help;
}

.mwo-line__act {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 4px;
}
.mwo-line__act .work-order__order-parts-btn {
	top: 0;
	margin: 0;
	white-space: nowrap;
}
.mwo-line__remove {
	display: inline-flex;
	padding: 6px;
	border: 0;
	border-radius: 50%;
	background: none;
	color: #8a939b;
	cursor: pointer;
}
.mwo-line__remove:hover {
	background: #fbe3e3;
	color: #a61b1b;
}

/* subtotal line: Add button on the left, the group's amounts in their columns */
.mwo-line--subtotal {
	border-bottom: 0;
	border-radius: 0 0 8px 8px;
	background: #fcfcfd;
}
.mwo-line--subtotal .mwo-line__main {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
}
.mwo-line__label {
	grid-column: qty-start / unit-end;
	color: #555;
	text-align: right;
}
.mwo-line--service .mwo-line__label {
	grid-column: unit;
}
.mwo-line--subtotal .mwo-line__qty {
	color: #555;
	text-align: right;
}
.mwo-lines__add {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 6px 12px 6px 8px;
	border: 1px dashed #9fb7d6;
	border-radius: var(--border-radius);
	background: #f5f9ff;
	color: var(--color-link-light);
	font: inherit;
	font-size: 0.95rem;
	cursor: pointer;
}
.mwo-lines__add:hover {
	border-style: solid;
	background: #e9f2ff;
}
.mwo-lines__empty, .mwo-lines__full {
	display: none;
	color: #8a939b;
	font-size: 0.9rem;
}
.mwo-lines__group.is-empty .mwo-lines__empty,
.mwo-lines__group.is-full .mwo-lines__full {
	display: inline;
}
.mwo-lines__group.is-full .mwo-lines__add {
	display: none;
}

/* grand total */
.mwo-lines__totals {
	width: 100%;
	max-width: 340px;
	margin: 4px 0 0 auto;
	padding: 10px 14px;
	border: 1px solid #e3e6ea;
	border-radius: 8px;
	background: #f7f8fa;
}
.mwo-lines__total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	padding: 3px 0;
}
.mwo-lines__total dt {
	font-weight: normal;
	color: #555;
}
.mwo-lines__total dd {
	margin: 0;
	font-family: inherit;
	font-size: 1rem;
	font-variant-numeric: tabular-nums;
}
.mwo-lines:not(.mwo-lines--tax) .mwo-lines__total--net,
.mwo-lines__total--gross {
	margin-top: 4px;
	padding-top: 8px;
	border-top: 1px solid #dfe2e6;
}
.mwo-lines:not(.mwo-lines--tax) .mwo-lines__total--net dt,
.mwo-lines__total--gross dt {
	color: var(--color-fg);
	font-weight: var(--font-weight-bold);
}
.mwo-lines:not(.mwo-lines--tax) .mwo-lines__total--net dd,
.mwo-lines__total--gross dd {
	font-size: 1.25rem;
	font-weight: var(--font-weight-bold);
}
.mwo-lines--tax .mwo-lines__total--net {
	margin-top: 0;
	padding-top: 3px;
	border-top: 0;
}

/* medium width with sales tax: no room for per-line tax and gross, they stay in the subtotals and the totals box */
@container (max-width: 1000px) {
	.mwo-lines--tax .mwo-line {
		--mwo-lines-columns: minmax(200px, 1fr) 84px 170px 110px 96px;
		--mwo-lines-areas: "main qty unit net act";
	}
	.mwo-lines--tax .mwo-line[data-line] .mwo-line__tax, .mwo-lines--tax .mwo-line[data-line] .mwo-line__gross,
	.mwo-lines--tax .mwo-line--cols .mwo-line__tax, .mwo-lines--tax .mwo-line--cols .mwo-line__gross,
	.mwo-lines--tax .mwo-line--subtotal .mwo-line__tax, .mwo-lines--tax .mwo-line--subtotal .mwo-line__gross {
		display: none;
	}
}

/* narrow: the part or description on its own row, the numbers under it with small captions; per-line tax stays in the subtotals */
@container (max-width: 700px) {
	.mwo-lines .mwo-line {
		--mwo-lines-columns: 1fr 1fr 1fr auto;
		--mwo-lines-areas: "main main main act" "qty unit net net";
	}
	.mwo-line {
		gap: 6px 10px;
	}
	.mwo-line--cols {
		display: none;
	}
	.mwo-line[data-line] .mwo-line__tax, .mwo-line[data-line] .mwo-line__gross,
	.mwo-line--subtotal .mwo-line__tax, .mwo-line--subtotal .mwo-line__gross {
		display: none;
	}
	.mwo-line[data-line] [data-label]::before {
		content: attr(data-label);
		display: block;
		margin-bottom: 2px;
		color: #6c757d;
		font-size: 0.75rem;
		text-align: left;
	}
	.mwo-line[data-line] .mwo-line__net[data-label]::before {
		text-align: right;
	}
	.mwo-line--misc[data-line] .mwo-line__net[data-label]::before {
		text-align: left;
	}
	.mwo-line__unit[data-label] {
		flex-wrap: wrap;
	}
	.mwo-line__unit[data-label]::before {
		flex-basis: 100%;
	}
	.mwo-line__wide {
		grid-column: 1 / 4;
		grid-row: 1;
	}
	.mwo-line--misc[data-line] .mwo-line__net {
		grid-column: 1 / 2;
		grid-row: 2;
	}
	.mwo-line--subtotal {
		grid-template-areas: "main main main main" "qty unit net net";
	}
	.mwo-line__label, .mwo-line--service .mwo-line__label {
		grid-column: 1 / 3;
		grid-row: 2;
	}
	.mwo-line--service.mwo-line--subtotal .mwo-line__label {
		grid-column: unit;
	}
}

/* history (bottom of the page): one outlined button per history, the count in a grey pill */
.mwo-history {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.mwo .mwo-history__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding: 6px 12px;
	border: 1px solid #ced4da;
	border-radius: var(--border-radius);
	background: #fff;
	color: #495057;
	font: inherit;
	font-size: 0.95rem;
	cursor: pointer;
}
.mwo .mwo-history__btn:hover {
	border-color: #adb5bd;
	background: #f7f8fa;
}
.mwo-history__btn .material-symbols-outlined {
	color: #6c757d;
}
.mwo-history__count {
	padding: 0 7px;
	border-radius: 10px;
	background: #eef0f3;
	color: #6c757d;
	font-size: 0.8rem;
	font-weight: var(--font-weight-bold);
}
.mwo-history__count:empty {
	display: none;
}

/* mechanic top bar: worked time and ETA */
.mbar__worked {
	flex-shrink: 0;
	padding: 2px 8px;
	border-radius: var(--border-radius);
	background: #eef2f7;
	color: #44546a;
	font-size: 0.85rem;
}
.mbar__eta-value {
	font-weight: var(--font-weight-bold);
}
.mbar__eta--overdue, .mbar__eta--overdue:hover {
	border-color: var(--color-btn-danger-bg);
	color: var(--color-btn-danger-bg);
}
.mbar__popover--eta {
	left: 0;
	right: auto;
	width: 300px;
}
.mbar__eta-current {
	padding: 0 6px 8px 6px;
	color: #44546a;
	font-size: 0.85rem;
}
.mbar__eta-current--overdue {
	color: var(--color-btn-danger-bg);
}
.mbar__eta-form {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 0 4px 4px 4px;
}
.mbar__eta-quick {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.mbar__eta-custom {
	display: flex;
	gap: 6px;
}
.mbar__eta-custom input {
	min-width: 0;
	flex: 1 1 auto;
}
.mwo__title-fact {
	margin-left: 12px;
	color: #6c757d;
	font-size: 0.9rem;
}
.mwo__title-fact strong {
	color: var(--color-fg);
}
.mwo__title-fact--overdue, .mwo__title-fact--overdue strong {
	color: var(--color-btn-danger-bg);
}


/* checklist per diagnosed issue item (B2B-242) */
.issue-checklist {
	display: flex;
	flex-direction: column;
	gap: 6px;
	max-width: 640px;
	margin-bottom: 8px;
}
.issue-checklist__row {
	display: flex;
	align-items: center;
	gap: 6px;
}
.issue-checklist__number {
	min-width: 1.6em;
	color: #6c757d;
	text-align: right;
}
.issue-checklist__name {
	flex: 1 1 auto;
	min-width: 0;
}
.issue-checklist__row .btn-sm .material-symbols-outlined {
	vertical-align: middle;
}
.issue-checklist__row:first-child .issue-checklist__up,
.issue-checklist__row:last-child .issue-checklist__down {
	visibility: hidden;
}
.issue-checklist__hint {
	margin-top: 6px;
	color: #6c757d;
	font-size: 0.85rem;
}
.issue-checklist__row .btn-sm {
	width: 30px;
	min-width: 0;
	padding: 4px 0;
	text-align: center;
}

/* mechanic top bar: aging of the work order (B2B-247) */
.mbar__age {
	flex-shrink: 0;
	color: #6c757d;
	font-size: 0.85rem;
}
.issue-checklist__add .material-symbols-outlined {
	vertical-align: middle;
}
.checklists__group {
	padding-top: 14px;
	font-weight: var(--font-weight-bold);
	color: var(--color-base);
}
.checklists__group-hint {
	margin-left: 8px;
	color: #6c757d;
	font-size: 0.85rem;
	font-weight: normal;
}


/* diagnosed issues picker with checklists (B2B-243) */
.mwo-issues__picker {
	display: grid;
	grid-template-columns: minmax(180px, 240px) 1fr;
	max-width: 900px;
	border: 1px solid var(--color-card-line);
	border-radius: var(--border-radius);
	overflow: hidden;
}
.mwo-issues__cats {
	display: flex;
	flex-direction: column;
	background: #f7f8fa;
	border-right: 1px solid var(--color-card-line);
}
.mwo-issues__cat {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 10px 10px 12px;
	border: none;
	border-bottom: 1px solid var(--color-card-line);
	background: transparent;
	font: inherit;
	text-align: left;
	color: var(--color-fg);
	cursor: pointer;
}
.mwo-issues__cat span:first-child {
	flex-grow: 1;
}
.mwo-issues__cat .material-symbols-outlined {
	color: #adb5bd;
}
.mwo-issues__cat:hover {
	background: #eef2f7;
}
.mwo-issues__cat--active, .mwo-issues__cat--active:hover {
	background: #fff;
	font-weight: var(--font-weight-bold);
	box-shadow: inset 3px 0 0 var(--color-link-light);
}
.mwo__count-pill {
	display: inline-block;
	min-width: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: var(--color-link-light);
	color: #fff;
	font-size: 0.75rem;
	line-height: 18px;
	text-align: center;
}
.mwo-issues__items {
	max-height: 260px;
	overflow-y: auto;
	padding: 4px 0;
}
.mwo-issues__item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 8px 12px;
	cursor: pointer;
}
.mwo-issues__item:hover {
	background: #f5f7fa;
}
.mwo-issues__item input {
	margin-top: 3px;
	flex-shrink: 0;
}
.mwo-issues__item-name {
	flex-grow: 1;
}
.mwo-issues__item-meta {
	flex-shrink: 0;
	color: #6c757d;
	font-size: 0.8rem;
	white-space: nowrap;
}
.mwo-issues__selected {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 900px;
	margin-top: 14px;
}
.mwo-issue__title {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 6px;
	font-weight: var(--font-weight-bold);
}
.mwo-issue__remove {
	flex-shrink: 0;
	padding: 2px;
	border: none;
	background: transparent;
	color: #a55;
	cursor: pointer;
}
.mwo-issue__box {
	border: 1px solid #f2d27a;
	border-radius: var(--border-radius);
	overflow: hidden;
}
.mwo-issue__head {
	display: flex;
	align-items: center;
	gap: 6px;
	width: 100%;
	padding: 8px 10px;
	border: none;
	background: #fdf3d3;
	font: inherit;
	text-align: left;
	cursor: pointer;
}
.mwo-issue__head-title {
	flex-grow: 1;
	font-weight: var(--font-weight-bold);
}
.mwo-issue__progress {
	padding: 1px 8px;
	border-radius: 10px;
	background: #fff;
	color: #8a5a00;
	font-size: 0.8rem;
	font-weight: var(--font-weight-bold);
}
.mwo-issue__progress--done {
	color: #1e6b33;
}
.mwo-issue__tasks {
	display: flex;
	flex-direction: column;
}
.mwo-issue__task {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	border-top: 1px solid #f6e7b8;
	cursor: pointer;
}
.mwo-issue__task:hover {
	background: #fffbea;
}
.mwo-issue__task-name {
	flex-grow: 1;
}
.mwo-issue__task-by {
	color: #6c757d;
	font-size: 0.8rem;
	white-space: nowrap;
}
.mwo-issue__none {
	padding: 6px 0 2px 2px;
	color: #6c757d;
	font-style: italic;
}
.mwo-issue__note, .mwo textarea.mwo-issue__note {
	width: 100%;
	max-width: 900px;
	min-height: 60px;
	box-sizing: border-box;
	margin-top: 6px;
	font-size: 0.9rem;
	resize: vertical;
}
/* checklist (field 10): every checklist as a card; the chosen one opens on its items with a bar to go back */
.mwo-checklist {
	max-width: 1100px;
}
.mwo-checklists {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 10px;
}
.mwo .mwo-checklists__card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	min-height: 96px;
	padding: 12px 14px;
	border: 1px solid #d6dae0;
	border-radius: 8px;
	background: #fff;
	color: var(--color-fg);
	font: inherit;
	text-align: left;
	cursor: pointer;
}
.mwo .mwo-checklists__card:hover {
	border-color: var(--color-link-light);
	background: #f8fbff;
}
.mwo .mwo-checklists__card.is-current {
	border-color: #2e7d32;
	background: #f4faf5;
	box-shadow: inset 3px 0 0 #2e7d32;
}
.mwo-checklists__name {
	font-weight: var(--font-weight-bold);
	line-height: 1.3;
}
.mwo-checklists__meta {
	color: #6c757d;
	font-size: 0.9rem;
}
.mwo-checklists__open, .mwo-checklists__current {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	margin-top: auto;
	padding-top: 6px;
	font-size: 0.85rem;
}
.mwo-checklists__open {
	color: var(--color-link-light);
}
.mwo-checklists__current {
	color: #1e6b33;
	font-weight: var(--font-weight-bold);
}
.mwo-checklist__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin-bottom: 10px;
}
.mwo .mwo-checklist__back, .mwo .mwo-checklist__remove {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 6px 10px;
	border: 1px solid #ced4da;
	border-radius: var(--border-radius);
	background: #fff;
	color: #495057;
	font: inherit;
	font-size: 0.9rem;
	cursor: pointer;
}
.mwo .mwo-checklist__back:hover {
	background: #f1f3f5;
}
.mwo-checklist__title {
	font-size: 1rem;
}
.mwo .mwo-checklist__remove {
	margin-left: auto;
	border-color: transparent;
	background: none;
	color: #a61b1b;
}
.mwo .mwo-checklist__remove:hover {
	background: #fbe3e3;
}
.mwo-checklist__summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}
.mwo-checklist__count {
	color: #6c757d;
	font-size: 0.9rem;
}
.mwo-checklist__count--done {
	color: #1e6b33;
	font-weight: var(--font-weight-bold);
}
.mwo-checklist__tag {
	padding: 1px 8px;
	border-radius: 10px;
	font-size: 0.8rem;
	font-weight: var(--font-weight-bold);
}
.mwo-checklist__tag--pass {
	background: #e3f2e6;
	color: #1e6b33;
}
.mwo-checklist__tag--fail {
	background: #fbe3e3;
	color: #a61b1b;
}
.mwo-checklist__tag--defer {
	background: #e5ebfa;
	color: #2a4aa0;
}
/* two columns read top to bottom, so the item order stays as on the Checklists page; one column when there is no room */
.mwo-checklist__items {
	flex-basis: 100%;
	columns: 360px 2;
	column-gap: 12px;
	max-width: 1100px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.mwo-checklist__item {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
	padding: 5px 6px 5px 8px;
	border: 1px solid #e3e6ea;
	border-left: 3px solid #ced4da;
	border-radius: var(--border-radius);
	background: #fff;
	break-inside: avoid;
}
.mwo-checklist__item--pass {
	border-left-color: #2e7d32;
	background: #f4faf5;
}
.mwo-checklist__item--fail {
	border-left-color: #c62828;
	background: #fdf4f4;
}
.mwo-checklist__item--defer {
	border-left-color: #3b5fc0;
	background: #f4f6fd;
}
.mwo-checklist__name {
	flex-grow: 1;
	min-width: 0;
	font-size: 0.95rem;
}
.mwo-checklist__statuses {
	display: flex;
	flex-shrink: 0;
}
.mwo-checklist__status {
	padding: 4px 9px;
	border: 1px solid #ced4da;
	background: #fff;
	color: #495057;
	font: inherit;
	font-size: 0.85rem;
	cursor: pointer;
}
.mwo-checklist__status + .mwo-checklist__status {
	margin-left: -1px;
}
.mwo-checklist__status:first-child {
	border-radius: var(--border-radius) 0 0 var(--border-radius);
}
.mwo-checklist__status:last-child {
	border-radius: 0 var(--border-radius) var(--border-radius) 0;
}
.mwo-checklist__status:hover {
	background: #f1f3f5;
}
.mwo-checklist__status--pass.is-on {
	position: relative;
	border-color: #2e7d32;
	background: #2e7d32;
	color: #fff;
}
.mwo-checklist__status--fail.is-on {
	position: relative;
	border-color: #c62828;
	background: #c62828;
	color: #fff;
}
.mwo-checklist__status--defer.is-on {
	position: relative;
	border-color: #3b5fc0;
	background: #3b5fc0;
	color: #fff;
}

@media only screen and (max-width: 700px) {
	.mwo-issues__picker {
		grid-template-columns: 1fr;
	}
	.mwo-issues__cats {
		border-right: none;
	}
}


/* "View activity" dialog (work orders; purchase orders keep their own copy) */

dialog.activity-dialog {
	width: min(720px, 85vw);
	max-height: 90vh;
	padding: 0;
	border: none;
	border-radius: var(--border-radius);
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.7);
}
dialog.activity-dialog::backdrop {
	background: rgba(0, 0, 0, 0.8);
}
.activity-dialog__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid #ddd;
}
.activity-dialog__header h5 {
	margin: 0;
	padding: 10px 20px;
	font-size: 1rem;
	font-weight: var(--font-weight-bold);
}
.activity-dialog__close {
	border: none;
	background: none;
	color: #aaa;
	cursor: pointer;
}
.activity-dialog__close:hover {
	background-color: var(--color-bg);
	color: #888;
}
.activity-dialog__body {
	max-height: calc(90vh - 48px);
	overflow: auto;
	padding: 10px 16px 16px;
}
.activity-dialog__body > div {
	padding: 8px 0;
	border-bottom: 1px solid #eee;
}
.activity-dialog__body > .dtable {
	padding: 0;
	border-bottom: none;
}

/* abnormal odometer warning (B2B-313) */

.odometer-check {
	margin-top: 6px;
	padding: 8px 10px;
	border: 1px solid #f0c36d;
	border-radius: var(--border-radius);
	background: #fff8e1;
	color: #6b4e00;
	max-width: 520px;
}
.odometer-check[hidden] {
	display: none;
}
.odometer-check__message {
	margin-bottom: 6px;
}
.odometer-check__confirm {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: var(--font-weight-bold);
	cursor: pointer;
}
.odometer-check__input--warn {
	border-color: #e0a800 !important;
	background: #fffdf5 !important;
}

/* Compliance dashboard (B2B-313) */

.compliance-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	flex-direction: row;
	justify-content: flex-start;
	text-align: left;
	gap: 10px 20px;
}
.compliance-filters .dash-small {
	flex-basis: 100%;
}
.compliance-filters .compliance-kind {
	margin: 0;
}
.compliance-dates, .compliance-settings {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
}
.compliance-dates label, .compliance-settings label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}
.compliance-dates input, .compliance-settings input {
	width: auto;
	margin: 0;
}
.compliance-settings {
	margin-bottom: 8px;
}
.compliance-inline-form {
	display: inline;
}
.compliance-dates select {
	width: auto;
	margin: 0;
}
.compliance-open {
	font-weight: var(--font-weight-heavy-bold);
}
.compliance-dates input[type=checkbox] {
	width: auto;
}
.compliance-days input[type=range] {
	width: 220px;
	padding: 0;
	border: 0;
	accent-color: var(--dash-ok);
}
.compliance-days output {
	min-width: 95px;
	font-variant-numeric: tabular-nums;
}
.compliance-days--off {
	opacity: 0.45;
}
.compliance-other {
	display: block;
	line-height: 1.7;
}
.compliance-other__badge {
	display: inline-block;
	min-width: 38px;
	padding: 0 6px;
	border-radius: 4px;
	font-size: 0.72rem;
	font-weight: var(--font-weight-heavy-bold);
	text-align: center;
	color: var(--dash-fresh-fg);
	background-color: var(--dash-fresh-bg);
}
.odometer-check__note {
	margin-top: 6px;
	font-size: 0.85rem;
	color: #2e7d32;
}
.odometer-check__note .material-symbols-outlined {
	font-size: 16px;
	position: relative;
	top: 3px;
}
