/* Panel Schedule Print Styles (Browser Print Backup) */

/* --- PRINT MEDIA (Ctrl+P) --- */
@media print {
    @page {
        size: landscape;
        margin: 1cm;
    }

    body {
        background-color: white !important;
        color: black !important;
    }

    /* Hide UI elements */
    body>*:not(#root),
    #root>*:not(.print\:p-0) {
        display: none !important;
    }

    /* Reset container */
    .print\:p-0 {
        display: block !important;
        padding: 0 !important;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        margin: 0;
        background-color: white !important;
    }

    /* Force visibility of print-only elements */
    .print\:block {
        display: block !important;
    }

    .print\:hidden {
        display: none !important;
    }

    /* Themes Reset */
    .bg-industrial-900,
    .bg-industrial-800,
    .bg-industrial-700 {
        background-color: white !important;
        color: black !important;
        border-color: black !important;
    }

    .text-white,
    .text-industrial-300,
    .text-industrial-400 {
        color: black !important;
    }

    .border-industrial-600,
    .border-industrial-700 {
        border-color: black !important;
    }
}

/* --- EXPORT THEME (.print-theme class applied during html2canvas) --- */

.print-theme {
    background-color: white !important;
    color: black !important;
    border: none !important;
}

.print-theme h2,
.print-theme h3,
.print-theme h4,
.print-theme p,
.print-theme span,
.print-theme div {
    color: black !important;
    border-color: black !important;
}

/* Background Overrides */
.print-theme .bg-industrial-900,
.print-theme .bg-industrial-800,
.print-theme .bg-industrial-700,
.print-theme .bg-industrial-600 {
    background-color: white !important;
    color: black !important;
    border-color: black !important;
}

/* Text Overrides */
.print-theme .text-white,
.print-theme .text-industrial-100,
.print-theme .text-industrial-300,
.print-theme .text-industrial-400,
.print-theme .text-industrial-500 {
    color: black !important;
}

/* Border Overrides */
.print-theme .border-industrial-600,
.print-theme .border-industrial-700,
.print-theme .border-industrial-800 {
    border-color: black !important;
}

/* Button & Icon Hiding in Export */
.print-theme button,
.print-theme .print-theme\:hidden {
    display: none !important;
}

/* Watermark & Notes Visibility */
.print-theme .print-theme\:block {
    display: block !important;
}

/* Specific Component Fixes */
.print-theme .rounded-lg,
.print-theme .rounded-xl {
    border-radius: 0 !important;
    /* Cleaner look for paper */
    box-shadow: none !important;
}

/* --- BRAINTREE DROP-IN DARK MODE OVERRIDES --- */
.braintree-sheet,
.braintree-option,
.braintree-method {
    background-color: #1a1d21 !important;
    border-color: #323842 !important;
    color: #f0f3fa !important;
}

.braintree-heading {
    color: #f0f3fa !important;
}

.braintree-method__label,
.braintree-option__label,
.braintree-form__label,
.braintree-large-button {
    color: #c5cbe0 !important;
}

.braintree-method__sub-label,
.braintree-option__sub-label {
    color: #6e7687 !important;
}

.braintree-sheet__content--form,
.braintree-form__hosted-field {
    background-color: #262a33 !important;
    border-color: #323842 !important;
    color: white !important;
}

.braintree-method:hover,
.braintree-option:hover {
    background-color: #2a2f3a !important;
    border-color: #3b82f6 !important;
}

.braintree-method--active,
.braintree-option--active {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 1px #3b82f6 !important;
}

.braintree-toggle {
    background-color: #323842 !important;
    color: #c5cbe0 !important;
}

.braintree-toggle:hover {
    background-color: #454c59 !important;
    color: white !important;
}

.braintree-form__notice-of-collection {
    color: #6e7687 !important;
}