/* PNMLS lightweight UI framework: Bootstrap-free compatibility layer. */
:root {
  --ui-blue: #1488c9;
  --ui-blue-dark: #0c5f96;
  --ui-red: #bd302d;
  --ui-red-dark: #a22927;
  --ui-green: #0f7f74;
  --ui-gold: #f2da18;
  --ui-ink: #0b2f57;
  --ui-text: #1f2f46;
  --ui-muted: #5f7188;
  --ui-border: rgba(12, 47, 87, .14);
  --ui-surface: rgba(255, 255, 255, .92);
  --ui-soft: #eef7fb;
  --ui-shadow: 0 10px 28px rgba(6, 37, 66, .12);
  --ui-radius: 8px;
  --ui-font: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ui-text);
  font-family: var(--ui-font);
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--ui-blue-dark);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--ui-blue);
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container,
.container-fluid {
  width: min(100%, 1180px);
  margin-right: auto;
  margin-left: auto;
  padding-right: clamp(14px, 2vw, 24px);
  padding-left: clamp(14px, 2vw, 24px);
}

.container-fluid {
  width: 100%;
  max-width: none;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -12px;
  margin-left: -12px;
}

.row::before,
.row::after,
.clearfix::before,
.clearfix::after {
  display: table;
  content: "";
}

.row::after,
.clearfix::after {
  clear: both;
}

[class^="col-"],
[class*=" col-"] {
  position: relative;
  width: 100%;
  min-height: 1px;
  padding-right: 12px;
  padding-left: 12px;
}

.col-xs-1,
.col-sm-1,
.col-md-1,
.col-lg-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-xs-2,
.col-sm-2,
.col-md-2,
.col-lg-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-xs-3,
.col-sm-3,
.col-md-3,
.col-lg-3 { flex: 0 0 25%; max-width: 25%; }
.col-xs-4,
.col-sm-4,
.col-md-4,
.col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-xs-5,
.col-sm-5,
.col-md-5,
.col-lg-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-xs-6,
.col-sm-6,
.col-md-6,
.col-lg-6 { flex: 0 0 50%; max-width: 50%; }
.col-xs-7,
.col-sm-7,
.col-md-7,
.col-lg-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-xs-8,
.col-sm-8,
.col-md-8,
.col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-xs-9,
.col-sm-9,
.col-md-9,
.col-lg-9 { flex: 0 0 75%; max-width: 75%; }
.col-xs-10,
.col-sm-10,
.col-md-10,
.col-lg-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.col-xs-11,
.col-sm-11,
.col-md-11,
.col-lg-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.col-xs-12,
.col-sm-12,
.col-md-12,
.col-lg-12 { flex: 0 0 100%; max-width: 100%; }

@media (max-width: 991px) {
  .col-md-1,
  .col-md-2,
  .col-md-3,
  .col-md-4,
  .col-md-5,
  .col-md-6,
  .col-md-7,
  .col-md-8,
  .col-md-9,
  .col-md-10,
  .col-md-11,
  .col-lg-1,
  .col-lg-2,
  .col-lg-3,
  .col-lg-4,
  .col-lg-5,
  .col-lg-6,
  .col-lg-7,
  .col-lg-8,
  .col-lg-9,
  .col-lg-10,
  .col-lg-11 {
    flex-basis: 50%;
    max-width: 50%;
  }
}

@media (max-width: 680px) {
  [class^="col-"],
  [class*=" col-"] {
    flex-basis: 100%;
    max-width: 100%;
  }
}

.img-responsive,
.img-fluid {
  display: block;
  max-width: 100%;
  height: auto;
}

.img-rounded {
  border-radius: var(--ui-radius);
}

.pull-right {
  float: right !important;
}

.pull-left {
  float: left !important;
}

.text-center {
  text-align: center !important;
}

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

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

.hidden,
[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.form-group {
  margin-bottom: 16px;
}

.control-label,
label {
  color: var(--ui-ink);
  font-weight: 800;
}

.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="search"],
select,
textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  color: var(--ui-text);
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--ui-border);
  border-radius: 7px;
  box-shadow: inset 0 1px 1px rgba(6, 37, 66, .04);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

