:root {
  --primary: #ff66ff;
  --secondary: #00ffcc;
  --dark-bg: #14141f;
  --bg: #1e1e2e;
  --hover-bg: #444;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

p { font-size: 1.25em; }
h1 { font-size: 2.5em; }

.container {
  margin: 0 auto;
  padding: 0 20px;
  overflow: hidden;
}

.header {
  position: sticky;
  background-color: var(--dark-bg);
  color: var(--primary);
  top: 0;
  padding: 10px 0;
  height: 60px;
  border-bottom: 1px solid grey;
}

.primary {
  color: var(--primary);
}

.secondary {
  color: var(--secondary);
}

.btn-secondary {
  font-size: 1.25em;
  background-color: var(--primary);
  color: var(--secondary);
  border: 1px solid var(--secondary);
  padding: 10px 20px;
  border-radius: 10px;
}

.btn-primary {
  font-size: 1.25em;
  background-color: var(--secondary);
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 10px 20px;
  border-radius: 10px;
}

.col-1 {width: 8.33%;}
.col-2 {width: 16.66%;}
.col-3 {width: 25%;}
.col-4 {width: 33.33%;}
.col-5 {width: 41.66%;}
.col-6 {width: 50%;}
.col-7 {width: 58.33%;}
.col-8 {width: 66.66%;}
.col-9 {width: 75%;}
.col-10 {width: 83.33%;}
.col-11 {width: 91.66%;}
.col-12 {width: 100%;}

[class*="col-"] {
  float: left;
  padding: 15px;
}

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

#logo {
  float: left;
  font-size: 1.5em;
  margin-top: 10px;
  margin-left: 10px;
}

form {
  padding: 80px;
  width: 100%;
  text-align: center;
}

form .label {
  text-align: right;
}

#user-form input {
  width: 100%;
  margin: 20px;
}

table {
  width: 100%;
  font-size: 1.25em;
}

table, th, td {
  border: 1px solid grey;
  border-collapse: collapse;
}

td, th {
  padding: 5px 15px;
}

table th {
  color: var(--secondary);
}

input[type=submit] {
  padding: 5px 20px;
}

input[type=text], input[type=password], input[type=email], input[type=number] {
  background-color: inherit;
  color: inherit;
  border: none;
  border-bottom: 2px solid #555;
  padding: 5px;
  font-size: 1.2em;
}

select {
  background-color: #14141f;
  border: none;
  border-bottom: 2px solid #555;
  border-radius: 5px;
  color: inherit;
  padding: 10px 20px;
  width: 100%;
  margin-bottom: 10px;
  font-size: 1.2em;
}

option {
  padding-left: 10px;
}

input[type=text]:focus, input[type=password]:focus, input[type=email]:focus {
  outline: none;
}

.toggle, .toggle img {
  background-color: inherit;
  width: 60px;
  height: 30px;
}

a.toggle, a img.toggle {
  cursor: pointer;
}

.toggle img:hover {
  background-color: #555;
}

.sidepanel {
  height: 275px;
  width: 0;
  position: fixed;
  z-index: 2;
  top: 0;
  right: 0;
  background-color: #111;
  overflow-x: hidden;
  padding-top: 60px;
  transition: 0.5s;
}

.sidepanel a {
  margin-left: 15px;
  margin-bottom: 15px;
  padding 10px 10px 10px 32px;
  text-decoration: none;
  font-size: 25px;
  display: block;
  transition: 0.3s;
  color: grey;
}

.sidepanel a:hover {
  color: #f1f1f1;
}

.sidepanel .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
  color: grey;
}

.openbtn {
  font-size: 30px;
  cursor: pointer;
  background-color: inherit;
  color: white;
  padding: 10px 15px;
  border: none;
  position: fixed;
  top: 0;
  right: 0;
}

.openbtn:hover {
  background-color: var(--hover-bg);
}

.closebtn {
  border: none;
  background-color: inherit;
  color: grey;
  margin-left: 50px;
  text-decoration: none;
}

.btn-add {
  color: grey;
  font-size: 1.5em;
  text-decoration: none;
}

.btn-add:hover {
  background-color: var(--hover-bg);
}

.btn {
  text-decoration: none;
  background-color: inherit;
  border: none;
}

.btn:hover {
  background-color: var(--hover-bg);
}

.danger {
  color: red;
}

.branch-row {
  display: inline-block;
  width: 100%;
  height: 60px;
  background-color: grey;
  border-radius: 25px;
  padding-left: 15px;
  margin: 5px;
  border: 1px solid var(--primary);
}

.branch-row .label {
  display: inline-block;
  margin-top: 18px;
  font-size: 1.25em;
}

.branch-row button {
  float: right;
  margin-top: 8px;
  margin-right: 15px;
  font-size: 1.5em;
}

.btn-detail {
  border: none;
  text-decoration: none;
  color: grey;
  background-color: inherit;
  font-size: 1.3em;
}

.label {
  color: var(--secondary);
  font-size: 1.25em;
}

.float {
  z-index: 1;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #14141f;
  padding: 20px;
  display: flex;
}

.float .closebtn {
  position: relative;
  float: right;
  top: 0;
  right: 5px;
  font-size: 36px;
  margin-left: 50px;
  color: grey;
}

.float .closebtn:hover {
  color: white;
}

.float table {
  position: relative;
  top: 15px;
}

.btn-row {
  margin: 20px 20px;
  padding: 10px 0px;
}

.btn-row button {
  float: right;
  padding: 10px 20px;
  border-radius: 10px;
  margin-left: 20px;
  text-decoration: none;
  font-size: 1.25em;
}

button.danger {
  background-color: #ff4d4d;
  color: white;
}

button.edit {
  float: right;
  background-color: #9999ff;
  color: white;
 }

.danger:hover, .edit:hover {
  opacity: 0.8;
}

.input {
  display: inline;
  width: 100%;
}

.row .input {
  border: none;
}

.row label {
  display: inline-block;
}

.row .label {
  font-size: 1.25em;
}

.row .date {
  font-size: 1.25em;
}

#employee-detail form input[type=text] {
  margin-right: 20px;
  margin-top: 5px;
  font-size: 1.5em;
}

.active-row {
  display: flex;
  float: right;
}

.active-row h3 {
  width: auto;
  margin-left: 20px;
  margin-right: 20px;
}

.active-row a {
  display: inline-block;
}

.htmx-swapping {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.htmx-indicator {
  display: none;
}

.htmx-request .htmx-indicator {
  display: inline;
}

.htmx-request.htmx-indicator {
  display: inline;
}

tr.htmx-swapping td {
  opacity: 0;
  transition: opacity 0.5s ease-out;
}

.float.htmx-swapping {
  opacity: 0;
  transition: opacity 0.5s ease-out;
}

.btn-detail {
  margin-left: 10px;
}

button:hover {
  background-color: #444;
  opacity: 0.8;
}

.btn-close {
  float: right;
  font-size: 1.5em;
  background-color: inherit;
  border: none;
  color: grey;
}
