:root {
  --dsv-black: #000;
  --dsv-blue: #192862;
  --dsv-light-blue: #C5CAE9;
  --dsv-dark-blue: #0D113B;
  --dsv-red: #EC0016;
  --dsv-dark-red: #a51b00;
  --dsv-amber: #e09600;
  --dsv-dark-grey: #646973;
  --dsv-darker-grey: #464646;
  --dsv-mid-grey: #878C96;
  --dsv-light-grey: #D7DCE1;
  --dsv-exra-light-grey: #F0F3F5;
  --dsv-green: #77b259;
}


/** General **/

body {
  font-family: sans-serif;
  font-size: 87.5%;
  margin: 0;
  color: var(--dsv-black);
  background-color: #fff!important;
}

.dsv-logo {
  padding: 0.5em 0 0;
  margin-left: -1em;
}
.dsv-logo img {
  max-height: 60px;
}
#dsvlogo {
  display: inline-block;
}
#dsvlogosmall {
  display:none;
}

main {
  margin: 0 2vw 1vw;
  min-height: 100vh;
  min-height: calc(100vh - 164px);
}
main.customs-bg {
  margin: 0;
  background: url('/themes/customs/images/dsv-customs-bg.jpg');
  min-height: 95vh;
  min-height: calc(100vh - 65px);
  color: #fff;
  text-align: center;
}
main.customs-bg a {
  color: #fff;
}

main.customs-bg input,
main.customs-bg .button {
  border: 1px solid #fff;
  max-width: 400px;
  padding: 10px 20px;
  margin-bottom: 1em;
}
main.customs-bg .button .not-bold {
  font-weight: normal;
}
main.customs-bg input:focus {
  background-color: #fff!important;
}
main.customs-bg .button:hover {
  background-color: var(--dsv-dark-blue);
  text-decoration: none!important;
}
main.customs-bg h1 {
  margin: 0 auto 1em;
  text-align: center;
}
#dsv-customs-logo {
  width: 250px;
  margin: auto;
  padding: 5em 0 0;
  max-width: 70vw;
}

.no-border {
  border: none;
}

a,
.ui-widget-content a {
  color: var(--dsv-blue);
  text-decoration: none!important;
}
a:hover,
.ui-widget-content a:hover {
  text-decoration: underline!important;
}
h1 {
  font-family: 'db_sansbold';
  font-weight: bold;
  text-transform: capitalize;
}
.h2 {
  font-size: 1.5em;
  text-transform: capitalize;
}
.view-faqs .h2 {
  text-transform: unset;
}
h3 {
  margin: 5px 0;
}
details details .h2 {
  font-size: 1.2em;
}
p {
  margin: 0 0 1em;
}

img {
  max-width: 100%;
}
.itma-font {
  font-family: 'noto-sans';
}

