:root {
  font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: light; /* both supported */
}

::backdrop {
  background-color: #213547;
  opacity: 0.75;
}

body {
  margin: 0;
  padding: 20px;
  width: 100%;
  height: 100vh;
  box-sizing: border-box;
}

thead {
  border-bottom: 2px solid rgb(160 160 160);
  text-align: center;
  background-color: #2c5e77;
  color: #fff;
}

tbody {
  background-color: #e4f0f5;
  color: #000;
}

td,
th {
  padding: 14px 10px;
}

p {
  margin: 0;
}

.hidden {
  display: none !important;
}

.app {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.controls {
  display: flex;
  flex-direction: row;
  column-gap: 0px;
}

.control-button {
  cursor: pointer;
  width: 80px;
  border-style: unset;
  padding: 12px;
  box-sizing: border-box;
}

.control-selected {
  background-color: #f8f8f8;
  border: 1px solid #333;
  border-bottom: 0px;
}

.container {
  border: 1px solid #333;
  flex: 2;
}

.container-section {
  padding: 14px;
  box-sizing: border-box;
}

.container-section_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  margin-bottom: 20px;
}

.provision-table {
  width: 100%;
}

.provision-table > thead > tr > th,
.provision-table > tbody > tr > td {
  text-align: left;
}

#add-modal {
  width: 60%;
}
#provision-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#provision-form > .submit {
  width: fit-content;
  margin-top: 20px;
}

#provision-form > .form-header {
  margin-bottom: 20px;
}

#provision-form > .form-controls {
  margin-top: 20px;
  display: flex;
  flex-direction: row;
  column-gap: 20px;
  text-align: center;
}

.form-item {
  width: 100%;
  display: flex;
  flex-direction: row;
  margin-bottom: 10px;
  column-gap: 10px;
}

.form-item > label {
  text-align: right;
  flex: 1;
}

.form-item > input,
.form-item > span.inline-input {
  display: inline-block;
  flex: 2;
}

.subscribe-section {
  display: flex;
  flex-direction: row;
  column-gap: 10px;
}

.subscribe-section > div {
  display: block;
}

.closed {
  width: 0;
  transition: width 0.2s ease-out;
}

.opened {
  width: 100%;
  transition: width 0.2s ease-in;
}

#subscribe-section_list {
  display: flex;
  flex-direction: column;
  row-gap: 2px;
  flex: 1;
  min-width: 50%;
}

.subscriber-section_list-item {
  background-color: #e4f0f5;
  color: #213547;
  padding: 20px 10px;
  display: flex;
  justify-content: space-between;
}

.subscriber-section_list-item.selected {
  background-color: #2c5e77;
  color: #fff;
}

.subscriber-section_list-item-controls {
  display: flex;
  flex-direction: row;
  column-gap: 10px;
}

.subscriber-video {
  width: 100%;
  height: 100%;
}

@media (prefers-color-scheme: light) {
  :root {
    /* color: #213547; */
    background-color: #ffffff;
  }
}
