/* ------------------------------------ */
/* Colors                               */
/* ------------------------------------ */

:root {
    --primary: #023973;
    --secondary: #004993;
    --green: #3cb44a;
    --red: #ea1f25;
    --warning: #ba2121;
    --bg-gray: #f6f6f6;
    --border-gray: #eee;
    --border-dark: #a8a8a8;
    --text-color: #333;
    --text-gray: #999;
    --border-tabs: #8E8E8E;
    --success-fg: #5DA023;
    --warning-fg: #e69020;
}

/* ------------------------------------ */
/* Fonts                                */
/* ------------------------------------ */

body {
    font-size: 14px;
    line-height: 1.5em;
    color: #333;
}
body {
	/* font-family: "Open Sans"; */
}

a {
    text-decoration: none !important;
    color: var(--primary) !important;
}
a:focus,
a:hover {
    color: var(--secondary) !important;
}
a:focus {
    color: #111111 !important;
}

.warning,
.form-error {
    color: #ba2121 !important;
}
.green {
    color: var(--success-fg) !important;
}
.orange {
    color: var(--warning-fg) !important;
}

.module h2, li {
    font-size: 14px;
}
table th,
table td {
    font-size: 14px;
}

/* ------------------------------------ */
/* Layout                               */
/* ------------------------------------ */

#container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

#content {
    padding: 30px 0px;
}

@media (max-width: 1240px) {
    #container #header {
        padding: 30px 20px 0px !important;
    }
    #container .nav-global {
        margin: 0px 20px !important;
    }
    #container #content {
        padding: 20px 20px !important;
    }
}

h1.page-title {
    font-size: 21px !important;
    font-weight: 600 !important;
    color: var(--primary) !important;
    text-align: center;
}

ul.messagelist {
	margin-top: 30px;
    margin-bottom: -10px;
}
ul.messagelist li {
	margin-bottom: 0px;
    font-size: 14px;
}
ul.messagelist li {
    font-weight: 600;
}
ul.messagelist li.info {
    background-image: none;
    margin-top: -12px;
    font-weight: normal;
}

/* ------------------------------------ */
/* Inputs                               */
/* ------------------------------------ */

input {
    outline: none;
}

input[type="date"] {
	border: 1px solid var(--border-color);
	border-radius: 4px;
	padding: 5px 6px;
	margin-top: 0;
	color: var(--body-fg);
	background-color: var(--body-bg);
}

/* ------------------------------------ */
/* Buttons                              */
/* ------------------------------------ */

button.default,
.submit-row input[type="submit"] {
    background-color: var(--primary) !important;
}
button.default:hover,
.submit-row input[type="submit"]:hover {
    background-color: var(--secondary) !important;
}

.submit-row *,
.tab-nav {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

a.default {
    height: 15px;
    display: inline-block;
    line-height: 15px;
    padding: 0px;
    text-align: center;
    padding: 10px 20px;
    cursor: pointer;
    background-color: var(--primary) !important;
    text-decoration: none !important;
    color: #fff !important;
    border-radius: 4px;
}
a.default:hover {
    background-color: var(--secondary) !important;
}

a.default.secondary {
    background-color: #fff !important;
    color: var(--primary) !important;
    border: solid 1px var(--primary) !important;
    padding: 9px 19px;
}
a.default.secondary:hover {
    background-color: #fff !important;
    color: var(--secondary) !important;
    border: solid 1px var(--secondary) !important;
}

.btn.primary {
    background: var(--primary) !important;
    padding: 8px 15px;
}
.btn.primary:hover {
    background-color: var(--secondary) !important;
}
.btn.secondary {
    background: none !important;
    color: var(--primary);
    border: solid 1px var(--primary);
    padding: 7px 13px;
}
.btn.secondary:hover {
    color: var(--secondary);
    border: solid 1px var(--secondary);
}

span.button.default {
    text-align: center;
}

.submit-row .button.delete {
    background: #ba2121 !important;
}
.submit-row .button.delete:hover {
    background: #a41515 !important;
}

.button.inverted {
    border: solid 1px var(--primary);
    background-color: #ffffff !important;
    color: #447e9b;
}
.button.inverted:focus {
    border: solid 1px var(--primary);
    background-color: #ffffff !important;
    color: #447e9b;
}
.button.inverted:hover {
    border: solid 1px #609ab6;
    background-color: #609ab6 !important;
    color: #ffffff;
}

.filter-reset {
    position: absolute;
    top: 7px;
    right: 15px;
}
.filter-reset img {
    filter: brightness(10) saturate(0);
}

button, input[type=submit], .button {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* ------------------------------------ */
/* Forms                                */
/* ------------------------------------ */

form .form-spacer {
    margin: 20px 0px;
    border-top: solid 1px #eee;
    height: 1px;
    float: left;
    width: 100%;
}

.submit-row {
    border: none !important;
    background-color: #fff !important;
}
.submit-row {
    padding: 0px;
}

input, select, textarea {
    font-size: 14px;
}

label {
    font-size: 14px;
    display: block;
}

/* ------------------------------------ */
/* Header                               */
/* ------------------------------------ */

#header {
    background-color: transparent !important;
    padding: 30px 0px 20px 0px !important;
}
#header h1 {
    font-size: 21px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin: 20px 0 0 0;
}
#header h1 a {
    color: #333 !important;
}

