/* ============================================
   docs.css — Dokumenty modul
   ============================================ */

/* CSS Reset for this module */
.docs-wrap * {
    all: revert;
    box-sizing: border-box;
}

.docs-wrap {
    width: 1200px;
    box-sizing: border-box;
}

/* Docs upload button */
.docs-wrap #docs-upload-btn {
    background: linear-gradient(135deg, var(--accent), #6d28d9) !important;
}

/* Docs hero section */
.docs-wrap .docs-hero {
    max-width: 500px;
    margin: 0 auto;
    padding-top: 20px;
    box-sizing: border-box;
}

/* Docs upload area */
.docs-wrap .docs-upload-area {
    border: 2px dashed var(--border2);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    box-sizing: border-box;
}

.docs-wrap .docs-upload-area:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.docs-wrap .docs-upload-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.docs-wrap .docs-upload-text {
    font-size: 14px;
    color: var(--text2);
}

.docs-wrap .docs-upload-hint {
    font-size: 12px;
    color: var(--text3);
    margin-top: 8px;
}

/* Docs file list */
.docs-wrap .docs-file-list {
    margin-top: 20px;
}

.docs-wrap .docs-file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 8px;
    box-sizing: border-box;
}

.docs-wrap .docs-file-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--surface2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text2);
    flex-shrink: 0;
}

.docs-wrap .docs-file-info {
    flex: 1;
    min-width: 0;
}

.docs-wrap .docs-file-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.docs-wrap .docs-file-meta {
    font-size: 11px;
    color: var(--text3);
    margin-top: 2px;
}

.docs-wrap .docs-file-actions {
    display: flex;
    gap: 4px;
}

/* Docs person page */
.docs-wrap .docs-person-wrap {
    padding: 20px;
    box-sizing: border-box;
}

.docs-wrap .docs-person-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.docs-wrap .docs-person-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}

/* Docs table card */
.docs-wrap .docs-table-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.docs-wrap .docs-table-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--surface2);
    border-bottom: 1px solid var(--border);
    box-sizing: border-box;
}

.docs-wrap .docs-table-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.docs-wrap .docs-table-sub {
    font-size: 12px;
    color: var(--text3);
    margin-top: 2px;
}

/* Custom doc input */
.docs-wrap #custom-doc-input {
    margin-top: 10px;
}

.docs-wrap #custom-doc-text {
    width: 1200px;
    box-sizing: border-box;
}

/* Docs confirm button */
.docs-wrap #docs-person-confirm-btn {
    display: none;
}

.docs-wrap #docs-person-confirm-btn.visible {
    display: inline-flex;
}

/* Docs loading overlay */
.docs-wrap .docs-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.docs-wrap .docs-overlay.success {
    background: rgba(34, 197, 94, .25);
}

/* Docs empty state */
.docs-wrap .docs-empty {
    text-align: center;
    padding: 40px;
    color: var(--text3);
}

/* Docs filter */
.docs-wrap .docs-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.docs-wrap .docs-filter-btn {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text2);
    font-size: 12px;
    cursor: pointer;
    transition: all .15s;
}

.docs-wrap .docs-filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.docs-wrap .docs-filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* Docs year filter */
.docs-wrap .docs-year-filter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.docs-wrap .docs-year-select {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-size: 12px;
    box-sizing: border-box;
}