﻿/* Layout pagine interne */
.page-bg {
    position: relative;
    min-height: calc(100vh - 80px);
    background-color: #001f3f;
    overflow: hidden;
}

.page-bg .ocean-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.page-bg .ocean-bg::before {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -10%;
    width: 120%;
    height: 340px;
    background: radial-gradient(ellipse at 50% 100%, #0077b640 0%, transparent 70%);
    border-radius: 50%;
    animation: wavePulse 7s ease-in-out infinite;
}

.page-bg .ocean-bg::after {
    content: '';
    position: absolute;
    top: -80px;
    right: -10%;
    width: 100%;
    height: 300px;
    background: radial-gradient(ellipse at 70% 0%, #00b4d820 0%, transparent 65%);
    border-radius: 50%;
    animation: wavePulse 9s ease-in-out infinite reverse;
}

@keyframes wavePulse {
    0%, 100% {
        transform: scaleX(1) translateY(0);
    }

    50% {
        transform: scaleX(1.05) translateY(-15px);
    }
}

.page-bg .dot-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(0,180,216,0.12) 1px, transparent 1px);
    background-size: 32px 32px;
}

.page-content {
    position: relative;
    z-index: 1;
    margin: 2.5rem auto;
    max-width: 90%;
    padding: 0 1.5rem 3rem;
}

.content-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(0, 180, 216, 0.15);
    box-shadow: 0 20px 60px rgba(0, 31, 63, 0.25), 0 4px 16px rgba(0, 180, 216, 0.08);
    padding: 2rem 2.5rem;
}

.snim-dropdown {
    border: 1px solid rgba(0, 180, 216, 0.3);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 31, 63, 0.15);
    padding: 0.4rem;
    min-width: 160px;
}

.snim-dropdown .dropdown-item {
    border-radius: 7px;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 0.9rem;
    transition: background 0.15s;
}

.snim-dropdown .dropdown-item:hover {
    background: rgba(0, 180, 216, 0.08);
}

.snim-dropdown .dropdown-item.text-danger:hover {
    background: rgba(231, 76, 60, 0.08);
    color: #c0392b !important;
}

/* Tabelle generate dinamicamente via AJAX */
.table-ajax-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    display: block; /* importante: block invece di default */
}

.table-ajax-wrapper table {
    min-width: 700px;
    width: 100%;
}

.content-card {
    overflow: visible !important;
}

/* Su mobile riduci padding celle */
@media (max-width: 768px) {
    .table td, .table th {
        padding: 0.4rem 0.5rem;
        font-size: 0.82rem;
    }

    /* Tasti azione più compatti */
    .table .btn-sm {
        padding: 0.2rem 0.4rem;
        font-size: 0.75rem;
    }

    /* Codice barcode va a capo se troppo lungo */
    .table code {
        word-break: break-all;
    }
}