hr {
  border-top-color: transparent;
  border-bottom-color: var(--dsv-blue);
  border-left-color: transparent;
  border-right-color: transparent;
  margin: 20px 0;
}
.underline { 
  text-decoration: underline!important;
}
.layout-container {
  margin: 0;
}
li {
  margin-bottom: 0.3em;
}
.flex {
  display: flex;
  flex-wrap: wrap;
}
.flexsa {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}
.flexsb {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.flexsb100 {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
}
.flexnowrap {
  display: flex;
}
.flexleft {
  margin: 0 -10px;
}
.flexspace {
  justify-content: space-between;
  margin: 0 -10px 1em;
}
.flexpad {
  padding: 0 10px;
  flex-grow: 1;
}
.flexpadnogrow {
  padding: 0 10px;
}
.flexend {
  align-self: flex-end;
}

.flex1 {
  flex: 1;
  padding: 0 10px;
  min-width: 240px;
}
.flex2 {
  flex: 2;
  padding: 0 10px;
}
.flexcell {
  display: flex;
  padding: 10px;
  justify-content: space-between;
  align-items: center;
}
.flexspace details + details {
  margin-top: 20px;
}
.flexdate {
  align-items: flex-end;
}
.flexcentre {
  display: inline-flex;
  align-items: center;
}
.flexcentre.right {
  margin-left: auto;
}
.flex-direction-column {
  flex-direction: column;
}
.clear-both {
  clear: both;
}
.center {
  align-items: center;
  text-align: center;
}
.sidemargins {
  margin: 0 2vw;
}

.margintop {
  margin-top: 20px;
}
.datetime-wrapper .description {
  margin-top: -12px;
  margin-bottom: 12px;
}

.datetime-wrapper [id^="edit-field"] {
  display: flex;
  align-items: flex-end;
}
.flexdate input,
:not(.ief-form) .datetime-wrapper [id^="edit-field"] input {
  height: 30px;
}
.node-form .datetime-wrapper [id^="edit-field"] input {
  height: initial;
}

.flexdate .datetime-wrapper + .datetime-wrapper,
.datetime-wrapper [id^="edit-field"] > .form-item + .form-item {
  margin-left: 10px; 
}

form:not(.views-exposed-form) fieldset .form-item.form-type-date {
  margin-top: 1em!important;
}
.form-item.form-type-date {
  margin-top: 0;
}

.right > .nomargin {
  margin: 0!important;
}
.right {
  float: right;
}
a.right {
  float: right;
}
.right + .right, 
.right + .ajax-progress + .right {
  margin: 0!important;
}
.text-right {
  text-align: right;
}

a[href*="/masquerade?"],
a[href*="/unmasquerade?"] {
  background: var(--dsv-red);
  color: #fff;
  font-weight: bold;
  padding: 5px 10px;
  display: inline-block;
}

summary {
  margin-bottom: 10px;
  cursor: pointer;
  border-bottom: 3px solid var(--dsv-light-grey);
  padding-bottom: 5px;
}
summary.no-marker::-webkit-details-marker {
  display: none;
}
summary.no-marker {
  list-style: none;
}
.comment details {
  white-space: normal;
  padding: 5px;
}
.comment details summary {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: -10px;
}
.comment details[open] summary {
  margin-bottom: 10px;
}
.comment details table tr td {
  padding: 2px 5px;
}
.comment .Old {
  color: var(--dsv-mid-grey);
}
.red {
  color: red;
}
.red-text {
  color: var(--dsv-red);
}
.green-text {
  color: #4cae4c;
}
.amber-text {
  color: #e09600;
}
.alert {
  padding: 15px;
  margin-bottom: 15px;
}
.red.alert {
  border-left: 5px solid #EC0016;
  background: #fcf4f2;
}
.amber.alert {
  border-left: 5px solid #e09600;
  background: #fdf8ed;
}
.green.alert {
  border-left: 5px solid #77b259;
  background: #f3faef;
}
.blue.alert {
  border-left: 5px solid #4bc4fa;
  background: #d5f2ff;
}
.alert summary {
  border-bottom: 3px solid #fff;
}

.summary td {
  font-weight: bold;
  border-bottom: 2px solid;
}

:focus:not(.select2-search__field):not(.ui-dialog):not(.cookiesjsr-btn):not(.cookiesjsr-service-group--tab):not(.qdos_ai_menu-vertical-link):not(.qdos_ai_menu-submenu-link):not(.qdos_ai_menu-pin-toggle),
.js .dropbutton li:focus,
.js .dropbutton a:focus,
.dropbutton-toggle button:focus,
.ui-dialog .select2 .selection:focus-within {
  outline: 2px solid var(--dsv-red)!important;
  outline-offset: 2px!important;
  background: var(--dsv-light-blue);
  box-shadow: none!important;
}
.event-tile:focus {
  background: var(--dsv-exra-light-grey)!important;
}
.dropbutton-arrow {
  overflow: visible;
}

.js .dropbutton li,
.js .dropbutton a {
  text-align: right;
  padding-right: 10px;
  font-weight: bold;
}

table tr td:last-child a {
  font-weight: bold;
}
table.no-bold-last-child-a tr td:last-child a {
  font-weight: initial;
}

table tbody tr {
  background-color: #fff;
  transition: background-color 0.2s linear;
}
table tbody tr:hover {
  background-color: var(--dsv-light-blue);
  transition: background-color 0.2s linear;
}
table tbody table {
  border-spacing: 0;
}

table.scroll,
.scroll table {
  display: block;
  width: 100%;
  overflow-x: auto;
}

a[data-drupal-selector='edit-cancel']:focus{
  outline: none;
}
.ui-button-icon-only {
  font-size: 0!important;
}

.bigger {
  font-size: 120%;
}

.vbo-multipage-selector summary {
  border-bottom: none;
  font-size: 1.2rem;
}
.ajax-progress-throbber {
  position: absolute;
  z-index: 1000;
}

/** Forms **/

form input,
select {
  padding: 6px;
  font-size: 0.8rem;
  border: 1px solid var(--dsv-mid-grey);
  margin: 5px 0 3px;
  max-width: 100%;
  font-family: sans-serif;
  border-radius: 5px;
}
form input[type=text],
form input[type=tel],
form input[type=email] {
  width: 50%;
  min-width: 300px;
  box-sizing: border-box;
  margin-top: 5px;
  height: 30px;
}
form input[type=text].form-time {
  min-width: 90px;
  max-width: 90px;
  text-align: left;
  background: url(/themes/customs/images/icons/clock.svg) no-repeat 65px center;
  background-size: 17px;
  background-color: #fff;
  font-size: 1em;
}
form.views-exposed-form input[type=text],
form.views-exposed-form input[type=tel],
form.views-exposed-form input[type=email] {
  min-width: 200px;
  max-width: 200px;
}
.views-exposed-form {
  display: flex;
  flex-wrap: wrap;
  margin-top: -13px;
  border: 2px solid #fff;
}
form.views-exposed-form select {
  padding: 3px 8px;
  font-size: 0.8rem;
  border: 1px solid #999;
  margin: 5px 0 3px;
  max-width: 100%;
  font-family: sans-serif;
  background: #fff;
  color: #666;
  min-height: 30px;
  box-sizing: border-box;
}

form.views-exposed-form input[type=text].form-time {
  position: relative;
  top: 0;
}
form.views-exposed-form fieldset .date-filter-label {
  margin: -5px 5px 0;
  align-self: center;
  font-size: 0.8rem;
  font-weight: bold;
  color: #333;
}
form.views-exposed-form fieldset .date-filter-arrow {
  position: relative;
  top: 16%;
  font-size: 1.5em;
  margin: 0 2px;
  color: #666;
}

/** Statistics **/

form.statistics-filter-form {
  display: flex;
  flex-wrap: wrap;
  margin-top: 1em;
}
form.statistics-filter-form .form-item {
  margin-right: 0.75em !important;
  display: flex;
  flex-direction: column;
  margin-top: 0;
}
form.statistics-filter-form .form-actions {
  margin: 3px;
}
form.statistics-filter-form .date-filter-arrow {
  position: relative;
  top: 12%;
  font-size: 1.5em;
  left: -4px;
  color: #999;
}

.ui-timepicker-standard {
  z-index: 10000!important;
}
.ui-timepicker-standard a {
  margin-right: 20px;
}
form:not(.views-exposed-form) .datetime-wrapper + .datetime-wrapper {
  margin-top: -1em;
}
form.views-exposed-form .datetime-wrapper input {
  height: 37px;
  margin-top: 4px;
}

form.views-exposed-form .datetime-wrapper > div {
  display: flex;
}
form.views-exposed-form input.timepicker {
  margin-left: 5px;
}

form.views-exposed-form .fieldset-legend {
  display: none;
}
form.views-exposed-form .fieldset-wrapper {
  display: flex;
}
form.views-exposed-form .fieldset-wrapper .form-item {
  margin: 0 1em 1em 0;
}
form.views-exposed-form fieldset {
  border: 0;
  padding: 0;
}
form.views-exposed-form fieldset#edit-gl-code-wrapper .fieldset-legend,
form.views-exposed-form fieldset#edit-amount-wrapper .fieldset-legend {
  display: inherit;
  font-weight: bold;
}
form.views-exposed-form fieldset#edit-gl-code-wrapper .fieldset-wrapper .form-item.form-type-textfield {
  margin-left: -1em;
}
form.views-exposed-form fieldset#edit-gl-code-wrapper {
  margin-bottom: 0;
}

