﻿:root {
  /*mudblazor*/
}

:root {
  --red-1: #b11;
  --red-2: #c22;
  --red-3: #d33;
  --green-1: #272;
  --green-2: #383;
  --green-3: #494;
  --blue-1: #06b;
  --blue-2: #17c;
  --blue-3: #28d;
  --orange-1: #c50;
  --orange-2: #d60;
  --orange-3: #e71;
  --default: #666;
  --primary: #2185d0;
  --success: #4cae4c;
  --danger: #d9534f;
  --warning: #e92;
  --info: #8a8;
}

*,
*::before,
*::after {
  -webkit-tap-highlight-color: transparent !important;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
}

input,
textarea,
button,
select,
a {
  -webkit-tap-highlight-color: transparent !important;
}

/* Change the white to any color */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px white inset !important;
}

input,
select,
textarea,
button {
  font-family: inherit;
  font-size: inherit;
  /*form controls do not inherit font by default*/
  -webkit-appearance: none;
}

html,
body,
body > main {
  overscroll-behavior: none;
  /*prevent ios pull refresh*/
  position: relative;
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Roboto", "Helvetica", "Arial", "sans-serif", "Microsoft YaHei", Roboto, "Helvetica Neue", Arial, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #37c;
  cursor: pointer;
}

a,
a:hover {
  text-decoration: none;
}

a:hover {
  color: #05a;
}

a.underline {
  position: relative;
}

a.underline::before {
  position: absolute;
  bottom: -0.3rem;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #4183c4;
  content: "";
  transition: all 0.2s;
  transform: scaleX(0);
}

a.underline:hover::before {
  transform: scaleX(1);
}

a.disabled {
  color: #aaa;
  cursor: not-allowed;
}

.monospace {
  font-family: Consolas, "Segoe UI", "Lucida Console", -apple-system, "Roboto Mono", "Courier New", Courier, monospace;
}

.page {
  padding: 0 15px 30px 15px;
  overflow: auto;
  height: 100%;
}

.sticky-top {
  position: sticky;
  top: 0;
  z-index: 899;
  background-color: #fff;
  padding-top: 15px;
}

.main-content {
}

