/* ==========================================================================
   EduSphere Document Management — module stylesheet

   ADDITIVE ONLY — see sop.css's header comment for the shared-ownership
   rule this follows (portal.css / portal-modules.css own the base
   classes; nothing here redefines them). Same locked accent as its
   sibling SOP plugin: Ink Navy on Paper, minimal accent (Master Build
   Guide §6.2) — this module surfaces sensitive records, so restraint
   matters more than decoration.
   ========================================================================== */

.edusphere-documents-wrap {
    max-width: 1040px;
    margin: 0 auto;
    padding: 32px 24px 64px;
}

.es-docs-console-head {
    margin-bottom: 24px;
}

.es-docs-console-head h1 {
    font-size: 28px;
}

.es-docs-panel-head {
    margin-bottom: 20px;
}

.es-docs-form {
    border: 1px solid var(--es-line);
    border-radius: var(--es-radius);
    padding: 20px;
    margin-bottom: 28px;
    background: var(--es-paper-raised);
    max-width: 480px;
}

.es-docs-form select {
    width: 100%;
    padding: 10px 12px;
    font-family: var(--es-font-body);
    font-size: 14px;
    color: var(--es-ink);
    background: var(--es-paper-raised);
    border: 1px solid var(--es-line);
    border-radius: var(--es-radius);
}

.es-docs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.es-docs-table th {
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--es-slate-light);
    padding: 8px 12px;
    border-bottom: 1px solid var(--es-line);
}

.es-docs-table td {
    padding: 12px;
    border-bottom: 1px solid var(--es-line-soft);
    vertical-align: middle;
}

.es-docs-table label[data-action="upload-trigger"] {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

/* ---------- Status badges — reuse portal.css's .es-badge base ---------- */

.es-badge-docs-pending {
    background: var(--es-line-soft);
    color: var(--es-slate);
}

.es-badge-docs-on_file {
    background: var(--es-teal-tint);
    color: var(--es-teal);
}

.es-badge-docs-ocr-queued,
.es-badge-docs-ocr-processing {
    background: #fdf3e3;
    color: var(--es-ochre-dark);
}

.es-badge-docs-ocr-completed {
    background: var(--es-teal-tint);
    color: var(--es-teal);
}

.es-badge-docs-ocr-failed,
.es-badge-docs-sig-declined {
    background: var(--es-clay-tint);
    color: var(--es-clay);
}

.es-badge-docs-review {
    background: var(--es-clay-tint);
    color: var(--es-clay);
}

.es-badge-docs-sig-pending {
    background: #fdf3e3;
    color: var(--es-ochre-dark);
}

.es-badge-docs-sig-signed {
    background: var(--es-teal-tint);
    color: var(--es-teal);
}

@media (max-width: 640px) {
    .edusphere-documents-wrap {
        padding: 20px 16px 48px;
    }

    .es-docs-table,
    .es-docs-table thead,
    .es-docs-table tbody,
    .es-docs-table tr,
    .es-docs-table td {
        display: block;
        width: 100%;
    }

    .es-docs-table thead {
        display: none;
    }

    .es-docs-table tr {
        border: 1px solid var(--es-line-soft);
        border-radius: var(--es-radius);
        margin-bottom: 12px;
        padding: 8px 12px;
    }

    .es-docs-table td {
        border-bottom: none;
        padding: 6px 0;
    }
}
