.input-file {
    color: black;
    border: solid 1px;
    width: fit-content;
    background-color: rgb(255, 255, 255);
    border-color: rgb(204, 204, 204);
    padding: 10px;
    cursor: pointer;
    border-radius: 4px;
}

.spanDoc {
    width: 100%;
    text-align: end;
}

.spanDocLeft {
    width: 100%;
    text-align: left;
}

.divDoc {
    display: flex;
}

.iconDoc {
    height: 100%;
    display: block;
    font-size: 2rem;
    width: 100%;
}

/* ===============================
   DATI NUOVA ASTA
================================= */

.dati-asta-wrapper {
    max-width: 1180px;
    margin: 40px auto;
}

.dati-asta-box {
    padding: 32px;
    background: #fff;
    border: 1px solid #daa000;
    border-radius: 14px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
}

/* GRID */

.dati-asta-grid {
    display: grid;
    gap: 24px 28px;
    margin-bottom: 28px;
}

.dati-asta-grid--2 {
    grid-template-columns: 1fr 1fr;
}

.dati-asta-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.dati-asta-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

.dati-asta-field {
    min-width: 0;
}

/* LABEL */

.dati-asta-field>label,
.dati-asta-box>label {
    display: block;
    margin-bottom: 7px;
    color: #222;
    font-size: 14px;
    font-weight: 600;
}

/* INPUT */

.dati-asta-field input:not([type="checkbox"]),
.dati-asta-field select,
.dati-asta-field textarea {
    width: 100% !important;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #d8d8d8;
    border-radius: 7px;
    background: #fff;
    color: #162343;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.dati-asta-field input:focus,
.dati-asta-field select:focus,
.dati-asta-field textarea:focus {
    outline: none;
    border-color: #daa000;
    box-shadow: 0 0 0 3px rgba(218, 160, 0, 0.13);
}

.dati-asta-field input[type="file"] {
    padding: 8px;
    cursor: pointer;
}

/* CHECKBOX */

.dati-asta-box input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    min-height: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    accent-color: #daa000;
}

/* RISULTATI ASTA INLINE */

.dati-asta-label-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 8px;
}

.dati-asta-label-inline>label {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.dati-asta-box .dati-asta-check-inline {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

/* EDITOR WORDPRESS */

.dati-asta-box .wp-editor-wrap {
    width: 100%;
    border: 1px solid #eee8dc;
    border-radius: 10px;
    overflow: hidden;
    background: #faf9f6;
    box-sizing: border-box;
}

.dati-asta-box .wp-editor-container {
    border: 0 !important;
}

.dati-asta-box .wp-editor-tabs {
    padding-top: 6px;
    padding-right: 8px;
}

.dati-asta-box .mce-toolbar-grp,
.dati-asta-box .quicktags-toolbar {
    background: #faf9f6 !important;
    border-bottom: 1px solid #eee8dc !important;
}

.dati-asta-box iframe,
.dati-asta-box textarea.wp-editor-area {
    min-height: 150px !important;
}

.dati-asta-box textarea.wp-editor-area {
    border: 0 !important;
    border-radius: 0;
    background: #fff;
}

/* AZIONI */

.dati-asta-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 28px;
}

.dati-asta-box .dati-asta-check {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

#crea_bottone {
    min-width: 150px;
    min-height: 44px;
    font-size: 16px;
}

#response {
    font-size: 15px;
}

/* RESPONSIVE */

@media (max-width: 991px) {

    .dati-asta-grid--2,
    .dati-asta-grid--3,
    .dati-asta-grid--4 {
        grid-template-columns: 1fr;
    }

    .dati-asta-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .dati-asta-wrapper {
        margin: 20px;
    }

    .dati-asta-box {
        padding: 20px;
    }

    .dati-asta-label-inline {
        align-items: flex-start;
        flex-direction: column;
    }
}

.dati-asta-file-preview,
.dati-asta-pdf-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    width: 54px;
    height: 54px;
    border: 1px solid #eee8dc;
    border-radius: 8px;
    background: #fff;
}

.dati-asta-file-preview img,
.dati-asta-pdf-preview img {
    max-width: 42px;
    max-height: 42px;
    object-fit: contain;
}