#header {
    text-align: center;
}
#header .act-logo {
    width: auto;
    height: 75px;
    cursor: pointer;
    margin-left: 0;
}

body:not(.login) #site-name {
    display: none !important;
}

@media (max-width: 1024px) {
    body:not(.login) #header {
        flex-direction: row !important;
        justify-content: space-between !important;
        padding: 10px 40px !important;
    }
}

#user-status {
    color: #333;
    margin-top: 40px;
}
#user-login {
    float: right;
}
#user-login .btn-login {
	position: relative;
	top: 7px;
	right: 18px;
	padding: 2px 12px 2px 12px;
	background-color: #ffffff;
	border-radius: 4px;
	font-weight: 600;
}
#user-login .btn-login a {
    color: var(--secondary) !important;
}

body.login #branding img {
    display: block;
    height: 75px;
    width: auto;
}

body.login .nav-global {
    display: none !important;
}

/* ------------------------------------ */
/* Menu                                 */
/* ------------------------------------ */

.nav-global {
    background-color: var(--primary);
    border-radius: 4px;
    padding: 0 !important;
    display: block;
}
.nav-global .nav {
    padding: 0px;
}

.nav-global ul {
    margin: 0px;
}
.nav-global ul li {
    list-style-type: none !important;
    display: block;
    padding: 7px 36px;
    border-right: solid 1px #ffffff;
    float: left;
    text-align: center;
}

.nav-global * {
    white-space: nowrap;
}
.nav-global .menu-items {
    display: block;
}
.nav-global .menu-items *:not(span) {
    font-size: 14px !important;
}
.nav-global a {
    text-decoration: none !important;
    color: #fff !important;
    border-bottom: solid 1px transparent;
}
.nav-global a:hover,
.nav-global a.current {
    color: #fff !important;
    border-bottom: solid 1px #ffffff;
}

.nav-submenu {
    display: none !important;
    position: absolute;
    z-index: 5;
    background-color: var(--primary);
    padding: 5px 0px 5px 10px !important;
    margin-left: -10px !important;
    -webkit-box-shadow: 2px 2px 4px -2px rgba(0,0,0,0.25);
    -moz-box-shadow: 2px 2px 4px -2px rgba(0,0,0,0.25);
    box-shadow: 2px 2px 4px -2px rgba(0,0,0,0.25);
}
.nav-submenu li {
    padding-right: 10px !important;
}
.nav-global li:hover .nav-submenu {
    display: block !important;
}

@media (max-width: 992px) {
    .nav-global ul li {
        padding: 7px 30px;
    }
    #user-login .btn-login {
        right: 30px;
    }
}

@media (max-width: 768px) {
    .nav-global {
        max-width: calc(100% - 40px);
    }
    .nav-global ul li {
        padding: 7px 14px;
    }
    #user-login .btn-login {
        right: 14px;
    }
}

/* ------------------------------------ */
/* Mobile                               */
/* ------------------------------------ */