textarea.form-control,
textarea {
  min-height: 110px;
  resize: vertical;
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--ui-blue);
  box-shadow: 0 0 0 3px rgba(20, 136, 201, .16);
}

.input-group {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.input-group .form-control {
  flex: 1 1 auto;
}

.input-group-btn,
.input-group-addon {
  display: flex;
  align-items: center;
}

.btn,
button.btn,
input[type="submit"].btn,
input[type="button"].btn {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(135deg, var(--ui-blue), var(--ui-blue-dark));
  box-shadow: 0 6px 16px rgba(8, 82, 130, .18);
  cursor: pointer;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-decoration: none !important;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.btn:hover,
.btn:focus {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(8, 82, 130, .24);
  filter: saturate(1.06);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary,
.btn-info {
  background: linear-gradient(135deg, var(--ui-blue), var(--ui-blue-dark));
}

.btn-success {
  background: linear-gradient(135deg, #119885, var(--ui-green));
}

.btn-danger {
  background: linear-gradient(135deg, var(--ui-red), var(--ui-red-dark));
}

.btn-warning {
  color: #18243a;
  background: linear-gradient(135deg, #ffe75d, var(--ui-gold));
}

.btn-default,
.btn-secondary {
  color: var(--ui-ink);
  background: #fff;
  border: 1px solid var(--ui-border);
  box-shadow: 0 4px 12px rgba(6, 37, 66, .09);
}

.btn-link {
  color: var(--ui-blue-dark);
  background: transparent;
  box-shadow: none;
}

.btn-xs {
  min-height: 28px;
  padding: 5px 9px;
  font-size: 12px;
}

.btn-sm {
  min-height: 32px;
  padding: 7px 12px;
  font-size: 13px;
}

.btn-lg {
  min-height: 46px;
  padding: 12px 20px;
  font-size: 17px;
}

.btn-block {
  display: flex;
  width: 100%;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--ui-radius);
}

.table {
  width: 100%;
  margin-bottom: 18px;
  border-collapse: collapse;
  background: var(--ui-surface);
}

.table th,
.table td {
  padding: 11px 12px;
  border-top: 1px solid var(--ui-border);
  vertical-align: middle;
}

.table thead th,
.table > tbody > tr:first-child > th {
  color: var(--ui-ink);
  background: var(--ui-soft);
  border-bottom: 1px solid var(--ui-border);
  font-weight: 900;
}

.table-striped tbody tr:nth-child(odd) {
  background: rgba(238, 247, 251, .58);
}

.table-hover tbody tr:hover {
  background: rgba(20, 136, 201, .08);
}

.table-bordered,
.table-bordered th,
.table-bordered td {
  border: 1px solid var(--ui-border);
}

.panel,
.well,
.thumbnail,
.card {
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius);
  box-shadow: var(--ui-shadow);
}

.panel {
  margin-bottom: 20px;
}

.panel-heading {
  padding: 12px 16px;
  color: var(--ui-ink);
  background: linear-gradient(180deg, #fff, var(--ui-soft));
  border-bottom: 1px solid var(--ui-border);
  border-radius: var(--ui-radius) var(--ui-radius) 0 0;
  font-weight: 900;
}

.panel-body,
.well {
  padding: 16px;
}

.thumbnail {
  display: block;
  padding: 8px;
}

.alert {
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: var(--ui-radius);
  border: 1px solid transparent;
  font-weight: 700;
}

.alert-success {
  color: #08594e;
  background: #e4f8f4;
  border-color: #9cdfd3;
}

.alert-danger,
.alert-error {
  color: #7a1715;
  background: #fff0ef;
  border-color: #f4b8b6;
}

.alert-warning {
  color: #5d4d00;
  background: #fff8d2;
  border-color: #ffe879;
}

.alert-info {
  color: #0b4f78;
  background: #e7f6ff;
  border-color: #a9ddfb;
}

.label,
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--ui-blue-dark);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.label-danger,
.badge-danger {
  background: var(--ui-red);
}

.label-success,
.badge-success {
  background: var(--ui-green);
}

.label-warning,
.badge-warning {
  color: #18243a;
  background: var(--ui-gold);
}

.navbar {
  min-height: 54px;
  border: 0;
  border-radius: 0;
}

.navbar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.navbar-brand {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  color: #fff;
  font-weight: 900;
}

.navbar-toggle {
  display: none;
  width: 42px;
  height: 36px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, .46);
  border-radius: 7px;
  background: rgba(255, 255, 255, .08);
  cursor: pointer;
}

.navbar-toggle .icon-bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.navbar-collapse {
  display: flex;
  align-items: center;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-left: 0;
  margin: 0;
  list-style: none;
}

.nav > li,
.navbar-nav > li {
  position: relative;
  list-style: none;
}

.nav > li > a,
.navbar-nav > li > a,
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  color: inherit;
}

.dropdown-menu {
  display: none;
  min-width: 210px;
  padding: 8px;
  margin: 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius);
  box-shadow: var(--ui-shadow);
  z-index: 1050;
}

