input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
}
.error-message {
    color: #dc2626;
    font-size: 0.75rem;
    display: none;
}
.image-stack {
    width: 100%;
    height: 450px;
    background-color: #f0f0f0;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}
.image-stack:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.image-stack img {
    width: 100%;
    height: 10%;
    display: block;
}
.card {
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    background-color: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 0;
    flex: 1;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.card-header {
    background: linear-gradient(to right, #60a5fa, #2563eb);
    color: white;
    padding: 0.75rem 1rem;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.custom-input {
    transition: all 0.3s ease;
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
}
.custom-input:hover {
    border-color: #3b82f6;
    box-shadow: 0 0 5px rgba(59, 130, 246, 0.3);
}
.custom-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    outline: none;
}
@media (max-width: 1024px) {
    .card {
        margin-bottom: 1rem;
    }
    .image-stack {
        height: 300px;
    }
}
table {
    table-layout: fixed;
    width: 100%;
}
table th, table td {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
table input {
    width: 50px;
    text-align: right;
    padding: 0.25rem;
}
#tbody-quymodientich td:nth-child(2),
#tbody-tongchiphi td:nth-child(2) {
    width: 70px;
}
#tbody-quymodientich td:nth-child(3),
#tbody-tongchiphi td:nth-child(3),
#tbody-tongchiphi td:nth-child(4) {
    width: 50px;
}
#tbody-quymodientich td:nth-child(4),
#tbody-tongchiphi td:nth-child(5) {
    width: 70px;
}