{% load static %}

/* UPSTREAM COLDFRONT */
.fakeimg {
  height: 77px;
  background: #E2E2E2;
}

/*.navbar-custom {
  background-color: #FFFFFF;
  font-weight: bold;
  height: 50px;
}

.navbar-custom > .navbar-nav > .active {
  background: #E2E2E2;
}

*/



html {
  position: relative;
  min-height: 100%;
}
body {
  /* Margin bottom by footer height */
  margin-bottom: 150px;
}

main {
    padding-top: 40px;
    padding-bottom: 40px;
}

#brand .container {
  margin-bottom: 1px;
}
#brand h1 {
  font-size: 1.75rem;
  color: white;
  padding-top: 20px;
  font-weight: normal;
  letter-spacing: 1px;
}
#brand h1 small {
  color: white;
  font-weight: lighter;
  letter-spacing: 2px;
}

#footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  /* Set the fixed height of the footer here */
  height: 150px;
  background-color: #4582EC;
  color: #ffffff;
  padding-top: 15px;
}

#footer a {
  color: #ffffff;
}

.banner-name {
    padding-top: 25px;
}

.banner-logo {
    margin-top: 5px;
    max-height: 90px !important;
    margin-bottom: 5px;
}


body > main > form > div.alert.alert-block.alert-danger > ul > li {
  list-style: none;
  margin-top: 14px;
}

body > main > div > div.card.border-primary > div.card-body > form > div.alert.alert-block.alert-danger > ul > li {
  list-style: none;
  margin-top: 14px;

}

/*
 * These were copied from django-hijack https://github.com/arteria/django-hijack
 *
 */
.hijacked-warning {
  background-size: 50px 50px;
  background-color: #ffe761;
  color: #000;
  background-image: -webkit-linear-gradient(-45deg, rgba(0, 0, 0, .04) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, .04) 50%, rgba(0, 0, 0, .04) 75%, transparent 75%, transparent);
  background-image: -moz-linear-gradient(-45deg, rgba(0, 0, 0, .04) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, .04) 50%, rgba(0, 0, 0, .04) 75%, transparent 75%, transparent);
  background-image: linear-gradient(135deg, rgba(0, 0, 0, .04) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, .04) 50%, rgba(0, 0, 0, .04) 75%, transparent 75%, transparent);
  margin-bottom:0;
}

.hijacked-warning-controls,
.hijacked-warning-controls form {
	display: inline;
}

