body,
html {
    font-family: ui-sans-serif, system-ui, sans-serif,
        "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif !important;
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100%;
    width: 100%;
}

/* PunchOut Frontend */

.po-button {
    background-color: #00A7E9;
    border: none;
    border-radius: 12px;
    color: white;
    padding: 12px 32px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
}

.po-button:hover {
    background-color: #0077B5;
}

.text-white:hover {
    color: white;
}

.intacct-button {
    background-color: #0aac31;
    border: none;
    border-radius: 12px;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
}

.intacct-button:hover {
    background-color: #088326;
}

/* End PO FE */

/* Wrapper to position the arrow */
.custom-select-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px; /* or whatever your form width is */
    margin: 0 auto;   /* center if you like */
}

/* The styled select box */
.custom-select {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    padding-right: 2.5rem;        /* space for the arrow */
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='12'%20height='12'%20fill='none'%20stroke='%23666'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpolyline%20points='2%204%206%208%2010%204'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px 12px;
}

/* Focus state */
.custom-select:focus {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.3);
    outline: none;
}

/* Custom Loading Animation Styles */
.card-wrapper {
    position: relative;
    width: 100%;
    max-width: 28rem;
    margin: 1rem;
}

/* Supplier Logo Styles */
.supplier-logo {
    max-width: 200px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.card-wrapper::before {
    content: "";
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    z-index: 1;
    background: linear-gradient(45deg,
        rgba(59, 130, 246, 0.8),
        rgba(34, 197, 94, 0.8),
        rgba(0, 167, 233, 0.8),
        rgba(59, 130, 246, 0.8));
    background-size: 400% 400%;
    border-radius: 1rem;
    animation: gradient-animation 4s linear infinite;
}

@keyframes gradient-animation {
    0% {
        background-position: 0% 0%;
    }

    25% {
        background-position: 100% 0%;
    }

    50% {
        background-position: 100% 100%;
    }

    75% {
        background-position: 0% 100%;
    }

    100% {
        background-position: 0% 0%;
    }
}

.border-pulse {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 1rem;
    opacity: 0;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.3);
    animation: border-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    z-index: 0;
}

.border-pulse:nth-child(2) {
    animation-delay: 0.5s;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.3);
}

.border-pulse:nth-child(3) {
    animation-delay: 1s;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.3);
}

@keyframes border-pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.05);
        opacity: 0;
    }
}

