/* OTHER CSS FILES*/
@import url(payslip.css);
@import url(voucher.css);
@import url(report.css);
@import url(receipt.css);

/* FONTS */
/* font-family: 'Montserrat', sans-serif; */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@700&display=swap");

:root {
  --headerFont: "Montserrat", sans-serif;
}

.font01 {
  font-family: "Montserrat", sans-serif;
  color: #002366;
}

* {
  margin: 0;
  padding: 0;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 00.85rem;
}

body {
  margin: 0 auto;
  width: 60%;
}

ul {
  margin: 20px 0;
}

ul > li {
  display: inline;
  padding: 10px 5vw;
  background-color: #002366;
  width: 100px;
  border-radius: 20px;
}

.container {
  display: grid;
  justify-items: center;
}

.link {
  background: #002366;
  width: 100%;
}

.gap {
  gap: 2em;
}

.w-100 {
  width: 100%;
}

.w-75 {
  width: 75%;
}

/*** index.php ***/
#index .grid {
  margin: 2em 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 5em;
  gap: 1em;
  place-items: stretch;
}
#index .grid > a {
  display: grid;
  place-items: center;
  background: #002366;
  color: #fff;
  text-decoration: none;
}
#index .grid > h2 {
  grid-column: 1/-1;
}

/*** header.php ***/
#header .container {
  display: inline-grid;
  grid-template-columns: 3vw 7vw auto;
  align-items: center;
}

#header .link {
  color: #fff;
  background-color: #002366;
  text-decoration: none;
  height: 1.5em;
  width: 3em;
  padding-left: 0.5em;
  font-size: 2rem;
  cursor: pointer;
}

/*** index.php ***/
#index .header {
  display: grid;
  justify-items: center;
}

#index .container {
  margin: 3vh auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  grid-gap: 1em;
}

#index .container > a {
  display: block;
  width: 100%;
  background: #002366;
  color: #fff;
  text-decoration: none;
  text-align: center;
  padding: 1em 0;
}

h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 2rem;
  color: #002366;
  margin: 0.4em 0 0.5em;
}

/* payslip.php */
table {
  margin: 0 auto;
  vertical-align: top;
  table-layout: fixed;
  width: 100%;
  border-collapse: collapse;
}

tr {
  width: 100%;
}

td {
  padding: 6px;
  width: 25%;
  vertical-align: top;
}

img {
  margin: 0;
  padding: 0;
}

th {
  text-align: end;
  padding: 4px;
  text-transform: uppercase;
  border-collapse: collapse;
}

.start {
  text-align: start;
}

.end {
  text-align: end;
}

.center {
  text-align: center;
}

.pr-10 {
  padding-right: 30px;
}

.p-0 {
  padding: 0;
}

.bgcolor {
  background-color: #edf3ff;
  padding: 0 10px;
}

.middle {
  vertical-align: middle;
}

.uppercase {
  text-transform: uppercase;
}

.bold {
  font-weight: 600;
}

hr {
  border: 0.5px solid #ddd;
}

/* Button */
.button {
  text-align: center;
  margin: 10px 0;
}

.button input[type="submit"] {
  padding: 10px 25px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background-color: #002366;
  cursor: pointer;
  font-size: 0.9em;
  text-transform: uppercase;
}

#login {
  width: 35%;
  margin: 0 auto;
  line-height: 2;
}

form > input[type="text"],
form > input[type="password"],
form > input[type="date"] {
  width: 100%;
  height: 3rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
}

input[type="date"] {
  color: #ccc;
  text-align: center;
}

input[type="submit"],
button {
  padding: 8px 15px;
  color: #fff;
  background-color: #002366;
  border: 0px solid #000;
  cursor: pointer;
}

input[type="number"],
input[type="text"],
input[type="password"] {
  width: 5vw;
  height: 3vh;
  border: none;
  background-color: transparent;
  border-bottom: 1.5px solid #ddd;
  border-left: 1.5px solid #ddd;
  text-align: center;
  margin-left: 0.8vw;
}

input .lg {
  width: 10em;
}
#login > form > button[type="submit"] {
  width: 10vw;
}

#login input::placeholder {
  font-size: 1rem;
  color: #aaa;
}

#logout {
  padding: 2vh 0;
}

#logout > form > input[type="submit"] {
  width: 10%;
}

#logout > form > label {
  padding: 8px;
  color: #333;
}

#alert,
#success {
  margin: 1em auto;
  width: 35%;
  padding: 1vh 0;
  text-align: center;
  color: white;
  font-weight: 600;
}
#alert {
  background: red;
  width: 40ch;
}

#success {
  background: green;
}

.grid {
  display: grid;
}

footer {
  text-align: right;
  font-size: 0.7rem;
}

/* nav.php */
.nav {
  display: grid;
  grid-auto-flow: column;
  column-gap: 5px;
}
.nav-item {
  display: grid;
  height: 3em;
  align-content: center;
  justify-content: center;
  position: relative;
  background-color: #002366;
  color: white;
}
.dropdown {
  display: none;
  position: absolute;
  background-color: #333;
  width: 100%;
  top: 100%;
}
.nav-item:hover .dropdown {
  display: grid;
  text-align: center;
}
.dropdown a {
  height: 3em;
  display: grid;
  align-content: center;
  color: white;
  text-decoration: none;
}
.dropdown a:hover {
  background-color: goldenrod;
  color: #111;
}
.table {
  display: table;
}
.row {
  display: table-row;
  /* padding: 3px; */
}
.row.label {
  color: #002366;
}
.row.label > .cell {
  padding-top: 1.5em;
  font-size: larger;
  font-weight: bold;
  text-transform: uppercase;
  text-align: start;
}
.cell {
  display: table-cell;
  padding: 0.3em 1em;
  text-align: center;
}
.cell-left {
  text-align: left;
}
