/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #1e293b;
    /* border */
    border-radius: 4px;
}

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

/* Custom selects */
.custom-select-ccy {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0 center;
    background-repeat: no-repeat;
    background-size: 1em 1em;
    padding-right: 1.25rem;
}

.custom-select-status {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23A78BFA' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0 center;
    background-repeat: no-repeat;
    background-size: 1.25em 1.25em;
    padding-right: 1.5rem;
}

/* Remove spin buttons from number inputs */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

/* Item row interaction */
.item-row:hover .item-del-btn {
    opacity: 1;
}

/* Print Override Logic */
@media print {
    @page {
        margin: 0;
        size: auto;
    }

    body {
        background: #ffffff !important;
        color: #000000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        height: auto;
        overflow: visible;
    }

    /* Hide UI Elements */
    #sidebar,
    header,
    .custom-scrollbar::-webkit-scrollbar,
    .btn,
    button,
    .lucide {
        display: none !important;
    }

    .builder-container {
        display: block !important;
        overflow: visible !important;
    }

    #main-scroll {
        overflow: visible !important;
        padding: 0 !important;
        margin: 0 !important;
        height: auto !important;
    }

    .doc-container {
        max-width: 100% !important;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Prevent empty space if no logo */
    .print-hide-empty {
        border: none !important;
    }

    .print-hide-empty:not(.has-image) {
        display: none !important;
    }

    /* Override input borders */
    input,
    textarea {
        border: none !important;
        resize: none !important;
    }

    /* Force ink colors */
    .text-ocean-400,
    .text-ocean-500,
    .text-accent {
        color: #000000 !important;
    }
}