﻿html,
body {
  font-family: Source Sans Pro, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial;
}

main {
  background-color: #edf0f5;
}

b,
p,
div,
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #73777f;
}

.btn {
  box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 1px -2px, rgba(0, 0, 0, 0.14) 0px 2px 2px 0px, rgba(0, 0, 0, 0.12) 0px 1px 5px 0px;
}

h1:focus {
  outline: none;
}

a,
.btn-link {
  color: #0071c1;
}

.btn-primary {
  color: #fff;
  background-color: #0066b1 !important;
  border-color: #0066b1 !important;
}

.content {
  padding-top: 2.1rem;
  padding-bottom: 2.1rem;
}

.valid.modified:not([type=checkbox]) {
  outline: 1px solid #26b050;
}

.invalid {
  outline: 1px solid red;
}

.validation-message {
  color: red;
}

#blazor-error-ui {
  background: lightyellow;
  bottom: 0;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
  display: none;
  left: 0;
  padding: 0.6rem 1.25rem 0.7rem 1.25rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

#blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  right: 0.75rem;
  top: 0.5rem;
}

.blazor-error-boundary {
  background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI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MTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
  padding: 1rem 1rem 1rem 3.7rem;
  color: white;
}

.blazor-error-boundary::after {
  content: "An error has occurred.";
}

.btn:active {
  transform: scale(0.96);
  -webkit-transform: scale(0.96);
  -ms-transform: scale(0.96);
}

.btn::before {
  opacity: 1;
}

/* Global table padding */
.table {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

/* Global table cell padding */
.table> :not(caption)>*>* {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

/* Global form-control padding override */
.form-control {
  padding: 0.20rem 0.70rem !important;
}

.content-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.loading {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(1px);
  position: fixed;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
  z-index: 9999999999;
  overflow: hidden;
}

.loading .spinner-border {
  position: absolute;
  margin-left: -1rem;
  top: 50%;
  left: 50%;
}

.reconnect-modal>div {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  overflow: hidden;
  background-color: #fff;
  opacity: 0.8;
  text-align: center;
  font-weight: bold;
}

.components-reconnect-hide>div {
  display: none;
}

.components-reconnect-show>div {
  display: none;
}

.components-reconnect-show>.show {
  display: block;
}

.components-reconnect-failed>div {
  display: none;
}

.components-reconnect-failed>.failed {
  display: block;
}

.components-reconnect-rejected>div {
  display: none;
}

.components-reconnect-rejected>.rejected {
  display: block;
}

.reload-link {
  text-align: center;
  vertical-align: middle;
  text-decoration: none;
}

/* Primary */
.bg-primary {
  background-color: #0066b1 !important;
}

.text-primary {
  color: #0066b1 !important;
}

/* Danger */
.bg-danger {
  background-color: #f14a4a !important;
}

.btn-danger {
  background-color: #f14a4a !important;
  border-color: #f14a4a !important;
}

.text-danger {
  color: #f14a4a !important;
}

/* Warning */
.bg-warning {
  background-color: #feb922 !important;
}

.btn-warning {
  background-color: #feb922 !important;
  border-color: #feb922 !important;
}

.text-warning {
  color: #feb922 !important;
}

/* Secondary */
.bg-secondary {
  background-color: #feb922 !important;
}

.btn-secondary {
  background-color: #feb922 !important;
  border-color: #feb922 !important;
}

.text-secondary {
  color: #feb922 !important;
}

/* Success */
.bg-success {
  background-color: #1fcb7b !important;
}

.btn-success {
  background-color: #1fcb7b !important;
  border-color: #1fcb7b !important;
}

.text-success {
  color: #1fcb7b !important;
}

/* Icon button styles */
button.icon-button {
  background: transparent !important;
  border: none !important;
  padding: 0.375rem !important;
  border-radius: 0.25rem !important;
  transition: all 0.15s ease-in-out !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: auto !important;
  font-size: 1rem !important;
  box-shadow: none !important;
  outline: none !important;
}

button.icon-button:hover {
  background-color: rgba(0, 0, 0, 0.05) !important;
  transform: scale(1.1) !important;
  border: none !important;
  box-shadow: none !important;
}

button.icon-button:active {
  transform: scale(0.95) !important;
  border: none !important;
  box-shadow: none !important;
}

button.icon-button:focus {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

button.icon-button.danger {
  color: #dc3545 !important;
  background: transparent !important;
  border: none !important;
}

button.icon-button.danger:hover {
  color: #c82333 !important;
  background-color: rgba(220, 53, 69, 0.1) !important;
  border: none !important;
}

button.icon-button.primary {
  color: #0066b1 !important;
  background: transparent !important;
  border: none !important;
}

button.icon-button.primary:hover {
  color: #0056a3 !important;
  background-color: rgba(0, 102, 177, 0.1) !important;
  border: none !important;
}

button.icon-button.success {
  color: #28a745 !important;
  background: transparent !important;
  border: none !important;
}

button.icon-button.success:hover {
  color: #218838 !important;
  background-color: rgba(40, 167, 69, 0.1) !important;
  border: none !important;
}

button.icon-button.secondary {
  color: #6c757d !important;
  background: transparent !important;
  border: none !important;
}

button.icon-button.secondary:hover {
  color: #545b62 !important;
  background-color: rgba(108, 117, 125, 0.1) !important;
  border: none !important;
}

/* Global mobile styles - 5px padding everywhere */
@media (max-width: 767.98px) {

  /* Global content padding override */
  .content {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
  }

  /* Global container padding */
  .container-fluid {
    padding: 5px !important;
    margin: 0 !important;
  }

  /* Global card padding */
  .card {
    margin: 0 !important;
    border-radius: 0 !important;
  }

  .card-header {
    padding: 5px !important;
    margin: 0 !important;
  }

  .card-body {
    padding: 5px !important;
    margin: 0 !important;
  }

  /* Global Bootstrap grid overrides */
  .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .col,
  [class*="col-"] {
    padding-left: 5px !important;
    padding-right: 5px !important;
  }

  /* Global table padding */
  .table {
    padding: 5px !important;
    margin: 0 !important;
  }

  .table thead th {
    padding: 5px !important;
  }

  .table> :not(caption)>*>* {
    padding: 5px !important;
  }

  /* Global form padding */
  .form-control {
    padding: 3px 12px !important;
  }

  .input-group-text {
    padding: 8px 12px !important;
  }

  /* Global button spacing */
  .btn {
    margin-bottom: 5px;
  }

  /* Global badge spacing */
  .badge {
    margin-bottom: 2px;
  }

  /* Global modal padding */
  .modal-body {
    padding: 5px !important;
  }

  .modal-header {
    padding: 5px !important;
  }

  .modal-footer {
    padding: 5px !important;
  }

  /* Global pagination spacing */
  .pagination {
    padding: 5px !important;
    margin: 5px 0 !important;
  }

  /* Global list spacing */
  .list-group-item {
    padding: 5px !important;
  }

  /* Global alert spacing */
  .alert {
    padding: 5px !important;
    margin: 5px 0 !important;
  }

  /* Global breadcrumb spacing */
  .breadcrumb {
    padding: 5px !important;
    margin: 5px 0 !important;
  }

  /* Global nav spacing */
  .nav {
    padding: 5px !important;
  }

  .nav-link {
    padding: 5px !important;
  }

  /* Global dropdown spacing */
  .dropdown-menu {
    padding: 5px !important;
  }

  .dropdown-item {
    padding: 5px !important;
  }
}