details.vbo-multipage-selector {
  margin: 0;
}
details.vbo-multipage-selector summary {
  padding: 0;
  margin: 0;
}

.form-disabled {
  opacity: 0.4;
}

textarea {
  padding: 7px;
  font-size: 100%;
  font-family: sans-serif;
  width: 50%;
  min-width: 320px;
  box-sizing: border-box;
  margin-top: 5px;
}

form label {
  display: block;
  font-weight: bold;
}
form:not(.vbo-view-form) .form-item {
  margin-bottom: 1em;
}
form.views-exposed-form .form-item {
  margin: 0 1em 0.5em 0!important;
}
form.views-exposed-form fieldset.form-item {
  margin: 0 1em 0 0!important;
}
form.views-exposed-form fieldset.form-item .form-item {
  margin-right: 1em;
  margin-left: 0;
}
form.views-exposed-form fieldset.form-item .form-item + .form-item {
  margin-left: -0.7em!important;
}
form.views-exposed-form fieldset.form-item .form-item:last-child {
  margin-right: 0!important;
  margin-left: 0;
}

form .description {
  font-size: 0.8rem;
  clear: both;
}

input.form-submit,
.button,
.ui-dialog .ui-dialog-buttonpane button {
  font-size: 1rem;
  font-weight: bold;
  padding: 5px 10px;
  background: var(--dsv-blue) !important;
  color: #fff !important;
  text-shadow: none !important;
  border: 0;
  transition: background 0.1s linear;
  cursor: pointer;
  text-decoration: none!important;
  margin: 3px 5px;
  display: inline-flex;
  align-items: center;
  border-radius: 3px;
  -webkit-appearance: none;
  -moz-appearance:    none;
  appearance:         none;
  z-index: 1;
  position: relative;
}
input.form-submit:hover,
.button:hover,
.ui-dialog .ui-dialog-buttonpane button:hover {
  transition: background 0.1s linear;
  background: var(--dsv-dark-blue) !important;
}
.ui-dialog .ui-dialog-buttonpane button + button {
  margin-left: 10px;
}
.button.small {
  font-size: 0.85em;
  padding: 5px 10px;
}
.button.right {
  margin-left: 5px!important;
}
.small-link {
  font-weight: normal!important;
  font-size: 0.8rem;
  text-decoration: underline!important;
}
.small-link:hover {
  text-decoration: none!important;
}

