/* http://meyerweb.com/eric/tools/css/reset/
	v2.0 | 20110126
	License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

p {
  font-size: 14px;
  font-weight: 100;
  line-height: 20px;
  letter-spacing: 0.5px;
  margin: 20px 0 30px;
}

html,
button,
input,
select,
textarea,
a {
  font: 400 14px/1.3 "PF Din Display", Arial, Helvetica, sans-serif;
}

:root {
  --primary: #575756;
  --secondary: #cecccc;
  --white: #fff;
  --black: #000000;
  --red: #e02222;
  --red-dark: #ce1f1f;
  --highlight-red-dark: #af1b1b;
  --disabled: rgb(187, 187, 187);
  --highlight: #4e4e4e;
  --highlight-transparent: rgba(255, 255, 255, 0.4);
  --success: #4ece4e;
  --success-dark: #2c752c;
  --error: #f56e39;
  --svg: contrast(100%);
}

body {
  background-color: var(--background);
  color: var(--primary);
}

body.census {
  --background: rgb(255, 255, 255);
  --primary: #575756;
  --secondary: #e4e4e4;
  --success: #6bb36b;
  --error: #f56e39;
  --svg: invert(10%) sepia(100%) saturate(7000%) hue-rotate(400deg)
    brightness(100%) contrast(100%);
  --svg-hover: invert(100%) sepia(100%) saturate(7000%) hue-rotate(400deg)
    brightness(0%) contrast(100%);
}

#header {
  background-color: var(--black);
}

nav {
  --nav-border: #9f9f9f;
  --nav-hover: #e02222;
  position: relative;
  background-color: var(--black);
  border-top: 3px solid var(--secondary);
}

nav .container {
  display: flex;
  justify-content: center;
  list-style: none;
  transition: max-height 0.3s ease-in;
  overflow: hidden;
}

nav .container li a {
  display: block;
  color: var(--white);
  font-size: 17px;
  text-decoration: none;
  box-sizing: border-box;
  text-transform: capitalize;
}

nav ul li {
  margin: 5px 0;
  padding: 2px 10px;
}

nav .container li a:hover {
  /* background-color: var(--background); */
  color: var(--nav-hover);
}

nav .container li:last-child {
  border-right: none;
}

nav .container li:only-child a:hover {
  background-color: var(--secondary);
}

.errorlist li {
  margin-top: 3px;
  color: var(--white);
  font-size: 16px;
  font-weight: bold;
  padding: 5px 0 5px 0;
  background-color: var(--error);
}

.messages {
  margin-top: 20px;
}

.header {
  display: flex;
  justify-content: center;
  background-color: black;
  font-weight: bold;
  color: white;
  font-size: 16px;
  padding: 10px 0 10px 10px;
  box-shadow: rgb(0 0 0 / 7%) 0px 1px 1px, rgb(0 0 0 / 7%) 0px 2px 2px,
    rgb(0 0 0 / 7%) 0px 4px 4px, rgb(0 0 0 / 7%) 0px 8px 8px,
    rgb(0 0 0 / 7%) 0px 16px 16px;
}

.messages li {
  margin: 10px 0;
  padding: 10px 4px;
  text-align: center;
  font-size: 20px;
  color: white;
}

.messages .success {
  background-color: var(--success);
}

.messages .error {
  background-color: var(--error);
}

#main {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 270px);
}

.content {
  display: flex;
  width: 100%;
  justify-content: center;
}

.container.change_password form {
  padding: 0 15px 15px 15px;
}

.document-grid,
.log-grid {
  width: 100%;
}

.upload-target {
  margin-top: 15px;
  position: relative;
  display: none;
  border-radius: 5px;
  height: 350px;
  background-color: var(--secondary);
  color: var(--black);
  transition: all 0.2s ease-out;
}

.upload-target:hover {
  cursor: pointer;
  transition: all 0.4s ease-in;
  box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px,
    rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
}

.upload-target:hover svg {
  animation: pulseOutter 3s ease-in-out infinite;
}

.upload-target .centered {
  margin: 0;
  position: relative;
  top: 50%;
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
}

.upload-target .upload-text .idle,
.upload-target .upload-text .idle-alt,
.upload-target .upload-text .uploading,
.upload-target .upload-text .uploading-alt {
  display: none;
}

