/* 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: 230px;
  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%;
}

.dataTables_wrapper .dt-buttons {
  float: left;
  margin: 0 10px 8px 0;
}

.dataTables_wrapper .dataTables_length {
  float: left;
  margin: 0 12px 8px 0;
}

.dataTables_wrapper .dataTables_length label {
  align-items: center;
  display: flex;
  font-weight: 700;
  gap: 6px;
  line-height: 30px;
}

.dataTables_wrapper .dataTables_filter {
  margin: 0 0 8px;
}

table.dataTable {
  background: #ffffff;
  border-collapse: collapse !important;
  clear: both;
  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;
  color: #31408c;
  padding: 5px;
}

.dataTables_length select {
  min-width: 62px;
}

/* 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;
  }
}
.refresh-page-btn {
  margin-bottom: 8px !important;
}

.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: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

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

.month-select-form label {
  color: #31408c;
}

.month-select-form select {
  border: 1px solid #cccccc;
  border-radius: 4px;
  color: #31408c;
  font: 14px Verdana, Arial, sans-serif;
  padding: 5px 28px 5px 8px;
}

.report-toolbar .refresh-page-btn,
.refresh-report-btn {
  background: #b34700 !important;
  color: #ffffff !important;
  margin-bottom: 0 !important;
}

.report-toolbar .refresh-page-btn:hover,
.refresh-report-btn:hover {
  background: #cc5500 !important;
  color: #ffffff !important;
}

.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;
}
