/* ------------------------------------ */
/* Colors                               */
/* ------------------------------------ */

:root {
	--primary: #0066b3;
    --secondary: #005fb0;
    --shadow: 0 2px 5px rgba(0,0,0,0.15);
    --success-fg: #5DA023;
    --warning-fg: #e69020;
    --error-fg: #ba2121;
    --success-bg: #009E0F;
    --warning-bg: #FF9900;
    --error-bg: #CC0000;
}

/* ------------------------------------ */
/* Header                               */
/* ------------------------------------ */

#header {
    background-color: transparent !important;
}
#header .orto-logo {
    width: auto;
    height: 40px;
    margin-left: -8px;
    cursor: pointer;
    padding: 10px 0;
}

.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;
    font-size: 11px;
    line-height: 11px;
}
body:not(.login) #branding  {
    display: flex;
}
body:not(.login) .logo-title-wrapper  {
    flex-direction: column;
    margin: 28px 0 0 8px;
}

body.login .logo-title-wrapper {
    display: none !important
}
body.login #header #branding .orto-logo {
    padding-bottom: 0;
}
body.login #header #branding h1 {
    color: var(--primary) !important;
    font-weight: 600;
    text-align: center;
    font-size: 20px;
}

body.login ul.messagelist li {
	padding: 10px 10px 10px 36px;
	background-position: 12px 12px;
}

body.login .form-row #id_username,
body.login .form-row #id_password,
body.login .form-row #id_email {
	padding: 8px;
	width: 100%;
	box-sizing: border-box;
}

body.login.user #footer {
	font-size: 14px;
	margin-top: 30px;
	text-align: center;
	border-top: solid 1px #eee;
	background-color: #f6f6f6;
}

body.hide-footer #footer {
    display: none;
}

/* ------------------------------------ */
/* Fonts                                */
/* ------------------------------------ */

.module h2 {
  font-size: 14px;
}

/* ------------------------------------ */
/* Main Menu                            */
/* ------------------------------------ */

#nav-wrapper {
    width: 100%;
}

.nav-global {
    width: 100%;
    background-color: var(--primary);
    padding-top: 5px;
    padding-bottom: 5px;
    display: block;
}
.nav-global ul {
    display: flex;
    margin: 0px;
}
.nav-global ul li {
    list-style-type: none !important;
    padding-right: 15px;
}
.nav-global > ul > li {
    padding-right: 30px;
}
.nav-global ul li a {
    color: #ffffff !important;
    font-weight: 500;
    vertical-align: middle;
}
.nav-global ul li a {
    text-decoration: none !important;
    border-bottom: solid 1px transparent;
}
.nav-global ul li a:hover,
.nav-global ul li a.current {
    border-bottom: solid 1px #fff;
}

.nav-global ul.submenu {
	padding: 0 !important;
}
.nav-global .submenu-title a {
    color: #ffffff !important;
    font-weight: 600 !important;
}

.nav-global .submenu-title a {
    border-bottom: solid 1px transparent !important;
}

/* ------------------------------------ */
/* Sidebar (left)                       */
/* ------------------------------------ */

#nav-sidebar {
    margin-top: 20px;
}

#nav-sidebar .current-app .section:link,
#nav-sidebar .current-app .section:visited {
	color: #fff !important;
}
#nav-sidebar table tr {
	background: transparent !important;
}
#nav-filter {
	display: none;
}

.dashboard .model-proxyfirmupgrades,
.dashboard .model-proxyfirmcertificates,
.dashboard .model-proxyfirmsync,
#nav-sidebar .model-proxyfirmupgrades,
#nav-sidebar .model-proxyfirmcertificates,
#nav-sidebar .model-proxyfirmsync {
    display: none;
}

/* ------------------------------------ */
/* Widgets                              */
/* ------------------------------------ */

p.datetime {
    display: flex;
    align-items: baseline;
    padding: 4px 0 0 0 !important;
    margin-bottom: -4px !important;
}
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;
}

#changelist-filter {
  position: relative;
}
.filter-reset {
    position: absolute;
	top: 7px;
	right: 12px;
}
.filter-reset img {
	filter: brightness(10) saturate(0);
}

.form-row .checkbox-row {
    position: relative;
    top: 1px;
}
.form-row .checkbox-row input {
    position: relative;
    top: 1px;
}

.form-row div.readonly {
    padding: 8px 0 4px 0 !important;
}

.success-fg,
.order-status-1 {
    color: var(--success-fg);
}
.warning-fg,
.order-status-0 {
    color: var(--warning-fg);
}
.error-fg,
.order-status-2 {
    color: var(--error-fg);
}