.upload-target.idle .upload-text .idle,
.upload-target.idle .upload-text .idle-alt {
  display: block;
}

.upload-target.uploading .upload-text .uploading-alt,
.upload-target.uploading .upload-text .uploading {
  display: block;
}

.upload-target.uploading .upload-text .uploading-alt:hover,
.upload-target.uploading .upload-text .uploading:hover {
  cursor: wait;
}

.upload-target .upload-text .uploading-alt {
  padding-top: 20px;
  font-size: 18px;
}

.upload-target .upload-text .idle-alt {
  font-size: 14px;
}

.upload-target.uploading .upload-svg {
  animation: pulse 0.6s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.upload-svg {
  margin: 30px 0;
  filter: var(--svg);
}

.upload-filename {
  font-size: 16px;
  font-weight: bold;
  max-width: 90%;
  margin: 0 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background-color: var(--red-dark);
  color: var(--white);
  padding: 20px 0 20px 0;
}

.has-drag-n-drop .upload-box {
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  z-index: -1;
}

.has-drag-n-drop .upload-target {
  display: block;
}

.form.hidden {
  display: none;
}

form:not(.simple) {
  width: 100%;
  background-color: #fff;
  margin: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 50px;
  height: 100%;
  text-align: center;
  border: none;
  padding: 50px;
  box-shadow: rgb(0 0 0 / 10%) 0px 0px 5px 0px, rgb(0 0 0 / 10%) 0px 0px 1px 0px;
}

.field {
  padding: 10px 0;
}

label {
  display: block;
  color: var(--primary);
  margin-bottom: 5px;

  text-align: left;
  font-weight: bold;
}

form.dragging .upload-target {
  background-color: var(--highlight-transparent);
}

form input,
form select,
form button {
  border: none;
  font-size: 16px;
  display: block;
  width: 100%;
  padding: 12px 12px;
  box-sizing: border-box;
  line-height: 1;
  color: var(--secondary);
  background-color: var(--black);
}

form input::placeholder {
  color: var(--secondary);
}

form input:focus,
form select:focus,
form button:focus {
  outline: 0;
}

form input[type="submit"] {
  border: none;
  background-color: var(--black);
  color: var(--white);
}

form input[type="submit"]:hover {
  cursor: pointer;
  background-color: var(--highlight);
}

.submit {
  margin-top: 15px;
}

.mobile-numbers-input.hidden {
  display: none;
}

.mobile-numbers-recipients {
  display: none;
}

.mobile-numbers-recipients p {
  display: none;
  font-weight: normal;
}

#sms-recipients {
  width: 100%;
  padding-top: 25px;
  text-align: left;
}

.sms-recipients-phone-fb {
  overflow-y: auto;
  height: 30px;
  margin-top: 5px;
}

#sms-success-container {
  text-align: center;
  margin-top: 5px;
}

#sms-recipients .text.sms-content {
  font-size: 14px;
}

.delivery-type-selection {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  text-align: center;
  background-color: var(--red-dark);
}

.delivery-type-selection:hover {
  cursor: pointer;
  background-color: var(--highlight-red-dark);
}

.delivery_option.staff.hidden,
.delivery_option.customer.hidden {
  display: none;
}

.delivery_option.staff,
.delivery_option.customer {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.delivery_option.customer.inform {
  font-weight: bold;
}

.delivery_option.customer.content {
  flex-wrap: wrap;
}

.empty-list {
  padding: 20px;
  font-size: 18px;
  text-align: center;
}

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

.document {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  margin: 10px 0;
  box-sizing: border-box;
  background-color: var(--secondary);
  border: 2px solid var(--black);
  transition: transform 0.1s ease-in-out;
}

.document:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease-in-out;
  box-shadow: rgba(0, 0, 0, 0.07) 0px 1px 1px, rgba(0, 0, 0, 0.07) 0px 2px 2px,
    rgba(0, 0, 0, 0.07) 0px 4px 4px, rgba(0, 0, 0, 0.07) 0px 8px 8px,
    rgba(0, 0, 0, 0.07) 0px 16px 16px;
}

.document-description {
  max-width: 85%;
}

