/*
	This CSS file matches the color scheme from MudBlazor to Bootstrap when utilized for authentication.
	The file remains available at all times for demonstration purposes,
	but it is exclusively employed in the 'App.razor' component when authentication is enabled.
*/

.btn-primary {
  text-transform: uppercase;
  --bs-btn-bg: var(--mud-palette-primary) !important;
  --bs-btn-hover-bg: var(--mud-palette-primary-darken) !important;
}

.nav-pills {
  --bs-nav-pills-link-active-bg: var(--mud-palette-primary) !important;
}

.nav {
  --bs-nav-link-color: var(--mud-palette-primary) !important;
  --bs-nav-link-hover-color: var(--mud-palette-primary-darken) !important;
}

.inactive-component-page {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.9) 0%, #ffffff 65%);
}

.inactive-component-summary {
  background: linear-gradient(
    140deg,
    rgba(26, 93, 98, 0.12),
    rgba(15, 118, 110, 0.04)
  );
  border-radius: 20px;
  min-height: 100%;
}

.inactive-component-summary .inactive-component-description {
  color: rgba(15, 42, 71, 0.82);
}

.inactive-component-pdf {
  border-radius: 20px;
  overflow: hidden;
  background-color: #ffffff;
}

.inactive-component-pdf-frame {
  background: radial-gradient(
    circle at top,
    rgba(26, 93, 98, 0.08),
    rgba(248, 250, 252, 0.6)
  );
}

.inactive-component-pdf-frame iframe {
  display: block;
  filter: drop-shadow(0 18px 32px rgba(15, 42, 71, 0.12));
}
.main-appbar.mud-appbar {
  box-shadow: none;
  border-bottom: none;
}
.schedule-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 20px;
  border: 1px solid rgba(15, 42, 71, 0.12);
  background-color: var(--mud-palette-surface);
  padding: 0.35rem 1.1rem;
  box-shadow: 0 8px 18px rgba(15, 42, 71, 0.12);
  min-height: 42px;
}
.schedule-chip--inline {
  margin: 0;
}
.schedule-chip__content {
  flex-wrap: wrap;
  gap: 1rem;
}
.schedule-chip__primary {
  padding-right: 0.25rem;
}
.schedule-chip__label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mud-palette-text-disabled);
}
.schedule-chip__value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--mud-palette-primary);
}
.schedule-chip__meta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mud-palette-text-secondary);
}
.schedule-chip__divider {
  height: 2.5rem;
  --mud-palette-lines-default: rgba(255, 255, 255, 0.4);
  opacity: 0.35;
}
.schedule-chip__status {
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.schedule-chip__inactive {
  color: var(--mud-palette-text-secondary);
}
.schedule-chip__inactive-icon {
  color: var(--mud-palette-warning);
}
.page-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: flex-end;
  column-gap: 1rem;
}
.page-header-chip {
  display: flex;
  justify-self: center;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 0.5rem;
}
.page-header-actions {
  gap: 0.75rem !important;
  flex-wrap: nowrap;
  justify-self: end;
  justify-content: flex-end;
  align-items: center;
}
.mud-tooltip.vendor-invoice-document-tooltip {
  padding: 0;
  max-width: 520px;
}

.mud-tooltip-root.vendor-invoice-row-tooltip {
  display: contents;
}

.vendor-invoice-tooltip-content {
  width: 420px;
  max-width: 70vw;
}

.vendor-invoice-tooltip-frame {
  width: 100%;
  height: 360px;
  border: none;
}

.vendor-invoice-tooltip-loading {
  min-width: 220px;
}

.vendor-invoice-tooltip-message {
  max-width: 320px;
  text-align: center;
}

.vendor-invoice-table-presence {
  position: relative;
}

.vendor-invoice-row-tooltip-target {
  display: contents;
}

.vendor-invoice-document-popover-anchor {
  position: fixed;
  z-index: 20;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.vendor-invoice-document-popover {
  pointer-events: none;
  max-width: 420px;
}

.vendor-invoice-document-popover-floating {
  position: fixed;
  z-index: 25;
}

.realtime-cursor-host {
  position: relative;
  min-height: 100%;
}

.realtime-cursor-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1300;
}

.realtime-cursor-indicator {
  position: absolute;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  transform: translate(-6px, -6px);
  color: var(--cursor-color, #2563eb);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.realtime-cursor-indicator__icon {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--cursor-color, #2563eb);
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 6px rgba(15, 42, 71, 0.3);
}

.realtime-cursor-indicator__label {
  padding: 0.05rem 0.35rem;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(15, 42, 71, 0.4);
}
