body {
    background: #eef1f5;
}

.app-nav {
    background: #2f4050;
}

.card-form {
    background: #fff;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.form-label.required::after {
    content: " *";
    color: #dc3545;
}

.packing-entry-page .form-label,
.packing-entry-page .section-title {
    font-weight: 600;
}

.packing-entry-page .last-entry-label {
    font-weight: 600;
}

.list-btn {
    background: #d9534f;
    border: none;
    color: #fff;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.section-title {
    color: #676a6c;
    font-weight: 600;
}

.packing-row {
    border: 1px solid #e7eaec;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #fafbfc;
}

.table-compact td, .table-compact th {
    font-size: 0.875rem;
    vertical-align: middle;
}

.dashboard-card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.dashboard-card .display-6 {
    color: #1ab394;
}

@media print {
    .no-print {
        display: none !important;
    }
}

@keyframes pulse-success {
    0% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.6); }
    70% { box-shadow: 0 0 0 12px rgba(25, 135, 84, 0); }
    100% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0); }
}

.pulse-success {
    animation: pulse-success 1.2s ease-out 2;
}

.save-success-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.72);
    pointer-events: none;
}

.save-success-tick {
    text-align: center;
}

.save-success-circle {
    stroke: #198754;
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: save-stroke 0.5s ease forwards;
}

.save-success-check {
    stroke: #198754;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: save-stroke 0.35s 0.35s ease forwards;
}

.save-success-text {
    margin-top: 0.5rem;
    font-weight: 600;
    color: #198754;
    font-size: 1.1rem;
}

@keyframes save-stroke {
    to { stroke-dashoffset: 0; }
}

/* Responsive / mobile */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 767.98px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .app-nav .navbar-brand {
        font-size: 1rem;
    }

    .app-nav .nav-link,
    .app-nav .dropdown-toggle {
        padding-top: 0.65rem;
        padding-bottom: 0.65rem;
    }

    .btn,
    .btn-sm {
        min-height: 44px;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .btn-sm {
        min-height: 40px;
    }

    .table-compact td,
    .table-compact th {
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .card-form .card-body {
        padding: 1rem;
    }

    .packing-row .col-md-1,
    .packing-row .col-md-2,
    .packing-row .col-md-3 {
        margin-bottom: 0.5rem;
    }

    .section-title {
        font-size: 1.15rem;
    }
}

.computed-field {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    background: #eef2f7;
    border-radius: 4px;
    color: #495057;
    font-style: italic;
}