.document-description .filename {
  font-size: 16px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-bottom: 15px;
}

.document-description .label {
  font-weight: bold;
}

.document-description .value {
  font-weight: normal;
}

.document-description .recipients ul {
  padding: 5px 15px;
}

.document-description .mobile-numbers-recipients ul {
  padding: 5px 15px;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;

  margin: 20px 0;
  font-size: 16px;
}

.pagination .btn {
  font-size: 16px;
  white-space: nowrap;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 3px;
  color: var(--white);
  background-color: var(--black);
}

.pagination .btn.disabled {
  color: var(--secondary);
  background-color: var(--disabled);
  cursor: not-allowed;
}

.log + .log div::after {
  content: attr(data-value);
}

.log div::before,
.log div::after {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.delivery_box {
  display: flex;
  flex-direction: column;
  padding: 0 10px 0 10px;
}

.password_delivery_type_selection_box {
  display: flex;
  padding: 0 0 15px 0;
}

.password_delivery_type_selection_box .helpText {
  background-color: var(--red-dark);
  color: var(--white);
  padding: 0 10px 0 10px;
  border-radius: 5px 5px;
  font-size: 16px;
  font-weight: bold;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin: 3px 0 3px 0;
  box-shadow: rgba(0, 0, 0, 0.26) 0px -40px 26px -25x inset;
}

.field.password_delivery_type_selection {
  padding: 20px;
  min-width: fit-content;
  max-width: 100%;
  background-color: var(--white);
  border-left: 5px solid var(--red-dark);
}

.field.password_delivery_type_selection label {
  color: var(--black);
}

.field.password_delivery_type_selection {
  margin: 10px 0 10px 0;
  box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px,
    rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
}

#email_form_set {
  width: 100%;
  background-color: var(--white);
}

.email-form-group {
  display: flex;
  padding: 10px;
  gap: 5px;
  flex-direction: column;
  background-color: var(--secondary);
}

.email-form-inputs {
  display: flex;
  justify-content: center;
  align-items: center;
}

.email-form-group .email-form-inputs input[type="email"] {
  background-color: var(--white);
  color: var(--highlight);
  width: 90%;
}

.email-form-group .email-form-inputs input[type="email"]::placeholder {
  color: var(--primary);
  opacity: 0.7;
  font-style: italic;
  font-weight: lighter;
}

