:root {
  --default-font: "Inter", sans-serif;
  --default-font-color: #222;
  --default-font-size: 14px;
  --default-font-weight: 400;

  --color-primary: #0a3968;
  --color-accent: #f5b333;

  --link-color: #337ab7;

  --white: #ffffff;
  --red: #e87777;
  --light-gray: #dddddd;
  --lighter-gray: #eeeeee;
  --dark-gray: #ccc;
  --darker-gray: #888;

  --shadow-light: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-dark: 0 3px 5px rgba(0, 0, 0, 0.3);
}

* {
  margin: 0;
  padding: 0;
}

body {
  background: var(--white);
  color: var(--default-font-color);
  font-family: var(--default-font);
  font-weight: var(--default-font-weight);
  font-size: var(--default-font-size);
  /* line-height: 24px; */
}

a,
a:hover,
a:focus {
  color: var(--link-color);
}

.site-bd {
  background: url(../img/world-map.png) no-repeat right bottom / 400px
    var(--white);
  background-attachment: fixed;
}

h1,
h2,
h3,
h4,
h5 {
  color: #0a3968;
  font-family: var(--default-font);
  font-weight: bold;
}

ul,
ol {
  margin-top: 1em;
  padding-left: 2em;
}

ul li,
ol li {
  font-size: var(--default-font-size);
}

table tr th,
table tr td {
  font-size: 11px;
}
table tr th {
  background: var(--lighter-gray);
  border-bottom: 0 !important;
  border-color: #ccc !important;
  padding: 4px 6px 6px !important;
}
table tr td {
  padding: 8px 8px 4px !important;
}
table tr td ul li,
table tr td ol li {
  font-size: 11px !important;
}
table tr td .btn {
  font-size: 0.85em;
  position: relative;
  top: -2px;
}

/* `nowarp` for table button actions */
table tbody tr td:last-child {
  white-space: nowrap;
}

form h5.legend {
  background: var(--lighter-gray);
  padding: 10px;
}

.nowrap {
  white-space: nowrap;
}

.ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-warning {
  color: #fd5f3d;
}
.text-normal {
  font-weight: normal;
}

.alert {
  /* border-radius: 0; */
  margin-bottom: 10px;
  padding: 8px 15px;
}
.control-label.required {
  position: relative;
}
.control-label.required::after {
  color: var(--red);
  content: "*";
  font-size: 12px;
  position: absolute;
  top: 1px;
  right: 8px;
  vertical-align: super;
}

.form-control {
  border-radius: 3px;
  height: auto;
  outline: none;
}
input[type="number"].form-control {
  max-width: 150px;
}
input[type="date"].form-control {
  height: 34px;
  max-width: 150px;
}
select.form-control {
  padding-left: 8px;
}

/* Select2 */
.select2-dropdown,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-search--dropdown .select2-search__field,
.select2-container--default.select2-container--focus
  .select2-selection--multiple {
  border-color: var(--light-gray) !important;
}
.select2-container .select2-selection--single {
  height: auto;
  padding: 1px 6px;
}
.select2-container--default
  .select2-selection--single
  .select2-selection__clear,
.select2-selection__arrow {
  margin-top: 2px;
}
.select2-container--default .select2-search--inline .select2-search__field {
  padding: 3px 6px;
}
.select2-container {
  z-index: 10;
}

.text-expand {
  /* box-sizing: border-box; */
  /* min-height: 60px; */
  overflow: hidden;
  resize: none;
}

/* SweetAlert */
.swal2-container .swal2-title {
  font-size: 1.6em;
  margin-bottom: 1em;
}
.btn.swal2-confirm {
  border: none;
}
.swal2-actions button:not(:first-child) {
  margin-right: 5px;
}

.two-col {
  column-count: 2;
  column-gap: 5em;
  column-rule: 1px dotted var(--light-gray);
  padding: 2em !important;
  text-align: justify;
}

button,
.btn,
.swal-confirm {
  outline: none !important;
}

.btn {
  border-radius: 2px !important;
  font-size: 11px;
  /* font-weight: bold; */
  /* text-transform: uppercase; */
}
.btn + .btn {
  margin-left: 3px !important;
}

