/* Fonts */

@font-face {
    font-display: swap;
    font-family: 'DIN2014-Regular';
    src: url('354cb7_5_0.eot');
    src: url('354cb7_5_0.eot?#iefix') format('embedded-opentype'),
    url('354cb7_5_0.woff2') format('woff2'),
    url('354cb7_5_0.woff') format('woff'),
    url('354cb7_5_0.ttf') format('truetype');
}


@font-face {
    font-display: swap;
    font-family: 'DIN2014-Demi';
    src: url('354cb7_7_0.eot');
    src: url('354cb7_7_0.eot?#iefix') format('embedded-opentype'),
    url('354cb7_7_0.woff2') format('woff2'),
    url('354cb7_7_0.woff') format('woff'),
    url('354cb7_7_0.ttf') format('truetype');
}

/* Color Variables */

:root {

  /* Brand Defaults */

  --brand-red: #A11D2C;
  --brand-white: #FFFFFF;
  --brand-black: #000000;
  --brand-blue: #121E8D;
  --gold: #976F13;
  --racing-yellow: #F0FF00;

  --red-100: #FAE8EA;
  --red-400: #E37E8A;
  --red-500: #CD192E;
  --red-600: #D74758;
  --red-900: #730E1A;

  --grey-20: #F9F9F9;
  --grey-50: #F2F2F2;
  --grey-100: #E6E6E6;
  --grey-200: #CCCCCC;
  --grey-300: #B3B3B3;
  --grey-400: #999999;
  --grey-500: #808080;
  --grey-60: #666666;
  --grey-700: #4D4D4D;
  --grey-800: #333333;
  --grey-900: #1A1A1A;
  --grey-950: #0D0D0D;
}

/* Backgrounds */

.bg-black {
  background-color: var(--brand-black);
}

.bg-white {
  background-color: var(--white);
}

.bg-off-white {
  background-color: var(--off-white);
}

/* Buttons */

/* Base Button */
/* .button, .btn
  {
  font-family: 'DIN 2014 Demi', sans-serif;
  font-size: 17px;
  line-height: 22px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 10px 16px;
  border: none;
  cursor: pointer;
  display: flex;
  margin-left: 0;

  transition: all;
  transition-duration: 0.3s;

  text-decoration: none;
  max-width: max-content;
} */

a>.btn,
.action {
  margin-left: 3rem;
}

button, a[role="button"], input[role="button"], input[type="button"], a.secondary-button {

  border-style: none;
  border-radius: 4px;
  gap: 8px;

  padding: 1rem 0.5rem !important;

  height: 48px;

  text-align: center;
  text-decoration: none !important;
  text-transform: uppercase;
  vertical-align: top;
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;

  will-change: auto;

  &:active,
  &.active {
    box-shadow: none;
    outline: 0;
  }

  &.disabled,
  &[disabled],
  fieldset[disabled] & {
    cursor: default;
    background: #f4f4f4;
    border-color: #f4f4f4;
    color: #63656a;
    pointer-events: none;

    svg {
      filter: invert(0.7);
    }
  }
}

.toolbar-actions {
  gap: 5rem;
}

.pagination > li {
  display: inline-block;

  & > a {
    border-radius: 4px !important;
  }
}

#UploadButton {
    background-color: var(--brand-white) !important;
    color: var(--brand-black) !important;

    transition: all ease-in-out;
    transition-duration: 250ms;

    border: solid 3px var(--brand-black) !important;
    border-radius: 4px;

    padding: 10px 24px !important;

    align-items: center;
    justify-content: center;

    &:hover, &:active {
        background-color: var(--brand-black) !important;
        color: var(--brand-white) !important;
    }
}

.cancel {
  color: var(--brand-white) !important;
}

.primary-button, input.btn.btn-primary, button.btn-primary {
  background-color: var(--brand-black);
  color: var(--brand-white) !important;

  transition: all ease-in-out;
  transition-duration: 250ms;

  border: solid 3px var(--brand-black);

  &.cta, &[title="submit"], &[id="NextButton"] {
    background-color: var(--red-500) !important;
    border-color: var(--red-500) !important;

    &:hover, &:focus {
      background-color: var(--red-900) !important;
      border-color: var(--red-900) !important;
    }
  }

  &:hover, &:focus {
    background-color: var(--grey-800);
    border-color: var(--brand-white);
  }
}

