

/* PURCHASE_INVOICES_INLINE_EXTRACTED_START */
.upload-zone-card{
    margin-bottom:1rem;
    padding:1rem;
}

.upload-zone-header{
    margin-bottom:.75rem;
}

.upload-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:.75rem;
}

.upload-mini-card{
    border:1px solid #e8e1d5;
    border-radius:12px;
    padding:.85rem;
    background:#fff;
    display:flex;
    flex-direction:column;
    gap:.55rem;
}

.upload-mini-card input[type="file"]{
    width:100%;
}

.upload-mini-card .button{
    margin-top:.25rem;
}

@media (max-width: 640px){
    .upload-zone-card{
        padding:.85rem;
    }

    .upload-mini-card{
        padding:.75rem;
    }
}


.document-filter-chips{
    display:flex;
    gap:10px;
    overflow-x:auto;
    padding:8px 0 18px;
    margin-bottom:4px;
}

.document-filter-chip{
    flex:0 0 auto;
    border:1px solid #ddd5c8;
    background:#fff;
    border-radius:999px;
    padding:10px 14px;
    font-size:13px;
    font-weight:700;
    text-decoration:none;
    color:inherit;
}

.document-filter-chip.active{
    background:#1f1f1f;
    color:#fff;
    border-color:#1f1f1f;
}


.duplicate-pill{
    display:inline-flex;
    margin-top:10px;
    border-radius:999px;
    padding:7px 10px;
    background:#fff1cf;
    color:#8a5a00;
    font-size:12px;
    font-weight:700;
}


.desktop-duplicate-badge{
    display:inline-flex;
    align-items:center;
    border-radius:999px;
    padding:7px 12px;
    background:#ffe2e2;
    color:#b42318;
    font-size:11px;
    font-weight:800;
    margin-top:8px;
    letter-spacing:.2px;
}


.documents-danger-link{
    opacity:.55;
    transition:.2s opacity;
}

.documents-danger-link:hover{
    opacity:1;
}

.status-pill-desktop{
    display:inline-flex;
    align-items:center;
    border-radius:999px;
    padding:8px 12px;
    font-size:12px;
    font-weight:700;
    line-height:1;
}

.status-pill-desktop.review{
    background:#fff7e8;
    color:#9a6700;
}

.status-pill-desktop.ok{
    background:#eefbf3;
    color:#17663a;
}

.status-pill-desktop.pending{
    background:#fff1f1;
    color:#9f1d1d;
}

.documents-mobile-status{
    margin-top:12px;
}

.status-pill{
    display:inline-flex;
    align-items:center;
    border-radius:999px;
    padding:8px 12px;
    font-size:12px;
    font-weight:700;
    line-height:1;
}

.status-pill.Recuperación automática IA{
    background:#fff1f1;
    color:#9f1d1d;
}

.status-pill.review{
    background:#fff7e8;
    color:#9a6700;
}

.status-pill.ok{
    background:#eefbf3;
    color:#17663a;
}

.status-pill.pending{
    background:#eef3ff;
    color:#1f4fa3;
}

.documents-page-clean{
    margin-top:0;
}

@media (max-width:760px){

    .document-filter-chips{
        margin-top:6px;
        margin-bottom:10px;
    }

    .documents-page-clean{
        margin-top:0;
    }

    .documents-page-clean .page-header{
        margin-top:0;
        padding-top:0;
    }

    .documents-page-clean h1{
        margin-top:0;
    }
}

.documents-actions{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
    margin:26px 0 22px;
}

@media (max-width:760px){

    .documents-page-clean h1{
        font-size:54px;
        line-height:.95;
        letter-spacing:-2px;
        margin-bottom:18px;
    }

    .documents-page-clean p{
        font-size:18px;
        line-height:1.5;
        max-width:540px;
    }

    .documents-actions{
        margin-top:28px;
        margin-bottom:26px;
    }
}

@media (min-width: 761px){

    .documents-mobile-list{
        display:none;
    }
}

@media (max-width: 760px){


    table{
        display:none;
    }

    .documents-mobile{
        display:flex;
        flex-direction:column;
        gap:14px;
        margin-top:18px;
    }

    .documents-mobile-card{
        background:#fff;
        border:1px solid #e6dfd2;
        border-radius:18px;
        padding:16px;
    }

    .documents-mobile-card-top{
        display:flex;
        justify-content:space-between;
        gap:12px;
        margin-bottom:10px;
    }

    .documents-mobile-title{
        font-size:17px;
        font-weight:700;
        line-height:1.3;
    }

    .documents-mobile-meta{
        font-size:13px;
        color:#746d62;
        line-height:1.5;
    }
}

.upload-processing-overlay{
    position:fixed;
    inset:0;
    background:rgba(255,255,255,.78);
    backdrop-filter:blur(8px);
    z-index:99999;
    display:none;
    align-items:center;
    justify-content:center;
}
.upload-processing-overlay.is-visible{
    display:flex;
}
.upload-processing-card{
    background:#fff;
    border:1px solid #e8e1d5;
    border-radius:22px;
    padding:28px 32px;
    box-shadow:0 22px 60px rgba(0,0,0,.12);
    text-align:center;
    max-width:340px;
}
.upload-processing-spinner{
    width:42px;
    height:42px;
    margin:0 auto 16px;
    border-radius:50%;
    border:3px solid #e5e5e5;
    border-top-color:#111;
    animation:uploadSpin .8s linear infinite;
}
@keyframes uploadSpin{
    to{ transform:rotate(360deg); }
}
.upload-processing-title{
    font-weight:800;
    font-size:18px;
    margin-bottom:6px;
}
.upload-processing-copy{
    color:#666;
    font-size:14px;
    line-height:1.45;
}
button.is-loading{
    opacity:.65;
    pointer-events:none;
}
/* PURCHASE_INVOICES_INLINE_EXTRACTED_END */