.btn-warning {
  background: var(--color-accent);
}

.btn-social {
  display: block;
  margin: 0 auto;
  max-width: 240px;
}

.btn-group .btn + .btn {
  margin-left: 0 !important;
}

.btn > i {
  margin-right: 3px;
}

.action-bar {
  margin-bottom: 1em;
}

.modal-header {
  padding: 1em 1em 0.9em;
}
.modal-header h4 {
  font-size: 1.2em;
}
.modal.in .modal-dialog {
  z-index: 10000;
}

.form-group > div {
  padding-left: 0;
}

.form-control,
select {
  font-size: 12px;
}

.form-control {
  color: #333;
  cursor: pointer;
}
.input-group-addon {
  font-size: 1em;
}

/* Intl phone entry width 100% */
.iti {
  display: block;
}

/* Datatables */
.dataTables_wrapper {
  overflow-x: auto;
}
div.dataTables_wrapper div.dataTables_filter {
  text-align: right;
  float: right;
}

div.dataTables_wrapper table.datatable {
  margin-top: 2em !important;
}

.dataTables_paginate,
.dataTables_info {
  display: inline-block;
}

.dataTables_paginate {
  float: right;
}

.dt-buttons .btn {
  margin-right: 5px;
}

.btn.buttons-html5 {
  background-size: 16px;
  background-position: 8px center;
  font-size: 0.9em;
  outline: none !important;
  padding: 7px 6px 7px 30px;
}

.buttons-page-length {
  padding-bottom: 7px;
  padding-top: 8px;
}

.buttons-excel {
  background: url(../img/icons/excel.png) no-repeat;
}

.buttons-copy {
  background: url(../img/icons/copy.png) no-repeat;
  background-size: 12px;
}

.buttons-pdf {
  background: url(../img/icons/pdf.png) no-repeat;
}

.buttons-filter {
  background: url(../img/icons/filter.png) no-repeat 8px center / 16px !important;
}

.buttons-filter:hover {
  background-color: var(--lighter-gray) !important;
}

input.datepicker {
  background: url(../img/calendar.png) no-repeat 95% center / 12px var(--white);
  max-width: 150px;
  padding: 6px 12px;
}

.trumbowyg-box,
.trumbowyg-editor,
.trumbowyg-textarea {
  background: var(--white);
  margin-top: 0 !important;
  min-height: 200px;
}
.trumbowyg-editor {
  font-size: 0.95em;
  padding: 10px;
}
.trumbowyg-editor ul,
.trumbowyg-editor ol {
  padding-left: 1.5rem;
}
.trumbowyg-editor ul li,
.trumbowyg-editor ol li {
  font-size: 1em;
  margin-bottom: 5px;
}
.trumbowyg-editor p {
  margin-bottom: 5px;
}
.trumbowyg-editor p:last-child {
  margin-bottom: 0;
}

.panel-heading h3 {
  font-size: 1em;
}

/* Containers */
.container {
  max-width: 1024px;
  width: auto;
}
.container-sm {
  max-width: 576px;
}
.container-md {
  max-width: 960px;
}
.container-lg {
  max-width: 1200;
}

.nav-tabs {
  margin-top: 0;
}
.tab-content {
  margin-bottom: 2em;
}
.tab-pane {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-top: 0;
  clear: both;
  padding: 1em;
}

/* Navigation */
.navbar {
  background: transparent;
  border: 0;
  border-radius: 0;
  /* box-shadow: var(--shadow-light); */
  height: auto;
  margin: 1rem 0;
  min-height: auto;
}
.navbar-brand {
  height: auto;
  margin-right: 30px;
  padding: 5px 15px;
}
.navbar-brand img {
  max-height: 1.3em;
}
.navbar-toggle {
  background: transparent !important;
  border: 0;
  margin-top: 0em;
  margin-bottom: 0;
}
.navbar-nav {
  margin-top: 0;
  margin-bottom: 0;
}
.navbar-nav > li > a {
  color: var(--color-primary) !important;
  font-size: 1em;
}
.navbar-nav > li > a:not(.btn-nav) {
  background: transparent;
  padding: 9px 15px;
  transition: 100ms all ease;
}
.navbar-nav > li.dropdown:hover > a,
.navbar-nav > li > a:not(.btn-nav):hover,
.home-bd .home-lnk,
.invoice-bd .invoice-lnk,
.hr-bd .hr-lnk,
.about-bd .about-lnk,
.contact-bd .contact-lnk {
  background: var(--color-primary) !important;
  color: var(--white) !important;
}

