﻿html {
  position: relative;
  min-height: 100%;
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin-bottom: 60px;
  /*overflow-y: hidden;*/
}

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

.border-top {
  border-top: 1px solid #e5e5e5;
}

.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

.cursor-pointer{cursor: pointer;}
.cursor-croshair{cursor: crosshair;}
.cursor-eresize{cursor: e-resize;}
.cursor-move{cursor: move;}
.cursor-wait{cursor: wait;}

.header-icon,
.header-icon:active,
.header-icon:focus,
.header-icon:hover {
  color: gray !important;
  text-decoration: none;
  margin-right: 10px;
  cursor: pointer;
}

.header-menu-item a,
.header-menu-item a:active,
.header-menu-item a:focus {
  color: gray !important;
  text-decoration: none;
  cursor: pointer;
}

.header-menu-item:hover {
  background-color: transparent;
}

.header-menu-item a:hover {
  text-decoration: underline;
}

.table-icon,
.table-icon:active,
.table-icon:focus,
.table-icon:hover {
  color: gray !important;
  text-decoration: none;
  margin-left: 2px;
  margin-right: 2px;
  cursor: pointer;
}

.footer {
  position: absolute;
  bottom: 0;
  height: 61px;
  line-height: 60px;
  text-align: center;
  white-space: nowrap;
  width: 100%;
}

.footer-item a,
.footer-item a:active,
.footer-item a:focus {
  color: gray !important;
  text-decoration: none;
  cursor: pointer;
}

.header-menu-item:hover {
  background-color: transparent;
}

.header-menu-item a:hover {
  text-decoration: underline;
}

.login {
    margin-top: 3px;
}

.logo {
    width: 100%;
    height: 100%;
}

.form-signin {
    max-width: 330px;
    padding: 15px;
    margin: 0 auto;
}

.vertical-center {
    min-height: 80%;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.logout {
    text-align: center;
}

#sidebar {
  color: #fff;
  transition: all 0.3s;
  width: 250px;
  position: absolute;
  bottom: 60px;
  top: 67px;
  left: 0;
  z-index: 999;
  color: #fff;
  transition: all 0.3s;
  overflow-y: auto;
}

#sidebar .sidebar-header {
  padding: 20px;
}

#sidebar ul p {
  color: #fff;
  font-size: 1.1em;
  padding: 5px;
}

#sidebar ul li a {
  color: #fff;
  padding: 5px;
  font-size: 1.0em;
  display: block;
}

#sidebar ul li a:hover {
  color: #7386D5;
  background: #fff;
  text-decoration: none;
}

#sidebar ul li.active > a, a[aria-expanded="true"] {
  color: #A8B2DE;
}

#window {
  position: absolute;
  top: 67px;
  left: 250px;
  right: 0px;
  bottom: 60px;
  overflow-y: auto;
}

#blazor-error-ui {
  background: lightyellow;
  bottom: 61px;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
  display: none;
  left: 0;
  padding: 0.6rem 1.25rem 0.7rem 1.25rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

#blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  right: 0.75rem;
  top: 0.5rem;
}

.validation-message {
  color: #dc3545 !important;
}

.was-validated .form-control:invalid, .form-control.invalid {
  border-color: #dc3545;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-control:invalid:focus, .form-control.invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.was-validated textarea.form-control:invalid, textarea.form-control.invalid {
  padding-right: calc(1.5em + 0.75rem);
  background-position: top calc(0.375em + 0.1875rem) right calc(0.375em + 0.1875rem);
}

.was-validated .custom-select:invalid, .custom-select.invalid {
  border-color: #dc3545;
  padding-right: calc(0.75em + 2.3125rem);
  background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") right 0.75rem center/8px 10px no-repeat, #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e") center right 1.75rem/calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) no-repeat;
}

.was-validated .custom-select:invalid:focus, .custom-select.invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.was-validated .form-check-input:invalid ~ .form-check-label, .form-check-input.invalid ~ .form-check-label {
  color: #dc3545;
}