/** Tables **/

table {
  width: 100%;
  margin: 5px 0;
  background: #fff;
}
table tr th {
  padding: 5px 10px;
  text-align: left;
  color: var(--dsv-blue);
  background: #fff;
  border-bottom: 2px solid;
}
table tr td {
  padding: 5px 10px;
  text-align: left;
}
table tr th, table tr th a, table tr th a:hover {
  font-weight: bold;
}
table tr td {
  border-bottom: #E1E6EB 1px solid;
}
table tr table tr th {
  border-bottom: 1px solid;
}
table tr table td {
  border-bottom: #E1E6EB 0px solid;
}

table tr.red-flag {
  background-color: rgba(222, 8, 17, 0.2);
}
table td.no-padding {
  padding: 0;
}
table td.no-padding table {
  margin: 0;
  border-spacing: 0;
}
table td.no-padding table td {
  border-bottom: 2px solid #fff;
}
table td.no-padding table td:not(:first-child) {
  border-left: 2px solid #fff; 
}
table tfoot tr {
  background: none!important;
  font-weight: bold;
}
.sumcols table tfoot tr td {
  text-align: right;
}

.fixedfirstcol table th:first-child,
.fixedfirstcol table td:first-child {
  width: 100px;
  min-width: 100px;
}
.fixedfirstcolwide table th:first-child,
.fixedfirstcolwide table td:first-child {
  width: 250px;
  min-width: 250px;
}
.fixedlastcol table th:last-child,
.fixedlastcol table td:last-child {
  width: 110px;
  min-width: 110px;
}
.fixedlastcolmed table th:last-child,
.fixedlastcolmed table td:last-child {
  width: 150px;
  min-width: 150px;
}
.fixedlastcolwide table th:last-child,
.fixedlastcolwide table td:last-child {
  width: 250px;
  min-width: 250px;
}
.lastcolright table th:last-child,
.lastcolright table td:last-child,
table.lastcolright th:last-child,
table.lastcolright td:last-child {
  text-align: right;
}

.nowrap table th,
.nowrap table td {
  white-space: nowrap;
}

form .field-group {
  border: none;
  background-color: var(--dsv-light-grey);
  border-radius: 5px;
  padding: 0 2vw 1em;
  margin-bottom: 2em;
}
form .field-group > .field-group-label {
  padding: 5px 10px;
  font-size: 1.2em;
  font-weight: bold;
  color: #fff;
  background: var(--dsv-dark-blue);
}
form .field-group > .field-group-label {
  display: inline-block;
  margin-top: -0.75em;
  margin-bottom: 1em;
}
form .field-group .field-group > .field-group-label {
  padding: 0px;
  color: var(--dsv-black);
  background: transparent;
}

