html {
  font-size: calc(0.2vw + 11.08px);
}

footer {
  font-size: calc(0.2vw + 9px);
}

footer i {
  font-size: calc(0.2vw + 10px);
}

body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

th,
td {
  vertical-align: middle;
}

/* .bottom-line {
  border-bottom: 1px solid #444444;
} */

.clickable:hover {
  cursor: pointer;
  /* font-weight: bold; */
  color: #8924b4;
}

.brand-logo {
  margin-left: 10px;
  margin-right: 10px;
}

.logo-img {
  vertical-align: middle;
}

.v-middle {
  vertical-align: middle;
}

.accent {
  background: red;
  color: white;
}

.blinking {
  animation: blink-animation 1s steps(5, start) infinite alternate;
  -webkit-animation: blink-animation 1s steps(5, start) infinite alternate;
}

.y-scroll {
  overflow-y: scroll;
}

span.line {
  display: inline-block;
}

.bottomline {
  border-bottom: 1px solid black;
}

/* outline */
.outline-self {
  outline: 2px solid black;
}

.outline-rival {
  outline: 2px solid red;
}

#record-table {
  height: 700px;
}

/* monthly dev chart */
#monthly-chart-div {
  width: 100%;
  height: 450px;
  margin-top: 10px;
  margin-bottom: 10px;
}

/* charity dashboard chart */
#hc-chart-div {
  width: 100%;
  height: 350px;
  margin-top: 10px;
  margin-bottom: 10px;
}

#age-chart-div {
  /* width: 100%; */
  height: 300px;
  margin-top: 10px;
  margin-bottom: 10px;
}

#payment-method-chart-div,
#signup-method-chart-div,
#gender-chart-div {
  /* width: 100%; */
  height: 150px;
  margin-top: 10px;
  margin-bottom: 10px;
}

/* #gender-chart-div {
  width: 100%;
  height: 200px;
  margin-top: 10px;
  margin-bottom: 10px;
}

#age-method-chart-div {
  width: 100%;
  height: 200px;
  margin-top: 10px;
  margin-bottom: 10px;
} */

.daily-chart {
  width: 100%;
  height: 1000px;
  margin-top: 10px;
  margin-bottom: 10px;
  border-color: black;
  border-style: solid;
}

.monthly-age-boxplot {
  width: 100%;
  height: 250px;
  margin-top: 10px;
  margin-bottom: 10px;
  border-color: black;
  border-style: solid;
}

.calendar-heatmap {
  width: 100%;
  height: 130px;
  margin-top: 10px;
  margin-bottom: 10px;
}

#signup-table,
#agg-table,
#team-table {
  font-size: calc(0.2vw + 10px);
}

#record-list td {
  padding: 4px 4px 4px 4px;
}

.narrow-table td {
  padding: 3px 3px 3px 3px;
}

#leader-table th {
  font-size: 10px;
}

.bg-gray {
  background-color: lightgray;
}

.hover-gray:hover {
  background-color: lightgray;
}

.log-box {
  border: 1px solid black;
  margin-top: 10px;
  margin-bottom: 10px;
  padding: 10px 10px 10px 10px;
}

.border-table td {
  border: 1px solid gray;
}

#location-table,
.responsive-table {
  font-size: calc(0.3vw + 6px);
}

.responsive-table2 {
  font-size: calc(0.3vw + 5px);
}

.responsive-table th {
  font-size: calc(0.3vw + 5px);
}

.responsive-table2 th {
  font-size: calc(0.3vw + 5px);
}

#member-table,
#team-table,
#leader-table {
  font-size: calc(0.2vw + 7px);
}

.tabulator-responsive-collapse table {
  font-size: 10px !important;
}

.tcs-select {
  background-color: lightgray !important;
}

/* map-infowindow style */
.info-title {
  display: block;
  background: #50627f;
  color: #fff;
  text-align: center;
  height: 24px;
  line-height: 22px;
  border-radius: 4px;
  padding: 0px 10px;
}

/* blinking badge */
@keyframes blink-animation {
  from {
    visibility: visibility;
  }
  to {
    visibility: hidden;
  }
}

@-webkit-keyframes blink-animation {
  from {
    visibility: visibility;
  }
  to {
    visibility: hidden;
  }
}

/* for ios support in week widget */
.ios-week {
  display: block;
  -webkit-appearance: none;
  -moz-appearance: none;
  min-height: 1.2em;
}

.PN {
  background-color: black;
  color: white;
  font-weight: bold;
}

.AM {
  background-color: #edcaab;
}

.AM-accent {
  background-color: #e77613;
  color: white;
  font-weight: bold;
}

.HA {
  background-color: #f5cdc9;
}

.HA-accent {
  background-color: #f04333;
  color: white;
  font-weight: bold;
}

.SA {
  background-color: #f7e7a3;
}

.SA-accent {
  background-color: #9c820c;
  color: white;
  font-weight: bold;
}

.RN {
  background-color: #c9f0da;
}

.RN-accent {
  background-color: #15ad57;
  color: white;
  font-weight: bold;
}