.django-hijack-button-default {
	-moz-box-shadow:inset 0px 1px 0px 0px #ffffff;
	-webkit-box-shadow:inset 0px 1px 0px 0px #ffffff;
	box-shadow:inset 0px 1px 0px 0px #ffffff;
	background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #ffffff), color-stop(1, #f6f6f6));
	background:-moz-linear-gradient(top, #ffffff 5%, #f6f6f6 100%);
	background:-webkit-linear-gradient(top, #ffffff 5%, #f6f6f6 100%);
	background:-o-linear-gradient(top, #ffffff 5%, #f6f6f6 100%);
	background:-ms-linear-gradient(top, #ffffff 5%, #f6f6f6 100%);
	background:linear-gradient(to bottom, #ffffff 5%, #f6f6f6 100%);
	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#f6f6f6',GradientType=0);
	background-color:#ffffff;
	-moz-border-radius:6px;
	-webkit-border-radius:6px;
	border-radius:6px;
	border:1px solid #dcdcdc;
	display:inline-block;
	cursor:pointer;
	color:#666666;
	font-family:Arial;
	font-size:11px;
	font-weight:bold;
	padding:3px 12px;
	text-decoration:none;
	text-shadow:0px 1px 0px #ffffff;
}
.django-hijack-button-default:hover {
	background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #f6f6f6), color-stop(1, #ffffff));
	background:-moz-linear-gradient(top, #f6f6f6 5%, #ffffff 100%);
	background:-webkit-linear-gradient(top, #f6f6f6 5%, #ffffff 100%);
	background:-o-linear-gradient(top, #f6f6f6 5%, #ffffff 100%);
	background:-ms-linear-gradient(top, #f6f6f6 5%, #ffffff 100%);
	background:linear-gradient(to bottom, #f6f6f6 5%, #ffffff 100%);
	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f6f6f6', endColorstr='#ffffff',GradientType=0);
	background-color:#f6f6f6;
}
.django-hijack-button-default:active {
	position:relative;
	top:1px;
}

.form-control[readonly]{background-color:#ffffff;opacity:1}



/* heiSERVICES */

message.debug {
    color: #8d8d8d;
}
message.info {
    color: #238a17;
}
message.warning {
    color: #8f8b17;
}
message.error {
    color: #9c0500;
}
message.success {
    color: #238a17;
}

.bg-primary {
    background-color: #c50c29 !important;
}

.btn:focus, .btn:active {
  outline: none !important;
  box-shadow: none !important;
}

.navbar-brand {
  color: #fff !important
}

div.card.border-primary{
  border-color: #cccccc !important;
}
 
.btn.btn-primary{
    background-color: #f9f9f9 !important;
    color: rgb(0,0,0) !important;
    border-color: rgb(0,0,0) !important;
}
.btn.btn-primary:hover{
    background-color: #fbfbfb !important;
    color: rgb(0,0,0) !important;
    border-color: rgb(0,0,0) !important;
}
.btn.btn-primary:focus{
  background-color: #cccccc !important;
  border-color: #cccccc important !important;
  color: rgb(0,0,0) !important;
    
}
.btn.btn-primary:after{
  background-color: #cccccc !important;
  border-color: #cccccc important !important; 
  color: rgb(0,0,0) !important;
}

.btn.btn-info{
  color: #000000 !important;
  background-color: #f9f9f9 !important;
  border-color: #17a2b8 !important;
}
.btn.btn-info:hover {
  color: #000000 !important;
  background-color: #fbfbfb !important;
  border-color: #17a2b8 !important;
}
.btn.btn-info:focus {
  color: #000000 !important;
  background-color: #cccccc !important;
  border-color: #17a2b8 !important;
}
.btn.btn-info:after {
  color: #000000; !important;
  background-color: #cccccc !important;
  border-color: #17a2b8 !important;
}

.btn.btn-success{
  color: #000000 !important;
  background-color: #f9f9f9 !important;
  border-color: #218838 !important;
}
.btn.btn-success:hover {
  color: #000000 !important;
  background-color: #fbfbfb !important;
  border-color: #218838 !important;
}
.btn.btn-success:focus {
  color: #000000 !important;
  background-color: #cccccc !important;
  border-color: #218838 !important;
}
.btn.btn-success:after {
  color: #000000; !important;
  background-color: #cccccc !important;
  border-color: #218838 !important;
}

a {
  color: #a30227;
}

a:hover {
  color: #cc0130;
}

.dropdown-item:focus {
  background-color: #cccccc !important;
  border-color: #cccccc !important;
  color: #000000;  !important;
}

.dropdown-item:after {
  background-color: #cccccc !important;
  border-color: #cccccc !important;
  color: #000000;  !important;
}

.dropdown-item.active, .dropdown-item:active {
    color: #000000;
    text-decoration: none;
    background-color: #cccccc;
}

.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: #c82333;
    border-color: #c82333;
}

input[type=checkbox], input[type=radio] {
    box-sizing: border-box;
    padding: 0;
    accent-color: #c82333;
}

.alert-info, .alert-secondary {
    color: #000000;
    background-color: #f5f0ea;
    border-color: #eeeeee;
}

.form-control:not(select):read-only {
    background-color: #e9ecef;
    opacity: 0.8
}

#footer.customize_footer {
    height: 55px;
}

/*Spinner animation for forms where a htmx request is in flight*/
form.htmx-request {
  position: relative;
  &::before {
      content: "";
      position: absolute !important;
      top: 0;
      left: 0;
      right: 0;
      margin-inline: auto;
      opacity: 0;


      --circle-radius: 15px;
      --dot-base: 4px;
      --dot-step: 1px;
      --gray-start: 70%;
      --gray-step: 7%;

      width: calc(var(--circle-radius) * 2);
      height: calc(var(--circle-radius) * 2);
      animation:
        spin 1s linear infinite,
        fadeIn 2s ease-out 0.5s forwards;


      --s1: var(--dot-base);
      --s2: calc(var(--dot-base) + var(--dot-step) * 1);
      --s3: calc(var(--dot-base) + var(--dot-step) * 2);
      --s4: calc(var(--dot-base) + var(--dot-step) * 3);
      --s5: calc(var(--dot-base) + var(--dot-step) * 4);
      --s6: calc(var(--dot-base) + var(--dot-step) * 5);
      --s7: calc(var(--dot-base) + var(--dot-step) * 6);
      --s8: calc(var(--dot-base) + var(--dot-step) * 7);

      --c1: hsl(0 0% var(--gray-start));
      --c2: hsl(0 0% calc(var(--gray-start) - var(--gray-step) * 1));
      --c3: hsl(0 0% calc(var(--gray-start) - var(--gray-step) * 2));
      --c4: hsl(0 0% calc(var(--gray-start) - var(--gray-step) * 3));
      --c5: hsl(0 0% calc(var(--gray-start) - var(--gray-step) * 4));
      --c6: hsl(0 0% calc(var(--gray-start) - var(--gray-step) * 5));
      --c7: hsl(0 0% calc(var(--gray-start) - var(--gray-step) * 6));
      --c8: hsl(0 0% calc(var(--gray-start) - var(--gray-step) * 7));

      background: radial-gradient(circle, var(--c1) 45%, transparent 50%),
      radial-gradient(circle, var(--c2) 45%, transparent 50%),
      radial-gradient(circle, var(--c3) 45%, transparent 50%),
      radial-gradient(circle, var(--c4) 45%, transparent 50%),
      radial-gradient(circle, var(--c5) 45%, transparent 50%),
      radial-gradient(circle, var(--c6) 45%, transparent 50%),
      radial-gradient(circle, var(--c7) 45%, transparent 50%),
      radial-gradient(circle, var(--c8) 45%, transparent 50%);

      background-size: var(--s1) var(--s1),
      var(--s2) var(--s2),
      var(--s3) var(--s3),
      var(--s4) var(--s4),
      var(--s5) var(--s5),
      var(--s6) var(--s6),
      var(--s7) var(--s7),
      var(--s8) var(--s8);
      background-position: 50% 0%, 85% 15%, 100% 50%, 85% 85%,
      50% 100%, 15% 85%, 0% 50%, 15% 15%;
      background-repeat: no-repeat;
  }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
