.expedientes-container {
    padding: 20px;
    height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
}

.expedientes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 15px;
}

.expedientes-header-info {
    flex: 1;
}

.expedientes-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 5px 0;
}

.expedientes-subtitle {
    color: #64748b;
    margin: 0;
    font-size: 0.875rem;
}

.expedientes-btn-outline {
    background: transparent;
    border: 1px solid #cbd5e1;
    color: #475569;
}

.expedientes-btn-outline:hover {
    background: #f1f5f9;
    border-color: #4361ee;
    color: #4361ee;
}

/* Layout de 3 columnas */
.expedientes-layout {
    display: flex;
    gap: 20px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.expedientes-panel {
    background: white;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.expedientes-panel-users {
    flex: 1.2;
}

.expedientes-panel-activities {
    flex: 1;
}

.expedientes-panel-documents {
    flex: 1.5;
}

.expedientes-panel-header {
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.expedientes-badge {
    background: #e2e8f0;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #475569;
}

/* Búsqueda */
.expedientes-search {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
}

.expedientes-search i {
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
}

.expedientes-search-input {
    width: 100%;
    padding: 8px 12px 8px 35px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.expedientes-search-input:focus {
    outline: none;
    border-color: #4361ee;
    box-shadow: 0 0 0 3px rgba(67,97,238,0.1);
}

/* Listas */
.expedientes-user-list,
.expedientes-activity-list,
.expedientes-document-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

/* Items de usuario */
.expedientes-user-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin: 4px 0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    border: 1px solid #e2e8f0;
}

.expedientes-user-item:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateX(4px);
}

.expedientes-user-item.active {
    background: linear-gradient(135deg, #4361ee 0%, #3f37c9 100%);
    color: white;
    border-color: transparent;
}

.expedientes-user-avatar {
    width: 40px;
    height: 40px;
    background: #e2e8f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-weight: bold;
    color: #4361ee;
}

.expedientes-user-item.active .expedientes-user-avatar {
    background: rgba(255,255,255,0.2);
    color: white;
}

.expedientes-user-info {
    flex: 1;
}

.expedientes-user-folio {
    font-weight: 700;
    font-size: 0.875rem;
}

.expedientes-user-name {
    font-size: 0.75rem;
    opacity: 0.8;
}

.expedientes-user-status {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 20px;
}

.expedientes-status-active {
    background: #10b981;
    color: white;
}

/* Items de actividad */
.expedientes-activity-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin: 4px 0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    border: 1px solid #e2e8f0;
}

.expedientes-activity-item:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.expedientes-activity-item.active {
    background: #f0fdf4;
    border-color: #10b981;
}

.expedientes-activity-icon {
    width: 36px;
    height: 36px;
    background: #e2e8f0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: #4361ee;
}

.expedientes-activity-item.active .expedientes-activity-icon {
    background: #10b981;
    color: white;
}

.expedientes-activity-name {
    flex: 1;
    font-weight: 500;
}

.expedientes-activity-docs {
    font-size: 0.7rem;
    color: #64748b;
}

/* Items de documento */
.expedientes-document-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin: 4px 0;
    border-radius: 12px;
    background: white;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.expedientes-document-item:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.expedientes-document-icon {
    width: 40px;
    height: 40px;
    background: #fee2e2;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: #ef4444;
    font-size: 1.2rem;
}

.expedientes-document-info {
    flex: 1;
}

.expedientes-document-name {
    font-weight: 500;
    font-size: 0.875rem;
}

.expedientes-document-date {
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 2px;
}

.expedientes-document-actions {
    display: flex;
    gap: 8px;
}

.expedientes-doc-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.expedientes-doc-view {
    background: #e2e8f0;
    color: #475569;
}

.expedientes-doc-view:hover {
    background: #4361ee;
    color: white;
}

.expedientes-doc-delete {
    background: #fee2e2;
    color: #ef4444;
}

.expedientes-doc-delete:hover {
    background: #ef4444;
    color: white;
}

.expedientes-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.expedientes-placeholder i {
    margin-bottom: 16px;
    opacity: 0.5;
}

.expedientes-loading {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
}

/* Scrollbar */
.expedientes-user-list::-webkit-scrollbar,
.expedientes-activity-list::-webkit-scrollbar,
.expedientes-document-list::-webkit-scrollbar {
    width: 6px;
}

.expedientes-user-list::-webkit-scrollbar-track,
.expedientes-activity-list::-webkit-scrollbar-track,
.expedientes-document-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.expedientes-user-list::-webkit-scrollbar-thumb,
.expedientes-activity-list::-webkit-scrollbar-thumb,
.expedientes-document-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 900px) {
    .expedientes-layout {
        flex-direction: column;
    }
    
    .expedientes-panel {
        min-height: 250px;
    }
    
    .expedientes-container {
        height: auto;
    }
}