body.env-local:not(.role-anonymous) .layout-container:not(.front) > header:after,
body.env-dev:not(.role-anonymous) .layout-container:not(.front) > header:after,
body.env-staging:not(.role-anonymous) .layout-container:not(.front) > header:after {
  content: "";
  display: block;
  width: 104vw;
  height: 70px;
  background: #666666;
  background-size: cover;
  font-size: 3rem;
  padding: 10px 40px;
  box-sizing: border-box;
  text-align: right;
  font-weight: bold;
  color: #fff;
  margin: 0 -2vw 20px;
}
body.env-local:not(.role-anonymous) .layout-container:not(.front) > header:after {
  content: "LOCAL";
  background-color: #c87474;
  background-blend-mode: color-burn;
}
body.env-dev:not(.role-anonymous) .layout-container:not(.front) > header:after {
  content: "DEV";
  background-color: #7d82cc;
  background-blend-mode: color-burn;
}
body.env-staging:not(.role-anonymous) .layout-container:not(.front) > header:after {
  content: "STAGING";
  background-color: #a079d0;
  background-blend-mode: color-burn;
}

.icon img,
img.icon {
  width: 25px;
  max-width: initial;
}
.icon.small {
  width: 18px;
}

[type="checkbox"], [type="radio"] {
  transform: scale(1.3);
}

/** Dialog popup **/

.ui-widget-overlay {
  background: rgba(25, 40, 98, 0.85);
  opacity: 1;
}

.ui-dialog {
  border: 0!important;
  border-radius: 5px!important;
  width: auto!important;
  max-width: 85vw;
  min-width: 320px;
  position: relative;
  z-index: 1000;
  background-color: #fff;
}

#drupal-modal {
  overflow-x: hidden;
}
#drupal-modal .no-modal {
  display: none;
}
.modal-only {
  display: none;
}
#drupal-modal #project-links {
  display: none;
}

#drupal-modal .modal-only {
  display: inherit;   
}
form #messages {
  display: none;
}
#drupal-modal form #messages {
  display: inherit;
}
#drupal-modal h1 {
  display: none;
}

.ui-dialog {
  z-index: 100!important;
  background: #fff !important;
}

.ui-dialog .ui-widget-content.ui-dialog-content {
  padding: 1em!important;
}

.ui-dialog-titlebar {
  padding: 50px 1em 0!important;
  border: 0!important;
  background: url(/themes/customs/images/dsv-logo-small.png) 15px 15px no-repeat #fff!important;
  border-radius: 5px!important;
}
.ui-dialog .ui-dialog-title {
  width: 100%!important;
  text-align: center;
  font-size: 1.3rem!important;
  margin: 0 0 5px!important;
  background-color: #fff!important;
  color: #333333!important;
}
.ui-dialog-titlebar-close {
  background: url(/themes/customs/images/icons/close-button.jpg) no-repeat!important;
  background-size: 20px!important;
  width: 20px!important;
  height: 20px!important;
  top: 25px!important;
  right: 15px!important;
  border: 0!important;
  margin: 0!important;
}
.ui-dialog-titlebar-close span {
  display: none;
}
.ui-dialog-titlebar-close:hover,
.ui-dialog-titlebar-close:focus {
  background: url(/themes/customs/images/icons/close-button.jpg) no-repeat!important;
  background-size: 20px!important;
}
.ui-dialog .entity-meta {
  padding: 15px;
  box-sizing: border-box;
}
.ui-dialog .form-item {
  margin-bottom: 10px;
}
.ui-dialog input {
  padding: 5px;
  box-sizing: border-box;
}
.ui-dialog .select2 {
  margin-top: 5px;
  border: 1px solid #999;
}

.ui-dialog .description {
  font-size: 0.8rem;
  margin-top: 3px;
  max-width: 400px;
}
.ui-dialog label {
  width: 100%;
  display: block;
  font-weight: bold;
}
.ui-dialog .field--type-boolean label {
  display: inline-block;
  font-weight: normal;
  width: inherit;
}
.ui-widget textarea {
  width: 100%;
  box-sizing: border-box;
  margin-top: 5px;
}
.ui-widget .js-form-type-vertical-tabs {
  order: 998;
}
.ui-widget form {
  display: flex;
  flex-direction: column;
}
.ui-widget .entity-content-form-footer {
  order: 999;
}
.ui-dialog input.form-submit {
  border: 0;
}
#drupal-modal form div[data-drupal-selector="edit-actions"] {
  display: none;
}

