/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-akf8sshu7n],
.components-reconnect-repeated-attempt-visible[b-akf8sshu7n],
.components-reconnect-failed-visible[b-akf8sshu7n],
.components-pause-visible[b-akf8sshu7n],
.components-resume-failed-visible[b-akf8sshu7n],
.components-rejoining-animation[b-akf8sshu7n] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-akf8sshu7n],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-akf8sshu7n],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-akf8sshu7n],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-akf8sshu7n],
#components-reconnect-modal.components-reconnect-retrying[b-akf8sshu7n],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-akf8sshu7n],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-akf8sshu7n],
#components-reconnect-modal.components-reconnect-failed[b-akf8sshu7n],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-akf8sshu7n] {
    display: block;
}

#components-reconnect-modal[b-akf8sshu7n] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-akf8sshu7n 0.5s both;
}

#components-reconnect-modal[open][b-akf8sshu7n] {
    animation: components-reconnect-modal-slideUp-b-akf8sshu7n 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-akf8sshu7n 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

#components-reconnect-modal[b-akf8sshu7n]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-akf8sshu7n 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-akf8sshu7n {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-akf8sshu7n {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-akf8sshu7n {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-akf8sshu7n] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-akf8sshu7n] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-akf8sshu7n] {
    border: 0;
    background-color: #69badd;
    color: white;
    padding: 0.4rem 1.5rem;
    border-radius: 0.4rem;
    font-weight: 600;
}

#components-reconnect-modal button:hover[b-akf8sshu7n] {
    background-color: #4fa8d1;
}

#components-reconnect-modal button:active[b-akf8sshu7n] {
    background-color: #69badd;
}

.components-rejoining-animation[b-akf8sshu7n] {
    position: relative;
    width: 80px;
    height: 80px;
}

.components-rejoining-animation div[b-akf8sshu7n] {
    position: absolute;
    border: 3px solid #69badd;
    opacity: 1;
    border-radius: 50%;
    animation: components-rejoining-animation-b-akf8sshu7n 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.components-rejoining-animation div:nth-child(2)[b-akf8sshu7n] {
    animation-delay: -0.5s;
}

@keyframes components-rejoining-animation-b-akf8sshu7n {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0;
        left: 0;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Settings/AddKsefCertificateModal.razor.rz.scp.css */
.ksef-passphrase-input[b-o19kkr4x1v]::-ms-reveal,
.ksef-passphrase-input[b-o19kkr4x1v]::-ms-clear {
    display: none;
}
/* /Components/Shared/PaymentTermsPreview.razor.rz.scp.css */
/* Hover preview for the "+N" payment-term badge.

   The invoice tables live inside an `overflow-x-auto` wrapper, and CSS collapses
   `overflow-y: visible` to `auto` next to a scrolling axis, so an absolutely
   positioned panel is clipped by (or scrolls) the table container - clearly visible
   on short result sets. Where CSS anchor positioning is available the panel is taken
   out of the scroll container entirely; other browsers keep the absolute fallback,
   which matches how the existing table tooltips already behave. */

.payment-terms-popover[b-0hkwlagmaw] {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  z-index: 50;
}

.payment-terms-popover--end[b-0hkwlagmaw] {
  left: auto;
  right: 0;
}

/* Gate on the placement property, not just `anchor-name`: anchor positioning shipped in
   stages (Chrome 125 had `inset-area`, Safari 18.2 has the anchor primitives but not the
   fall 2025 placement/flip syntax), and a browser that takes the fixed branch without
   understanding `position-area` would drop the panel at its unanchored static position.
   `position-try-fallbacks` is deliberately not gated - losing edge flipping degrades
   gracefully, losing placement does not. */
@supports (anchor-name: --probe) and (position-area: block-end) {
  .payment-terms-popover[b-0hkwlagmaw] {
    position: fixed;
    top: auto;
    left: auto;
    right: auto;
    margin-block-start: 0.5rem;
    position-area: block-end span-inline-end;
    position-try-fallbacks: flip-block, flip-inline, flip-block flip-inline;
  }

  .payment-terms-popover--end[b-0hkwlagmaw] {
    position-area: block-end span-inline-start;
  }
}

/* Pointer hover only - deliberately not `:focus-within`. A click focuses the badge, so a
   focus-driven reveal leaves the panel stuck open over the neighbouring columns after the
   dialog is closed, until the user clicks elsewhere. Keyboard and screen-reader users lose
   nothing: the badge is `aria-describedby` this panel, so its dates are announced without a
   visual reveal, and activating the badge opens the dialog with the full schedule.
   Touch devices have no hover state and get the dialog on tap. */
@media (hover: hover) and (pointer: fine) {
  .payment-terms-anchor:hover > .payment-terms-popover[b-0hkwlagmaw] {
    display: block;
    animation: payment-terms-popover-in-b-0hkwlagmaw 120ms ease-out;
  }
}

@keyframes payment-terms-popover-in-b-0hkwlagmaw {
  from {
    opacity: 0;
    transform: translateY(-0.25rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .payment-terms-anchor:hover > .payment-terms-popover[b-0hkwlagmaw] {
    animation: none;
  }
}
