* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  color: #050505;
  font-family: Arial, Helvetica, sans-serif;
  background: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

input {
  width: 100%;
  height: 34px;
  border: 1px solid #c9c9c9;
  padding: 6px 10px;
  font-size: 14px;
  outline: none;
  background: #ffffff;
}

input:focus {
  border-color: #0070bd;
  box-shadow: 0 0 0 1px rgba(0, 112, 189, 0.16);
}

button {
  font: inherit;
}

.topbar {
  position: relative;
  z-index: 10;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0 16px;
  border: 1px solid #d5d5d5;
  background: #ffffff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
}

.brand {
  min-width: 277px;
  height: 50px;
  display: flex;
  align-items: center;
  margin-top: -1px;
}

.brand-logo-img {
  width: 277px;
  height: 50px;
  display: block;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 29px;
  font-size: 14px;
  font-weight: 700;
}

.nav a,
.nav button {
  border: 0;
  background: transparent;
  color: #000000;
  cursor: pointer;
  padding: 18px 0;
}

.nav-item {
  position: relative;
}

.nav-dropdown > button {
  display: block;
  color: #000000;
}

.nav-dropdown:hover > button,
.nav-dropdown:focus-within > button {
  color: #0069b6;
}

.dropdown-menu {
  position: absolute;
  left: 0;
  top: calc(100% - 1px);
  z-index: 30;
  min-width: 238px;
  display: none;
  padding: 7px 0;
  border: 1px solid #d3d3d3;
  background: #ffffff;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
  font-weight: 500;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 12px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #ffffff;
  filter: drop-shadow(0 -1px 0 #d3d3d3);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 9px 18px;
  white-space: nowrap;
  color: #000000;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
  background: #f5f5f5;
  color: #0069b6;
}

.support-menu {
  min-width: 112px;
}

.flags {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
}

.language-button {
  width: 24px;
  height: 18px;
  display: block;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0.9;
}

.language-button-active {
  opacity: 1;
  outline: 1px solid rgba(0, 105, 182, 0.35);
}

.flag-svg {
  width: 24px;
  height: 18px;
  display: block;
}

.hero-page {
  position: relative;
  min-height: 655px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(114deg, rgba(255, 255, 255, 0.76) 0 37%, rgba(131, 194, 226, 0.22) 37% 57%, rgba(29, 142, 202, 0.16) 57% 100%),
    linear-gradient(90deg, rgba(224, 243, 252, 0.92), rgba(79, 173, 220, 0.82)),
    #b9e0f3;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(48deg, transparent 0 35%, rgba(255, 255, 255, 0.4) 35% 36%, transparent 36% 100%),
    linear-gradient(126deg, transparent 0 45%, rgba(255, 255, 255, 0.28) 45% 46%, transparent 46% 100%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: auto -4vw -35px 0;
  height: 250px;
  background:
    linear-gradient(45deg, transparent 0 47%, rgba(0, 91, 156, 0.22) 47% 66%, transparent 66%) 10% 80% / 180px 180px no-repeat,
    linear-gradient(45deg, transparent 0 47%, rgba(0, 112, 189, 0.28) 47% 66%, transparent 66%) 40% 60% / 170px 170px no-repeat,
    linear-gradient(45deg, transparent 0 47%, rgba(0, 112, 189, 0.22) 47% 66%, transparent 66%) 72% 90% / 170px 170px no-repeat,
    linear-gradient(45deg, transparent 0 47%, rgba(0, 112, 189, 0.26) 47% 66%, transparent 66%) 98% 76% / 150px 150px no-repeat;
}

.hero-inner {
  position: relative;
  max-width: 1466px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(620px, 1fr) 470px;
  gap: 30px;
  padding: 52px 0 80px;
}

.lookup-hero h1 {
  margin: 0 0 4px;
  color: #0069b6;
  font-size: 33px;
  line-height: 1.2;
}

.lookup-hero p {
  margin: 0 0 36px;
  color: #005b9f;
  font-size: 36px;
  font-weight: 300;
}

.home-search {
  width: 100%;
  max-width: 970px;
  display: grid;
  grid-template-columns: 176px 1fr;
  gap: 16px 30px;
  align-items: center;
  padding: 20px 30px;
  border-radius: 4px;
  background: rgba(86, 110, 122, 0.34);
}

.home-search label,
.search-card label,
.login-card label {
  font-size: 14px;
  font-weight: 700;
}

.captcha-row {
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: center;
}

.captcha {
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #cfcfcf;
  color: rgba(77, 77, 77, 0.58);
  font-family: Georgia, serif;
  font-size: 28px;
  font-style: italic;
  letter-spacing: -2px;
  background:
    linear-gradient(28deg, transparent 44%, rgba(80, 80, 80, 0.32) 44% 48%, transparent 48%),
    linear-gradient(-18deg, transparent 48%, rgba(80, 80, 80, 0.35) 48% 52%, transparent 52%),
    #d9d9d9;
}

.input-error {
  border-color: #d22d2d;
}

.captcha-error {
  min-height: 16px;
  margin: 6px 0 0;
  color: #c92525;
  font-size: 12px;
  font-weight: 700;
}

.result-error {
  text-align: center;
}

.primary-button,
.login-button {
  width: fit-content;
  min-width: 112px;
  height: 34px;
  border: 0;
  background: #006fbd;
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
}

.login-card {
  margin-top: 4px;
  padding: 26px 20px 45px;
  border-top: 3px solid #006fbd;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.login-card h2,
.search-card h1 {
  margin: 0 0 28px;
  text-align: center;
  font-size: 18px;
}

.login-card label {
  display: block;
  margin: 14px 0 8px;
}

.login-card a {
  display: inline-block;
  margin: 12px 0 18px;
  color: #006fbd;
  font-size: 14px;
}

.login-button {
  width: 100%;
}

.breadcrumb {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  color: #777777;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  font-size: 14px;
}

.breadcrumb strong {
  color: #000000;
}

.result-page {
  min-height: 617px;
  padding: 20px 14px 100px;
  background: #ffffff;
}

.search-card {
  width: 620px;
  margin: 0 auto 80px;
  padding: 20px 30px 30px;
  border-top: 3px solid #006fbd;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
}

.search-card h1 {
  margin-bottom: 18px;
  font-size: 18px;
}

.search-card label {
  display: block;
  margin: 14px 0 8px;
}

.result-captcha-row {
  grid-template-columns: 92px 1fr;
}

.result-button {
  display: block;
  margin: 16px auto 0;
}

.result-button .fa,
.primary-button .fa,
.login-button .fa {
  margin-right: 3px;
}

.invoice-list {
  border-top: 3px solid #006fbd;
  padding: 26px 20px 40px;
  background: #ffffff;
  box-shadow: 0 2px 28px rgba(0, 0, 0, 0.1);
}

.invoice-list h2 {
  margin: 0 0 18px 5px;
  font-size: 15px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 1320px;
  border-collapse: collapse;
  font-size: 14px;
}

th {
  height: 36px;
  padding: 8px;
  border: 1px solid #d6d6d6;
  background: #006fbd;
  color: #ffffff;
  text-align: center;
}

td {
  height: 38px;
  padding: 8px;
  border: 1px solid #d6d6d6;
  text-align: center;
}

.table-icon {
  color: #006fbd;
  font-size: 13px;
  font-weight: 700;
}

.table-action-button {
  border: 0;
  padding: 0;
  color: #006fbd;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
}

.table-action-button:hover,
.table-action-button:focus {
  color: #004f91;
}

.invoice-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 22px 18px 40px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.68);
}

.invoice-modal-dialog {
  position: relative;
  width: 864px;
  min-height: 920px;
  padding: 25px 34px 24px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 11px;
  width: 24px;
  height: 24px;
  border: 0;
  color: #777777;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
  line-height: 24px;
}

.invoice-pdf-viewer {
  height: 760px;
  overflow: hidden;
  border: 3px solid #9bc3e5;
  outline: 1px solid #4a9fd7;
  outline-offset: -8px;
  background: #ffffff;
}

.invoice-pdf-frame {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.modal-pagination {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 24px 0 24px;
}

.modal-pagination button,
.modal-pagination strong {
  min-width: 18px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #006fbd;
  color: #006fbd;
  background: #ffffff;
  font-size: 14px;
}

.modal-pagination strong {
  color: #ffffff;
  background: #006fbd;
}

.invoice-modal-actions {
  display: flex;
  gap: 3px;
}

.invoice-modal-actions button {
  min-width: 96px;
  height: 34px;
  border: 0;
  padding: 0 12px;
  color: #ffffff;
  background: #006fbd;
  cursor: pointer;
  font-weight: 700;
}

.contact-strip {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: #ffffff;
  background: #535e66;
  font-size: 18px;
}

.contact-strip strong {
  color: #ffd100;
}

.footer-main {
  min-height: 154px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 24px 14%;
  color: #ffffff;
  background: #0070b8;
}

.footer-brand {
  display: grid;
  gap: 8px;
  align-items: start;
  color: #ffffff;
}

.footer-logo-img {
  width: auto;
  height: 50px;
  display: block;
}

.footer-brand small {
  font-size: 15px;
  line-height: 1.2;
}

.footer-info {
  display: grid;
  gap: 12px;
  font-size: 14px;
}

.footer-info p {
  margin: 0;
}

@media (max-width: 980px) {
  .topbar {
    height: auto;
    flex-wrap: wrap;
    padding: 14px 18px;
  }

  .nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 14px;
  }

  .nav a,
  .nav button {
    padding: 4px 0;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 34px 20px 60px;
  }

  .home-search {
    grid-template-columns: 1fr;
  }

  .search-card {
    width: min(100%, 620px);
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 24px;
  }
}
