/* ------------------------------------ */
/* Color Schema                         */
/* ------------------------------------ */

:root {
    --primary: #023973;
    --secondary: #004993;
    --bg-tabs: #32a9da;
    --green: #3cb44a;
    --red: #ea1f25;
    --warning: #ba2121;
    --invalid: #c03618;
    --bg-gray: #f6f6f6;
    --bg-dark: #efefef;
    --bg-green: #8ED195;
    --border-color: #ccc;
    --border-dark: #a8a8a8;
    --text-color: #333;
}

/* ------------------------------------ */
/* Colors                               */
/* ------------------------------------ */

.button.default:active, input[type="submit"].default:active, .button.default:focus, input[type="submit"].default:focus, .button.default:hover, input[type="submit"].default:hover {
	background: var(--secondary);
}
.button:active, input[type="submit"]:active, input[type="button"]:active, .button:focus, input[type="submit"]:focus, input[type="button"]:focus, .button:hover, input[type="submit"]:hover, input[type="button"]:hover {
	background: var(--secondary);
}

a:link, a:visited {
	color: var(--primary);
}
a:focus, a:hover {
	color: var(--secondary);
}
.paginator a:focus, .paginator a:hover {
	color: white;
	background: var(--secondary);
}

.button.default, input[type="submit"].default, .submit-row input.default {
	background: var(--primary);
    text-transform: none !important;
}

/* ------------------------------------ */
/* Header                               */
/* ------------------------------------ */

#header {
    background-color: #fff !important;
}
.login #header {
    border-bottom: solid 1px #eee;
    background-color: #f6f6f6 !important;
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.login:not(.user) #header {
    padding-bottom: 16px;
    margin-bottom: 22px;
}
#header .logo {
	width: auto;
	height: 46px;
	cursor: pointer;
	padding: 0;
    margin-right: 8px;
}
#header .logo-title-wrapper {
    cursor: pointer;
}

.breadcrumbs {
    display: none !important;
}

#header #user-tools {
    color: #333;
    font-size: 13px;
}
#header #user-tools  a {
    color: var(--primary) !important;
}

.logo-title-wrapper {
    color: var(--body-fg);
    display: flex;
}
.logo-title {
    font-size: 20px;
    font-weight: 600;
}
.logo-version {
    font-size: 10px;
    text-align: right;
    margin-top: -4px;
}

.login .logo-title-wrapper {
    margin-top: 6px;
    margin-bottom: -10px;
    text-align: center;
    display: block;
}
.login .logo-version {
    display: none;
}

body:not(.login) #branding  {
    display: flex;
}
body:not(.login) .logo-title-wrapper  {
    flex-direction: column;
    margin-top: 11px;
}

@media (max-width: 1024px) {
    #header {
        flex-direction: row;
        padding: 15px 30px;
        justify-content: space-between;
    }
}

.nav-shop {
    border-top: solid 1px var(--secondary);
    display: flex;
}
.shop-display {
    margin-left: auto !important;
    margin-right: 26px !important;
    float: right;
    padding: 0;
    margin: 0 0 0 20px;
    text-transform: uppercase;
    text-align: right;
    color: #fff;
}
.shop-display span {
    font-weight: 600;
}

/* ------------------------------------ */
/* Login                                */
/* ------------------------------------ */

.login #branding {
	text-align: center;
}
.login .page-title,
.login .logo-title-wrapper {
    display: none;
	border: none !important;
    margin-bottom: 10px;
    margin-top: 10px;
    text-align: center;
    font-weight: 600;
}
.login #content {
    padding-top: 0px;
    margin-top: -4px;
}
.login .form-row input {
    width: calc(100% - 4px) !important;
    margin-left: 0px !important;
	padding: 6px;
    border-radius: 0;
    font-size: 14px;
	box-sizing: border-box;
}
.login .submit-row input {
	min-width: 120px;
    line-height: 1rem;
    text-align: center;
    padding: 10px 20px !important;
    font-size: 14px;
    font-weight: 600;
    border-radius: 0;
}
.login:not(.user) #content {
    margin-top: -8px;
}
.login:not(.user) input {
    padding: 7px 8px 8px 8px !important;
}
.login:not(.user) input[type=submit] {
    padding: 10px 20px !important;
}

.login .form-row,
.login .submit-row {
    background: none;
    border: none;
}

/* ------------------------------------ */
/* Forms                                */
/* ------------------------------------ */

input[type=text], input[type=number],
input[type=email], input[type=tel],
input[type=url], input[type=password],
input[type=search], textarea {
    padding: 8px 6px;
    border-radius: 0;
}

input[type=text]:focus, input[type=number]:focus,
input[type=email]:focus, input[type=tel]:focus,
input[type=url]:focus, input[type=password]:focus,
input[type=search]:focus, textarea:focus, .input-text:focus {
    background-color: #ededed;
    border-color: var(--secondary);
    outline: none;
}