input[type="button"].email_form_set_remove_field {
  width: 32px;
  height: 32px;
  background-image: url("data:image/svg+xml,%3Csvg width='64px' height='64px' viewBox='-2.4 -2.4 28.80 28.80' fill='none' xmlns='http://www.w3.org/2000/svg' stroke='%23ce1f1f' transform='matrix(1, 0, 0, 1, 0, 0)rotate(0)'%3E%3Cg id='SVGRepo_bgCarrier' stroke-width='0'%3E%3C/g%3E%3Cg id='SVGRepo_tracerCarrier' stroke-linecap='round' stroke-linejoin='round' stroke='%23CCCCCC' stroke-width='0.384'%3E%3C/g%3E%3Cg id='SVGRepo_iconCarrier'%3E%3Cpath d='M6 7V18C6 19.1046 6.89543 20 8 20H16C17.1046 20 18 19.1046 18 18V7M6 7H5M6 7H8M18 7H19M18 7H16M10 11V16M14 11V16M8 7V5C8 3.89543 8.89543 3 10 3H14C15.1046 3 16 3.89543 16 5V7M8 7H16' stroke='%23ce1f1f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3C/path%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  cursor: pointer;
  background-color: transparent;
}

.add-recipient {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.email-form-set-add-field {
  cursor: pointer;
  width: 20%;
  background-color: var(--red-dark);
}

.recipients_list {
  display: flex;
  flex-wrap: wrap;
  padding: 5px;
  position: relative;
  justify-content: center;
}

.recipients_list .field {
  display: inline-block;
  padding: 20px;
  height: max-content;
  background-color: #fff;
  border: 1px solid #ccc;
  flex-grow: 1;
}

.response_popup {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.response_popup.hidden {
  display: none;
}

.response_popup_container .sms.automatic_delivery.hidden {
  display: none;
}

.document_password_container {
  width: 100%;
  margin-top: 25px;
  background-color: var(--secondary);
}

.document_password_container .manual_delivery.hidden,
.document_password_container .automatic_delivery.hidden {
  display: none;
}

.response_popup_container {
  background-color: var(--secondary);
  margin: 25px;
  padding: 0 25px 25px 25px;
  box-shadow: rgb(0 0 0 / 10%) 0px 0px 5px 0px, rgb(0 0 0 / 10%) 0px 0px 1px 0px;
}

.response_popup .text {
  font-size: 18px;
  text-align: center;
}

.response_popup_container .text.title {
  background-color: var(--black);
  color: var(--white);
  font-weight: bold;
  padding: 2px 0;
  margin-bottom: 10px;
}

.response_popup figure {
  margin: 25px 0;
}

.response_popup figcaption {
  text-align: center;
}

.response_popup figcaption a {
  color: var(--black);
}

.response_popup img {
  position: relative;
  width: 50%;
  left: 50%;
  background: white;
  transform: translateX(-50%);
  box-shadow: rgba(9, 30, 66, 0.25) 0px 4px 8px -2px,
    rgba(9, 30, 66, 0.08) 0px 0px 0px 1px;
}

.response_popup .button {
  max-width: 170px;
  margin-top: 25px;
}

.response_popup .button:hover {
  cursor: pointer;
}

.button {
  font-size: 16px;
  display: block;
  width: 100%;
  padding: 5px 10px;
  box-sizing: border-box;
  background-clip: padding-box;
  line-height: 1.5;
  color: var(--white);
  background-color: var(--black);
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.button:hover {
  background-color: var(--highlight);
}

#header {
  padding: 20px 0;
}

.footer {
  position: relative;
  bottom: 0;
  height: 20px;
  left: 0px;
  right: 0px;
  text-align: center;
  clear: both;
}

.footer .footer-copyright {
  line-height: 50px;
}

.footer-copyright p {
  margin: 20px 0;
}

.logo {
  width: 100%;
  height: auto;
  padding: 10px 0;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  text-align: center;
  align-items: center;
}

.logo img {
  width: 80%;
  max-width: 300px;
}

.error-code {
  font-size: 24px;
  padding-top: 50px;
  text-align: center;
}

.section {
  display: flex;
  width: 100%;
}

.centered {
  align-items: center;
}

.full-height {
  min-height: calc(100vh - 270px);
}

.flex-column {
  flex-direction: column;
}

.shadow-r-d {
  box-shadow: 4px 5px 6px -6px var(--black);
}

.intro {
  display: flex;
  flex-direction: column;
}

.intro .row {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: auto;
}

.intro .row:first-child {
  box-shadow: rgba(0, 0, 0, 0.4) 0px 5px, rgba(0, 0, 0, 0.3) 0px 10px,
    rgba(0, 0, 0, 0.2) 0px 15px, rgba(0, 0, 0, 0.1) 0px 20px,
    rgba(0, 0, 0, 0.05) 0px 25px;
}

.intro .logo {
  background-color: var(--black);
}

.intro .intro-text {
  background-color: var(--secondary);
  padding: 25px;
}

.intro p {
  padding: 2px 0;
  font-size: 18px;
}

.intro .button-container {
  flex: 1;
}

.button-container {
  display: flex;
  justify-content: flex-end;
}

.intro .button {
  transition: 0.4s;
  padding: 5px 30px;
  text-align: center;
  border: 5px solid var(--secondary);
  background-color: var(--red);
}

.intro .button:hover {
  background-color: var(--red-dark);
}

.text-container {
  background-color: var(--secondary);
  padding: 25px 25px;
}

.help-text ul {
  font-size: 18px;
  list-style: disclosure-closed;
  padding-left: 25px;
}

.help-text ul li {
  padding: 15px 0;
  font-size: 18px;
}

@media (min-width: 920px) {
  .footer,
  .container {
    max-width: 900px;
    margin: 0 auto;
  }
}

@media (max-width: 919px) and (min-width: 880px) {
  .footer,
  .container {
    max-width: 900px;
    margin: 0 30px;
  }
}

@media (min-width: 880px) {
  nav ul {
    align-items: center;
  }

  nav li {
    border-right: 1px solid var(--nav-border);
  }

  nav ul li.active > a {
    color: #e02222;
  }

  .upload-target .upload-text {
    font-size: 50px;
  }

  .submit {
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
  form input[type="submit"] {
    width: initial;
  }

  .toggle {
    display: none;
  }

  .log {
    border: 1px solid var(--highlight);
    font-weight: bold;
  }

  .log + .log {
    border-top: none;
    font-weight: normal;
  }

  .log:nth-of-type(even) {
    background-color: var(--primary);
    color: var(--white);
  }

  .log::after {
    content: "";
    display: table;
    clear: both;
  }

  .log .datetime {
    width: 27%;
  }

  .log .username {
    width: 28%;
  }

  .log .filename {
    width: 35%;
  }

  .log .action {
    width: 10%;
  }

  .log > div {
    float: left;

    padding: 10px 0;
    box-sizing: border-box;
    overflow: hidden;

    text-align: center;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .log div + div {
    border-left: 1px solid var(--highlight);
  }

  .document-description .recipients ul {
    list-style: disc;
    padding-left: 25px;
  }

  .document-description .mobile-numbers-recipients ul {
    list-style: disc;
    padding-left: 25px;
  }
}

@media (min-width: 600px) {
  .intro .button {
    float: right;
    clear: both;
    width: inherit;
  }
}

@media (max-width: 879px) {
  nav ul {
    flex-flow: column;
  }

  .upload-target .upload-text {
    font-size: 34px;
  }

  .document {
    flex-flow: column;
    text-align: center;
  }

  .document form {
    width: 100%;
  }

  .document-description {
    padding-bottom: 15px;
  }

  nav .container {
    max-height: 40px;
    justify-content: flex-start;
  }

  .toggle {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    cursor: pointer;
  }

  .toggle::after {
    content: "";
    display: table;
    clear: both;
  }

  .burger {
    float: right;
    margin-right: 2%;
  }

  .burger span {
    display: block;
    width: 35px;
    height: 5px;
    background-color: var(--highlight);
    margin: 6px 0;
    transition: 0.4s;
  }

  nav.open .burger span:nth-child(1) {
    transform: rotate(-45deg) translate(-9px, 6px);
  }
  nav.open .burger span:nth-child(2) {
    opacity: 0;
  }
  nav.open .burger span:nth-child(3) {
    transform: rotate(45deg) translate(-8px, -8px);
  }
  nav.open .container {
    max-height: 225px;
  }

  .log {
    display: none;
    border: 1px solid var(--highlight);
    border-bottom: none;
    margin: 10px 0;
  }

  .log::after {
    content: " ";
    display: table;
    clear: both;
  }

  .log > div {
    height: 0px;
  }

  .log + .log {
    display: block;
  }

  .log + .log div {
    color: transparent;
  }

  .log + .log div::before,
  .log + .log div::after {
    display: block;
    color: var(--highlight);
    border-bottom: 1px solid var(--highlight);

    float: left;
    padding: 10px;
    box-sizing: border-box;
  }

  .log + .log div::before {
    content: attr(data-header);
    font-weight: bold;
    border-right: 1px solid var(--highlight);
    width: 20%;
  }

  .log + .log div::after {
    width: 80%;
  }

  .footer,
  .container {
    max-width: 900px;
    margin: 0 30px;
  }

  .field.password_delivery_type_selection {
    max-width: 100%;
    flex-direction: column;
  }

  .password_delivery_type_selection_box {
    flex-direction: column;
  }

  .password_delivery_type_selection_box .helpText {
    padding: 15px;
  }

  .email-form-set-add-field {
    width: 100%;
  }
}

@media (max-width: 440px) {
  .hide-sm {
    display: none;
  }

  .intro .logo img {
    transform: rotate(-90deg);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes pulseOutter {
  0% {
    transform: translateY(0);
    opacity: 0;
  }

  50% {
    transform: translateY(40%);
    opacity: 1;
  }

  100% {
    transform: translateY(0);
    opacity: 0;
  }
}

@keyframes moveRight {
  0% {
    transform: translateX(0);
    opacity: (0);
  }

  50% {
    transform: translateX(40%);
    opacity: 1;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}
