body {
    font-family: Arial, sans-serif;
    display: flex;
    /* flex-direction: column; */
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    /* position: relative; */
    margin: 0;
    background-color: #f0f0f0;
}

.ui-tooltip {
  position: absolute !important;
  z-index: 9999;
}


.container {
    text-align: center;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
}



.version-tag {
    position: fixed;
    bottom: 10px;
    left: 10px;
    color: grey;
    font-size: 0.9em;
    font-family: sans-serif;
    z-index: 999;
}

.ui-tooltip {
    max-width: 400px;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #333;
}

.tooltip-help
{
    padding: 7px;
    
}

.ui-tooltip p {
    margin: 0 0 10px 0;
    font-weight: bold;
}

.ui-tooltip img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    width: 100%;
    /* Half the original size, assuming container context */
}

.form-group {
    margin: 20px 0;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

button {
    padding: 12px 24px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin: 10px;
}

button:hover {
    background-color: #0056b3;
}

.compra-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.compra-table thead tr {
    background-color: #f2f2f2;
}

.compra-table th,
.compra-table td {
    border: 1px solid #ddd;
    padding: 8px;
}

.compra-table th {
    text-align: left;
}

.compra-table .text-right {
    text-align: right;
}

.compra-table tfoot tr {
    background-color: #f9f9f9;
    font-weight: bold;
}

.result {
    margin-top: 30px;
    text-align: left;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    font-family: Arial, sans-serif;
    font-size: 14px;
}


.result p {
    margin: 5px 0;
    line-height: 1.5;
}

.result strong {
    color: #333;
}


.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #3498db;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#htmlOutput {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    white-space: pre-wrap;
    max-height: 400px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 12px;
}

button.copy-btn {
    background-color: #28a745;
    margin-top: 10px;
}

button.copy-btn:hover {
    background-color: #218838;
}




.form-group select {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    display: block;
}

/* ==== Table styles matching .compra-table ==== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

thead tr {
    background-color: #f2f2f2;
}

th,
td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    font-weight: bold;
    color: #333;
}

tr:hover {
    background-color: #f8f9fa;
}

tr.active {
    background-color: #d6eaf8;
}

tfoot tr {
    background-color: #f9f9f9;
    font-weight: bold;
}

.section-title {
    font-weight: bold;
    margin: 20px 0 10px;
    text-align: left;
    color: #333;
}


.ui-helper-hidden-accessible {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
}