.notice {
  padding: 1em 10px;
  background: rgba(22,125,134,0.08);
  border-left: 5px solid var(--dsv-blue);
  margin-bottom: 1em;
  display: flex;
  flex-wrap: wrap;
}
.notice-nobg {
  padding: 1em 10px;
  border-left: 5px solid var(--dsv-blue);
  margin-bottom: 1em;
  display: flex;
  flex-wrap: wrap;
}

.notice a,
.notice a:link {
  color: var(--dsv-blue);
}
.notice.notes {
  display: block;
}

.infopane.notice {
  padding: 0;
  font-size: 1.05rem;
}
.infopane.notice > div {
  padding: 15px 25px 17px;
  border-right: 3px solid #fff;
  max-width: 350px;
}
.infopane.notice > div:last-child {
  border-right: none;
}
.infopane h3,
.notes h3 {
  margin: 2px 0;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-family: 'db_sansbold';
}
.infopane .form-item {
  margin: 0;
}

.csv-feed .feed-icon {
  background-image: url(/themes/customs/images/icons/csv.png);
  width: 100px;
  display: block;
  margin-bottom: 10px;
  height: 40px;
}

.table-right td {
  text-align: right;
}

/* Off-Canvas */

#drupal-off-canvas-wrapper {
  border-radius: 0 !important;
}

#drupal-off-canvas-wrapper input:where(:not([type="submit"], [type="checkbox"], [type="radio"], [type="file"])) {
  max-width: 280px!important;
}

#drupal-off-canvas-wrapper .ui-dialog-titlebar::before {
  display: none!important;
}

#drupal-off-canvas-wrapper .ui-dialog-title {
  color: var(--dsv-dark-blue);
}

#drupal-off-canvas-wrapper .ui-dialog-titlebar {
  border-radius: 0!important;
  padding-bottom: 1em !important;
}

#drupal-off-canvas-wrapper .ui-dialog-titlebar-close::before,
#drupal-off-canvas-wrapper .ui-dialog-titlebar-close::after {
  display: none;
}

#drupal-off-canvas-wrapper .ui-dialog-titlebar-close {
  top: 50%!important;
  width: 20px!important;
  height: 20px!important;
}

.infopane .linkicon svg,
.infopane .linkicon img {
  position: relative;
  top: 7px;
}

.ui-widget-overlay {
  background: var(--dsv-black)!important;
  opacity: 0.5!important;
}

.user-and-menus svg {
  width: 30px;
}
.user-and-menus summary {
  display: inline-block;
  border-bottom: none;
  margin-bottom: 0;
}

#customs-settings-menu {
  position: relative;
}
.settings-menu {
  position: absolute;
  right: 0;
  margin-top: 6px;
  background: #fff;
  padding: 10px 0 10px 10px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  display: -webkit-flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  z-index: 100;
  min-width: 250px;
  -webkit-box-shadow: -2px 5px 5px 0px #0006;
          box-shadow: -2px 5px 5px 0px #0006;
}
.settings-menu .linkicon {
  color: var(--dsv-blue);
  padding: 7px;
  margin-right: 10px;
  font-weight: bold;
  font-size: 0.9rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  display: -webkit-flex;
  -ms-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}
.settings-menu .linkicon img {
  width: 25px;
  height: 25px;
  padding-right: 10px;
}
.settings-menu a {
  text-decoration: none!important;
}
.settings-menu a.linkicon:hover {
  background: rgba(22,125,134,0.08);
  text-decoration: none!important;
}

/* Log messages */

.log-message {
  margin-bottom: 0.25em;
  font-size: 0.85rem;
}
.log-message strong,
.log-message em {
  font-size: 0.75rem;
}
.log-message-line {
  font-family: courier;
  font-size: 0.7rem;
  background: #fff;
  margin-bottom: 0.5em;
  display: inline-block;
}

/* Indicators */

.indicator {
  display: block;
  height: 25px;
  width: 25px;
  border-radius: 25px;
  margin: auto;
}

.grey.indicator {
  background-color: var(--dsv-dark-grey);
}

.green.indicator {
  background-color: var(--dsv-green);
}

.yellow.indicator {
  background-color: var(--dsv-amber);
}

.red.indicator {
  background-color: var(--dsv-red);
}

/* Consignments */

.customs-message {
  white-space: break-spaces;
}