.dropdown.open > .dropdown-menu,
.nav-item.open > .dropdown-menu,
.dropdown-menu.is-open {
  display: block;
}

.dropdown-menu > li > a,
.dropdown-item {
  display: block;
  width: 100%;
  padding: 8px 10px;
  color: var(--ui-text);
  border-radius: 6px;
}

.dropdown-menu > li > a:hover,
.dropdown-item:hover {
  background: var(--ui-soft);
  color: var(--ui-blue-dark);
}

.collapse {
  display: none;
}

.collapse.in,
.collapse.show,
.collapse.is-open {
  display: block;
}

.collapsing {
  height: auto;
  overflow: hidden;
}

.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 20px;
  background: rgba(5, 22, 40, .56);
}

.modal.in,
.modal.show,
.modal.is-open {
  display: block;
}

.modal-dialog {
  width: min(100%, 620px);
  margin: 6vh auto;
}

.modal-content {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius);
  box-shadow: 0 24px 72px rgba(5, 22, 40, .28);
}

.modal-header,
.modal-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
}

.modal-header {
  justify-content: space-between;
  border-bottom: 1px solid var(--ui-border);
}

.modal-footer {
  justify-content: flex-end;
  border-top: 1px solid var(--ui-border);
}

.modal-body {
  padding: 18px;
}

.modal-title {
  margin: 0;
  color: var(--ui-ink);
  font-weight: 900;
}

.close {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: var(--ui-muted);
  background: transparent;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.close:hover {
  color: var(--ui-red);
  background: rgba(189, 48, 45, .08);
}

.glyphicon {
  display: inline-block;
  min-width: 1em;
  font-family: Arial, sans-serif;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.glyphicon-user::before { content: "U"; }
.glyphicon-book::before { content: "B"; }
.glyphicon-remove::before { content: "x"; }
.glyphicon-off::before { content: "O"; }
.glyphicon-eye-open::before { content: "V"; }
.glyphicon-pencil::before { content: "E"; }
.glyphicon-trash::before { content: "X"; }
.glyphicon-scissors::before { content: "#"; }
.glyphicon-bookmark::before { content: "*"; }
.glyphicon-flag::before { content: "F"; }
.glyphicon-modal-window::before { content: "M"; }

html[data-theme="dark"] {
  --ui-text: #e9f4fb;
  --ui-muted: #b9c9d6;
  --ui-border: rgba(164, 214, 238, .2);
  --ui-surface: rgba(15, 31, 45, .92);
  --ui-soft: rgba(24, 55, 76, .8);
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .dropdown-menu,
html[data-theme="dark"] .modal-content {
  color: var(--ui-text);
  background: rgba(15, 31, 45, .96);
  border-color: var(--ui-border);
}

html[data-theme="dark"] .panel-heading,
html[data-theme="dark"] .table thead th,
html[data-theme="dark"] .table > tbody > tr:first-child > th {
  color: var(--ui-text);
  background: rgba(24, 55, 76, .92);
}

@media (max-width: 992px) {
  .navbar-toggle {
    display: inline-flex;
  }

  .navbar-collapse {
    display: none;
    width: 100%;
  }

  .navbar-collapse.in,
  .navbar-collapse.show,
  .navbar-collapse.is-open {
    display: block;
  }

  .navbar-nav {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
  }
}