/* ===============================
   UPLOAD LOTTI
================================= */

.dati-upload-wrapper {
    max-width: 900px;
}

.dati-upload-header {
    margin-bottom: 30px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eee8dc;
}

.dati-upload-header h2 {
    margin: 0 0 8px 0;
    color: #111;
    font-size: 28px;
    font-weight: 600;
}

.dati-upload-header p {
    margin: 0;
    color: #777;
    font-size: 15px;
}

.dati-upload-file {
    position: relative;
    padding: 18px;
    border: 2px dashed #d8c7a0;
    border-radius: 12px;
    background: #faf9f6;
    transition: all .2s ease;
}

.dati-upload-file:hover {
    border-color: #daa000;
    background: #fffdf8;
}

.dati-upload-file input[type="file"] {
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    min-height: auto !important;
    cursor: pointer;
}

.dati-upload-actions {
    justify-content: flex-end;
    margin-top: 34px;
}

#carica_lotti {
    min-width: 220px;
    min-height: 48px;
    font-size: 16px;
}

/* ===============================
   MODIFICA LOTTI LISTA
================================= */

.dati-lotti-wrapper {
    max-width: 1050px;
}

.dati-lotti-toolbar {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    background: #faf9f6;
    border: 1px solid #eee8dc;
    border-radius: 12px;
}

.dati-lotti-toolbar label {
    min-width: 130px;
    margin-bottom: 11px;
    font-size: 14px;
    font-weight: 600;
}

.dati-lotti-toolbar select {
    width: 260px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #d8d8d8;
    border-radius: 7px;
    background: #fff;
    font-size: 15px;
    box-sizing: border-box;
}

.dati-lotti-toolbar select:focus {
    outline: none;
    border-color: #daa000;
    box-shadow: 0 0 0 3px rgba(218, 160, 0, 0.13);
}

.dati-lotti-lista {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dati-lotto-card {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 22px;
    padding: 18px;
    color: #111 !important;
    text-decoration: none !important;
    background: #fff;
    border: 1px solid #eee8dc;
    border-radius: 12px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.dati-lotto-card:hover {
    transform: translateY(-2px);
    border-color: #daa000;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.dati-lotto-img {
    width: 170px;
    height: 130px;
    background: #faf9f6;
    border-radius: 10px;
    overflow: hidden;
}

.dati-lotto-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dati-lotto-content h3 {
    margin: 0 0 10px 0;
    color: #111;
    font-size: 22px;
    font-weight: 600;
}

.dati-lotto-descrizione {
    color: #444;
    font-size: 15px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .dati-lotti-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .dati-lotti-toolbar label {
        margin-bottom: 0;
    }

    .dati-lotti-toolbar select {
        width: 100%;
    }

    .dati-lotto-card {
        grid-template-columns: 1fr;
    }

    .dati-lotto-img {
        width: 100%;
        height: 220px;
    }
}

/* ===============================
   MODIFICA LOTTO
================================= */

.dati-lotto-wrapper {
    max-width: 1100px;
}

.dati-lotto-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.dati-lotto-image-card {
    position: relative;
    border: 1px solid #eee8dc;
    border-radius: 12px;
    overflow: hidden;
    background: #faf9f6;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.dati-lotto-image-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.dati-lotto-image-card .bottone-utility {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    cursor: pointer;
    transition: all .2s ease;
}

.dati-lotto-image-card .bottone-utility:hover {
    background: #c40000;
    transform: scale(1.05);
}

#descrizione {
    width: 100%;
    min-height: 180px;
    resize: vertical;
    padding: 14px;
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.5;
    box-sizing: border-box;
}

#descrizione:focus {
    outline: none;
    border-color: #daa000;
    box-shadow: 0 0 0 3px rgba(218, 160, 0, 0.13);
}

@media (max-width: 768px) {

    .dati-lotto-gallery {
        grid-template-columns: 1fr 1fr;
    }

    .dati-lotto-image-card img {
        height: 150px;
    }
}

@media (max-width: 560px) {

    .dati-lotto-gallery {
        grid-template-columns: 1fr;
    }
}