html {
    width: 100%;
    margin: 0;
    padding: 0;
    scrollbar-gutter: stable;
}

body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    scrollbar-gutter: stable;
    background-color: #FFFBF0;
    background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%231a1a1a' fill-opacity='0.03' fill-rule='evenodd'%3E%3Cpath d='M5 0h1v1H5V0zM0 5h1v1H0V5z'/%3E%3C/g%3E%3C/svg%3E");
    -webkit-tap-highlight-color: transparent;
}


.text-outline {
    -webkit-text-stroke: 1px #1a1a1a;
}

.text-outline-white {
    -webkit-text-stroke: 2px #FFFBF0;
}

.text-outline-black {
    -webkit-text-stroke: 2px #1a1a1a;
}

/* Animation Delays */
.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

.delay-400 {
    animation-delay: 400ms;
}

.delay-500 {
    animation-delay: 500ms;
}

.delay-600 {
    animation-delay: 600ms;
}

.delay-700 {
    animation-delay: 700ms;
}

.delay-800 {
    animation-delay: 800ms;
}

.delay-1000 {
    animation-delay: 1000ms;
}

/* Hide scrollbar for clean look in specific containers, or globally if desired. 
   Maintaining .hide-scroll for specific usage, adding global scrollbar styling from index2 */

/* Custom retro scrollbar */
* {
    scrollbar-color: #1A3C8A #FFFBF0;
    scrollbar-width: thin;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #FFFBF0;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: #1A3C8A;
    border: 2px solid #FFFBF0;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #F05423;
}

.hide-scroll::-webkit-scrollbar {
    display: none;
}

.hide-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Dedicated visible thin scrollbar for scrollable lists */
.custom-scrollbar {
    -ms-overflow-style: auto;
    scrollbar-width: thin;
    scrollbar-color: #1A3C8A #f1f5f9;
}

.custom-scrollbar::-webkit-scrollbar {
    display: block;
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 9999px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #1A3C8A;
    border-radius: 9999px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #F05423;
}

@media (max-width: 768px) {
    .custom-scrollbar {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .custom-scrollbar::-webkit-scrollbar {
        display: none;
    }
}

/* Smooth Height Transition for Form Fields */
.expand-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease-out, opacity 0.3s ease-out, visibility 0.3s ease-out;
    opacity: 0;
    overflow: hidden;
}

.expand-wrapper:not(.open) {
    visibility: hidden;
}

.expand-wrapper.open {
    grid-template-rows: 1fr;
    opacity: 1;
    visibility: visible;
}

.expand-wrapper > * {
    min-height: 0;
}

.expand-inner {
    overflow: hidden;
    min-height: 0;
}

@media (hover: hover) {
    .group:hover .order-id-hover {
        color: #F05423;
    }
}