@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;600&display=swap");

:root {
  --primary-color: #3c1c47;
  --secondary-color: #f6f6ff;
  --links-color: #707377;
}

html {
  box-sizing: border-box;
  font-size: 100%;
}

*,
*::before,
*::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  outline: none;
}

body {
  font-family: "Source Sans 3", sans-serif;
  font-size: 13px;
  color: #777;
}

.container {
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;

  @media (max-width: 1232px) {
    width: 100%;
    padding-right: 16px;
    padding-left: 16px;
  }

  @media (max-width: 320px) {
    padding-right: 12px;
    padding-left: 12px;
  }
}

table {
  font-size: 13px;
  text-align: center;
}

.table-raports {
  text-align: left;
}

.table-documents {
  table-layout: fixed;
  width: inherit !important;
}

.table-documents th,
tr {
  text-align: center !important;
  vertical-align: middle !important;
  height: 50px !important;
}

.page-link {
  font-size: 13px;
  padding: 7px 7px;
  color: black;
  font-weight: bolder;
}

.form-select,
.form-control {
  font-size: 14px;
}

label {
  font-size: 14px;
  color: black;
}

.button-primary {
  display: inline-flex;
  cursor: pointer;
  line-height: normal;
  position: relative;
  margin-right: 0.1em;
  vertical-align: middle;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid #d8dcdf;
  font-weight: bold;
  color: #000;
  padding: 0.4em 1em;
  background-color: #7771;
  transition: 0.2s;
}

.button-primary.btn-lg {
  font-size: 15px;
}

.button-primary:hover {
  background-color: #7772;
}


.btn-xls {
  font-size: 14px;
  margin-top: 8px;
}

.fieldError {
   color: red;
}


ol,
ul {
  padding: 0px;
  margin-bottom: 0px;
}

a {
  text-decoration: none;
  color: white;
  font-weight: bolder;
}

li {
  list-style: none;
}

button {
  border: none;
  background: none;
  font-size: 15px;
}

header {
  border-top: 4px solid var(--primary-color);
  border-bottom: 1px solid #7773;
}

section,
footer {
  margin-top: 35px;
}

[x-cloak] {
  display: none !important;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;

  @media (min-width: 768px) {
    height: 140px;
  }
}

.main-navigation {
  background-color: var(--primary-color);
  align-self: flex-start;
  border-bottom-right-radius: 5px;
  border-bottom-left-radius: 5px;
  padding: 2px;
}