/* ------------------------------------ */
/* Fonts                                */
/* ------------------------------------ */

.module h2 {
  padding: 8px 12px 7px 12px;
}

.inline-group h2 {
	text-transform: none;
}
.inline-group h2, .module h2 {
    font-size: 13px;
}

.noselect,
.noselect * {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none; 
    -ms-user-select: none; 
    user-select: none; 
}

/* ------------------------------------ */
/* Main Menu                            */
/* ------------------------------------ */

#nav-wrapper {
    width: 100%;
}

.nav-global {
    width: 100%;
    background-color: var(--primary);
    padding-top: 6px;
    padding-bottom: 6px;
    display: flex;
}
.nav-global ul {
    display: flex;
    margin: 0;
}
.nav-global ul li {
    list-style-type: none !important;
    padding-right: 15px;
}
.nav-global ul li a {
    color: #ffffff !important;
    font-weight: 500;
    vertical-align: middle;
}
.nav-global a {
    border-bottom: solid 1px transparent;
    text-decoration: none !important;
}
.nav-global a.current,
.nav-global a:hover {
	border-bottom: solid 1px #fff;
}

/* ------------------------------------ */
/* Sidebar                              */
/* ------------------------------------ */

#nav-sidebar {
    margin-top: 20px;
}

#nav-sidebar .current-app .section:link,
#nav-sidebar .current-app .section:visited {
	color: #fff !important;
}
#nav-sidebar .current-model {
	background: transparent !important;
}

#nav-sidebar #nav-filter {
	display: none;
}

/* ------------------------------------ */
/* Widgets                              */
/* ------------------------------------ */

p.datetime {
    display: flex;
}
p.datetime input {
    margin-top: -2px;
}
.datetimeshortcuts {
    margin-right: 25px;
}

input[type=number] {
  -moz-appearance: textfield;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=date] {
    width: 120px;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 5px 6px;
    margin-top: 0;
}

input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus, input[type="url"]:focus,
input[type="number"]:focus, input[type="tel"]:focus, textarea:focus, select:focus, .vTextField:focus {
	border-color: var(--secondary);
}

.related-widget-wrapper a {
    display: none;
}

/* ------------------------------------ */
/* Change List                          */
/* ------------------------------------ */

td, th {
    padding: 9px 8px 6px 8px;   
}
table thead th .text a {
    padding: 11px 8px 9px 8px;  
}

.paginator {
    border-top: 0px;
    width: calc(100% - 20px);
    padding-top: 10px;
    padding-bottom: 9px;
}

#changelist-form table tbody tr th,
#changelist-form table tbody tr td {
	vertical-align: middle;
}

#changelist table th,
#changelist table td {
	white-space: normal;
}
#changelist tr:nth-child(2n){
	background: transparent;
}

.change-list .paginator {
    margin-top: 30px;
    border-top: 1px solid var(--hairline-color);
    background-color: var(--darkened-bg) !important;
}

#result_list .related-widget-wrapper-link {
    display: none;
}

.changelist-filter-not-user .changelist-filters > .changelist-filter:nth-child(1)  {
    display: none !important;
}

#changelist-filter .selected a,
#changelist-filter a:hover {
	color: var(--primary);
}
#changelist-filter a:focus, #changelist-filter a:hover, #changelist-filter li.selected a:focus, #changelist-filter li.selected a:hover {
	color: var(--primary);
}

#changelist table#result_list tr td a {
    font-weight: 600;
}

/* ------------------------------------ */
/* Change List Filter                   */
/* ------------------------------------ */

#changelist-filter {
	position: relative;
}

.filter-reset {
    position: absolute;
    right: 12px;
    margin-top: 6px;
}
.filter-reset img {
    filter: brightness(10) saturate(0);
}

#changelist-filter a {
	white-space: nowrap;
	overflow: hidden;
	max-width: 205px;
}

#changelist .actions select {
	font-size: 13px;
    padding: 1px 0 0 4px;
}

/* ------------------------------------ */
/* Change Form                          */
/* ------------------------------------ */

.change-form label {
	font-weight: 600 !important;
	color: var(--body-fg);
}

.app-app.change-form input[type=text],
.app-app.change-form input[type=email],
.app-app.change-form input[type=number] {
    min-width: 520px;
}
.app-app.change-form select {
    min-width: 535px;
}
.app-app.change-form textarea {
    width: 520px !important;
}

.change-form p.datetime input {
    min-width: 0 !important;
}

.form-row {
	padding: 10px 12px;
}

/* ------------------------------------ */
/* Dashboard                            */
/* ------------------------------------ */

.dashboard #content-related {
	width: 600px;
	margin-right: -700px;
}

/* ------------------------------------ */
/* Error Messages                       */
/* ------------------------------------ */

ul.messagelist {
	margin: 20px 40px;
}
ul.messagelist li {
	margin-bottom: 0px;
    padding: 10px 10px 8px 65px;
}