/* ------------------------------------ */
/* Inko-Versorgung (FormSet)            */
/* ------------------------------------ */

.inko-formset table tr th:nth-child(1) {
    min-width: 424px;
}
.inko-formset table tr td:nth-child(1) select {
    min-width: 400px;
}
.inko-formset table tr td:nth-child(2) input {
    width: 60px;
}

.inko-formset table tr th:nth-child(3),
.inko-formset table tr td:nth-child(3) {
    display: none;
}

.inko-formset table tfoot tr.order-changes td {
    font-size: 11px;
    padding: 0px 12px 0px 12px;
    color: var(--body-quiet-color);
}
.inko-formset table tfoot tr.order-changes:first-child td {
    padding-top: 4px;
}
.inko-formset table tfoot tr.order-changes:last-child td {
    padding-bottom: 2px;
}

/* ------------------------------------ */
/* Filer                                */
/* ------------------------------------ */

form a.button.cancel-link {
    padding: 10px 15px;
    margin: 2px 10px;
    display: inline-block;
    vertical-align: bottom;
}

.filebrowser .navigator-table tbody td.column-desc {
    width: 50%;
    padding-right: 40px !important;
}

/* ------------------------------------ */
/* Related                              */
/* ------------------------------------ */

.related-widget-wrapper a.add-related,
.related-widget-wrapper a.change-related,
.related-widget-wrapper a.delete-related {
	display: none;
}
.select2-selection__clear {
	font-size: 18px;
}

/* ------------------------------------ */
/* Lists                                */
/* ------------------------------------ */

td, th {
    padding: 9px 8px 6px 8px;   
}
table thead th .text a {
    padding: 11px 8px 9px 8px;  
}

.paginator {
    border-top: 0px;
}

.model-customer.change-list .field-name,
.model-orders.change-list .field-uploads_display,
.model-orders.change-list .field-documents_display {
	white-space: nowrap;
}

/* ------------------------------------ */
/* Forms (TabularInline)                */
/* ------------------------------------ */

.change-form .inline-group .original {
    display: none !important;
}
.change-form .inline-group table tr.has_original td:last-child {
    /* display: none !important; */
}
.change-form .inline-group table tr th {
    color: var(--body-quiet-color);
    padding: 11px 8px 9px 8px !important;
    white-space: nowrap;
}
.change-form .inline-group table tr td {
    padding: 4px 8px 1px 8px !important;
    vertical-align: middle;
}
.change-form .inline-group table tr.add-row td {
    font-size: 13px;
    padding: 8px 8px 8px 8px !important;
}
.change-form .inline-deletelink {
	float: left;
    margin-left: -1px;
}

.change-form .inline-group table tbody tr:first-child td {
    padding-top: 8px !important;
}
.change-form .inline-group table tbody tr {
    border: none !important;
    background: transparent !important;
}
.change-form .inline-group table tbody tr td {
    border: none !important;
    background: transparent !important;
}

.change-form .inline-group td.delete {
    width: 120px;
}

#residents-group .field-room input {
    width: auto;
}

/* ------------------------------------ */
/* Inline FormSet                       */
/* ------------------------------------ */

.inline_formset table tr th,
.inline_formset table tr td {
    padding: 4px 12px 2px 12px;
}
.inline_formset table tr,
.inline_formset table tr td {
    vertical-align: middle;
    background: transparent !important;
    border-color: transparent !important;
}

.inline_formset th.delete {
    background: transparent;
    border-color: transparent;
}
.inline_formset td.delete {
    background: transparent;
    border-color: transparent;
}
.inline_formset a.btn-delete {
    color: var(--error-fg);
}

.inline_formset .add-row.btn {
    display: inline-block;
    padding-top: 4px;
}
.inline_formset .add-row.btn:before {
    content: url(../img/icon-add.svg);
    display: inline-block;
    width: 16px;
    height: 20px;
    position: relative;
    top: 2px;
}

.change-form .form-row.field-order_lines {
    width: fit-content;
}
.change-form .form-row.field-order_lines > div > label {
    display: none;
}
.change-form .form-row.field-order_lines > div > div {
    margin-left: 0 !important;
}
.change-form .form-row.field-order_lines,
.change-form .form-row.field-order_lines fieldset {
    border: none;
}

/* ------------------------------------ */
/* Error Messages                       */
/* ------------------------------------ */

ul.messagelist {
	margin: 20px 40px;
}