.main-navigation ul {
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-navigation ul li {
  color: white;
  text-transform: uppercase;
  border-right: 1px solid white;
  padding: 0 15px;
  font-size: 14px;
}

.main-navigation ul li:last-child {
  border-right: none;
}

.main-menu {
  background-color: var(--primary-color);
  padding: 0px 8px;
  border-radius: 5px;
}

.menu-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.main-menu ul li:not(.sub-item) {
  color: white;
  text-transform: uppercase;
  margin-left: 10px;
  margin-right: 10px;
  padding: 2px 10px;
  line-height: 40px;
  font-size: 15px;

  @media (max-width: 768px) {
    flex: 1 0 30%;
    text-align: center;
  }

  @media (max-width: 648px) {
    flex-grow: 1;
  }
}

.main-menu ul li a:hover {
  color: black;
  transition: ease-in 0.1s;
}

.main-menu ul li:last-child:not(.sub-item) {
  @media (min-width: 768px) {
    margin-left: auto;
  }
}

.menu-item.is-active {
  background-color: var(--links-color);
}

.toolbar {
  background-color: var(--primary-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-top-right-radius: 5px;
  border-top-left-radius: 5px;
}

.pagination-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.table {
  margin-bottom: 0;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: var(--secondary-color);
}

.table-striped > tbody > tr:nth-of-type(even) > * {
  background-color: white;
}

.pagination-content {
  background-color: var(--primary-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-bottom-right-radius: 5px;
  border-bottom-left-radius: 5px;

  @media (max-width: 768px) {
    flex-direction: column;
  }
}

.powered-by {
  margin: 15px 12px 0px 0px;
  font-size: 0.7em;
  color: #777;
}

.bars-icon {
  width: 2rem;
  height: 2rem;
  color: var(--primary-color);
}

.bars-button {
  background: none;
  border: none;
}

.nav-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  min-height: 100vh;
  width: 100%;
}

@media (min-width: 768px) {
  .nav-overlay {
    display: none;
  }
}

.nav-background {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(17, 24, 39, 0.75);
}

.nav-container {
  position: relative;
  height: 100%;
  width: 100%;
  padding: 1.5rem;
}

.nav-content {
  position: relative;
  overflow-y: auto;
  border-radius: 0.75rem;
  border: 1px solid rgba(75, 85, 99, 0.3);
  background-color: var(--primary-color);
  padding: 3rem;
}

.close-btn {
  position: absolute;
  right: 1rem;
  top: 1rem;
  display: inline-flex;
  height: 2.5rem;
  width: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background-color: white;
  color: var(--primary-color);
  border: none;
}

.icon-close {
  height: 1.5rem;
  width: 1.5rem;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.link-text {
  font-weight: 500;
  font-size: 15px;
  color: white;
  text-transform: uppercase;
}

.logo-img {
  width: 263px;
  height: 64px;

  @media (min-width: 768px) {
    height: 64px;
    width: 263px;
  }
}

.menu-item {
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 1000;
  background-color: var(--primary-color);
}

.sub-item {
  line-height: 30px;
  padding: 1px 15px;
  margin: 3px 3px;
}

.sub-item:hover {
  background-color: whitesmoke;
}

.sub-item:hover a {
  color: black;
}

.menu-item:hover .submenu {
  display: block;
}

/* Kolumny w tabelach sortowane */

table.table thead .sorted {
  color: #007bff;
}

table.table thead .sorted:after {
  float: right;
}

table.table thead .sorted.sorted-desc:after {
  content:"\25BC";
}

table.table thead .sorted.sorted-asc:after {
    content: "\25B2";
}

/* STATYSTKI */

.stats-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0px;
  padding-bottom: 5px;
  border-bottom: 1px solid lightgray;
}

.stats-list li p {
  font-size: 15px;
  font-weight: bolder;
  margin-bottom: 0;
}

.stats-list li span {
  font-size: 15px;
}

.stats-list.stats-user {
  padding: 2rem;
}

.stats-list.stats-user li p {
  color: black;
  font-size: 16px;
}

.stats-list.stats-user li span {
  color: black;
  font-size: 17px;
  font-weight: 400;
}

/* LOGIN */

.login-title {
  background-color: var(--primary-color);
  max-width: 250px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  border-top-right-radius: 8px;
  border-top-left-radius: 8px;
}

.login-title span {
  font-size: 21px;
  font-weight: bolder;
  color: white;
}

.restore-pass-text {
  color: #777777;
  font-weight: 400;
}

.restore-pass-text:hover {
  text-decoration: underline;
}

.keys-image {
  display: none;
}

@media (min-width: 576px) {
  .keys-image {
    display: block;
  }
}

/* 
LOGOUT  */

.login-again-content {
  display: flex;
  flex-direction: column;
}

.login-again-title {
  width: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  border-bottom: 2px solid lightgray;
  border-top: 2px solid lightgray;
  padding: 5px 0px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.login-again-title p {
  font-size: 20px;
  margin-bottom: 0px;
  font-weight: 400;
}

.btn-login-again {
  font-size: 1.3rem;
  font-weight: bolder;
  width: 250px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 20px;
  background-color: #7771;
}

/* RAPORTS */

.form-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 15px;
}

.btn-upload {
  width: 200px;
}

/* (ADMIN) ADD FORM */

.add-form-title {
  background-color: var(--primary-color);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  border-top-right-radius: 8px;
  border-top-left-radius: 8px;
}

.add-form-title span {
  font-size: 21px;
  font-weight: bolder;
  color: white;
}

/* MODAL */

.modal-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  min-height: 100vh;
  width: 100%;
}
.modal-background {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(17, 24, 39, 0.75);
}

.modal-container {
  position: relative;
  max-width: 500px;
  margin: auto;
  padding: 1.5rem;
}

.modal-container-lg {
  position: relative;
  max-width: 600px;
  margin: auto;
  padding: 1.5rem;
}

.modal-content {
  position: relative;
  overflow-y: auto;
  border-radius: 0.75rem;
  border: 1px solid rgba(75, 85, 99, 0.3);
  background-color: white;
}

.modal-header {
  background-color: var(--primary-color);
  border-radius: 5px;
  padding: 14px;
  margin: 5px 5px;
}

.modal-header span {
  color: white;
  font-size: 1rem;
  font-weight: bolder;
}

.restore-pass-form {
  padding: 1rem 2rem 1rem 2rem;
}