div.modal-footer {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 1rem;
  place-content: left;
}

.secondary-button, .Triumph-Cancel, .Triumph-Close, button.btn-default  {
  background-color: var(--brand-white) !important;
  color: var(--brand-black) !important;

  transition: all ease-in-out;
  transition-duration: 250ms;

  border: solid 3px var(--brand-black) !important;
  border-radius: 4px;

  align-items: center;
  justify-content: center;

  text-transform: uppercase;

  &.black, &.Triumph-Close, &.Triumph-Cancel {
    background-color: var(--brand-black) !important;
    color: var(--brand-white) !important;

    &:hover, &:active, &:focus {
      background-color: var(--brand-white) !important;
      color: var(--brand-black) !important;
      border-color: var(--brand-black) !important;
    }

  }

  &:hover, &:active, &:focus {
    background-color: var(--brand-black) !important;
    color: var(--brand-white) !important;
  }

  &.nohover:hover, &:focus {
    background-color: var(--brand-white) !important;
    color: var(--brand-black) !important;
    cursor: default;
  }

  &.pull-right {
    width: unset;
    margin: 0 !important;
  }
}

li[aria-label="usermenu"] {

  @media (max-width: 600px) {
    display: none !important;
  }

  &::after {
    content: none !important;
  }
}

li {
  padding-left: 0px !important;
  padding-right: 0px !important;

  &.weblink::after {
    content: none !important;
  }
}

/* Test IFRAME */

div#EntityFormPanel {
  border: none !important;
}

label {
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

input[type="text"]:not(input[readonly="readonly"]):not(input[disabled="disabled"]):not(input.msos-input),
select:not(select[readonly="readonly"]):not(select[disabled="disabled"]),
textarea:not(textarea[readonly="readonly"]):not(textarea[disabled="disabled"]),
input.text:not(input[readonly="readonly"]):not(input[disabled="disabled"]):not(input.msos-input),
span#triud_nhtsaclassificationext_Container, textarea#address1_composite {
  border: solid 1px var(--brand-black) !important;
  border-radius: 4px;

  &:hover, &:focus, &:active {
    outline: none !important;
    box-shadow: var(--brand-black) !important;
  }
}

div.entitylist-search > input {
  width: 80%;
}

div:has(div.input-group-btn), div:has(span.input-group-addon) {
  & > input {  
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;

    width: min-content;
    max-height: 35px;
  }

  .input-group {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
  }

  .input-group-btn {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;

    flex-grow: 1;

    & > button:not(button[style^="display; none"]) {
      border: solid 1px var(--brand-black);
      border-radius: 4px;
      border-top-left-radius: 0;
      border-bottom-left-radius: 0;
      max-height: 35px;
      width: 1rem;

      display: flex;
      justify-content: center;
      vertical-align: middle;

      background-color: var(--brand-black);
      color: var(--brand-white);

      transition: all;
      transition-duration: 250ms;
      transition-timing-function: ease-in-out;

      &:hover {
        background-color: var(--brand-white);
        color: var(--brand-black);
      }
    }

    & > button > span.fa {
      color: inherit;
      place-self: center;
    }
  }

}


textarea {
  resize: vertical;
}

textarea#description {
  min-height: 4rem;
  height: 16rem;
  max-height: 16rem;
}

div.datetimepicker {

  span.input-group-addon {
    width: unset !important;
    border: solid 1px var(--brand-black);
    border-left: none;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;

    background-color: var(--brand-black);
    color: var(--brand-white);

    transition: all;
    transition-duration: 250ms;
    transition-timing-function: ease-in-out;

    border-collapse: collapse;

    &:hover {
      background-color: var(--brand-white);
      color: var(--brand-black);
    }

    &:focus, &:focus-visible {
      outline: none;
    }
  }
}

span.boolean-radio {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
}

input[type="radio"] {

  appearance: none;
  background-color: var(--brand-white);
  margin: 0;
  font: inherit;
  color: var(--brand-black);
  width: 1.15em;
  height: 1.15em;
  border: 0.15em solid var(--brand-black);
  border-radius: 50%;
  transform: translateY(-0.075em);

  display: flex;
  flex-direction: row;

  &:checked {
    background-color: var(--brand-black);
  }

  &:focus {
    outline: none;
  }

  &::before {
    content: "";
    width: 0.65em;
    height: 0.65em;
    border-radius: 50%;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em var(--form-control-color);
  }

  &:checked::before {
    transform: scale(1);
  }
}

