﻿/* hacks */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* clears the ‘X’ from Internet Explorer */
input[type="search"]::-ms-clear {
  display: none;
  width: 0;
  height: 0;
}

input[type="search"]::-ms-reveal {
  display: none;
  width: 0;
  height: 0;
}

/* clears the ‘X’ from Chrome */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  display: none;
}

a.btn {
  -webkit-tap-highlight-color: transparent;
}

/* base resets */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

textarea {
  resize: vertical;
}

/* AO WebApp custom styles */

:root {
  --ao-orange-d: #ff7319;
  --ao-orange-l: #ff970c;
}

body {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

.bg-ao-image {
  background-image: url("images/bg-ao-image.jpg");
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  /* 
  opacity: 1;
  background: radial-gradient(circle, transparent 20%, #000 20%, #000 80%, transparent 80%, transparent), radial-gradient(circle, transparent 20%, #000 20%, #000 80%, transparent 80%, transparent) 25px 25px, linear-gradient(#ff7319 2px, transparent 2px) 0 -1px, linear-gradient(90deg, #ff7319 2px, #000 2px) -1px 0;
  background-size: 50px 50px, 50px 50px, 25px 25px, 25px 25px; 
  */
}

.bg-orange-d {
  background-color: var(--ao-orange-d);
}

.bg-orange-l {
  background-color: var(--ao-orange-l);
}

.ls-2px {
  letter-spacing: 2px;
}

.nav-line {
  border-bottom: 5px solid var(--bs-gray-500);
}

.foot-line {
  border-top: 5px solid var(--bs-gray-500);
}

.nav-link {
  color: #fff;
  padding: 1rem 1.5rem;
  font-weight: 500;
  text-transform: uppercase;
  margin-right: 4px;
}

.activate {
  background-color: inherit;
  color: #fff;
}

.login-box {
  min-width: 100%;
  background: rgba(255, 151, 12, 0.6);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.5);
}

.wavy-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 20px;
}

h1.wavy-underline {
  color: var(--ao-orange-l);
}

.wavy-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 5px;
  background: url('data:image/svg+xml;utf8,<svg width="100%" height="5" xmlns="http://www.w3.org/2000/svg"><path d="M0 2.5 Q10 0, 20 2.5 T40 2.5 T60 2.5 T80 2.5 T100 2.5" stroke="orange" fill="transparent" stroke-width="2"/></svg>')
    repeat-x;
  background-size: 100px 5px;
  animation: wave 1.5s linear infinite;
}

@keyframes wave {
  0% {
    background-position: 0 bottom;
  }

  100% {
    background-position: 100px bottom;
  }
}

.shift-up {
  transition: transform 0.3s ease;
}

.a-date {
  border: 2px solid #fff;
}

.front-login:focus {
  border-color: #fff;
  box-shadow: 0 0 0 0.5rem rgba(255, 255, 255, 0.25);
}

.business-unit-table {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.business-unit-table thead th {
  background-color: var(--ao-orange-d);
  text-align: center;
  padding: 10px;
}

.business-unit-table tbody td {
  color: white;
  padding: 10px;
  text-align: center;
  transition: background-color 0.3s;
}

.business-unit-table tbody a {
  color: var(--ao-orange-d);
  text-decoration: none;
  transition: color border 0.3s ease;
}

.business-unit-table tr.pastel-red {
  background-color: rgba(255, 182, 193, 0.2) !important;
  transition: background-color 0.3s ease;
}

.business-unit-table tr.pastel-blue {
  background-color: rgba(173, 216, 230, 0.2) !important;
  transition: background-color 0.3s ease;
}

/* custom buttons */

.btn-login {
  background-color: black;
  color: white;
  border: none;
  padding: 10px 20px;
  width: 100%;
  border-radius: 0;
}

.btn-back {
  background-color: var(--ao-orange-l);
  color: black;
  border: none;
  border-radius: 16px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  /* font-size: 0.825em; */
}

.btn-back:focus,
.btn-back:active {
  background-color: #c13b1f !important;
  color: white !important;
  text-decoration: none;
}

.btn-back::before {
  content: "◄";
  font-size: 1.25em;
}

@media (hover: hover) {
  .nav-link:hover {
    color: #fff;
  }

  .business-unit-table tbody a:hover {
    color: var(--ao-orange-l);
    border-bottom: 2px solid var(--ao-orange-l);
  }

  .business-unit-table tr.pastel-red:hover,
  .business-unit-table tr.pastel-blue:hover {
    background-color: rgba(42, 42, 42, 0.8) !important;
  }

  .shift-up:hover {
    transform: translateY(-5px);
    cursor: pointer;
  }

  .btn-back:hover {
    background-color: #c13b1f !important;
    color: white !important;
    text-decoration: none;
  }
}

@media (min-width: 576px) {
  .bg-nav {
    background-image: url("images/bg-ao-nav.png");
    background-size: cover;
    background-position: center;
  }

  .login-box {
    min-width: 50%;
  }

  .business-unit-table thead th {
    font-size: 1.25rem;
  }
}

@media (min-width: 992px) {
  .nav-link {
    background-color: #222;
    border-radius: 16px;
  }

  .activate {
    background-color: var(--ao-orange-l);
    color: black;
  }

  .nav-link:hover {
    background-color: #444;
    color: #fff;
  }
}

#calendar a {
  color: #999;
  cursor: crosshair;
  text-decoration: none;
}

#calendar a:hover {
  color: #777;
}

#backToTop {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background-color: var(--ao-orange-d);
  color: white;
  padding: 12px;
  border-radius: 50%;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.3s ease;
  z-index: 1000;
}

#backToTop svg {
  width: 20px;
  height: 20px;
  fill: white;
  display: block;
}

#backToTop.show {
  opacity: 1;
  pointer-events: auto;
}

#backToTop:hover {
  background-color: var(--ao-orange-l);
  transform: translateY(-3px);
}

footer a {
  text-decoration: none;
  color: #fff;
  border-bottom: 2px solid #fff;
}

footer a:hover,
footer a:active,
footer a:focus {
  color: var(--ao-orange-d);
  border-bottom: 2px solid var(--ao-orange-d);
}

.scrollable-table {
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
}

.scrollable-table::-webkit-scrollbar {
  height: 8px;
}

.scrollable-table::-webkit-scrollbar-track {
  background: #050505;
}

.scrollable-table::-webkit-scrollbar-thumb {
  background: var(--ao-orange-d);
  border-radius: 10px;
}

.scrollable-table::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.scrollable-table {
  scrollbar-width: thin;
  scrollbar-color: var(--ao-orange-d) #050505;
}

/* hide visually and from screen readers */

.hidden,
[hidden] {
  display: none !important;
}

/* helpers */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

.invisible {
  visibility: hidden;
}

/* clearfix */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* print */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}