.navbar-nav > li > a.btn-nav,
.navbar-nav > li > a.btn-nav:hover {
  background-color: var(--color-primary) !important;
  border: 0;
  color: var(--white) !important;
  font-size: 0.9em;
  margin-left: 0.5em;
  padding: 8px 20px;
}
.navbar-nav > li > a.btn-nav.btn-nav-alt {
  background-color: transparent !important;
  color: var(--color-primary) !important;
}

.dropdown-menu .divider {
  margin: 0;
}
.dropdown-menu .divider:not(:empty) {
  height: auto;
  font-size: 10px;
  font-weight: bold;
  padding: 4px 15px;
  text-transform: uppercase;
}

.page-header {
  border-bottom: 0;
  margin-top: 0;
}
.page-header h1 {
  font-size: 2em;
  margin-top: 0;
}

.page-content,
.page-tabs {
  min-height: 80vh;
}

.jumbotron {
  border-radius: 2px;
  padding: 8% 0 !important;
}
.jumbotron h1 {
  color: var(--color-primary);
  font-size: 2.5em;
  line-height: 48px;
  margin-bottom: 20px;
}
.jumbotron p {
  color: var(--darker-gray);
  font-size: 1.2em;
  line-height: 24px;
}
.home-jumbotron {
  margin-bottom: 0;
}

/* Home */
.home-jumbotron {
  background: url(../img/jumbotron.png) no-repeat right bottom / 500px
    var(--white);
}

section {
  font-size: 1.5rem;
  line-height: 20px;
  padding: 4em 0;
}
section p {
  margin-bottom: 1.5em;
}
section ul {
  margin-left: 0;
}
section ul li {
  margin-bottom: 0.5em;
}
.section-intro {
  background: #f4f7ff;
  /* color:#fff; */
}
.section-intro h3 {
  display: inline-block;
  margin-top: 0;
  margin-bottom: 1.5em;
  position: relative;
  text-transform: capitalize;
}
.section-intro h3::after {
  background: var(--color-accent);
  content: " ";
  height: 3px;
  width: 12rem;
  position: absolute;
  top: 32px;
  left: 0;
}

.papers {
  background: var(--white);
  border: 1px solid var(--light-gray);
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1), 3px 3px 0 var(--white),
    4px 4px 0 rgba(0, 0, 0, 0.125), 6px 6px 0 var(--white),
    7px 7px 0 rgba(0, 0, 0, 0.15);
  margin: 5em 0;
  padding: 1em;
}

.document-title {
  font-weight: normal;
  margin-top: 0;
  text-transform: uppercase;
}
.document-table {
  border: 1px solid var(--light-gray);
}

/* Auth pages */
.auth-box {
  margin: 5% auto;
  max-width: 420px;
  padding: 1em 2em;
}
.auth-box form {
  padding: 1em;
}
.auth-box h1 {
  font-size: 2.5em;
  margin-bottom: 0;
  text-align: center;
}
.auth-box .control-label {
  margin-bottom: 5px;
}
.auth-box .control-label.required::after {
  right: -8px;
}

footer {
  font-size: 0.9em;
  padding: 2em 0 1em;
}

@media (min-width: 768px) {
  .dropdown-menu {
    margin: 0;
    padding: 0;
  }
  .dropdown:hover .dropdown-menu {
    display: block;
  }
  .dropdown-menu > li > a {
    padding: 6px 15px !important;
  }
}

@media (max-width: 767px) {
  .navbar-header {
    padding-top: 0.5em;
    padding-bottom: 0.5em;
  }
  .form-group {
    padding-left: 15px;
  }
  .form-group label:not(.radio-inline, .checkbox-inline) {
    padding-left: 0;
  }
}