a#return-button {
  display: flex;
  flex-direction: column;
  place-content: center;
}

input#InsertButton {
  gap: 8px;

  padding: 1rem 0.5rem !important;

  height: 48px;

  text-align: center;
  text-decoration: none !important;
  text-transform: uppercase;
  vertical-align: top;
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;

  will-change: auto;

  &:active,
  &.active {
    box-shadow: none;
    outline: 0;
  }

  background-color: var(--red-500) !important;
  color: var(--brand-white) !important;

  transition: all ease-in-out;
  transition-duration: 250ms;

  border: solid 3px var(--red-500) !important;
  border-radius: 4px;

  align-items: center;
  justify-content: center;

  text-transform: uppercase;

  &:hover, &:active, &:focus {
    background-color: var(--red-900) !important;
    border-color: var(--red-900) !important;
  }
}


/* Typography */

/* Links */

a {
  cursor: pointer;
  text-decoration: none;
  color: inherit;

  &.details-link {
    color: var(--brand-black);
    text-decoration: none;

    &:hover {
      color: var(--grey-800);
      text-decoration: none;
    }

    &:active, &:visited {
      color: var(--brand-black);
      outline: none;
    }
  }
}


/* Headings - Desktop */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  text-transform: uppercase;
  margin-bottom: 0;
  position: relative;
  font-weight: inherit;

  a {
    text-decoration: none;
  }
}

h1 {
  font-size: 36px;
  line-height: 42px;
  letter-spacing: 1px;
}

h2 {
  font-size: 24px;
  line-height: 5px * 6;
  letter-spacing: 0.5px;
}

h3 {
  font-size: 20px;
  line-height: 26px;
  letter-spacing: 0.5px;
}

h4 {
  font-size: 18px;
  line-height: 22px;
  letter-spacing: 0.5px;
}

h5 {
  font-size: 16px;  
  line-height: 5px * 3;
  margin-bottom: 5px * 2;
}

#UpdateButton {
  display: none !important;
}

/* .cancel-case-link,
.close-case-link,
.reopen-case-link{
  background-color: var(--red) !important;
  color: white !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.cancel-case-link:hover,
.close-case-link:hover,
.reopen-case-link:hover {
  background-color: var(--red-900) !important;
  color: white !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
  outline: none !important;
} */

body, * {
  font-family: 'DIN2014-Regular', sans-serif;
}


body {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
}

.label.label-info {
  display: none !important;
}

div.attachment-separator {
  display: none !important;
}

div.attachment-outer-border:has(div.attachment-loadmore-section:empty) {
  display: none !important;
}

div.attachment {
  border: none !important;
  padding-top: 0 !important;
  }
