/**
 * Inline Table Summary Field Styles
 */

.dab-inline-table-summary-container {
    margin: 10px 0;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.dab-inline-table-summary-container:hover {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.dab-inline-table-summary {
    width: 100%;
    padding: 8px 12px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: right;
    cursor: default;
}

.dab-inline-table-summary:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 1px #007cba;
}

.dab-inline-table-summary-label {
    margin-top: 5px;
    font-size: 12px;
    color: #666;
    text-align: right;
}

/* Invoice-like styling */
.dab-invoice-summary {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    border-top: 1px solid #ddd;
    padding-top: 10px;
}

.dab-invoice-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
}

.dab-invoice-summary-label {
    font-weight: normal;
    color: #555;
}

.dab-invoice-summary-value {
    font-weight: bold;
    text-align: right;
    min-width: 100px;
}

.dab-invoice-total {
    font-size: 18px;
    font-weight: bold;
    color: #000;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid #ddd;
}

/* Animation for value changes */
@keyframes highlight-change {
    0% {
        background-color: #fff;
    }
    50% {
        background-color: #fffde7;
    }
    100% {
        background-color: #fff;
    }
}

.dab-value-changed {
    animation: highlight-change 1s ease;
}

/* Responsive styles */
@media (max-width: 768px) {
    .dab-inline-table-summary {
        font-size: 14px;
    }
    
    .dab-invoice-total {
        font-size: 16px;
    }
}

/* Print styles */
@media print {
    .dab-inline-table-summary-container {
        background-color: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
    }
    
    .dab-inline-table-summary {
        border: none;
        background-color: transparent;
    }
    
    .dab-invoice-summary {
        page-break-inside: avoid;
    }
}