@media (max-width: 768px) {
    
    body:not(.login) #header {
        flex-direction: column !important;
    }
    body:not(.login) #header .act-logo {
        height: 50px;
    }
    body:not(.login) #header #user-status {
        margin: 10px 0 20px 0;
    }
    body:not(.login) #user-login {
        
    }
}

/* ------------------------------------ */
/* Login                                */
/* ------------------------------------ */

.login #user-status {
    display: none !important;
}

.login #header {
    padding-bottom: 0px !important;
}

.login h1.page-title {
    text-align: center;
}

.login form > div input[type=text],
.login form > div input[type=password],
.login form > div input[type=email] {
    padding: 8px;
    width: calc(100% - 18px) !important;
}

.login .submit-row {
    display: block;
    padding: 1em 0 0 0 !important;
    margin: 2px 0 0 0;
    text-align: center;
}
.login .submit-row input {
    min-width: 120px;
    height: auto;
    line-height: normal;
}

.login.user #footer {
    font-size: 14px;
    margin-top: 12px;
    text-align: center;
    border-top: solid 1px #eee;
    background-color: #f6f6f6;
}

.login ul.messagelist li {
    padding-left: 40px;
    background-position: 15px 12px;
}
.login form > div label {
    font-size: 14px;
	display: block;
	line-height: 2em;
}
.login form br.clear {
    display: none;
}

/* ------------------------------------ */
/* Widgets                              */
/* ------------------------------------ */

@-moz-document url-prefix() {
  select {
    padding-right: 25px;
    background-image: url("data:image/svg+xml,\
      <svg version='1.1' xmlns='http://www.w3.org/2000/svg' width='12px'\
           height='12px' viewBox='0 0 1200 1000' fill='rgb(51,51,51)'>\
        <path d='M1100 411l-198 -199l-353 353l-353 -353l-197 199l551 551z'/>\
      </svg>");
    background-repeat: no-repeat;
    background-position: calc(100% - 7px) 50%;
    -moz-appearance: none;
    appearance: none;
  }
}

label.required {
    font-weight: normal;
}

label {
    color: #333;
}

input[type="date"] {
    min-width: 115px;
}

tr {
    background: transparent !important;
}

*:focus-visible {
    outline: none;
}

.calendar tr td a:hover {
    color: #fff !important;
}

.checkbox-row > div {
    display: flex;
    flex-direction: row-reverse;
    gap: 4px;
}
.checkbox-row label {
    width: 100% !important;
}
.checkbox-row .error-msg {
    position: relative;
    top: 2px;
}

/* ------------------------------------ */
/* Buttons                              */
/* ------------------------------------ */

button.default,
.submit-row input[type="submit"] {
    background-color: var(--primary) !important;
}
button.default:hover,
.submit-row input[type="submit"]:hover {
    background-color: var(--secondary) !important;
}

.submit-row *,
.tab-nav {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

a.default {
    height: 15px;
    display: inline-block;
    line-height: 15px;
    padding: 0px;
    text-align: center;
    padding: 10px 20px;
    cursor: pointer;
    background-color: var(--primary) !important;
    text-decoration: none !important;
    color: #fff !important;
    border-radius: 4px;
}
a.default:hover {
    background-color: var(--secondary) !important;
}

.selector-available a,
.selector-chosen a{
    font-size: 13px !important;
    font-weight: normal;
}
.selector-available select,
.selector-chosen select {
    background: none;
}

/* ------------------------------------ */
/* Forms                                */
/* ------------------------------------ */

form > div {
    padding: 4px 0;
}

.box {
    padding: 20px 30px 20px 30px;
    margin: 20px 0;
    border: solid 1px var(--primary);
    border-radius: 10px;
    margin-bottom: 40px;
}
.box h2 {
    font-size: 16px;
    line-height: 16px;
    color: var(--primary);
    margin-top: -30px;
    background: #fff;
    width: fit-content;
    margin-bottom: 24px !important;
    font-weight: 600;
    padding: 0 2px;
    margin-left: -2px;
    margin-bottom: 16px !important;
}

.form-row {
    border: none !important;
    padding: 6px 0;
}
.form-row > div {
    display: flex;
}
.form-row label {
    width: 180px;
    line-height: 29px;
}

.witness input {
	width: 240px !important;
}
.witness .form-row {
  padding: 0px 0;
}

.form input[type=text],
.form input[type=date],
.form input[type=email],
.form input[type=number] {
    height: 17px;
    font-weight: 600;
}
.form select {
    height: 29px;
    margin-bottom: 0px;
    font-weight: 600;
}
.form .select2-container .select2-selection--single {
    height: 29px !important;
    font-weight: 600;
    font-size: 14px;
}

.form textarea {
    width: calc(100% - 14px);
}

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;
}

