html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

main {
    flex: 1 0 auto;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.hero {
    padding-top: 5rem !important;
    padding-bottom: 4rem !important;
}

    .hero h1 {
        letter-spacing: -2px;
    }

.tool-card {
    color: inherit;
    text-decoration: none;
}

    .tool-card .card {
        transition: transform .15s ease, box-shadow .15s ease;
        border: 1px solid #e6e8eb;
    }

    .tool-card:hover .card {
        transform: translateY(-3px);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .10) !important;
    }

.tool-icon {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 1rem;
    min-height: 42px;
}

.tool-disabled {
    border: 1px solid #e6e8eb;
    opacity: .65;
}

.footer {
    position: static !important;
    bottom: auto !important;
    flex-shrink: 0;
    width: 100%;
    background-color: #fff;
    line-height: normal;
    white-space: normal;
}

.footer .container {
    white-space: normal;
}

.footer .small {
    line-height: 1.6;
}
.result-box {
    padding: 1.25rem;
    background: #f8f9fa;
    border: 1px solid #e6e8eb;
    border-radius: .5rem;
}
.qr-preview {
    display: inline-flex;
    padding: 1rem;
    background: #fff;
    border: 1px solid #e6e8eb;
    border-radius: .75rem;
}

    .qr-preview img,
    .qr-preview canvas {
        display: block;
        max-width: 100%;
        height: auto;
    }
.json-editor {
    min-height: 340px;
    resize: vertical;
    tab-size: 2;
    line-height: 1.5;
}
.data-editor {
    min-height: 380px;
    resize: vertical;
    tab-size: 2;
    line-height: 1.5;
}

/* Generatore preventivo */
@media print {
    header,
    footer,
    .no-print,
    .navbar,
    .alert,
    body > .container > .pb-3 > .container > .no-print {
        display: none !important;
    }

    body {
        background: #fff !important;
    }

    main {
        padding: 0 !important;
        margin: 0 !important;
    }

    #preventivo {
        border: 0 !important;
        box-shadow: none !important;
    }

    #preventivo .card-body {
        padding: 0 !important;
    }

    #preventivo input,
    #preventivo textarea,
    #preventivo select {
        border: 0 !important;
        box-shadow: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        background: transparent !important;
        color: #000 !important;
        appearance: none;
    }

    #preventivo textarea {
        resize: none;
    }

    #righeTable {
        page-break-inside: auto;
    }

    #righeTable tr {
        page-break-inside: avoid;
    }
}