/* Responsive Tweaks (Mobile) */
@media (max-width: 600px) {

    body {
        overflow-x: hidden;
    }

    html {
        overflow-x: hidden;
    }
    #home-page {
    background-position: center top !important;
  }

  .triumph-hero {
    text-align: center;
    margin: 0 auto;
    width: 100%;
  }


  .container,
  .row,
  .col-md-8,
  .entityform,
  .form-container,
  #content_form {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box;
  }

  h2,
  .h2 {
    font-size: 15px;
    line-height: 20px;
  }

  .triumph-hero {
    padding: 1rem;
    top: 2%;
    left: 2%;
    background-size: contain;
    background-position: top;
    background-repeat: no-repeat;
  }

  .triumph-hero h1 {
    font-size: 24px;
    line-height: 30px;
    text-align: center;
  }

  .triumph-hero div {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .button {
    font-size: 14px;
    padding: 8px 12px;
  }
  
   body,
  p,
  span,
  a,
  li,
  label,
  input,
  select,
  textarea {
    font-size: 14px !important;
  }

  .table tr {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;

    width: 100%;
  }

  .table > thead {
    display: none;
  }

  .table tbody,
  .table th,
  .table td,
  .table tr {
    width: 100%;
  }



  .table td {
    display: flex;
    flex-direction: row;
    justify-content: end;
  }

  .table tr:not(:last-child) {
    margin-bottom: 16px;
    display: block;
  }

  .table td {
    text-align: left;
    padding-left: 50%;
    position: relative;
  }

  .table td::before {
    content: attr(data-th);
    position: absolute;
    left: 1rem;
    width: 30%;
    font-weight: bold;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow-x: clip;
  }
  .navbar-header {
  flex-direction: column;
  align-items: flex-start;
}

.right-align {
  display: none;
  flex-direction: column;
  width: 100%;
  margin-top: 10px;
}

.navbar-header.show-menu .right-align {
  display: flex;
}

  #navbar {
    position: absolute;
    right: 0;
    top: 60px; 
    width: 200px; 
    background-color: #000; 
    padding: 1rem;
    z-index: 999;
    border-left: 1px solid #444;
    box-shadow: -2px 0 5px rgba(0,0,0,0.3);
  }

  #navbar .nav {
    flex-direction: column;
    display: flex;
    gap: 10px;
  }

  #navbar .nav > li {
    width: 100%;
    text-align: left;
    padding: 0.5rem 0;
  }

  #navbar .nav > li > a {
    color: white;
    padding: 0.5rem;
    display: block;
  }

   .create-action {
    display: block;
    width: 100%;
    margin-top: 1rem;
    float: none !important;
    text-align: center;
  }
    
   .pull-right {
    float: none !important;
    text-align: left !important;
    width: 100%;
    margin-top: 1rem;
  }

  .btn-entitylist-filter-submit {
    display: inline-block !important;
  }
}

/* Search Results */

button[title="Search Results"] {
  border: solid 1px var(--brand-black) !important;
  border-left: none !important;
  border-top-right-radius: 4px !important;
  border-bottom-right-radius: 4px !important;
  height: 42px !important;
  padding: 6px 12px !important;
}

input.query.form-control {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;

  color: var(--brand-black) !important;
  height: 42px !important;
  border: solid 1px var(--brand-black) !important;

  &:active, &:focus, &:hover {
    box-shadow: var(--brand-black);
    border-right: none;
    outline: none;
  }

}

/* Standard body text */
.body {
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.2px;
  font-weight: 400;
}

/* Small body */
.body-sm {
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.1px;
}

/* Home Page */
.triumph-hero {
  height: min-content;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  background-color: var(--brand-black);
  opacity: 0.85;

  padding: 2rem;
  top: 5%;
  left: 5%;

  position: relative;
}

/* .entitylist, .panel, .grid-actions {
  border: none !important;
} */

/* Misc From Custom.CSS */