.was-validated .form-check-input:invalid ~ .invalid-feedback,
.was-validated .form-check-input:invalid ~ .invalid-tooltip, .form-check-input.invalid ~ .invalid-feedback,
.form-check-input.invalid ~ .invalid-tooltip {
  display: block;
}

.was-validated .custom-control-input:invalid ~ .custom-control-label, .custom-control-input.invalid ~ .custom-control-label {
  color: #dc3545;
}

.was-validated .custom-control-input:invalid ~ .custom-control-label::before, .custom-control-input.invalid ~ .custom-control-label::before {
  border-color: #dc3545;
}

.was-validated .custom-control-input:invalid:checked ~ .custom-control-label::before, .custom-control-input.invalid:checked ~ .custom-control-label::before {
  border-color: #e4606d;
  background-color: #e4606d;
}

.was-validated .custom-control-input:invalid:focus ~ .custom-control-label::before, .custom-control-input.invalid:focus ~ .custom-control-label::before {
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.was-validated .custom-control-input:invalid:focus:not(:checked) ~ .custom-control-label::before, .custom-control-input.invalid:focus:not(:checked) ~ .custom-control-label::before {
  border-color: #dc3545;
}

.was-validated .custom-file-input:invalid ~ .custom-file-label, .custom-file-input.invalid ~ .custom-file-label {
  border-color: #dc3545;
}

.was-validated .custom-file-input:invalid:focus ~ .custom-file-label, .custom-file-input.invalid:focus ~ .custom-file-label {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.background-grey {
    background-color: #cccccc;
}

.form-watermark-container {
    position: relative;
}

.form-watermark-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-size: 6rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.08);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.form-watermark-content {
    position: relative;
    pointer-events: none;
}

@media print {
    .form-watermark-text {
        color: rgba(0, 0, 0, 0.15);
    }
    @page {
        size: A4 landscape;
        margin: 10mm;
    }
}

.a4-page {
    position: relative;
    width: 100%;
    max-width: 1123px;
    margin: 0 auto;
    background: transparent;
    color: #000;
    font-size: 11px;
    line-height: 1.2;
}

.a4-content {
    position: relative;
    padding: 8mm;
    background: transparent;
}

.a4-row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.a4-page .col-12,
.a4-page .col-9,
.a4-page .col-8,
.a4-page .col-6,
.a4-page .col-4,
.a4-page .col-3 {
    padding-left: 4px;
    padding-right: 4px;
}

.form-title {
    margin: 0;
    padding-top: 8px;
    padding-bottom: 6px;
    font-size: 15px;
    line-height: 1.2;
}

.section-title {
    margin: 0;
    padding: 4px 0;
    font-size: 13px;
    line-height: 1.15;
}

.section-header {
    padding-top: 6px;
    padding-bottom: 6px;
    font-size: 11px;
}

.field-label {
    font-weight: 600;
    padding-top: 4px;
    padding-bottom: 4px;
}

.field-value {
    padding-top: 4px;
    padding-bottom: 4px;
}

.text-block {
    padding-top: 6px;
    padding-bottom: 6px;
    min-height: 38px;
}

.signature-cell-label {
    min-height: 56px;
}

.signature-cell {
    min-height: 56px;
    display: flex;
    align-items: center;
}

.logo-img {
    max-height: 34px;
    width: auto;
    max-width: 100%;
}

.signature-img {
    max-height: 50px;
    width: auto;
    max-width: 100%;
}

.background-grey {
    background-color: #e9e9e9 !important;
}

.text-wrap-force {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.print-footer {
    padding: 6px 8px;
    font-size: 10px;
}

img {
    display: inline-block;
}

@media print {
    body {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .a4-page {
        max-width: none;
        width: 100%;
        margin: 0;
        box-shadow: none;
    }

    .a4-content {
        padding: 0;
    }
}