.form .asterisk {
    margin-left: 4px;
    color: var(--warning);
}
.form .unit {
    position: relative;
    top: 3px;
    left: 4px;
    font-weight: 600;
}
.form .hint {
    position: relative;
    top: 3px;
    margin-left: auto;
    min-width: 50%;
}

.form .submit-row input {
    margin-left: auto;
}

.form .checkbox-row label {
    font-weight: 600;
}

.form .multicheckbox {
    padding-top: 2px;
}
.form .multicheckbox > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.form .multicheckbox label {
    font-weight: 600;
    margin: 2px 0 2px 0;
}
.form .multicheckbox label input {
    position: relative;
    top: -2px;
}

/* ------------------------------------ */
/* Form Readonly                        */
/* ------------------------------------ */

.form .readonly {
    pointer-events: none;
}
.form .readonly .select2-selection__arrow {
    display: none;
}

.form .readonly input,
.form .readonly select,
.form .readonly .select2-selection.select2-selection--single {
    border-color: transparent;
    margin-left: -8px;
    margin-right: 8px;
}

/* ------------------------------------ */
/* Form Errors                          */
/* ------------------------------------ */

.has-errors {
	border: 1px solid var(--error-fg) !important;
}
.error-msg {
    display: block;
    color: var(--error-fg);
    font-size: 14px !important;
    line-height: 14px !important;
    margin-top: 2px;
}

.form .errors .select2-selection.select2-selection--single {
    border: 1px solid var(--error-fg) !important;
}

.form .form-row ul.errorlist {
    margin-left: 180px;
}
.form .form-row.checkbox-row ul.errorlist {
    margin-left: 0px;
}

.form ul.errorlist,
.form ul.errorlist li {
    margin-bottom: 0px;
}

/* ------------------------------------ */
/* Application                          */
/* ------------------------------------ */

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.row > .col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.row > .col.nogap {
    gap: 0px;
}

.box div.hint p {
    margin: 12px 0 2px 0;
    font-style: italic;
}
.semi-bold {
    font-weight: 600;
}
a.info-link img {
    height: 20px;
}
a.info-link:hover img {
    filter: brightness(1.3);
}

/* ------------------------------------ */
/* Proceedings                          */
/* ------------------------------------ */

table.proceedings {
    width: 100%;
    margin: 1px 0 10px 0;
}
a.action-link {
    white-space: nowrap;
}
a.action-link img {
    height: 25px;
    position: relative;
    top: -9px;
    margin-bottom: -14px;
}
table.proceedings .icon-warning {
    position: absolute;
    right: -10px; 
}
table.proceedings th {
    font-size: 13px;
}
table.proceedings td {
    padding: 8px 10px; 
}

.parties {
    display: flex;
    margin: -10px 0 40px;
}
.parties > div {
    display: flex;
    flex-direction : column;
}
.parties > div:nth-child(2) {
    margin-left: auto;
}

.status.next-actions {
    margin-right: 150px;
}
.status.next-actions b {
    font-weight: 600;
}

.verdict-col {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.verdict-col .verdict-row > span:nth-child(1) {
    display: inline-block;
    width: 120px;
    font-weight: 600;
}

/* ------------------------------------ */
/* Print                                */
/* ------------------------------------ */

@media print {
    
    a.print,
    #user-status,
    .nav-global {
        display: none !important;
    }
    #header {
        padding-top: 0 !important;
    }
    
    formset,
    #content > div {
        break-inside: avoid;
    }
    
}
