body {
  background-color: #121212;
  color: #f8f9fa;
  width: 100dvw;
  min-height: 100dvh;
  height: fit-content;
  display: flex;
  flex-direction: column;
}

footer {
  height: 35px;
  background-color: #1f1f1f;
  color: #bbb;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

main {
  flex-grow: 1;
  display: flex;
  overflow-y: auto;
}

.content-wrapper {
  flex-grow: 1;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0.25rem;
  max-width: 100vw;
}

.content-box {
  background-color: #1e1e1e;
  border: 1px solid #444;
  border-radius: 12px;
  padding: 1.5rem 1rem;
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.05);
  width: 100%;
  max-width: 800px;
  height: fit-content;
  color: #f8f9fa;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex-grow: 1;
}

.content-box h1,
.content-box h2 {
  text-align: center;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.content-box p,
.content-box .adresse {
  margin-bottom: 1rem;
}

.content-box button {
  width: 100%;
  margin-bottom: 0.65rem;
}

.table-wrapper {
  flex-grow: 1;
  overflow-x: auto;
}

table {
  width: auto;
  min-width: 100%;
  white-space: nowrap;
  border-collapse: collapse;
  table-layout: auto;
}

th, td {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid #333;
}

th {
  font-weight: bold;
  text-align: center;
  color: #f8f9fa;
}

td:first-child {
  text-align: left;
}

td:not(:first-child) {
  text-align: center;
}

.sum-box {
  margin-top: 1.5rem;
  text-align: center;
  font-weight: bold;
  font-size: 1.1rem;
  color: #f8f9fa;
}

.form-control,
.input-group .form-control,
.input-group .input-group-text,
select.form-select {
  background-color: #2b2b2b;
  color: #f8f9fa;
  border: 1px solid #555;
}

.form-control:focus,
.input-group .form-control:focus,
select.form-select:focus {
  background-color: #2b2b2b;
  border-color: #888;
  box-shadow: none;
  color: #fff;
}

::placeholder {
  color: #919191 !important;
  opacity: 1;
}

.input-group {
  flex-wrap: nowrap;
}

input.form-check-input {
  transform: scale(1.2);
  cursor: pointer;
}

.btn-unlock {
  width: 100%;
}

.incr-btn {
  border: none;
  background: none;
  color: #0d6efd;
  font-size: 1.2rem;
  margin-left: 0.25rem;
  cursor: pointer;
}

.decr-btn {
  border: none;
  background: none;
  color: #0d6efd;
  font-size: 1.2rem;
  margin-right: 0.25rem;
  cursor: pointer;
}

.admin-user-interface {
  flex-grow: 1;
}

.admin-user-interface select.form-select,
.admin-user-interface input#search {
  margin-bottom: 1rem;
}

.agb-info dt {
  float: left;
  width: 90px;
  font-weight: 500;
  color: #bbb;
}

.agb-info dd {
  margin-left: 100px;
  margin-bottom: 0.5rem;
}

.form-control:disabled,
.form-control[readonly] {
  background-color: #2b2b2b;
  color: #aaa;
  border: 1px solid #555;
  opacity: 1;
}

select.form-select:disabled {
  background-color: #2b2b2b;
  color: #aaa;
  border: 1px solid #555;
  opacity: 1;
}

button.btn[disabled],
button.btn:disabled {
  background-color: transparent !important;
  border: none !important;
  opacity: 0.5;
  cursor: not-allowed;
}

.del-btn[disabled],
.del-btn:disabled {
  color: #dc3545 !important;
}

.show-btn[disabled],
.show-btn:disabled {
  color: #0dcaf0 !important;
}

.incr-btn[disabled], .incr-btn:disabled,
.decr-btn[disabled], .decr-btn:disabled {
  color: #0948aa !important;
}

.counter-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

input, select {
  width: 100%;
  min-width: 0 !important;
}

#suggestions {
  max-height: 200px;
  overflow-y: auto;
  border-radius: 0 0 0.5rem 0.5rem;
  background-color: #2b2b2b;
}

#suggestions .list-group-item {
  background-color: #2b2b2b;
  color: #f8f9fa;
  border: none;
  border-bottom: 1px solid #444;
  cursor: pointer;
}

#suggestions .list-group-item:hover,
#suggestions .list-group-item:focus {
  background-color: #3a3a3a;
  color: #fff;
}