/* Container styling */pre code.hljs {
  display: block;
  background: #ffffff;
  color: #24292e;
  border: 1px solid #e1e4e8;
  font-family: 'Consolas', 'Monaco', monospace;
  padding: 15px;
  border-radius: 4px;
}
/* XML Definition */.hljs-meta {
  color: #005cc5; /* Blue */}
/* The brackets < > */.hljs-tag {
  color: #24292e;
}
/* The Tag Name */.hljs-name {
  color: #22863a; /* Forest Green */font-weight: 600;
}
/* Attribute Names */.hljs-attr {
  color: #6f42c1; /* Purple */
}
/* Strings/Values */.hljs-string {
  color: #032f62; /* Dark Blue */
}


/* Consignment Menu */

.consignment-menu a,
.consignment-menu .selected {
  font-size: 1rem;
  margin-right: 1em;
}

.consignment-menu a {
  text-decoration: underline!important;
  display: inline-block;
  position: relative;
}

.consignment-menu a:hover {
  text-decoration: none!important;
}

.consignment-menu .selected {
  color: var(--dsv-blue);
  font-weight: bold;
}

@media all and (max-width: 900px) {
  #dsvlogo {
    display: none;
  }
  #dsvlogosmall {
    display: inline-block;
  }
  .hello {
    display: none;
  }
}

/* Consignment Detail Page Styles */

:root {
  --dsv: #192862;
  --dsv-2: #22357a;
  --bg: #fff;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e6e8f0;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --radius: 16px;
  --radius-sm: 12px;
  --ok: #0ea5e9;
  --warn: #f59e0b;
  --bad: #ef4444;
  --good: #10b981;
  --chip: #eef2ff;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

* {
  box-sizing: border-box;
}

a {
  color: var(--dsv);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

.logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--dsv), var(--dsv-2));
  box-shadow: 0 8px 18px rgba(25, 40, 98, .20);
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
}

.logo:after {
  content: "";
  position: absolute;
  inset: -30% -10%;
  background: linear-gradient(120deg, rgba(255, 255, 255, .25), transparent 45%);
  transform: rotate(12deg);
}

.brand h1 {
  font-size: 15px;
  line-height: 1.2;
  margin: 0;
  letter-spacing: .2px;
  font-weight: 850;
}

.brand h1 .ref {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 13px;
  color: var(--dsv);
  background: rgba(25, 40, 98, .06);
  border: 1px solid rgba(25, 40, 98, .14);
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 8px;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .topbar-inner {
    flex-wrap: wrap;
  }

  .brand {
    min-width: auto;
    width: 100%;
  }
}

/* Layout */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.row-2 {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 980px) {
  .row-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card .hd {
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(25, 40, 98, .05), transparent 72%);
}

.card .hd h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: .2px;
}

.card .bd {
  padding: 14px 16px;
}

.card .bd p {
  margin: 8px 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
}

.card .bd p:first-child {
  margin-top: 0;
}

.card .bd p:last-child {
  margin-bottom: 0;
}

/* Consignment Detail fields */
.kv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 640px) {
  .kv {
    grid-template-columns: 1fr;
  }
}

.field {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: #fff;
}

.field .k {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 6px;
}

.field .v {
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.field .v .mono {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 13px;
}

/* Timeline */
.timeline-wrap {
  padding: 6px 2px 2px 2px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(160px, 1fr));
  gap: 10px;
  align-items: stretch;
  overflow: auto;
  padding-bottom: 6px;
}

.tstep {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 10px;
  min-height: 86px;
}

.tstep:before {
  content: "";
  position: absolute;
  top: 18px;
  left: -10px;
  width: 10px;
  height: 2px;
  background: var(--border);
}

.tstep:first-child:before {
  display: none;
}

.tstep .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #cbd5e1;
  flex: 0 0 auto;
}

.dot.green {
  background: #10b981;
  box-shadow: 0 0 4px rgba(16, 185, 129, .35), 0 0 0 2px rgba(16, 185, 129, .28);
}

.dot.grey {
  background: #cbd5e1;
}

.dot.amber {
  background: #f59e0b;
  box-shadow: 0 0 4px rgba(245, 158, 11, .35), 0 0 0 2px rgba(245, 158, 11, .28);
}

.dot.red {
  background: #ef4444;
  box-shadow: 0 0 4px rgba(239, 68, 68, .35), 0 0 0 2px rgba(239, 68, 68, .28);
}

.tstep.done .dot {
  background: var(--ok);
  box-shadow: 0 0 4px rgba(14, 165, 233, .35), 0 0 0 2px rgba(14, 165, 233, .28);
}

