.dg-logs-wrap{
    max-width:1200px;
    margin:20px auto;
    padding:14px;
}

.dg-logs-title{
    font-size:30px;
    font-weight:900;
    text-align:center;
    margin-bottom:20px;
    color:#111827;
}

/* Barra superior */
.dg-logs-toolbar{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:18px;
    margin:0 auto 26px;
    max-width:720px;
}

/* Buscador */
.dg-logs-search{
    width:100%;
    display:grid;
    grid-template-columns:1fr auto auto;
    gap:10px;
    align-items:center;
    margin:0;
}

.dg-logs-search input{
    height:46px;
    padding:0 14px;
    border:1px solid #d1d5db;
    border-radius:14px;
    font-weight:800;
    box-sizing:border-box;
}

.dg-logs-search button,
.dg-logs-search a{
    height:46px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:0;
    border-radius:14px;
    padding:0 16px;
    font-size:12px;
    font-weight:900;
    text-decoration:none!important;
    cursor:pointer;
    white-space:nowrap;
}

.dg-logs-search button{
    background:#16a34a;
    color:#fff!important;
}

.dg-logs-search a{
    background:#f3f4f6;
    color:#16a34a!important;
}

/* Botón imprimir */
.dg-print-btn{
    width:100%;
    height:48px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#111827;
    color:#fff!important;
    text-decoration:none!important;
    border:0;
    border-radius:999px;
    padding:0 20px;
    font-size:13px;
    font-weight:900;
    cursor:pointer;
    box-sizing:border-box;
}

/* Caja de logs */
.dg-logs-box{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:18px;
    box-shadow:0 8px 24px rgba(0,0,0,.08);
    padding:12px;
}

.dg-log-card{
    background:#f9fafb;
    border:1px solid #e5e7eb;
    border-radius:14px;
    padding:10px;
    margin-bottom:8px;
}

.dg-log-head{
    display:flex;
    justify-content:space-between;
    gap:8px;
    align-items:center;
    margin-bottom:6px;
}

.dg-log-action{
    font-size:14px;
    font-weight:900;
    color:#111827;
}

.dg-log-date{
    font-size:10px;
    color:#6b7280;
    font-weight:800;
    white-space:nowrap;
}

.dg-log-type{
    display:inline-flex;
    background:#111827;
    color:#fff;
    border-radius:999px;
    padding:3px 7px;
    font-size:9px;
    font-weight:900;
    margin-bottom:6px;
}

.dg-log-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:6px;
    font-size:11px;
    color:#374151;
}

.dg-log-grid span{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:10px;
    padding:6px;
    min-width:0;
    overflow:hidden;
}

.dg-log-grid strong{
    display:block;
    color:#111827;
    margin-bottom:2px;
    font-size:10px;
}

.dg-log-empty{
    padding:14px;
    text-align:center;
    font-weight:800;
    color:#6b7280;
}

@media(max-width:768px){

    .dg-logs-wrap{
        padding:8px;
        margin:8px auto;
    }

    .dg-logs-title{
        font-size:24px;
        margin-bottom:18px;
    }

    .dg-logs-toolbar{
        gap:16px;
        margin-bottom:28px;
    }

    .dg-logs-search{
        grid-template-columns:1fr;
        gap:10px;
    }

    .dg-logs-search input,
    .dg-logs-search button,
    .dg-logs-search a,
    .dg-print-btn{
        width:100%;
        box-sizing:border-box;
    }

    .dg-logs-box{
        padding:8px;
        border-radius:16px;
    }

    .dg-log-card{
        padding:9px;
        border-radius:14px;
        margin-bottom:8px;
    }

    .dg-log-head{
        display:block;
        margin-bottom:5px;
    }

    .dg-log-action{
        font-size:14px;
        line-height:1.2;
    }

    .dg-log-date{
        font-size:10px;
        margin-top:4px;
    }

    .dg-log-type{
        font-size:8px;
        padding:3px 7px;
        margin-bottom:6px;
    }

    .dg-log-grid{
        grid-template-columns:1fr 1fr;
        gap:5px;
        font-size:10px;
    }

    .dg-log-grid span{
        padding:6px;
        border-radius:9px;
    }

    .dg-log-grid strong{
        font-size:9px;
    }
}

@media print{

    header,
    footer,
    .site-header,
    .site-footer,
    .dg-logs-toolbar{
        display:none!important;
    }

    body{
        background:#fff!important;
    }

    .dg-logs-wrap{
        max-width:100%!important;
        margin:0!important;
        padding:0!important;
    }

    .dg-logs-title{
        font-size:22px!important;
        margin-bottom:12px!important;
    }

    .dg-logs-box{
        box-shadow:none!important;
        border:0!important;
        padding:0!important;
    }

    .dg-log-card{
        break-inside:avoid;
        border:1px solid #ddd!important;
        background:#fff!important;
        margin-bottom:6px!important;
        padding:8px!important;
    }

    .dg-log-grid{
        grid-template-columns:repeat(3,1fr)!important;
        font-size:10px!important;
    }
}