.card-content {
    background-color: white;
    border-radius: 0.75rem;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

/* Status Indicators */
.status-dots {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    justify-content: center;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #E5E7EB;
    transition: background-color 0.3s ease;
}

.status-dot.active {
    background-color: #00A7E9;
    animation: fade-in-out 1.5s ease infinite;
}

.status-dot.active:nth-child(2) {
    animation-delay: 0.3s;
}

.status-dot.active:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes fade-in-out {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Used CSS from TW */

.flex {
    display: flex;
}

.text-center {
    text-align: center;
}

.justify-center {
    justify-content: center;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-5 {
    margin-top: 1.25rem;
}

.mt-10 {
    margin-top: 2.5rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.h-auto {
    height: auto;
}

.w-96 {
    width: 24rem;
}

.p-10 {
    padding: 2.5rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.font-semibold {
    font-weight: 600;
}

/* Text alignment and sizing */
.text-center {
    text-align: center;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

/* Margins */
.mt-10 {
    margin-top: 2.5rem;
}

.mt-5 {
    margin-top: 1.25rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

/* Centering */
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Widths and heights */
.w-96 {
    width: 24rem;
}

.h-auto {
    height: auto;
}

.w-1\/2 {
    width: 50%;
}

/* Flexbox utilities */
.flex {
    display: flex;
}

.justify-center {
    justify-content: center;
}

.items-center {
    align-items: center;
}

.space-x-8>*:not(:first-child) {
    margin-left: 2rem;
}

.space-x-2>*:not(:first-child) {
    margin-left: 0.5rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

/* Animation */
.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Rounding */
.rounded-full {
    border-radius: 50%;
}

.rounded-l {
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

/* Sizes for spinner */
.h-6 {
    height: 1.5rem;
}

.w-6 {
    width: 1.5rem;
}

/* Borders */
.border-t-2 {
    border-top-width: 2px;
}

.border-b-2 {
    border-bottom-width: 2px;
}

.border {
    border: 1px solid #ccc;
}

.border-blue-500 {
    border-color: #3B82F6;
}

/* Padding */
.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Background and text colors */
.bg-blue-500 {
    background-color: #3B82F6;
    color: white;
}

.bg-blue-700 {
    background-color: #1D4ED8;
    color: white;
}

.bg-green-500 {
    background-color: #22C55E;
    color: white;
}

.bg-green-700 {
    background-color: #15803D;
    color: white;
}

.bg-yellow-200 {
    background-color: oklch(0.945 0.129 101.54);
}

.text-white {
    color: white;
}

.text-black {
    color: black;
}

.text-green-500 {
    color: #22C55E;
}

.text-green-600 {
    color: #16A34A;
}

/* Hover effects */
.hover\:bg-blue-700:hover {
    background-color: #1D4ED8;
}

.hover\:bg-green-600:hover {
    background-color: #16A34A;
}

.hover\:bg-green-700:hover {
    background-color: #15803D;
}

.hover\:text-white:hover {
    color: white;
}

/* END */

.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,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sb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S43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

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

.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: #1b6ec2;
    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, "Loading");
}

code {
    color: #c02d76;
}

/* Additional CSS classes for the redesigned Redirect page */
.min-h-screen {
    min-height: 100vh;
}

.bg-gray-50 {
    background-color: #F9FAFB;
}

.bg-gray-100 {
    background-color: #F3F4F6;
}

.bg-gray-200 {
    background-color: #E5E7EB;
}

.bg-gray-700 {
    background-color: #374151;
}

.bg-gray-800 {
    background-color: #1F2937;
}

.bg-white {
    background-color: #FFFFFF;
}

.text-gray-600 {
    color: #4B5563;
}

.text-gray-700 {
    color: #374151;
}

.text-gray-800 {
    color: #1F2937;
}

.text-red-500 {
    color: #EF4444;
}

.text-yellow-500 {
    color: #F59E0B;
}

.text-blue-500 {
    color: #3B82F6;
}

.text-blue-600 {
    color: #2563EB;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.font-medium {
    font-weight: 500;
}

.font-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.shadow {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.p-4 {
    padding: 1rem;
}

.p-8 {
    padding: 2rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.pt-2 {
    padding-top: 0.5rem;
}

.pt-6 {
    padding-top: 1.5rem;
}

.pb-2 {
    padding-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.h-2 {
    height: 0.5rem;
}

.h-12 {
    height: 3rem;
}

.h-24 {
    height: 6rem;
}

.w-6 {
    width: 1.5rem;
}

.w-10 {
    width: 2.5rem;
}

.w-12 {
    width: 3rem;
}

.w-auto {
    width: auto;
}

.w-full {
    width: 100%;
}

.max-w-md {
    max-width: 28rem;
}

.grid {
    display: grid;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gap-2 {
    gap: 0.5rem;
}

.col-span-2 {
    grid-column: span 2 / span 2;
}

.top-0 {
    top: 0;
}

.left-0 {
    left: 0;
}

.right-0 {
    right: 0;
}

.bottom-0 {
    bottom: 0;
}

.fixed {
    position: fixed;
}

.absolute {
    position: absolute;
}

.relative {
    position: relative;
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-300 {
    transition-duration: 300ms;
}

.overflow-hidden {
    overflow: hidden;
}

.cursor-pointer {
    cursor: pointer;
}

.text-left {
    text-align: left;
}

.inline-block {
    display: inline-block;
}

.flex-col {
    flex-direction: column;
}

.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.focus\:ring-2:focus {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.focus\:ring-blue-500:focus {
    --tw-ring-color: #3B82F6;
}

.focus\:ring-opacity-50:focus {
    --tw-ring-opacity: 0.5;
}

.border-t {
    border-top-width: 1px;
}

.border-gray-100 {
    border-color: #F3F4F6;
}

.border-gray-700 {
    border-color: #374151;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* END */