.tstep.pending .dot {
  background: #e2e8f0;
}

.tstep.hold .dot {
  background: var(--bad);
  box-shadow: 0 0 4px rgba(239, 68, 68, .35), 0 0 0 2px rgba(239, 68, 68, .25);
}

.sub-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.sub-dot {
  width: 0;
  height: 0;
  flex: 0 0 auto;
  position: relative;
}

.sub-dot.up {
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 10px solid currentColor;
}

.sub-dot.down {
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 10px solid currentColor;
}

.sub-dot.green {
  color: #10b981;
  filter: drop-shadow(0px 0px 3px rgba(16, 185, 129, .8));
}

.sub-dot.grey {
  color: #cbd5e1;
}

.sub-dot.amber {
  color: #f59e0b;
  filter: drop-shadow(0px 0px 3px rgba(245, 158, 11, .8));
}

.sub-dot.red {
  color: #ef4444;
  filter: drop-shadow(0px 0px 3px rgba(239, 68, 68, .8));
}

.name {
  font-weight: 900;
  font-size: 13px;
  margin: 0;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.label {
  font-size: 12px;
  font-weight: 750;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 0 8px 0;
}

.status {
  font-size: 11px;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 800;
  white-space: nowrap;
}

.status.ok {
  border-color: rgba(16, 185, 129, .25);
  background: rgba(16, 185, 129, .10);
  color: #065f46;
}

.status.warn {
  border-color: rgba(245, 158, 11, .25);
  background: rgba(245, 158, 11, .12);
  color: #7c2d12;
}

.status.bad {
  border-color: rgba(239, 68, 68, .25);
  background: rgba(239, 68, 68, .10);
  color: #7f1d1d;
}

.status.neutral {
  border-color: rgba(25, 40, 98, .20);
  background: rgba(25, 40, 98, .07);
  color: var(--dsv);
}

.time {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-weight: 700;
  min-height: 16px;
}

/* Tables */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
}

th, td {
  text-align: left;
  font-size: 13px;
  padding: 10px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

th {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  background: rgba(25, 40, 98, .05);
}

tr:last-child td {
  border-bottom: none;
}

.muted {
  color: var(--muted);
  font-size: 12px;
}

.amt {
  font-family: var(--mono);
  font-weight: 850;
}

.amt.negative {
  color: #991b1b;
}

.amt.positive {
  color: #065f46;
}

/* Tax tiles */
.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tile {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: #fff;
}

.tile .t {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.tile .n {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 950;
}

.tile .n small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 850;
}

/* Cost Control */
.pl-summary {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

@media (max-width: 720px) {
  .pl-summary {
    grid-template-columns: 1fr;
  }
}

.kpi {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 12px;
}

.kpi .label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0;
}

.kpi .value {
  margin-top: 8px;
  font-size: 20px;
  font-weight: 950;
  font-family: var(--mono);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 850;
  font-size: 12px;
  white-space: nowrap;
}

.chip.ok {
  border-color: rgba(16, 185, 129, .25);
  background: rgba(16, 185, 129, .10);
  color: #065f46;
}

.chip.warn {
  border-color: rgba(245, 158, 11, .25);
  background: rgba(245, 158, 11, .12);
  color: #7c2d12;
}

/* Technical section */
.technical {
  margin-top: 16px;
  border: 1px dashed rgba(100, 116, 139, .45);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, .60);
}

.technical .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  gap: 10px;
}

.switch {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  user-select: none;
}

.switch input {
  width: 18px;
  height: 18px;
  accent-color: var(--dsv);
}

.technical .content {
  display: none;
  padding: 0 14px 14px 14px;
}

.technical.show .content {
  display: block;
}

.footnote {
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

/* Drupal overrides */
.button {
  display: inline-block;
  padding: 10px 16px;
  background: var(--dsv);
  color: #fff;
  border: 1px solid var(--dsv);
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(25, 40, 98, .12);
}

.button:hover {
  background: var(--dsv-2);
  border-color: var(--dsv-2);
  box-shadow: 0 4px 12px rgba(25, 40, 98, .18);
  text-decoration: none;
}

.topbar-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}

@media (max-width: 860px) {
  .topbar-buttons {
    order: 3;
    width: 100%;
    margin-left: 0;
    margin-top: 10px;
  }

  .topbar-buttons .button {
    flex: 1;
    text-align: center;
  }
}
