body > .container, body > .container-full {
    margin-bottom: 40px;
}

footer {
    position: absolute;
    background-color: white;
    padding: 8px 0;
    left: 0;
    right: 0;
    bottom: 0;
    text-align: center;
}

form .CodeMirror {
    border: 1px solid #ccc;
    width: 100%;
    height: 700px !important;
}


.indexaspetti td {
    padding: 20px 0 !important;
}

/* ============================================================================== */
/*                                     MEDIA                                      */
/* ============================================================================== */
.media-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 576px)  { .media-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px)  { .media-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 992px)  { .media-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1200px) { .media-grid { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 1400px) { .media-grid { grid-template-columns: repeat(6, 1fr); } }

.media-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    position: relative;
}

.media-thumb-link {
    display: block;
    text-decoration: none;
}

.media-thumb {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
    background: #f4f4f4;
}

.file-thumb {
    width: 100%;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #555;
    text-align: center;
    padding: 10px;
    font-size: 13px;
    word-break: break-word;
}

.media-meta {
    padding: 10px 12px 6px 12px;
}

.media-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.media-small {
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
}

.del {
    position: absolute;
    right: 7px;
    bottom: 7px;
    font-size: 22px;
    background-color: white;
    line-height: 12px;
    padding: 5px 6px 9px 6px;
    border-radius: 4px;
}

.hide-mobile {
}

.hide-tablet {
}

.hide-desktop {
}

@media (max-width: 767px) {
    .hide-mobile {
        display: none !important;
    }
}

/* ============================================================================== */
/*                                     PAGES                                      */
/* ============================================================================== */
@media (min-width: 768px) and (max-width: 1024px) {
    .hide-tablet {
        display: none !important;
    }
}

@media (min-width: 1025px) {
    .hide-desktop {
        display: none !important;
    }
}

.widget-item {
    border-left: 4px solid #0d6efd;
}

.CodeMirror {
    width: 100%;
}

.nav-link.active {
    font-weight: bold;
    text-decoration: underline;
}

.badge {
    background-color: #f3f4f6;
    color: black;
}