/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
:root {
  scroll-behavior: smooth;
  --col-primary: #4154f1;
  --col-primary-hover: #2f3ec7;
  --col-secondary: #4691d3;
  --col-secondary-hover: #377ab6;
  --col-success: #198754;
  --col-success-hover: #157347;
  --col-confirm: #ffc107;
  --col-warning: #dc3545;
  --col-bg: #f6f9ff;
  --col-disabled: #c5c8ce;
  --col-header: #012970;

}

body {
  font-family: "Open Sans", sans-serif;
  background: var(--col-bg);
  color: #444444;
  margin: 0;
  font-size: 1rem;
}

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

a:hover {
  color: #717ff5;
  text-decoration: none;
}

code {
  background-color: #eee;
  border-radius: 3px;
  font-family: courier, monospace;
  padding: 0 3px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Nunito", sans-serif;
  color: var(--col-header);
}

/* MISC */

input[readonly] {
  background-color: var(--col-disabled);
}

select, input[type="text"], input[type="password"], input[type="email"], input[type="number"] {
  display: block;
  width: 100%;
  padding: .375rem .75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  border-radius: 0.5rem;
  background-color: var(--col-bg);
  border: 1px solid var(--col-secondary);
}

input[type="checkbox"] {
  height: 3rem;
}

a.a-button,
input[type="submit"],
input[name="save"],
input[type="button"],
input[type="reset"] {
  font-size: 1rem;
  line-height: 1.5;
  padding-block: .5rem;
  padding-inline: 1rem;
  border-radius: 1rem;
  cursor: pointer;
}

input[type="file"] {
  padding-block: .5rem;
  padding-inline: 1rem;
  border-radius: 1rem;
  cursor: pointer;
}

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

.row {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
}

.wrap {
  flex-wrap: wrap;
}

.flex-0 {
  flex: 0;
}

.max-width-200 {
  max-width: 200px;
}
.max-width-300 {
  max-width: 300px;
}
.max-width-400 {
  max-width: 400px;
}
.max-width-500 {
  max-width: 500px;
}
.max-width-600 {
  max-width: 600px;
}

.min-width-200 {
  min-width: 200px;
}
.min-width-300 {
  min-width: 300px;
}
.min-width-400 {
  min-width: 400px;
}
.min-width-500 {
  min-width: 500px;
}
.min-width-600 {
  min-width: 600px;
}

.spread-all {
  display: flex;
  justify-self: center;
  justify-content: space-between;
  align-items: center;
  align-content: center;
}

.space-all {
  display: flex;
  justify-self: center;
  justify-content: space-evenly;
  align-items: flex-start;
  align-content: flex-start;
}

.center-all {
  display: flex;
  justify-self: center;
  justify-content: center;
  align-items: center;
  align-content: center;
}

/*--------------------------------------------------------------
# Colors
--------------------------------------------------------------*/

.error {
  color: var(--col-warning);
  font-weight: bold;
}

.validate {
  color: white;
  background-color: var(--col-success);
  border: 1px solid transparent;
  font-weight: bold;
}

.validate:hover {
  color: white;
  background-color: var(--col-success-hover);
}

.return {
  color: white;
  background-color: var(--col-secondary);
  border: 1px solid transparent;
  font-weight: bold;
}

.return:hover {
  color: white;
  background-color: var(--col-secondary-hover);
}

.action,
.save {
  color: white;
  background-color: var(--col-primary);
  border: 1px solid transparent;
  font-weight: bold;
}

.action:hover,
.save:hover {
  color: white;
  background-color: var(--col-primary-hover);
}

.to-fill {
  background-color: var(--col-warning);
}

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

/*--------------------------------------------------------------
# Main
--------------------------------------------------------------*/
.main {
  margin: 60px 80px 30px 80px;
  padding: 20px 20px;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.header {
  display: flex;
  align-items: center;
  min-height: 80px;
  box-shadow: 0px 2px 20px rgba(1, 41, 112, 0.1);
  background-color: #fff;
}

/* Logo */
.header .logo {
  display: flex;
  flex: 1;
  justify-content: center;
  line-height: 1;
}

.header .logo img {
  height: 50px;
}

/* Title */
.header .header-center {
  display: flex;
  flex: 3;
  flex-direction: column;
  justify-content: center;
}

.header .header-center h1 {
  text-align: center;
}

/* Actions */
.header .header-right {
  display: flex;
  flex: 2;
  justify-content: space-evenly;
  align-items: center;
}

.header .header-left {
  display: flex;
  flex: 2;
  justify-content: space-evenly;
  align-items: center;
}
/*--------------------------------------------------------------
# Cards
--------------------------------------------------------------*/

.card {
  position: relative;
  margin-bottom: 3rem;
  border: none;
  border-radius: .5rem;
  background-color: white;
  box-shadow: 0px 0 30px rgba(1, 41, 112, 0.1);
}

.card .nested-card {
  border: 2px solid var(--col-secondary);
}

.nested-card {
  position: relative;
  margin-block: 3rem;
  border: none;
  border-radius: .5rem;
  box-shadow: 0px 0 30px rgba(1, 41, 112, 0.1);
  color: black;
  /* background-color: var(--col-secondary); */
}

.card .card-body,
.nested-card .nested-card-body {
  display: flex;
  width: auto;
  padding: 1rem;
  flex: 1;
}


.card .card-table {
  display: flex;
  width: 100%;
  padding: 1rem;
}

/*--------------------------------------------------------------
# Forms
--------------------------------------------------------------*/

form {
  margin: 0;
}

form .fields-group {
  padding: .5rem;
}

form .buttons-group {
  justify-content: space-evenly;
  padding: .5rem;
}

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

.passwordStrengthForcer > div {
  display: flex;
  align-items: center;
}

/*--------------------------------------------------------------
# Tables
--------------------------------------------------------------*/

.table-wrapper {
  position: relative;
  max-height: 70vh;
  width: 100%;
}

.table-scroller {
  max-height: 70vh;
  max-width: 100%;
  overflow: auto;
}

table {
  border-radius: .5rem;
  border-collapse: collapse;
  padding: .5rem;
  width: 100%;
	margin-bottom: 0;
	max-width: none;
}
table th {
  border: 1px solid black;
  padding:10px;
  background: var(--col-secondary);
  color: white;
}
table td {
  border: 1px solid var(--col-secondary);
  text-align:center;
  padding:10px;
  background: var(--col-bg);
  color: black;
}

/*--------------------------------------------------------------
# Admin
--------------------------------------------------------------*/
/* .admin-header {
} */
.admin-header fieldset {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.admin-options {
  display: flex;
  flex: 3;
}

.admin-sorting {
  display: flex;
  flex: 1;
}

.admin-exports {
  display: flex;
  flex: 2;
}
.admin-exports input {
  min-width: 200px;
}

.admin-imports {
  display: flex;
  flex: 2;
}

/* .admin-exports > * {
  align-self: start;
} */

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  padding: 20px 0;
}

.footer .copyright {
  text-align: center;
}

.footer .credits {
  padding-top: .5rem;
  text-align: center;
  font-size: .75rem;
}

/* .footer .credits .tooltip {
  visibility: hidden;
  width: 400px;
  background-color: black;
  color: #fff;
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;
 
  position: absolute;
  z-index: 1;
  translate: -50%;
  margin-left: -50px;
}

.footer .credits:hover .tooltip {
  visibility: visible;
} */