.container {
  max-width: min(100%, 1400px);
  min-width: 900px;
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-overflow {
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.text-overflow-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.border-gray {
  border-color: #ddd;
}

.dark .border-gray {
  border-color: #2f3349;
}

.fs-10 {
  font-size: 10px;
}

.fs-11 {
  font-size: 11px;
}

.fs-12 {
  font-size: 12px;
}

.fs-13 {
  font-size: 13px;
}

.fs-14 {
  font-size: 14px;
}

.fs-15 {
  font-size: 15px;
}

.fs-16 {
  font-size: 16px;
}

.fs-17 {
  font-size: 17px;
}

.fs-18 {
  font-size: 18px;
}

.fs-19 {
  font-size: 19px;
}

.fs-20 {
  font-size: 20px;
}

.fs-21 {
  font-size: 21px;
}

.fs-22 {
  font-size: 22px;
}

.fs-23 {
  font-size: 23px;
}

.fs-24 {
  font-size: 24px;
}

.fs-25 {
  font-size: 25px;
}

.fs-26 {
  font-size: 26px;
}

.fs-27 {
  font-size: 27px;
}

.fs-28 {
  font-size: 28px;
}

.fs-29 {
  font-size: 29px;
}

.fs-30 {
  font-size: 30px;
}

.fw-400 {
  font-weight: 400;
}

.fw-normal {
  font-weight: normal;
}

.fw-bold {
  font-weight: bold;
}

.fw-500 {
  font-weight: 500;
}

.fw-600 {
  font-weight: 600;
}

.bold,
.fw-700 {
  font-weight: 700;
}

.gray-0 {
  color: #000;
}

.gray-1 {
  color: #111;
}

.gray-2 {
  color: #222;
}

.gray-3 {
  color: #333;
}

.gray-4 {
  color: #444;
}

.gray-5 {
  color: #555;
}

.gray-6 {
  color: #666;
}

.gray-7 {
  color: #777;
}

.gray-8 {
  color: #888;
}

.gray-9 {
  color: #999;
}

.gray-a {
  color: #aaa;
}

.gray-b {
  color: #bbb;
}

.gray-c {
  color: #ccc;
}

.gray-d {
  color: #ddd;
}

.gray-e {
  color: #eee;
}

.gray-f {
  color: #fff;
}

.hide {
  display: none !important;
}

.show {
  display: block !important;
}

.overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--mud-palette-background);
  opacity: 0;
  z-index: 2000;
  transition: all ease-out 0.26s;
  pointer-events: none;
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.loading {
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  width: 3rem;
  height: 3rem;
  transition: all ease 3s;
  z-index: 991;
}

.loading div {
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  animation: loading 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border: 0.22rem solid var(--mud-palette-success);
  border-color: var(--mud-palette-success) transparent transparent transparent;
}

.loading.small {
  width: 2.5rem;
  height: 2.5rem;
}

.loading.small div {
  border: 0.18rem solid var(--mud-palette-success);
  border-color: var(--mud-palette-success) transparent transparent transparent;
}

.loading div:nth-child(1) {
  animation-delay: -0.45s;
}

.loading div:nth-child(2) {
  animation-delay: -0.3s;
}

.loading div:nth-child(3) {
  animation-delay: -0.15s;
}

.loading.fast div {
  animation-duration: 0.76s;
}

.loading.fast div:nth-child(1) {
  animation-delay: -0.3s;
}

.loading.fast div:nth-child(2) {
  animation-delay: -0.2s;
}

.loading.fast div:nth-child(3) {
  animation-delay: -0.1s;
}

@keyframes loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes dropdown {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.dropdown-animation {
  animation: dropdown 0.2s ease-out;
}

.wd-full {
  width: 100%;
}

.ht-full {
  height: 100%;
}

.toolbar-form {
  display: flex;
  gap: 9px 12px;
  align-items: center;
  align-content: center;
  padding-bottom: 12px;
  width: 100%;
  flex-wrap: wrap;
}

.toolbar-form .toolbar-form-right-bar {
  margin-left: auto;
}

@media only screen and (max-width: 1500px) {
  .toolbar-form .toolbar-form-right-bar {
    margin-left: 0;
  }
}

table.mud-table-root {
  border-collapse: collapse;
  /*    border-bottom: 0;*/
  border-right: 1px solid #ddd;
}

.mud-table-pagination-toolbar {
  border-top: 0;
}

.mud-table-root .mud-table-empty-row {
  border-left: 1px solid #ddd;
}

table,
.mud-table-root {
  text-align: left;
}

.mud-table-root .mud-table-head .mud-table-cell {
  font-weight: bold;
  color: #666;
  text-align: center;
  font-size: 14px;
}

.mud-table-root .mud-table-body .mud-table-cell {
  color: #666;
  text-align: center;
}

.mud-table-sort-label:hover {
  color: #666;
}

.table,
.mud-table-root {
  width: 100%;
  border-collapse: collapse;
}

.table.wd-auto {
  table-layout: auto;
  width: auto;
  white-space: nowrap;
}

.mud-table-dense * .mud-table-row .mud-table-cell,
.table thead tr th,
.table tbody tr td {
  position: relative;
  padding: 7px 12px;
  word-break: break-all;
  font-size: 14px;
}

.mud-table-root thead tr th,
.mud-table-root tbody tr td,
.table.table-sm thead tr th,
.table.table-sm tbody tr td {
  height: 38px;
  font-size: 14px;
}

.mud-table-root thead tr th,
.table thead tr th {
  font-size: 13px !important;
}

.table.table-md thead tr th,
.table.table-md tbody tr td {
  height: 42px;
}

.table.table-lg thead tr th,
.table.table-lg tbody tr td {
  height: 46px;
}

.table.table-basic tr {
  border-bottom: 1px solid #ddd;
}

table.table.table-hover tbody tr:hover {
  background-color: rgba(33, 133, 208, 0.1);
}

.mud-table-root,
.table.table-bordered {
  border-radius: 2px;
  border-collapse: separate;
  border-spacing: 0;
  border-bottom: 1px solid #e2e2e2;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.mud-table-root th,
.mud-table-root td,
.table.table-bordered th,
.table.table-bordered td {
  border-top: 1px solid #e2e2e2;
  vertical-align: middle;
}

.mud-table-root tr,
.table.table-bordered thead tr,
.table.table-bordered tbody tr {
  border-top: 1px solid #e2e2e2;
}

.mud-table-root thead tr th,
.mud-table-root tbody tr td,
.table.table-bordered thead tr th,
.table.table-bordered tbody tr td {
  border-left: 1px solid #e2e2e2;
}

.table.table-bordered thead tr th:last-child,
.table.table-bordered tbody tr td:last-child {
  border-right: 1px solid #e2e2e2;
}

/* Fix double border issue with rowspan by ensuring proper border collapse */
.table.table-bordered {
  border-collapse: collapse;
}

/* Remove redundant borders for cells with rowspan to prevent double borders */
.table.table-bordered tbody tr td[rowspan] {
  border-right: 1px solid #e2e2e2;
}

/* Ensure proper left border for cells adjacent to rowspan cells */
.table.table-bordered tbody tr td[rowspan] + td {
  border-left: none;
}

.table.table-bordered thead + tbody tr:first-child td {
  border-top-color: #ddd;
}

.table.table-striped tbody tr:nth-child(2n + 1) {
  background-color: #fafafa;
}

.mud-table-root,
.table.table-bordered.table-bortop {
  border-top: 1.5px solid var(--mud-palette-warning);
  color: #666;
}

table.table.table-bortop thead tr,
table.table.table-bortop thead tr th {
  border-top: none;
}

.table tr.active,
.table tr td.active {
  background-color: #f6f6f6 !important;
  color: inherit !important;
}

.table tr.success,
.table tr td.success {
  background-color: #ebfbee !important;
  color: inherit !important;
}

.table tr.danger,
.table tr td.danger {
  background-color: #ffe3e3 !important;
  color: inherit !important;
}

.table tr.warning,
.table tr td.warning {
  background-color: #fff9db !important;
  color: inherit !important;
}

.table tr.info,
.table tr td.info {
  background-color: #e3fafc !important;
  color: inherit !important;
}

.h-line {
  position: relative;
  /* border-bottom: 1px dashed var(--mud-palette-lines-inputs);*/
  width: 100%;
  height: 1px;
}

.h-line::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: repeating-linear-gradient(90deg, #ccc, #ccc 5px, transparent 5px, transparent 10px);
}

.flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-item {
  flex: 1;
}

.title {
  font-size: 16px;
}

.title-sm {
  font-size: 14px;
  font-weight: 600;
}

/******mudblazor******/
.mud-list-item-icon {
  min-width: auto;
}

.mud-list-item-text > p {
  font-size: 14px;
}

.mud-list-item-text {
  margin-left: 0;
  margin-right: 0;
}

.mud-list-item-icon + * {
  margin-left: 6px;
}

@media (min-width: 600px) {
  .mud-toolbar-gutters {
    padding-left: 3px;
    padding-right: 3px;
  }
}

.mud-button {
  min-width: 80px;
}

.mud-button,
.mud-button .mud-button-label {
  text-transform: none;
}

.mud-button-filled,
.mud-button-filled :hover {
  box-shadow: none !important;
}

.mud-list-item-clickable,
.mud-list-item.mud-list-item-dense {
  padding: 3px 15px;
}

.mud-list-item-clickable:hover {
  background-color: rgba(76, 174, 76, 0.08);
  color: var(--mud-palette-success);
  border-radius: 5px;
}

.mud-list-item-clickable.active {
  background-color: var(--mud-palette-success);
  border-radius: 5px;
  color: #fff;
}

.mud-list-item-clickable:hover .mud-list-item-icon {
  color: var(--mud-palette-success);
}

.mud-list-item-clickable + .mud-list-item-clickable {
  margin-top: 6px;
}

.mud-popover.mud-popover-open {
  box-shadow: 0 0.25rem 1rem rgba(165, 163, 174, 0.45);
  border-radius: 6px;
}

.dark .mud-popover.mud-popover-open {
  box-shadow: 0 0.25rem 1rem rgba(15, 20, 34, 0.55);
}

.mud-drawer-header.mud-drawer-header-dense,
.mud-drawer-header {
  padding-left: 0;
  padding-right: 0;
  padding-top: 0;
  justify-content: center;
}

.mud-list.mud-list-padding {
  padding: 12px 6px;
}

.mud-nav-link {
  padding: 6px 15px;
}

.mud-nav-link .mud-nav-link-text {
  margin-left: 0;
}

.mud-nav-group * .mud-navmenu .mud-nav-item .mud-nav-link {
  padding-left: 27px;
  font-size: 13px;
}

.mud-ripple:after {
  display: none;
  /*disable button click effects*/
}

.appbar button:hover {
  background-color: transparent;
}

.mud-nav-link:focus:not(.mud-nav-link-disabled) {
  background-color: initial;
}

.mud-input-control {
  margin-top: 0;
}

.mud-navmenu.mud-navmenu-primary .mud-nav-link {
  transition: none;
}

.mud-navmenu.mud-navmenu-primary .mud-nav-link.active:not(.mud-nav-link-disabled) {
  color: #fff;
  background-color: var(--mud-palette-success) !important;
}

.mud-navmenu.mud-navmenu-primary .mud-nav-link:not(.active):hover {
  color: #fff;
}

.mud-navmenu.mud-navmenu-primary .mud-nav-link-expand-icon.mud-transform {
  fill: var(--mud-palette-success);
}

.mud-drawer-header.mud-drawer-header-dense {
  margin-left: -9px;
}

.mud-picker[showtoolbar="false"] {
  margin-top: 0;
}

.mud-picker[showtoolbar="false"] .mud-picker-container .mud-toolbar {
  display: none;
}

.mud-input > input.mud-input-root-outlined,
div.mud-input-slot.mud-input-root-outlined {
  padding: 11px 9px !important;
}

.mud-input > input.mud-input-root-outlined.mud-input-root-adorned-end,
div.mud-input-slot.mud-input-root-outlined.mud-input-root-adorned-end {
  /*        padding-right: 0;
        padding-inline-end: 0;*/
  padding-inline-start: 9px;
}

.mud-input.mud-input-outlined.mud-input-adorned-end {
  padding-right: 3px;
}

.mud-icon-button {
  padding: 0 15px 0 6px;
}

.mud-icon-root {
  width: 20px;
  height: 20px;
}

@media (hover: hover) and (pointer: fine) {
  .mud-icon-button:hover {
    background-color: transparent;
  }
}

.mud-input > input.mud-input-root,
div.mud-input-slot.mud-input-root {
  font-size: 14px;
}

.mud-input-adornment-end {
  margin-inline-start: 0;
  margin-left: 0;
}

.mud-primary-hover {
  background-color: var(--mud-palette-success) !important;
  border-radius: 5px;
  color: #fff !important;
}

.mud-input.mud-input-outlined:focus-within .mud-input-outlined-border {
  border-color: var(--mud-palette-success);
}

.mud-input:focus-within ~ label.mud-input-label.mud-input-label-inputcontrol {
  color: var(--mud-palette-success);
}

button.mud-theme-primary {
  color: var(--mud-palette-success-text) !important;
  background-color: var(--mud-palette-success) !important;
}

div.mud-list-item-clickable {
  transition: none;
}

.btn-prev-next .mud-icon-root {
  width: 28px;
  height: 28px;
  opacity: 0.6;
}

.btn-prev-next:disabled {
  opacity: 0.4;
  cursor: default;
}

.btn-prev-next:hover:not(:disabled) .mud-icon-root {
  opacity: 0.8;
}

.grouped-table {
  border-bottom: 1px solid #ddd;
}

.mud-table-cell-custom-group {
  font-weight: 500;
}

.mud-dialog-actions .mud-button-filled-size-medium > .mud-button-label {
  align-items: center;
  align-content: center;
  display: flex;
  position: relative;
  top: 2px;
}

.mud-input-control .mud-icon-button-edge-margin-end {
  margin-right: 0;
  margin-inline-end: 0;
  padding-right: 9px;
}

.mud-dialog .mud-dialog-content {
  padding: 9px 15px;
}

.mud-dialog .mud-dialog-title {
  padding: 10px 12px;
  font-size: 17px;
  font-weight: 500;
  border-bottom: 1px solid #ddd;
}

.mud-dialog .mud-dialog-title > * {
  font-size: 17px;
}

.mud-dialog .mud-dialog-actions {
  padding-bottom: 12px;
}

.mud-switch-thumb-medium {
  position: relative;
  top: -1px;
}

.mud-grid-spacing-xs-3 > .mud-grid-item {
  padding: 0 12px;
}

.mud-input-control .mud-switch-label-medium {
  font-size: 14px !important;
}

.user-role-switch .mud-switch-label-medium {
  font-size: 16px !important;
}

.mud-button-filled.mud-button-filled-primary,
.mud-button-filled.mud-button-filled-primary:hover {
  background-color: var(--mud-palette-success);
}

.mud-icon-button-size-small svg {
  width: 1rem;
}

.modal-close {
  padding-right: 0;
  transform: scale(1.2);
}

.modal-close svg {
  transition: all ease 0.2s;
}

.modal-close:hover {
  color: var(--danger);
}

.modal-close:hover svg {
  transform: rotate(90deg);
}

.red-1 {
  color: var(--red-1) !important;
}

.red-2 {
  color: var(--red-2) !important;
}

.red-3 {
  color: var(--red-3) !important;
}

.bg-red-1 {
  background-color: var(--red-1) !important;
}

.bg-red-2 {
  background-color: var(--red-2) !important;
}

.bg-red-3 {
  background-color: var(--red-3) !important;
}

.green-1 {
  color: var(--green-1) !important;
}

.green-2 {
  color: var(--green-2) !important;
}

.green-3 {
  color: var(--green-3) !important;
}

.bg-green-1 {
  background-color: var(--green-1) !important;
}

.bg-green-2 {
  background-color: var(--green-2) !important;
}

.bg-green-3 {
  background-color: var(--green-3) !important;
}

.orange-1 {
  color: var(--orange-1) !important;
}

.orange-2 {
  color: var(--orange-2) !important;
}

.orange-3 {
  color: var(--orange-3) !important;
}

.bg-orange-1 {
  background-color: var(--orange-1) !important;
}

.bg-orange-2 {
  background-color: var(--orange-2) !important;
}

.bg-orange-3 {
  background-color: var(--orange-3) !important;
}

.success,
.text-success {
  color: var(--mud-palette-success-text) !important;
}

.bg-success {
  background-color: var(--mud-palette-success) !important;
}

.warning,
.text-warning {
  color: var(--warning) !important;
}

.bg-warning {
  background-color: var(--warning) !important;
}

.error,
.text-error {
  color: var(--danger) !important;
}

.bg-error {
  background-color: var(--danger) !important;
}

.info,
.text-info {
  color: var(--info) !important;
}

.bg-info {
  background-color: var(--info) !important;
}

.op-0 {
  opacity: 0;
}

.op-1 {
  opacity: 1;
}

.op-0d2 {
  opacity: 0.2;
}

.op-0d4 {
  opacity: 0.4;
}

.op-0d6 {
  opacity: 0.6;
}

.op-0d8 {
  opacity: 0.8;
}

.of-auto {
  overflow: auto;
}

.of-hidden {
  overflow: hidden;
}

.of-x-auto {
  overflow-x: auto;
}

.of-y-auto {
  overflow-y: auto;
}

.of-x-hidden {
  overflow-x: hidden;
}

.of-y-hidden {
  overflow-y: hidden;
}
