/* Base Mercury page layout used by index.php, ../head.php and ../footer.php */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: #f5f5f5;
  color: #31408c;
  font-family: Verdana, Arial, sans-serif;
  font-size: 13px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #31408c;
  font-family: Verdana, Arial, sans-serif;
  margin: 0;
  padding: 0;
}

h1 {
  font-size: 18px;
  line-height: 1.3;
  margin: 0 0 10px;
  padding: 2px 0;
}

a,
a:link,
a:visited {
  color: #31408c;
  text-decoration: none;
}

a:hover,
a:active {
  color: #1f8a3b;
}

img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

hr {
  border: 0;
  border-top: 1px solid #d6d8df;
  margin: 8px 0;
}

table {
  border-collapse: separate;
  clear: both;
  empty-cells: show;
}

th,
td {
  border: 0;
  padding: 2px 4px;
  vertical-align: top;
}

th {
  background: #e9ebf2;
}

li {
  font-size: 16px;
  list-style: none;
  margin: 0 0 2px;
  padding: 2px;
}

/* Shared fixed-width shell from head.php/footer.php */
table.h1,
table.h2,
table.h3,
table.f1,
table.tbl1,
table.tbl2 {
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  table-layout: fixed;
  width: 1430px;
}

table.h1 {
  border: 1px solid #808080;
  height: auto;
}

table.h2,
table.f1,
table.tbl1 {
  height: auto;
}

table.h3 {
  border: 0;
  height: auto;
}

table.tbl1 {
  border: 0;
}

table.tbl2 {
  border: 1px solid #808080;
  height: auto;
}

table.tbl3 {
  table-layout: fixed;
  width: 100%;
}