.UQ {
  background-color: #c8dbe8;
}

.UQ-accent {
  background-color: #1d6a9e;
  color: white;
  font-weight: bold;
}

.FS {
  background-color: #acacac;
}

.FS-accent {
  background-color: #2c2828;
  color: white;
  font-weight: bold;
}

.BW {
  background-color: #e7d7ee;
}

.BW-accent {
  background-color: #8924b4;
  color: white;
  font-weight: bold;
}

.MS {
  background-color: #cea8a8;
}

.MS-accent {
  background-color: #860b0b;
  color: white;
  font-weight: bold;
}

.SM {
  background-color: #8ece8c;
}

.SM-accent {
  background-color: #098a04;
  color: white;
  font-weight: bold;
}

.PS {
  background-color: #a9dad5;
}

.PS-accent {
  background-color: #4dddd1;
  color: white;
  font-weight: bold;
}

.GT {
  background-color: #b497f7;
}

.GT-accent {
  background-color: #6122f5;
  color: white;
  font-weight: bold;
}

.VV {
  background-color: #f7e7a3;
}

.VV-accent {
  background-color: #9c820c;
  color: white;
  font-weight: bold;
}

.SN {
  background-color: #edcaab;
}

.SN-accent {
  background-color: #e77613;
  color: white;
  font-weight: bold;
}

.AA {
  background-color: #f5cdc9;
}

.AA-accent {
  background-color: #f04333;
  color: white;
  font-weight: bold;
}

.avg-accent {
  font-weight: bold;
  font-style: italic;
  color: red;
}

.row-na {
  background-color: #e7a3a3;
}

.row-term {
  background-color: #81c784;
}

.row-onetime {
  background-color: #c8e6c9;
}

.row-err {
  background-color: #ce93d8;
}

.row-lowage {
  background-color: #fff59d;
}

.row-lowamt {
  background-color: #90caf9;
}

.row-incomplete {
  background-color: #90a4ae;
}

.row-cancel {
  background-color: #f48fb1;
}

.row-duplicated {
  background-color: #f3e5f5;
}

/* bg color for attendance table */
.STREET {
  background-color: #cfe2f3 !important;
}

.B2B {
  background-color: #abd3f5 !important;
}

.EVENT {
  background-color: #6bb4f3 !important;
}

.OFFICE,
.ATT {
  background-color: #b7e1cd !important;
}

.LEAVE {
  background-color: #81c784 !important;
}

.OJT {
  background-color: #ffe599 !important;
}

.NA {
  background-color: #ead1dc !important;
}

.MSF {
  background: #ff0000 !important;
  color: white;
}

.UNHCR {
  background: #0b5394 !important;
  color: white;
}

.IRC {
  background: #fcd25e !important;
  color: white;
}

.OXFAM {
  background: #38761d !important;
  color: white;
}

.UNICEF {
  background: #5cc1ed !important;
  color: white;
}

.PLAN {
  background: #5cc1ed !important;
  color: white;
}

.WORLD {
  background: #ff6600 !important;
  color: white;
}

.WWF {
  background: #000000 !important;
  color: white;
}

#member-table .emtext {
  font-style: italic;
  color: black;
}
/* summernote youtube embedding */
.embed-youtube {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
}

.embed-youtube iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* htmx transition */
.fade-in.htmx-added {
  opacity: 0;
}
.fade-in {
  opacity: 1;
  transition: all ease-in 0.2s;
}

/* calendar css */
.calendar {
  width: 98%;
  margin: auto;
  font-size: 13px;
}

.calendar tr,
.calendar td {
  border: 1px solid black;
}

.calendar th {
  padding: 2px;
  text-align: center;
  font-size: 1rem;
}

.calendar td {
  width: 200px;
  height: 100px;
  padding: 20px 0px 0px 5px;
}

.month {
  font-size: 25px;
}

.date {
  font-size: 16px;
}

.calendar td ul {
  height: 100%;
  padding: 0px 5px 0px 20px;
}

.calendar td a {
  color: #17a2b8;
}

/* supply request formset table */
#supply-request-formset-table th:nth-child(1),
#supply-request-formset-table td:nth-child(1) {
  width: 40%;
}
#supply-request-formset-table th:nth-child(2),
#supply-request-formset-table td:nth-child(2) {
  width: 20%;
}
#supply-request-formset-table th:nth-child(3),
#supply-request-formset-table td:nth-child(3) {
  width: 40%;
}

#supply-request-process-formset-table th:nth-child(1),
#supply-request-process-formset-table td:nth-child(1) {
  width: 30%;
}
#supply-request-process-formset-table th:nth-child(2),
#supply-request-process-formset-table td:nth-child(2) {
  width: 20%;
}
#supply-request-process-formset-table th:nth-child(3),
#supply-request-process-formset-table td:nth-child(3) {
  width: 20%;
}
#supply-request-process-formset-table th:nth-child(4),
#supply-request-process-formset-table td:nth-child(4) {
  width: 30%;
}

.readonly-field {
  pointer-events: none;
  background-color: #e9ecef;
}
