html, body { height: 100%; }
body {
  margin: 0;
  font-family: Roboto, "Helvetica Neue", sans-serif;
}

.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
}

html.in-iframe .app-header {
  display: none;
}

/* Header */
@media (min-width: 992px) {
  .box-header {
    max-width: 1200px;
  }
}

.box-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-left: auto;
  margin-right: auto;
  padding: 5px 15px;
  width: 100%;
}

.cust-divider {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  margin: 0;
}

/* File upload */
.file-upload-wrapper {
  position: relative;
  display: block;
  width: 100%;
  height: 48px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: white;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0px 2px 1px -1px rgba(0,0,0,0.2), 0px 1px 1px 0px rgba(0,0,0,0.14), 0px 1px 3px 0px rgba(0,0,0,0.12);
}

.file-upload-wrapper:hover {
  border-color: #009EE0;
}

.file-upload-wrapper input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
}

.file-upload-wrapper .fake-input {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 12px;
  font-size: 14px;
  color: #666;
  z-index: 1;
}

.file-upload-wrapper .fake-input-icon {
  margin-right: 8px;
  color: #757575;
}

.field-error {
  font-size: 12px;
  color: #f44336;
  margin-top: 4px;
  display: block;
}

/* Buttons */
.send-button {
  background-color: #009EE0;
  border: 1px solid #009EE0;
  color: #ffffff;
  border-radius: 5px;
  height: 40px;
  width: 100%;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  transition: background-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}

.send-button:hover:not(:disabled) {
  background-color: #007bb8;
  color: #ffffff;
}

.send-button:disabled {
  background-color: #b2dff3;
  border-color: #b2dff3;
  cursor: not-allowed;
  color: #ffffff;
}

.back-button {
  background-color: #009EE0;
  border: 1px solid #009EE0;
  color: #FFFFFF;
  border-radius: 5px;
  height: 40px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  font-weight: 500;
}

.back-button:hover {
  background-color: #007bb8;
  color: #FFFFFF;
}

.row .row-actions button {
  align-items: center;
  border-radius: 5px;
  display: flex;
  height: 40px;
  justify-content: center;
  width: 100%;
}

.row-actions {
  max-width: 400px;
  margin: 0 auto;
}

/* Tables */
.box-table {
  max-height: 50vh;
  overflow-x: auto;
  overflow-y: scroll;
}

.box-table table {
  width: 100%;
}

.box-table::-webkit-scrollbar {
  -webkit-appearance: none;
  width: 7px;
}

.box-table::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background-color: rgba(0, 0, 0, .5);
  box-shadow: 0 0 1px rgba(255, 255, 255, .5);
}

.table-row-header {
  background-color: #409BD6;
}

.table-row-header th {
  color: #FFFFFF;
  font-size: 16px;
  font-weight: bold;
}

.table-row-body:nth-of-type(odd) {
  background-color: rgba(0, 158, 224, 0.1);
}

.error-icon {
  color: #f44336;
}

/* 404 */
.box-error {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  flex-direction: column;
}

.box-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 1.5rem 0;
}

.cust-button {
  align-items: center;
  border-radius: 3px;
  display: flex;
  font-weight: bold;
  height: 48px;
  justify-content: center;
  text-decoration: none;
  text-transform: uppercase;
  width: 306px;
}

.cust-button:hover {
  color: #FFFFFF;
  text-decoration: none;
}

@media (max-width: 599.98px) {
  .cust-button.w-xs-100 {
    width: 100%;
  }
}

/* Loading */
.box-spinner {
  align-items: center;
  flex-direction: column;
  display: flex;
  height: calc(100vh - 220px);
  justify-content: center;
}

.cust-mat-spinner {
  width: 40px;
  height: 40px;
  animation: spinner-rotate 1.4s linear infinite;
}

.cust-mat-spinner circle {
  stroke: #009EE0;
  stroke-dasharray: 80, 200;
  stroke-dashoffset: 0;
  stroke-linecap: round;
  animation: spinner-dash 1.4s ease-in-out infinite;
}

@keyframes spinner-rotate {
  100% { transform: rotate(360deg); }
}

@keyframes spinner-dash {
  0% { stroke-dasharray: 1, 200; stroke-dashoffset: 0; }
  50% { stroke-dasharray: 80, 200; stroke-dashoffset: -35; }
  100% { stroke-dasharray: 80, 200; stroke-dashoffset: -124; }
}

/* Snackbar */
.snackbar-host {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 2000;
  max-width: 90vw;
}

.snackbar {
  color: white !important;
  border-color: #F1EFEB !important;
  min-width: 344px;
  max-width: 672px;
  padding: 14px 16px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 3px 5px -1px rgba(0,0,0,.2), 0 6px 10px 0 rgba(0,0,0,.14), 0 1px 18px 0 rgba(0,0,0,.12);
  font-size: 14px;
}

.snackbar-action {
  background: transparent;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  text-transform: none;
  min-width: auto;
  padding: 0 4px;
}

.success-snackbar { background-color: green; }
.warning-snackbar { background-color: #FFCC00; }
.danger-snackbar { background-color: #DB3907; }

/* Blazor chrome */
#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;
}

.loading-progress {
  position: relative;
  display: block;
  width: 8rem;
  height: 8rem;
  margin: 20vh auto 1rem auto;
}

.loading-progress circle {
  fill: none;
  stroke: #e0e0e0;
  stroke-width: 0.6rem;
  transform-origin: 50% 50%;
  transform: rotate(-90deg);
}

.loading-progress circle:last-child {
  stroke: #009EE0;
  stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
  transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
  position: absolute;
  text-align: center;
  font-weight: bold;
  inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
  content: var(--blazor-load-percentage-text, "Cargando");
}