tr.tbl3tr1 {
  border-left-style: solid;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* Navigation tabs generated in ../head.php */
ul.tabs {
  background: #f9f9f9;
  border-bottom: 1px solid #dae0e7;
  clear: both;
  display: block;
  list-style-type: none;
  margin: 12px auto;
  max-width: 98vw;
  padding: 12px 12px 0;
  width: 1430px;
}

ul.tabs::after {
  clear: both;
  content: "";
  display: block;
}

.tab {
  background: #f9f9f9;
  border: 1px solid #dae0e7;
  border-radius: 8px 8px 0 0;
  float: left;
  height: 50px;
  margin: 0 8px -1px 0;
  overflow: hidden;
}

.tab,
.tab a {
  transition: all 0.25s;
}

.tab a {
  display: inline-block;
  font-weight: 700;
  line-height: 1.1;
  padding: 6px 8px;
  white-space: nowrap;
}

.tab:hover {
  background: #808080;
}

.tab:hover a,
a.nonSelected:hover {
  color: #ffffff;
}

.tabSelected {
  background: #808080;
  border-bottom: 0;
  color: #ffffff;
  height: 51px;
  text-decoration: none;
}

a.tabSelected,
a.tabSelected:visited {
  color: #ffffff;
  text-decoration: none;
}

a.tabSelected:hover {
  color: #31408c;
}

a.nonSelected,
a.nonSelected:visited {
  color: #31408c;
  text-decoration: none;
}

/* Local app menu loaded from menu.php */
ul.app-tabs {
  font-size: 0;
  margin-top: 6px;
  overflow: visible;
  padding: 12px 6px 0;
}

.tab-app {
  background: #e0f0f7;
}

.app-tabs .tab {
  display: inline-block;
  float: none;
  height: 50px;
  margin: 0 6px -1px 0;
  max-width: 270px;
  vertical-align: top;
  width: auto;
}

.app-tabs .tab a {
  align-items: center;
  display: flex;
  font-size: 14px;
  height: 100%;
  line-height: 1.12;
  padding: 5px 8px;
  white-space: normal;
}

.tab-app:hover {
  background: #808080;
}

.tabSelected-app {
  background: #808080;
}

.tab-disabled {
  opacity: 0.72;
}

.tab-disabled a {
  cursor: default;
}

.tab-disabled:hover {
  background: #f9f9f9;
}

.tab-disabled:hover a {
  color: #31408c;
}

/* Current page content */
.steps-fieldset {
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin: 0;
  min-inline-size: 0;
  overflow-x: auto;
  padding: 16px 20px;
  width: 100%;
}

.steps-fieldset legend {
  color: #333333;
  font-weight: 600;
  padding: 0 10px;
}

.total-box {
  color: #31408c;
  font-size: 16px;
  font-weight: 700;
  margin: 4px 0 0 8px;
  padding: 0;
}

/* DataTables overrides for pontajTable */
.dataTables_wrapper {
  color: #31408c;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  width: 100%;
}

table.dataTable {
  background: #ffffff;
  border-collapse: collapse !important;
  min-width: 1220px;
  width: 100% !important;
}

table.dataTable thead th {
  background: #31408c;
  color: #ffffff;
  font-weight: 700;
  vertical-align: middle;
}

table.dataTable tbody td {
  color: #31408c;
  padding: 6px;
  vertical-align: top;
}

table.dataTable tbody tr:nth-child(even) {
  background: #f7f8fb;
}

table.dataTable tbody tr:hover {
  background: #eef2ff;
}

.dt-button {
  background: #27ae60 !important;
  border: 0 !important;
  border-radius: 4px !important;
  color: #ffffff !important;
  cursor: pointer;
  margin-right: 5px !important;
  padding: 6px 12px !important;
}

.dt-button:hover {
  background: #219150 !important;
  color: #ffffff !important;
}

.dataTables_filter input,
.dataTables_length select {
  border: 1px solid #cccccc;
  border-radius: 4px;
  padding: 5px;
}

/* Footer content loaded from ../footer.php */
table.f1 p {
  color: #31408c;
  font-size: 11px;
  margin: 8px 0;
}

@media only screen and (max-width: 800px) {
  body {
    margin: 0;
  }

  table.h1,
  table.h2,
  table.h3,
  table.f1,
  table.tbl1,
  table.tbl2,
  ul.tabs {
    width: 100%;
  }

  .tab {
    height: auto;
  }

  .tab a {
    white-space: normal;
  }
}

.update-fieldset {
  background: #ffffff;
  border: 1px solid #d6d8df;
  border-radius: 6px;
  margin: 0 0 12px;
  padding: 10px 12px;
}

.update-fieldset legend {
  color: #31408c;
  font-weight: 700;
  padding: 0 8px;
}

.report-toolbar {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.report-toolbar-row {
  align-items: center;
  display: flex;
  gap: 8px;
  min-height: 30px;
}

.report-loaded-at {
  color: #31408c;
  font-weight: 700;
}

.partial-month-warning {
  background: #b00020;
  border-radius: 4px;
  color: #ffffff;
  font-weight: 700;
  padding: 5px 8px;
}

.month-form {
  align-items: center;
  display: flex;
  gap: 6px;
  margin: 0;
}

.month-form-label,
.month-form label {
  color: #31408c;
  font-weight: 700;
}

.month-select,
.month-picker-button {
  background: #ffffff;
  border: 1px solid #bfc7d9;
  border-radius: 6px;
  color: #31408c;
  font: 13px Verdana, Arial, sans-serif;
  min-height: 31px;
  padding: 5px 38px 5px 10px;
}

.month-picker {
  position: relative;
}

.month-picker-button {
  align-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  cursor: pointer;
  display: inline-flex;
  justify-content: space-between;
  line-height: 1.2;
  min-width: 104px;
  position: relative;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.month-picker-button:hover,
.month-picker-button:focus {
  background: #fbfcff;
  border-color: #8796c2;
  box-shadow: 0 0 0 3px rgba(49, 64, 140, 0.12);
  outline: 0;
}

.month-picker-button::before {
  background: #f1f4fb;
  border-left: 1px solid #d8deec;
  border-radius: 0 5px 5px 0;
  bottom: 0;
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 30px;
}

.month-picker-button::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2331408c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 18px 18px;
  content: "";
  height: 18px;
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.15s ease;
  width: 18px;
}

.month-picker.is-open .month-picker-button::after {
  transform: translateY(-50%) rotate(180deg);
}

.month-picker-value {
  display: inline-block;
  min-width: 52px;
}

.month-picker-menu {
  background: #ffffff;
  border: 1px solid #cccccc;
  border-radius: 4px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
  display: none;
  left: 0;
  max-height: 186px;
  min-width: 100%;
  overflow-y: auto;
  position: absolute;
  top: calc(100% + 2px);
  z-index: 50;
}

.month-picker.is-open .month-picker-menu {
  display: block;
}

.month-picker-option {
  background: #ffffff;
  border: 0;
  color: #31408c;
  cursor: pointer;
  display: block;
  font: 13px Verdana, Arial, sans-serif;
  padding: 7px 10px;
  text-align: left;
  width: 100%;
}

.month-picker-option:hover,
.month-picker-option.is-selected {
  background: #e9ebf2;
}

.search-form {
  margin: 0 0 12px;
}

.search-form input[type="text"] {
  border: 1px solid #cccccc;
  border-radius: 4px;
  color: #31408c;
  font: 14px Verdana, Arial, sans-serif;
  margin: 0 6px;
  padding: 6px 8px;
  width: 140px;
}

.search-form input.search-input-wide {
  max-width: 100%;
  width: 320px;
}

.message-error {
  color: #b00020;
  font-weight: 700;
}

.datatable-box {
  max-width: 100%;
  overflow-x: auto;
}

.column-unit {
  display: block;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

table.dataTable thead tr.column-filter-row th {
  background: #e9ebf2;
  padding: 3px 4px;
}

.column-filter {
  border: 1px solid #b8c0d4;
  border-radius: 3px;
  color: #31408c;
  font: 12px Verdana, Arial, sans-serif;
  min-width: 76px;
  padding: 4px 5px;
  width: 100%;
}

.dataTables_length {
  margin: 0 0 8px 10px;
}

.dataTables_paginate .paginate_button {
  min-width: 28px;
}

.dataTables_processing {
  background: #ffffff !important;
  border: 1px solid #d6d8df;
  color: #31408c !important;
  font-weight: 700;
  padding: 12px !important;
}