.open>.dropdown-menu {
  background-color: var(--portalThemeColor4, #ffffff);
}

.open>.dropdown-menu>li>a {
  color: var(--portalThemeOnColor9, #1276CE);
}


.open .dropdown-menu>li>a:hover,
.dropdown-menu>.active>a:hover {
  color: var(--portalThemeColor4, #ffffff);
  background-color: var(--portalThemeOnColor9, #1276CE);
  text-decoration: Underline;

}

.dropdown-menu>.active>a {
  color: var(--portalThemeColor4, #ffffff);
  background-color: var(--portalThemeOnColor9, #1276CE);
  text-decoration: Underline;

}

.open .dropdown-menu>.active>a:focus {
  color: var(--portalThemeColor4, #ffffff);
  background-color: var(--portalThemeOnColor9, #1276CE);
  text-decoration: Underline;

}

.container {
  margin: 0;
  justify-content: flex-start !important;
}

.form-container {
  padding-top: 80px;
  padding-bottom: 80px;
  padding-left: 20px;
  padding-right: 20px;
  width: 100vw;
  box-sizing: border-box;
}
.pageHeight,
.pageHeight > .xrm-editable-html.xrm-attribute,
.pageHeight > .xrm-editable-html.xrm-attribute > .xrm-attribute-value {
  height: 100%;
}

.triumph-menu {
  flex-direction: row;
  flex-wrap: nowrap;
  justify-items: center;
  align-items: center;
}

.menu-bar {
  flex-grow: 1;
}

html {
  padding-top: 0 !important;
  width: 100%;
  height: 100%;
}

body {
  position: relative;
  
  padding-top: 7.5vh;
  padding-bottom: 7.5vh;
  height: 100%;
  width: 100%;
}

footer {
  width: 100%;
  background-color: black;
  color: white;
  position: fixed;
  height: 7.5vh;

  bottom: 0;
  left: 0;

  z-index: 10;
}

.horizontal-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.horizontal-list li {
  position: relative;
  padding: 0 10px;
}

.horizontal-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 60%;
  width: 1px;
  background-color: #ccc;
  /* Light gray divider */
}


/* CSS From Embed??*/

.content {
  flex: 1 0 auto;
}

.navbar-static-top {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: black;
  color: white;
  z-index: 1000;

  place-content: center;
  min-height: 7.5vh;
}

.navbar-header .left-align {
  float: left;
}

.navbar-header .right-align {
  float: right;
}

.container {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  padding: 0 4rem;
}

.col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  word-break: break-word;
}

.left-align {
  text-align: left;
}

.right-align {
  text-align: right;
}

.socialimage {
  width: 32px;
  height: 32px;
  max-width: 100%;
}

.socialmargin {
  margin-right: 30px;
}

@media screen and (max-width: 767px) {
  .right-align {
    text-align: left;
  }
}

@media screen and (min-width: 1201px) {
  .paddingCopyright {
    padding-right: 63px;
  }

#home-page{
  height: 83vh;
}
}

.navbar > div.container {

  height: min-content;

  .navbar-brand {
    flex-shrink: 1;
    padding: 0 !important;
  }

  .user-menu {
    display: flex;

    flex-grow: 1;
    white-space: nowrap;
    align-items: center;

    place-content: flex-end;

    & > a#user-details {
      display: flex;
      flex-direction: column;

      color: var(--brand-black) !important;
      align-items: center;
      justify-content: center;
      max-height: 48px;

      &:hover {
        text-decoration: none;
      }

      @media (max-width: 1200px) {
        display: none;
      }
    }

    & > #signout-button {

      & > span.glyphicon {
        display: none;
        height: 100%;
      }

      @media (max-width: 1200px) {
        & > span.glyphicon {
          display: block;
        }

        & > span#signout-text {
          display: none;
        }
      }
    }

  }

  .navbar-nav {
    margin: 0 !important;
  }

  #nav-menu {
    display: flex;
    flex-direction: row;
    flex-grow: 1;
    place-content: flex-start;

    @media (max-width: 768px) {
      display: none;
    }
  }

  .navbar-header {
    align-items: center;
  }
}

.alert .alert-danger {
  background-color: var(--brand-black) !important;
  color: var(--brand-white);
  border-radius: 4px;
}

#content-container {
  display: flex;
  flex-wrap: wrap;

  div#EntityFormPanel {
    padding-left: 2rem;
    padding-right: 2rem;
    padding-top: 1rem;
    padding-bottom: 1rem;

    & > div.actions {
      margin: 0 !important;
    }
  }

  #content {
    width: 100%;
  }
}

#content-container:has(button[title="Microsoft"]) {
  background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(https://media.triumphmotorcycles.co.uk/image/upload/v1730194510/Rocket3GT_Evel%20Knievel_MY25_000_pikpjv.jpg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  flex-wrap: wrap;
  min-height: 100%;

  div#EntityFormPanel {
    padding-left: 2rem;
    padding-right: 2rem;
    padding-top: 1rem;
    padding-bottom: 1rem;

    & > div.actions {
      margin: 0 !important;
    }
  }

  & #content {
    margin: 10% auto;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    background-color: rgba(0,0,0, 0.6);
    padding: 2rem;
    height: min-content;
    color: var(--brand-white);
    
  & button[title="Microsoft"] {
    transition: all ease-in-out;
    transition-duration: 250ms;

    border: solid 3px var(--brand-black);

    background-color: var(--red-500);
    border-color: var(--red-500);

    &:hover {
      background-color: var(--red-900);
      border-color: var(--red-900);
    }
  } 
}
}

/* #content:not(form.content_form) {
  margin: 10% auto;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  background-color: rgba(0,0,0, 0.6);
  padding: 2rem;
  height: min-content;
  color: var(--brand-white);
} */

.col-md-6 {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  place-items: center;
}

.form-horizontal {
  display: flex;
  flex-direction: column;
}

#nav-menu-list {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 1rem;
}