.container {
    max-width: 980px;
    margin: 40px auto;
    padding: 0 16px;
    font-family: system-ui, Arial;
}

.muted {
    opacity: .75;
}

.grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card {
    border: 1px solid #e6e6e6;
    border-radius: 14px;
    padding: 18px;
    background: #fff;
    box-shadow: 0 2px 14px rgba(0,0,0,.04);
}

label {
    display: block;
    margin-top: 12px;
    font-weight: 600;
}

input, select {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ddd;
    margin-top: 6px;
}

button {
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 0;
    cursor: pointer;
}

.err {
    color: #b00020;
    font-size: .9rem;
}

.result {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

ul {
    padding-left: 18px;
}
.title-center {
    text-align: center;
    margin-bottom: 18px;
}
.bottom-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    max-width: 980px;
    margin: 28px auto 0; /* centers the section */
    align-items: start;
}

.field-block label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

/* On small screens stack them */
@media (max-width: 700px) {
    .bottom-fields {
        grid-template-columns: 1fr;
    }
}

.floating-actions {
    position: fixed;
    right: 18px;
    bottom: 18px;
    display: flex;
    gap: 10px;
    z-index: 9999;
}

.action-btn {
    border: 0;
    border-radius: 12px;
    padding: 10px 16px;
    font-weight: 700;
    cursor: pointer;
}

.action-print {
    background: #77aee6;
    color: #fff;
}

.action-pdf.enabled {
    background: #fff;
    color: #111;
    border: 1px solid #e6e6e6;
}

@media print {
    .floating-actions {
        display: none !important;
    }
}

.input-textlike {
    display: inline-block;
    min-width: 140px;
    padding: 6px 8px;
    border: 1px solid transparent;
    border-radius: 6px;
}
@media print {
    .floating-actions,
    .no-print {
        display: none !important;
    }

    body * {
        visibility: hidden !important;
    }

    #exportRoot,
    #exportRoot * {
        visibility: visible !important;
    }

    #exportRoot {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0 !important;
        padding: 0 !important;
    }

        #exportRoot .container {
            max-width: 100% !important;
            margin: 0 !important;
            padding: 0 10mm !important;
        }

    .card {
        box-shadow: none !important;
    }
}
/* Force the floating action button to look enabled + be clickable */
.floating-actions {
    z-index: 2147483647 !important; /* above bootstrap/modals */
    pointer-events: auto !important;
}

.action-btn {
    opacity: 1 !important;
    pointer-events: auto !important;
    filter: none !important;
}

    /* Only disabled if it truly has disabled attribute */
    .action-btn:disabled {
        opacity: 0.5 !important;
        cursor: not-allowed !important;
        pointer-events: none !important;
    }
/* Ensure the print button looks enabled */
#printSaveBtn {
    opacity: 1 !important;
    pointer-events: auto !important;
}